/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #111424;
    --light-bg: #f4f0e6;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --gold: #d4af37;
    --gold-light: #e5d5b5;
    --glow-color: rgba(255, 255, 255, 0.8);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dark-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
}

.light-section {
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding: 100px 0;
}

.glow-text {
    font-size: 4.5rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.7), 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.3);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Placeholders */
.placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-light);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.dark-btn {
    border-color: rgba(0, 0, 0, 0.5);
    color: var(--text-dark);
}

.dark-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000;
    box-shadow: none;
}

/* --- Specific Sections --- */

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    justify-content: flex-end; /* Align content to the right */
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    padding: 0 5%;
}

.hero-content {
    position: absolute;
    right: 2%; /* Повернув блок на місце, оскільки зсувати будемо тільки логотип */
    top: 15%; 
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 60%; 
}

.hero-btn {
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 30px 100px; 
    font-size: 1.8rem; 
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: all 0.3s;
    margin-top: -240px; /* Сильно підтягуємо кнопку вгору, бо збільшене лого розширило прозору зону */
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.logo-wrapper {
    margin-bottom: 0; /* Прибрав відступ, щоб кнопка була ближче */
}

.logo-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: transparent;
}

.logo-text {
    font-size: 3.5rem;
    color: var(--gold);
    letter-spacing: 5px;
    font-weight: 400;
}

.logo-text span {
    font-size: 1.5rem;
    letter-spacing: 12px;
    display: block;
    margin-top: 5px;
}

.logo-img {
    max-width: 130%; 
    height: auto;
    width: 1300px; 
    margin-left: 50%;
    transform: translate(calc(-50% - 150px), -50px); /* Правильне центрування + зсув вліво на 150px + зсув вгору на 50px */
}

.logo-img-small {
    width: 400px; /* Збільшив розмір до "нормального" (було 120px) */
    height: auto;
    max-width: 100%;
}

/* About Person Section */
.about-person {
    padding: 120px 0;
    background: #111424;
}

.about-person-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.person-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.arched-image-container {
    position: relative;
    display: inline-block;
}

.leaf-decoration {
    position: absolute;
    top: -200px; /* Ще вище */
    left: 50%;
    transform: translateX(-50%);
    width: 425px; /* Зменшив на 15% (було 500px) */
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.arched-photo {
    width: 350px;
    height: 450px;
    border-top-left-radius: 175px;
    border-top-right-radius: 175px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.person-info {
    flex: 1.5;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.company-role {
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--gold-light);
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* About Me Section */
.about-me {
    text-align: center;
}

.section-title {
    font-size: 8rem; /* Збільшив у 2 рази (було 4rem) */
    margin-bottom: 60px;
    color: var(--text-dark);
}

.section-title.with-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.star {
    font-size: 4rem; /* Збільшив у 2 рази (було 2rem) */
    color: #1a1a1a;
}

.about-me .container {
    max-width: 1600px; /* Зробив ще ширшим (було 1400px) */
}

.two-columns {
    display: flex;
    gap: 60px;
    text-align: left;
    margin-bottom: 50px;
    max-width: 100%; 
    margin-left: auto;
    margin-right: auto;
}

.col {
    flex: 1; /* Примусово робимо колонки однаковими по ширині */
}

.col p {
    margin-bottom: 20px;
    font-size: calc(2rem - 1px); /* Зменшив рівно на 1px */
    font-weight: 500; /* Збільшив вагу на 100 */
    line-height: 1.8;
}

.center-btn {
    margin-top: 40px;
}

/* Advantages Section */
.advantages {
    background: linear-gradient(to bottom, #111424, #0a0c16);
}

.advantages-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.adv-left {
    flex: 1;
}

.small-logo {
    margin-bottom: -40px; /* Прибрав відступ і використав негативний, щоб підтягнути заголовок вище до логотипу */
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-placeholder-small {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.logo-text-small {
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo-text-small span {
    font-size: 0.7rem;
    letter-spacing: 4px;
    display: block;
    color: var(--gold-light);
}

.adv-left .glow-text {
    font-size: 5rem;
    margin-bottom: 40px;
}

.adv-right {
    flex: 1.5;
}

.adv-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.adv-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.adv-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.adv-item p {
    font-size: 0.95rem;
    color: #ccc;
}

/* Contacts Section */
.contacts {
    text-align: center;
}

.contact-image-wrapper {
    margin-bottom: 50px;
}

.contact-photo {
    width: 400px; /* Зробив трохи більшим, оскільки решта елементів також збільшена */
    height: 260px;
    margin: 0 auto;
    border-top-left-radius: 200px;
    border-top-right-radius: 200px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.contact-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-col p, .contact-col a {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.contact-col a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-person-container, .advantages-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-bottom: 40px;
    }

    .person-info {
        text-align: left;
    }

    .two-columns {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info {
        flex-direction: column;
        gap: 40px;
    }

    .adv-left .glow-text {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .glow-text {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .portrait-placeholder {
        height: 500px;
    }
}
