/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0a0a0a;
    --bg-surface: #171717;
    --accent: #10b981;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --border-light: 1px solid rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', system-ui, sans-serif;
}

html {
    scroll-behavior: initial; /* Lenis handles smoothing */
}

/* Lenis essential */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 80px;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: 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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---------- CINEMATIC TYPOGRAPHY PRELOADER ---------- */
.cinematic-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
}

.loader-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cinematic-loader.exit .loader-inner {
    opacity: 0;
    transform: scale(1.1);
}

.loader-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--bg-main);
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
}

.panel-top {
    top: 0;
}

.panel-bottom {
    bottom: 0;
}

.cinematic-loader.exit .panel-top {
    transform: translateY(-100%);
}

.cinematic-loader.exit .panel-bottom {
    transform: translateY(100%);
}

.count-wrapper {
    position: relative;
    text-align: center;
}

.count-number {
    font-size: clamp(8rem, 25vw, 25rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    font-family: var(--font-sans);
    /* Liquid Fill Magic */
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
    color: transparent;
    background: linear-gradient(to top, var(--accent) var(--p, 0%), transparent var(--p, 0%));
    -webkit-background-clip: text;
    background-clip: text;
    display: block;
}

.count-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--accent);
    opacity: 0.6;
    margin-top: -2rem;
}

@keyframes vanish-smooth {
    to {
        opacity: 0;
        visibility: hidden;
    }
}


