/* --- CSS VARIABLES (DARK MODE) --- */
:root {
    --bg-main: #111111;
    --bg-alt: #161616;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --active-color: #046E18; /* Green */
    --active-color-light: #05921f; /* Lighter green for text */
    --active-glow: rgba(4, 110, 24, 0.65);
    --active-glow-subtle: rgba(4, 110, 24, 0.32);
    --active-glow-strong: rgba(4, 110, 24, 0.9);
    --border-color: #333333;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.5);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; 
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    width: 100vw;
    overflow-x: hidden; 
}

/* --- FROSTED GLASS MENU --- */
.floating-menu {
    position: fixed;
    top: 30px; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 8px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999; 
    font-family: var(--font-main);
    width: max-content;
    
    /* Animation init */
    opacity: 0;
    animation: fadeDown 0.8s ease forwards 0.8s;
}

.menu-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background-color: rgba(255,255,255,0.1);
    box-shadow: 0 0 16px var(--active-glow-subtle), 0 0 30px rgba(4, 110, 24, 0.12);
}

.menu-link.active {
    background-color: var(--active-color);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--active-glow), 0 0 40px var(--active-glow), 0 0 70px var(--active-glow-subtle);
}

/* --- GENERIC SECTION STYLES --- */
section {
    width: 100%;
    height: 100vh; 
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always; 
    overflow: hidden;
}

/* --- BIO SECTION (WHITE THEME & OVERLAP) --- */
#bio {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align to bottom so image sits on floor */
    background-color: #ffffff;
    padding: 0 5%; /* Horizontal padding only */
}

.bio-container {
    display: grid;
    /* ADJUSTED: Gave right column more width (1.6fr) and reduced center slightly */
    grid-template-columns: 0.8fr 0.9fr 1.6fr;
    width: 100%;
    max-width: 1500px; /* Slight increase to max-width */
    height: 100%;
    align-items: center; /* Center text vertically */
}

/* Left Column: Name */
.bio-left {
    position: relative;
    z-index: 10; /* Make sure Name is ON TOP of the image */
    left: 20%;
    bottom: 5%;
}

.bio-name {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 0.9;
    color: #111111;
    margin-bottom: 20px;
}

.accent-line {
    width: 60px;
    height: 6px;
    background-color: var(--active-color);
    margin-bottom: 40px;
    box-shadow: 0 0 18px var(--active-glow), 0 0 40px var(--active-glow-subtle), 0 0 60px rgba(4, 110, 24, 0.15);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.social-icon {
    color: #333333;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
}

.social-icon:hover {
    opacity: 1;
    border-color: var(--active-color);
    color: var(--active-color);
    box-shadow: 0 0 20px var(--active-glow), 0 0 40px var(--active-glow-subtle), inset 0 0 12px var(--active-glow-subtle);
}

/* Center Column: Image */
.bio-center {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align image to bottom of container */
    height: 100%;
    position: relative;
    z-index: 1; /* Put behind the name */
    
    /* THE OVERLAP MAGIC */
    margin-left: -160px; /* Pulls image to the left, under the name */
    
    /* Added Top Margin */
    margin-top: 8%;
}

.profile-img-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end; /* Bottom alignment */
    justify-content: center;
}

.profile-img {
    max-height: 100vh;
    width: auto;
    object-fit: contain; 
    display: block;
}

/* Right Column: Intro */
.bio-right {
    padding-left: 0; 
    z-index: 5;
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #555555;
}

.bio-headline {
    font-size: 2.2rem;
    color: #111111;
    margin-bottom: 20px;
    font-weight: 500;
}

.bio-text {
    color: #444444;
    line-height: 1.6;
    margin-bottom: 40px;
    /* ADJUSTED: Font size increased to 1.2rem */
    font-size: 1.2rem;
    /* ADJUSTED: Max width increased to fill wider column */
    max-width: 750px; 
}

.my-story-link {
    color: var(--active-color-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease, text-shadow 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    text-shadow: 0 0 10px var(--active-glow-subtle);
}

.my-story-link:hover {
    gap: 15px;
    border-bottom-color: var(--active-color);
    text-shadow: 0 0 14px var(--active-glow), 0 0 30px var(--active-glow-subtle);
}

/* --- ANIMATIONS --- */
/* Base class for element to animate from */
.anim-right {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeSlideRight 0.8s ease forwards;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; } /* Name */
.delay-2 { animation-delay: 0.2s; } /* Line */
.delay-3 { animation-delay: 0.3s; } /* Socials */
.delay-4 { animation-delay: 0.4s; } /* Image */
.delay-5 { animation-delay: 0.5s; } /* Intro Eyebrow */
.delay-6 { animation-delay: 0.6s; } /* Headline */
.delay-7 { animation-delay: 0.7s; } /* Text */
.delay-8 { animation-delay: 0.8s; } /* Button */

@keyframes fadeSlideRight {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


/* --- EDUCATION CAROUSEL --- */
#education { background: #000; }

.edu-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease;
}

.edu-slide.active {
    opacity: 1;
    z-index: 2;
}

.edu-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edu-slide-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
}

