:root {
    --primary-text: #1a1a1a;
    --secondary-text: #444444;
    --background-color: #ffffff;
    --shape-color: #f4f4f4;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Source Serif Pro', serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--primary-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 160px 20px 0;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: static;
}

.hero-content {
    margin-bottom: 40px;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 4rem);
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    color: var(--primary-text);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
    word-wrap: break-word;
}

.hero-content p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.6s forwards;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.5s ease-out 0.9s forwards;
    width: 100%;
}

.hero-image img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
    border-radius: 2px;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards, pulse 2s ease-in-out 2.5s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-indicator:hover {
    transform: translateY(-5px);
}

.scroll-text {
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.scroll-arrow {
    color: #666;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-indicator:hover .scroll-arrow {
    transform: translateY(3px);
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 160px;
    margin-bottom: 150px;
    padding-top: 80px;
    width: 100%;
    overflow: hidden;
}

.profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    max-width: 100%;
}

.profile-card:nth-child(even) {
    flex-direction: row-reverse;
}

.profile-text {
    flex: 1;
    position: relative;
    z-index: 10;
    padding: 20px;
}

.profile-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 5px 0;
    line-height: 1.1;
}

.profile-text .role {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 35px;
}

.profile-text p {
    font-size: 1.05rem;
    color: var(--secondary-text);
    margin-bottom: 20px;
    text-align: justify;
}

.quote-box {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.quote-box p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
}

.quote-box span {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
}

.profile-image-wrapper {
    flex: 0 0 45%;
    position: relative;
    height: 650px;
    width: 100%;
    min-height: 500px;
}

.profile-bg-shape {
    position: absolute;
    top: 15%;
    bottom: 0;
    background: var(--shape-color);
    z-index: -1;
    width: calc(100% + 150px);
}

.profile-card:nth-child(odd) .profile-bg-shape {
    right: 0;
    left: 10%;
    margin-left: -150px;
}

.profile-card:nth-child(even) .profile-bg-shape {
    left: 0;
    right: 10%;
    margin-right: -150px;
}

.profile-image-wrapper img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 100%;
    width: auto;
    max-width: 120%;
    object-fit: contain;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.profile-image-wrapper img.active {
    opacity: 1;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: 600px;
        padding-top: 100px;
    }

    .profile-card {
        gap: 40px;
    }

    .profile-image-wrapper {
        flex: 0 0 40%;
        height: 550px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
    }

    .hero-section {
        min-height: 100vh;
        padding: 130px 15px 0;
        height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        margin-bottom: 30px;
    }

    .hero-image {
        margin-bottom: 40px;
    }

    .hero-image img {
        max-height: 80vh;
        max-width: 100%;
    }

    .scroll-indicator {
        bottom: 30px;
        right: 30px;
    }

    .profile-section {
        gap: 80px;
        margin-bottom: 100px;
        padding-top: 60px;
    }

    .profile-card,
    .profile-card:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .profile-image-wrapper {
        height: 400px;
        flex: none;
        width: 100%;
        order: -1;
        overflow: hidden;
    }

    .profile-bg-shape {
        width: 100%;
        left: 0;
        right: 0;
        margin: 0;
        top: 10%;
        border-radius: 8px;
    }

    .profile-card:nth-child(odd) .profile-bg-shape,
    .profile-card:nth-child(even) .profile-bg-shape {
        margin: 0;
        left: 0;
        right: 0;
    }

    .profile-image-wrapper img {
        max-width: 100%;
    }

    .profile-text {
        order: 1;
        padding: 15px;
        width: 100%;
    }

    .profile-text p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 130px 10px 60px;
    }

    .hero-content h1 {
        margin-bottom: 15px;
        font-size: 2.5em;
    }

    .hero-image img {
        max-height: 70vh;
    }

    .scroll-indicator {
        bottom: 20px;
        right: 20px;
    }

    .scroll-text {
        font-size: 0.8rem;
    }

    .profile-section {
        gap: 60px;
        margin-bottom: 80px;
        padding-top: 50px;
    }

    .profile-image-wrapper {
        height: 300px;
    }

    .profile-text {
        padding: 10px;
    }

    .profile-text .role {
        margin-bottom: 20px;
    }

    .profile-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .quote-box {
        margin-top: 25px;
        padding-top: 15px;
    }

    .quote-box p {
        font-size: 1.1rem;
    }
}