/* ---------- NAVBAR ---------- */
@keyframes vanish-smooth {
    0% {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(10px);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
        backdrop-filter: blur(0);
    }
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 400px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    z-index: 1000;
    padding: 0.8rem 2.5rem;
    animation: fadeIn 0.8s ease 4.2s forwards;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar:hover {
    background: rgba(15, 15, 15, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* --- Pure CSS Sliding Underline --- */
.nav-links::after {
    content: "";
    position: absolute;
    bottom: 2px;
    height: 1.5px;
    background-color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    left: 0;
    width: 0;
    transform: translateX(0);
    filter: drop-shadow(0 0 5px var(--accent));
}

.nav-links:has(a:nth-child(1):hover)::after {
    width: 48px;
    transform: translateX(0px);
}

.nav-links:has(a:nth-child(2):hover)::after {
    width: 42px;
    transform: translateX(88px); 
}

.nav-links:has(a:nth-child(3):hover)::after {
    width: 65px;
    transform: translateX(170px); 
}

.nav-links:has(a:nth-child(4):hover)::after {
    width: 65px;
    transform: translateX(275px); 
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.hamburger .line {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger:hover .line-top {
    transform: translateY(4px) rotate(15deg);
}

.hamburger:hover .line-bottom {
    transform: translateY(-4px) rotate(-15deg);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* ---------- UTILITY CLASSES ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.spin-accent {
    width: clamp(30px, 5vw, 50px);
    height: clamp(30px, 5vw, 50px);
    animation: slowSpin 7s linear infinite;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Sections fade in on scroll - Managed by GSAP now */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
    perspective: 1200px;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(10rem, 25vw, 40rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
    letter-spacing: -0.05em;
    user-select: none;
    text-transform: uppercase;
}

/* 3D Floating Cards */
.hero-3d-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-card {
    position: absolute;
    width: 280px;
    height: 380px;
    border-radius: 20px;
    background: rgba(23, 23, 23, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-inner {
    width: 100%;
}

.card-tag {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.card-1 {
    top: 15%;
    left: 10%;
    transform: rotate3d(1, 1, 0, 15deg) translateY(0);
    animation: float1 8s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    right: 10%;
    transform: rotate3d(-1, 1, 0, -15deg) translateY(0);
    animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: rotate3d(1, 1, 0, 15deg) translateY(0); }
    50% { transform: rotate3d(1, 1, 0, 12deg) translateY(-30px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate3d(-1, 1, 0, -15deg) translateY(0); }
    50% { transform: rotate3d(-1, 1, 0, -12deg) translateY(30px); }
}

.hero-background-svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.svg-line-anim {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 3s ease 2.7s forwards;
}

.svg-line-anim-delayed {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawLine 1s ease 4.2s forwards;
}

@keyframes drawLine {
    100% {
        stroke-dashoffset: 0;
    }
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    z-index: 1;
    position: relative;
}

.hero-heading {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUpAndFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) span {
    animation-delay: 4.2s;
}

.hero-line:nth-child(2) span {
    animation-delay: 4.4s;
}

@keyframes slideUpAndFade {
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.devops-line {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 4rem;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
    border-right: 3px solid var(--accent);
    width: fit-content;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease 4.6s forwards, blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

.hero-sub {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 2rem 0 3rem;
    opacity: 0;
    animation: fadeIn 1s ease 4.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 5.0s forwards;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpAndFade 1s ease 3.0s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Social buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: none;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: scale(1.3) rotate(5deg);
}

.social-btn:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

.social-btn.github {
    color: #fff;
}

.social-btn.github:hover {
    background-color: #333;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.social-btn.linkedin {
    color: #0077b5;
}

.social-btn.linkedin:hover {
    background-color: #0077b5;
    color: #fff;
    border-color: #0077b5;
    box-shadow: 0 0 30px rgba(0, 119, 181, 0.4);
}

.social-btn.instagram {
    color: #c13584;
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30%30%, #fdf497, #fd5949, #d6249f, #285AEB);
    color: #fff;
    border-color: #c13584;
    box-shadow: 0 0 30px rgba(193, 53, 132, 0.5);
}

/* ---------- SKILLS ---------- */
.skills {
    padding: 6rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (max-width:640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-item {
    background-color: var(--bg-surface);
    border: var(--border-light);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(4px);
    transition: transform 0.3s, border-color 0.3s;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
}

.bento-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.bento-item ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.bento-item.edu-desc {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}

.bento-item li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    padding-left: 1rem;
}

.bento-item li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ---------- MARQUEE (Refined) ---------- */
.marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    border-top: var(--border-light);
    border-bottom: var(--border-light);
    padding: 3rem 0;
    background: rgba(10, 10, 10, 0.3);
    /* Edge fading mask */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    position: relative;
    z-index: 2;
}

.marquee-wrapper:hover .marquee {
    animation-play-state: paused;
}

.marquee {
    display: flex;
    width: fit-content;
    animation: scroll 25s linear infinite;
    will-change: transform;
}

.marquee-wrapper:hover .marquee {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-content {
    display: flex;
    gap: 6rem; /* Consistent high density */
    white-space: nowrap;
    padding-right: 6rem;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.marquee-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-item:hover {
    transform: scale(1.1);
    color: var(--text-primary);
}

.marquee-item:hover img {
    transform: scale(1.1) translateY(-5px);
}

/* Brand Specific Glows */
.item-python:hover img { filter: drop-shadow(0 0 15px rgba(55, 118, 171, 0.7)); }
.item-docker:hover img { filter: drop-shadow(0 0 15px rgba(36, 150, 237, 0.7)); }
.item-jenkins:hover img { filter: drop-shadow(0 0 15px rgba(210, 73, 57, 0.7)); }
.item-prometheus:hover img { filter: drop-shadow(0 0 15px rgba(230, 82, 44, 0.7)); }
.item-github:hover img { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); }
.item-githubactions:hover img { filter: drop-shadow(0 0 15px rgba(32, 136, 255, 0.7)); }
.item-html5:hover img { filter: drop-shadow(0 0 15px rgba(227, 79, 38, 0.7)); }
.item-css3:hover img { filter: drop-shadow(0 0 15px rgba(21, 114, 182, 0.7)); }
.item-react:hover img { filter: drop-shadow(0 0 15px rgba(97, 218, 251, 0.7)); }
.item-nextdotjs:hover img { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); }
.item-pandas:hover img { filter: drop-shadow(0 0 15px rgba(21, 72, 172, 0.7)); }

.marquee-item span {
    font-size: 1.4rem;
    transition: color 0.3s;
    color: var(--text-secondary);
}

.marquee-item:hover span {
    color: var(--text-primary);
}


/* ---------- CINEMATIC EDUCATION TIMELINE ---------- */
.education-section {
    padding: 12rem 0;
    background: var(--bg-main);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle Emerald Glow Backdrop */
.education-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ---------- CINEMATIC EDUCATION TIMELINE ---------- */
.education-section {
    position: relative;
    padding: 12rem 0;
    background: var(--bg-main);
    overflow: hidden;
}

.education-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.education-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ---------- EDUCATION JOURNEY (Cinematic) ---------- */
.education-section {
    background: #000000;
    color: #ffffff;
    width: 100%;
}

html {
    scroll-snap-type: y proximity;
}



.education-journey {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.edu-milestone {
    scroll-snap-align: center;
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 2rem;
    background: #000000;
    color: #ffffff;
}

/* Base Mask Setup */
.milestone-bg-mask {
    position: absolute;
    inset: 10%;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay for better contrast */
    border-radius: 20px;
    z-index: 1;
    /* Start skewed out of view/closed */
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: cover;
    background-position: center;
}

/* Add a dark gradient over the images to ensure text legibility */
.milestone-bg-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 1;
}

/* Placeholders until actual images are added */
.placeholder-1 { background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent), url('https://images.unsplash.com/photo-1517502884422-41eaead166d4?q=80&w=1000&auto=format&fit=crop'); filter: grayscale(80%); }
.placeholder-2 { background-image: radial-gradient(circle at center, rgba(16, 185, 129, 0.1), transparent), url('https://images.unsplash.com/photo-1555099962-4199c345e5dd?q=80&w=1000&auto=format&fit=crop'); filter: grayscale(80%); }
.placeholder-3 { background-image: radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.1), transparent), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1000&auto=format&fit=crop'); filter: grayscale(80%); }


/* Dynamic Reveal Mask */
.edu-milestone.is-visible .milestone-bg-mask {
    clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}
.edu-milestone:nth-child(even).is-visible .milestone-bg-mask {
    clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 100%);
}

/* Giant Sequential Number */
.milestone-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(10rem, 25vw, 30rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03); /* subtle on dark bg */
    z-index: 2;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    user-select: none;
}

/* Centered Content Stack */
.milestone-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.milestone-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent); /* Use green for the tag for VibeOS theme */
    margin-bottom: 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.milestone-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 2rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.milestone-meta {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.8s;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.milestone-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent); /* vibrant green */
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 1s;
}

/* Triggers text translation/fade */
.edu-milestone.is-visible .milestone-tag,
.edu-milestone.is-visible .milestone-title,
.edu-milestone.is-visible .milestone-meta,
.edu-milestone.is-visible .milestone-year {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .milestone-bg-mask {
        inset: 5%;
    }
}

/* ---------- VENTURE SHOWCASE ---------- */
.editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    margin-top: 5rem;
}

.ed-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
    position: relative;
    width: 100%;
}

.ed-project.align-right {
    flex-direction: row-reverse;
}

.ed-content {
    flex: 1;
    z-index: 2;
}

.ed-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

.ed-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: .9;
    margin-bottom: 2rem;
    text-transform: uppercase;
    transition: all 0.5s ease;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

.ed-project:hover .ed-title {
    color: var(--bg-main);
    -webkit-text-stroke: 1px var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.ed-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin-top: 2rem;
    margin-bottom: 3rem;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}

/* Link Styling */
.ed-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s;
}

.ed-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.ed-link:hover {
    color: var(--accent);
}

.ed-link:hover::after {
    width: 100%;
}

/* Image Reveal Area */
.ed-image-wrap {
    flex: 1;
    max-width: 600px;
    height: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Scroll Timeline Reveal */
    animation: imageReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
}

@keyframes imageReveal {
    0% { clip-path: inset(100% 0 0 0); transform: scale(1.1); filter: grayscale(1); }
    100% { clip-path: inset(0 0 0 0); transform: scale(1); filter: grayscale(0.3); }
}

.ed-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s;
}

/* Hover effect on project to brighten image */
.ed-project:hover .ed-image {
    transform: scale(1.05);
    filter: grayscale(0);
}

/* Mock Backgrounds */
.bg-1 { background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.4), transparent), url('https://images.unsplash.com/photo-1611162617474-5b21e879e113?q=80&w=1000&auto=format&fit=crop'); }
.bg-2 { background-image: radial-gradient(circle at top left, rgba(16, 185, 129, 0.4), transparent), url('https://images.unsplash.com/photo-1555949963-ff9fe0c870eb?q=80&w=1000&auto=format&fit=crop'); }
.bg-3 { background-image: radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.4), transparent), url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1000&auto=format&fit=crop'); }
.bg-4 { background-image: radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.4), transparent), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1000&auto=format&fit=crop'); }
.bg-5 { background-image: radial-gradient(circle at top center, rgba(236, 72, 153, 0.4), transparent), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=1000&auto=format&fit=crop'); }

/* Side arrow buttons */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-surface);
    border: var(--border-light);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0.8;
}