.edu-slide-content {
    position: absolute;
    bottom: 200px;
    left: 6%;
    z-index: 5;
}

.edu-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--active-color);
    color: #fff;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 4px;
    width: fit-content;
    box-shadow: 0 0 22px var(--active-glow), 0 0 50px var(--active-glow-subtle), 0 0 80px rgba(4, 110, 24, 0.15);
}

.edu-eyebrow::before {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.edu-degree {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
}

.edu-school {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
}

.edu-pdf-panel {
    position: absolute;
    left: 42%;
    right: 5%;
    top: 130px;
    bottom: 200px;
    z-index: 5;
    background: rgba(6, 6, 6, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(4, 110, 24, 0.45);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 12px 64px rgba(0, 0, 0, 0.75),
        0 0 50px rgba(4, 110, 24, 0.12),
        0 -2px 30px rgba(4, 110, 24, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.edu-pdf-label {
    font-size: 0.72rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.65);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(4, 110, 24, 0.3);
    background: rgba(4, 110, 24, 0.07);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edu-pdf-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--active-color);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--active-color), 0 0 20px var(--active-glow);
}

.edu-pdf-frame {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
}

.edu-slide-desc {
    margin-top: 20px;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(4, 110, 24, 0.25);
    border-radius: 12px;
    padding: 28px 32px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.75;
    box-shadow: 0 0 20px rgba(4, 110, 24, 0.1), inset 0 0 20px rgba(4, 110, 24, 0.04);
}

.edu-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    z-index: 20;
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(4, 110, 24, 0.4);
    box-shadow: 0 -6px 40px rgba(4, 110, 24, 0.2), 0 -2px 15px rgba(4, 110, 24, 0.15);
}

.edu-btn {
    flex: 1;
    padding: 22px 28px 20px;
    background: none;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: left;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-main);
}

.edu-btn:last-child { border-right: none; }
.edu-btn.active {
    opacity: 1;
    box-shadow: inset 0 -3px 0 var(--active-color), 0 0 20px var(--active-glow-subtle);
}
.edu-btn:hover {
    opacity: 1;
    background: var(--active-color);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.06), 0 0 30px var(--active-glow), 0 0 60px var(--active-glow-subtle);
}
.edu-btn:hover .edu-progress { background: rgba(255, 255, 255, 0.25); }
.edu-btn:hover .edu-progress-fill { background: #fff; box-shadow: none; }

.edu-btn-label {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.edu-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1px;
    overflow: hidden;
}

.edu-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--active-color);
    border-radius: 1px;
    box-shadow: 0 0 12px var(--active-glow), 0 0 24px var(--active-glow-subtle);
}

/* --- PLACEHOLDER SECTIONS --- */
.placeholder-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.placeholder-section:nth-of-type(even) {
    background-color: var(--bg-alt); 
}

.placeholder-content {
    text-align: center;
    opacity: 0.5;
}

.placeholder-content h2 {
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
}

.placeholder-content p {
    margin-top: 10px;
    color: var(--text-muted);
}

/* --- PORTFOLIO SECTION (Split Screen) --- */
.portfolio-wrapper {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #0d0d0d;
}

/* Left Panel */
.left-panel {
    width: 40%;
    height: 100%;
    background: var(--bg-main);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    padding: 0 5%;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    position: relative;
    z-index: 10;
    border-right: 1px solid var(--border-color);
    scroll-behavior: smooth;
}
.left-panel::-webkit-scrollbar { display: none; }

.spacer { height: 40vh; }

.experience-card {
    scroll-snap-align: center;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0 100px 0;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.4s ease;
    cursor: pointer;
}

