/* ========================================
   SECTION 4: THE HUMAN SIDE (PROFILE)
   Design: Minimal, Elegant, Confident
   ======================================== */

.profile-section {
    position: relative;
    width: 100%;
    /* Reduced padding so section height follows image height closely */
    padding: 4rem 2rem;
    min-height: auto;
    /* Subtle gradient instead of flat color */
    background: radial-gradient(circle at 30% 50%, #0e121a 0%, #050508 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ... (skipping unchanged parts) ... */

@media (max-width: 768px) {
    .profile-section {
        padding: 3rem 1.5rem;
    }

    .profile-signature {
        width: 180px;
        /* Smaller on mobile for harmony */
        margin-top: 1.5rem;
    }
}

.profile-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ========================================
   LEFT COLUMN: THE PORTRAIT
   ======================================== */
.profile-image-wrapper {
    position: relative;
    width: 100%;
    /* Height 100% to fill the grid cell, image defines the actual height */
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Flex to center image if needed, but usually block is fine */
    display: flex;
    align-items: center;
}

.profile-image {
    display: block;
    width: 100%;
    height: auto;
    /* Maintain aspect ratio, this will dictate the section height */
    object-fit: contain;
    object-position: top center;
    filter: grayscale(100%) contrast(1.15) brightness(0.95);
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

/* Interaction: Subtle "Alive" Detail */
.profile-image-wrapper:hover .profile-image {
    transform: scale(1.05);
    /* Very slow zoom */
    filter: grayscale(100%) contrast(1.1) brightness(1.0);
    /* Slight brightness bump */
}

.profile-image-wrapper:hover {
    /* Soft Glow */
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

/* CTA Button */
.profile-cta {
    display: inline-block;
    margin-top: 1.5rem;
    /* Reduced from 2rem */
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.profile-cta:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* Add a very subtle film grain overlay */
.profile-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='transparent'/%3E%3Crect width='100%25' height='100%25' fill='%23000' opacity='0.15' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   RIGHT COLUMN: THE NARRATIVE
   ======================================== */
.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}

.profile-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: #00d4ff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    opacity: 0;
    transform: translateY(20px);
}

.profile-headline {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    /* Reduced from 3rem */
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 2rem;
    /* Reduced from 2.5rem */
    opacity: 0;
    transform: translateY(30px);
}

.profile-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    /* Reduced from 1.1rem */
    line-height: 1.7;
    /* Slightly reduced line height */
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    /* Removed opacity/transform from container to animate children */
}

.profile-text p {
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    opacity: 0;
    transform: translateY(20px);
}

/* Signature Image */
.profile-signature {
    display: block;
    width: 240px;
    /* Reduced from 280px */
    height: auto;
    margin-top: 1.5rem;
    /* Reduced from 2rem */
    opacity: 0;
    transform: translateY(20px);
    filter: brightness(0.9);
}

/* ========================================
   SCROLL REVEAL ANIMATION STATES
   ======================================== */
.profile-section.visible .profile-image-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.profile-section.visible .profile-eyebrow {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.profile-section.visible .profile-headline {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

/* Staggered Paragraph Reveal */
.profile-section.visible .profile-text p:nth-of-type(1) {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.profile-section.visible .profile-text p:nth-of-type(2) {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
}

.profile-section.visible .profile-text p:nth-of-type(3) {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.profile-section.visible .profile-text p:nth-of-type(4) {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards;
}

.profile-section.visible .profile-signature {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.0s forwards;
}

.profile-section.visible .profile-cta {
    animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .profile-headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 4rem 1.5rem;
    }

    .profile-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .profile-image-wrapper {
        /* Ensure mobile image is fully visible and not cropped */
        height: auto;
        width: 100%;
        max-width: 400px;
        /* Limit width on mobile to prevent scrolling fatigue */
        margin: 0 auto;
        order: -1;
    }

    .profile-content {
        padding-left: 0;
        text-align: left;
    }

    .profile-headline {
        font-size: 2rem;
    }
}