.arrow-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 6rem 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.form-group.full-width {
    align-items: flex-start;
}

.form-group label {
    flex: 0 0 120px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.send-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    width: fit-content;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 200%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-color: #fff;
    /* White fill effect */
    border-radius: 50%;
    transform: translateX(-50%) scale(1);
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.send-btn:hover {
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
}

.send-btn:hover::before {
    top: -50%;
    transform: translateX(-50%) scale(1.5);
}

@media (max-width:640px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 2rem 0;
    border-top: var(--border-light);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Option B: Architectural Intro Styles */
.edu-intro-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
    perspective: 2000px; /* Enhanced perspective for deep Z-displacement */
}

.edu-intro-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.edu-slice-wrapper {
    position: relative;
    width: 90vw;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.edu-slice-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-style: preserve-3d;
}

.edu-svg-layer {
    transform-style: preserve-3d;
    transition: filter 0.3s ease;
}

.edu-svg-layer text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 95px; /* Precision-scaled for the 2400px Wide ViewBox */
    font-weight: 900;
    fill: #ffffff;
    letter-spacing: -0.01em;
    pointer-events: none;
    will-change: transform, filter;
}

/* Slicing Logic for SVG Groups */
.slice-top {
    clip-path: inset(0 0 66% 0);
}

.slice-mid {
    clip-path: inset(32% 0 32% 0); /* Slight overlap increase for stability */
}