.experience-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(4, 110, 24, 0.6);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 30px rgba(4, 110, 24, 0.25), 0 0 60px rgba(4, 110, 24, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.logo-area { 
    font-weight: 800; 
    font-size: 1.2rem; 
    color: #fff; 
}

.company-link {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.company-link:hover {
    color: var(--active-color-light);
    border-bottom: 1px solid var(--active-color);
    text-shadow: 0 0 12px var(--active-glow), 0 0 24px var(--active-glow-subtle);
}

.date-badge {
    background-color: rgba(4, 110, 24, 0.14);
    color: var(--active-color-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(4, 110, 24, 0.5);
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(4, 110, 24, 0.4), 0 0 32px rgba(4, 110, 24, 0.15), inset 0 0 10px rgba(4, 110, 24, 0.1);
    text-shadow: 0 0 10px rgba(4, 110, 24, 0.7);
}
.role-title { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }
.job-details ul { list-style-position: outside; padding-left: 20px; color: #ccc; line-height: 1.6; }
.job-details li { margin-bottom: 12px; }

/* Right Panel */
.right-panel {
    width: 60%;
    height: 100%;
    background: #0d0d0d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.bg-blur-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 135%;
    background-position: center;
    filter: blur(16px) brightness(0.55);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.bg-blur-layer.visible { opacity: 0.75; }

.gallery-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    overflow-x: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 0 50px;
    gap: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 10;
}
.gallery-container::-webkit-scrollbar { display: none; }

.gallery-container.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-img {
    height: 60vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    flex-shrink: 0;
    object-fit: cover;
    user-select: none;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.gallery-img:hover {
    transform: scale(1.02);
    border-color: rgba(4, 110, 24, 0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 35px var(--active-glow), 0 0 70px var(--active-glow-subtle);
}

.gallery-video {
    height: 60vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    flex-shrink: 0;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.gallery-video:hover {
    transform: scale(1.02);
    border-color: rgba(4, 110, 24, 0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 35px var(--active-glow), 0 0 70px var(--active-glow-subtle);
}

/* --- YOUTUBE GALLERY ITEM --- */
.gallery-yt-item {
    height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.gallery-yt-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

.yt-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    transition: background 0.25s;
}

.gallery-yt-item:hover .yt-overlay { background: rgba(0,0,0,0.12); }

.gallery-yt-item:hover {
    transform: scale(1.02);
    border-color: rgba(4, 110, 24, 0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 35px var(--active-glow), 0 0 70px var(--active-glow-subtle);
}

/* --- YOUTUBE MODAL --- */
.yt-modal-content {
    width: auto;
    height: auto;
    max-width: 90vw;
}

.yt-modal-wrapper {
    width: 80vw;
    aspect-ratio: 16 / 9;
    background: #000;
    flex-shrink: 0;
}

#ytIframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- PDF GALLERY ITEMS --- */
.gallery-pdf-item {
    height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    user-select: none;
}

.gallery-pdf-item:hover {
    transform: scale(1.02);
    border-color: rgba(4, 110, 24, 0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 35px var(--active-glow), 0 0 70px var(--active-glow-subtle);
}

.pdf-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

.pdf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 18px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    transition: color 0.25s;
}

.pdf-overlay span {
    font-size: 0.75rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-pdf-item:hover .pdf-overlay {
    color: #fff;
}

/* --- BUTTONS --- */
.nav-btn {
    position: absolute;
    bottom: 12%; 
    z-index: 20;
    background: #222;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
}

.nav-btn:hover {
    background: var(--active-color);
    border-color: var(--active-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 30px var(--active-glow), 0 0 60px var(--active-glow-subtle);
}

.nav-btn.visible { opacity: 1; visibility: visible; }

.prev-btn { left: 5%; right: auto; }
.next-btn { right: 5%; left: auto; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    width: 95vw;
    height: 95vh;
    background: #111;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    border: 1px solid #333;
}

.modal-image-wrapper {
    flex-grow: 1;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-text {
    background: #1e1e1e;
    color: #ccc;
    font-size: 1rem;
    padding: 16px 20px;
    border-top: 1px solid #333;
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.modal-text::-webkit-scrollbar { width: 4px; }
.modal-text::-webkit-scrollbar-track { background: transparent; }
.modal-text::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.modal-text h3 { color: #fff; margin-bottom: 8px; }

.modal-piece-desc {
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.modal-piece-desc::-webkit-scrollbar { width: 4px; }
.modal-piece-desc::-webkit-scrollbar-track { background: transparent; }
.modal-piece-desc::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.modal-desc-para {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0 0 10px;
}
.modal-desc-para:last-child { margin-bottom: 0; }

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.close-modal:hover {
    background: var(--active-color);
    border-color: var(--active-color);
    color: #fff;
    box-shadow: 0 0 20px var(--active-glow), 0 0 40px var(--active-glow-subtle);
}

/* --- VIDEO MODAL --- */
.video-modal-content {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
}

.video-modal-wrapper {
    flex-grow: 1;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 0;
}

#modalVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: #111;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.vc-btn {
    background: none;
    border: 1px solid transparent;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.vc-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}

.vc-btn svg { flex-shrink: 0; }

.vc-play-btn {
    background: var(--active-color) !important;
    color: #fff !important;
    border-color: transparent !important;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    box-shadow: 0 0 20px var(--active-glow), 0 0 40px var(--active-glow-subtle);
    margin: 0 8px;
}

.vc-play-btn:hover {
    background: #059920 !important;
    transform: scale(1.06);
    box-shadow: 0 0 30px var(--active-glow), 0 0 60px var(--active-glow-subtle);
}

.vc-separator {
    width: 1px;
    height: 32px;
    background: #333;
    margin: 0 8px;
}

.vc-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
}

/* --- SKILLS SECTION --- */
#skills {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

/* Subtle radial green glow behind the carousel */
#skills::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(4, 110, 24, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 52px;
    width: 100%;
    max-width: 900px;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.skills-header { text-align: center; }

.skills-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--active-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 0 22px var(--active-glow), 0 0 50px var(--active-glow-subtle), 0 0 80px rgba(4, 110, 24, 0.15);
}

.skills-eyebrow::before,
.skills-eyebrow::after {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.skills-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
}

.skills-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- LOGO CAROUSEL --- */
.logo-carousel {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.carousel-col {
    width: 190px;
    height: 215px;
    position: relative;
    flex-shrink: 0;
}

.logo-card {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    /* Entry state: below + blurred */
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.45s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo-card.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.logo-card.exiting {
    opacity: 0;
    transform: translateY(-22px);
    filter: blur(6px);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.logo-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.logo-card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Languages */
.skills-languages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.lang-globe {
    font-size: 1.5rem;
    line-height: 1;
}

.lang-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-sep {
    color: var(--active-color);
    font-size: 1.1rem;
    text-shadow: 0 0 10px var(--active-glow);
}

/* --- CONTACT SECTION --- */
#contact {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Diagonal green line grid */
#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(4, 110, 24, 0.07) 0px,
            rgba(4, 110, 24, 0.07) 1px,
            transparent 1px,
            transparent 32px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(4, 110, 24, 0.07) 0px,
            rgba(4, 110, 24, 0.07) 1px,
            transparent 1px,
            transparent 32px
        );
    pointer-events: none;
    z-index: 0;
}

/* Radial vignette to fade lines toward center */
#contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,255,255,0.92) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.contact-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 620px;
    width: 100%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.contact-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--active-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 16px var(--active-glow), 0 0 40px var(--active-glow-subtle);
}

.contact-eyebrow::before,
.contact-eyebrow::after {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.contact-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: #111111;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}

.contact-desc {
    font-size: 1.05rem;
    color: #666666;
    line-height: 1.75;
    max-width: 460px;
    margin: 0;
}

/* Contact Form */
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #444444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: #f9f9f9;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.95rem;
    color: #111111;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--active-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 110, 24, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.contact-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--active-color);
    color: #fff;
    text-decoration: none;
    padding: 16px 34px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 0 24px var(--active-glow), 0 4px 18px rgba(0,0,0,0.12);
}

.contact-cta-btn:hover {
    background: var(--active-color-light);
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--active-glow), 0 8px 28px rgba(0,0,0,0.16);
}

.contact-cta-btn svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.contact-cta-btn:hover svg {
    transform: translateX(4px);
}

.contact-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.contact-social-link {
    color: #888888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-social-link:hover {
    color: var(--active-color);
}

.contact-social-sep {
    color: var(--active-color);
    text-shadow: 0 0 8px var(--active-glow);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .bio-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        height: auto;
        padding-top: 100px;
    }
    
    /* Reset Overlaps on Mobile */
    .bio-left { order: 2; margin-bottom: 30px; }
    .bio-center { 
        order: 1; 
        margin-bottom: 30px; 
        margin-left: 0; /* RESET MARGIN */
        margin-top: 0;  /* RESET MARGIN */
    }
    .bio-right { 
        order: 3; 
        padding-left: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    
    .bio-name { font-size: 4rem; }
    .accent-line { margin: 10px auto 30px auto; }
    .social-icons { justify-content: center; margin-top: 20px; }
    .profile-img { max-height: 40vh; }
    .eyebrow { justify-content: center; }
    .bio-text { max-width: 90%; }
}

@media (max-width: 768px) {
    section { height: auto; min-height: 100vh; scroll-snap-align: none; }
    html { scroll-snap-type: none; }
    
    .portfolio-wrapper { 
        flex-direction: column; 
        height: auto; 
        min-height: 100vh;
    }
    .left-panel { 
        width: 100%; 
        height: auto; 
        overflow: visible; 
        padding: 20px; 
        border-right: none; 
    }
    .right-panel { display: none; }
    .experience-card { opacity: 1; transform: scale(1); margin-bottom: 40px; }
    .spacer { display: none; }

    .floating-menu {
        width: 90%;
        justify-content: center;
        gap: 2px;
        padding: 5px;
        top: 20px;
    }
    .menu-link {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .bio-name { font-size: 3.5rem; }
    #bio { padding-bottom: 50px; }

    .edu-degree { font-size: 2rem; }
    .edu-slide-content { bottom: 120px; left: 5%; right: 5%; }
    .edu-slide-desc { display: none; }
    .edu-pdf-panel { display: none; }
    .edu-btn { padding: 16px 12px; }
    .edu-btn-label { font-size: 0.75rem; }
}