.slice-bot {
    clip-path: inset(66% 0 0 0);
}

/* Spectral RGB Split Filters */
.spectral-top { filter: drop-shadow(-1px -1px 0px rgba(255, 0, 0, 0.4)); }
.spectral-bot { filter: drop-shadow(1px 1px 0px rgba(0, 255, 255, 0.4)); }

.edu-intro-sub {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 4rem;
    letter-spacing: 0.6em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 2.2s, transform 0.8s ease 2.2s;
}

/* Sub-line reveal triggered once draw is done */
.edu-draw-wrapper.is-drawing ~ .edu-intro-sub,
.edu-intro-section.draw-complete .edu-intro-sub {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SVG PATH DRAW — Artisan Entrance Animation
   Two-stage: 1. Cyan stroke draws left→right  2. White fill blooms in
   ========================================================================== */

.edu-draw-wrapper {
    position: relative;
    width: 90vw;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.edu-draw-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ── STAGE 1: Stroke Draw ─────────────────────────────────────────────── */
.edu-draw-stroke {
    font-family: 'JetBrains Mono', monospace;
    font-size: 95px;
    font-weight: 900;
    letter-spacing: -0.01em;
    fill: transparent;
    stroke: #00FFFF;          /* Starts Cyan */
    stroke-width: 1px;
    stroke-linecap: round;
    stroke-linejoin: round;

    /* The core draw mechanism */
    stroke-dasharray: 6000;
    stroke-dashoffset: 6000;  /* Fully hidden at start */

    /* No transition here — animation is applied via @keyframes on .is-drawing */
}

/* ── STAGE 2: Fill Bloom ──────────────────────────────────────────────── */
.edu-draw-fill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 95px;
    font-weight: 900;
    letter-spacing: -0.01em;
    fill: transparent;         /* Hidden at start */
    stroke: none;

    /* Fill blooms in after stroke completes */
    transition: fill 0.6s ease;
}

/* ── TRIGGERED STATE — applied via JS IntersectionObserver ────────────── */

/* Draw the stroke left → right */
.edu-draw-wrapper.is-drawing .edu-draw-stroke {
    animation:
        stroke-draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        stroke-color-shift 1.8s ease forwards;
}

/* Fill blooms in 1.9s after draw starts — after stroke is complete */
.edu-draw-wrapper.is-drawing .edu-draw-fill {
    fill: #ffffff;
    transition: fill 0.7s ease 1.9s;
}

/* ── KEYFRAMES ─────────────────────────────────────────────────────────── */

/* The draw: dashoffset goes from 6000 → 0, revealing the stroke */
@keyframes stroke-draw {
    from { stroke-dashoffset: 6000; }
    to   { stroke-dashoffset: 0; }
}

/* Color shifts from Cyan → White during the draw */
@keyframes stroke-color-shift {
    0%   { stroke: #00FFFF; stroke-width: 1.5px; }
    50%  { stroke: #80FFFF; stroke-width: 1px; }
    100% { stroke: #FFFFFF; stroke-width: 0.5px; }
}

/* ── SLICE WRAPPER (post-draw scroll physics) ──────────────────────────── */
/* Overrides the inline display:none once draw is complete */
.edu-intro-section.draw-complete .edu-slice-wrapper {
    display: flex !important;
}

.edu-intro-section.draw-complete .edu-draw-wrapper {
    display: none;
}


/* ==========================================================================
   CINEMATIC PROJECT SECTION REDESIGN
   ========================================================================== */

.projects-section {
    padding: 0;
    background: #000000;
}

/* Project Header with Marquees */
.project-header-v2 {
    height: 100vh; /* Reduced from 150vh for better focus */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
    z-index: 10; /* Adds a stacking order to stay on top of the next section */
}

.project-marquee-bg {
    position: absolute;
    width: 200%;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(6rem, 20vw, 15rem);
    font-weight: 950; /* Heavier for cinematic feel */
    color: rgba(255, 255, 255, 0.4); 
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    z-index: 1;
    /* Edge fading mask */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.header-dot {
    position: absolute;
    top: 5rem;
    left: 5rem;
    width: 12px;
    height: 12px;
    background: var(--accent); /* Consistent accent use */
    border-radius: 50%;
    z-index: 5;
    opacity: 0.8;
}

.marquee-top {
    top: 25%;
    transform: translateY(-50%);
    animation: marquee-left 15s linear infinite; /* Faster */
}

.marquee-bottom {
    top: 75%;
    transform: translateY(-50%);
    animation: marquee-right 18s linear infinite; /* Faster */
    opacity: 0.4; 
}

@keyframes marquee-left {
    from { transform: translateY(-50%) translateX(0); }
    to { transform: translateY(-50%) translateX(-50%); }
}

@keyframes marquee-right {
    from { transform: translateY(-50%) translateX(-50%); }
    to { transform: translateY(-50%) translateX(0); }
}

.project-title-v2 {
    position: relative;
    z-index: 2;
    text-align: center;
}

.title-top {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.8em;
    display: block;
    margin-bottom: 2rem;
    opacity: 1;
}

.title-main {
    font-size: clamp(4rem, 12vw, 14rem); /* Slightly reduced for better mobile/laptop fit */
    font-weight: 950;
    color: #fff;
    line-height: 0.8;
    letter-spacing: -0.06em;
    margin-bottom: 2rem;
}

.title-explore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.4;
}

.explore-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: #fff;
}

.explore-line {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Cinematic Project Cards */
.cinematic-project-list {
    padding: 10vw 0;
}

.cine-card {
    min-height: 90vh; /* Reduced from 120vh to fit laptop screens */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6vw;
    position: relative;
    margin-bottom: 20vh;
}

.cine-card:nth-child(even) {
    align-items: flex-end;
    text-align: right;
}

.cine-card-inner {
    width: 100%;
    max-width: 900px;
}

.cine-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: #0a0e0c; /* Dark Emerald fallback if image fails */
}

.cine-card.is-visible .cine-image-wrapper {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.cine-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}

.cine-card:hover .cine-img {
    filter: grayscale(20%) brightness(0.8);
    transform: scale(1.05);
}

/* Scanline / Texture Overlay */
.cine-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 2;
}

/* Project Content */
.cine-content {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.cine-card.is-visible .cine-content {
    opacity: 1;
    transform: translateY(0);
}

.cine-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cine-card:nth-child(even) .cine-meta {
    justify-content: flex-end;
}

.cine-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.cine-title span {
    display: block;
}

.cine-title .stroke {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.cine-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cine-card:nth-child(even) .cine-desc {
    margin-left: auto;
}

.cine-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: gap 0.3s ease;
}

.cine-link:hover {
    gap: 1rem;
    color: var(--accent);
}

.cine-link svg {
    width: 20px;
    height: 20px;
}



