:root {
    /* --- DARK THEME (Original) --- */
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;

    /* --- WHITE THEME (Creative Clean) --- */
    /* 
       Theory: 
       - Backgrounds: Off-white (#f8f9fa) for main to reduce glare, Pure white (#ffffff) for cards to pop.
       - Text: Deep Navy/Slate (#334155, #1e293b) -> High contrast and professional, softer than pure black.
       - Accents: Teal (#0d9488) -> Vibrant, trustworthy, and matches the "creative" vibe.
    */
    /*
    --navy: #f8f9fa;
    --light-navy: #ffffff;
    --lightest-navy: #e2e8f0;
    --slate: #64748b;
    --light-slate: #475569;
    --lightest-slate: #1e293b;
    --white: #0f172a;
    /* Highlights/Strongest Text: Almost Black */
    --green: #0d9488;
    /* Accent: Vibrant Teal */

    /* Specific Component Overrides for White Theme */
    --spotlight-rgb: 13, 148, 136;
    /* Teal Spotlight */
    --card-glow-rgb: 13, 148, 136;
    /* Teal Glow */
    --browser-header-bg: #e2e8f0;
    /* Light Browser Header */
    */
    /* Helper variables for RBGA usage */
    --shadow-rgb: 2, 12, 27;
    /* Dark Theme Shadow */
    --green-rgb: 100, 255, 218;
    /* Neon Green RGB */
    --nav-bg-alpha: 0.85;
    /* Dark Header Alpha */
    --nav-bg-rgb: 10, 25, 47;
    /* Dark Header RGB */

    /* Specific Component Restorations (100% Fidelity) */
    --spotlight-rgb: 29, 78, 216;
    /* Original Blue Spotlight */
    --card-glow-rgb: 255, 255, 255;
    /* Original White Glow */
    --browser-header-bg: #0f1c2e;
    /* Original Dark Browser Header */

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Roboto Mono', monospace;

    --fz-xs: 13px;
    --fz-sm: 14px;
    --fz-md: 16px;
    --fz-lg: 18px;
    --fz-xl: 20px;
    --fz-xxl: 22px;
    --fz-heading: 32px;

    --border-radius: 4px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;

    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--navy);
    color: var(--slate);
    font-family: var(--font-sans);
    font-size: var(--fz-xl);
    line-height: 1.3;
}

a {
    display: inline-block;
    text-decoration: none;
    text-decoration-skip-ink: auto;
    color: inherit;
    position: relative;
    transition: var(--transition);
}

a:hover {
    color: var(--green);
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
}

p {
    margin: 0 0 15px 0;
}

/* Utilities */
.mono-idx {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: var(--fz-md);
    margin-right: 5px;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.small-container {
    max-width: 700px;
}

.section {
    padding: 100px 0;
    margin: 0 auto;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(var(--nav-bg-rgb), var(--nav-bg-alpha));
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 10px 30px -10px rgba(var(--shadow-rgb), 0.7);
}

.header.scrolled-down {
    transform: translateY(-100%);
}

.header.scrolled-up {
    transform: translateY(0);
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px -10px rgba(var(--shadow-rgb), 0.7);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px;
    /* Removed border and background for subtle look */
}

.logo a:hover {
    /* Subtle hover effect */
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ol {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--lightest-slate);
}

.nav-links a:hover {
    color: var(--green);
}

.nav-links a.active {
    color: var(--green);
}

.resume-btn {
    margin-left: 30px;
    color: var(--green) !important;
    border: 1px solid var(--green);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 13px;
}

.resume-btn:hover {
    background-color: rgba(var(--green-rgb), 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--green);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-intro {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: 16px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    color: var(--slate);
    line-height: 1.1;
    margin: 10px 0 0 0;
}

.hero-desc {
    margin-top: 20px;
    max-width: 500px;
    font-size: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    font-size: 14px;
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: rgba(var(--green-rgb), 0.1);
    transform: translateY(-3px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* Make them stack/adjust on mobile if needed */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .social-btn {
        justify-content: center;
    }
}

/* Shared Components */
.section-title {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: clamp(26px, 5vw, 32px);
    white-space: nowrap;
    margin-bottom: 40px;
    color: var(--lightest-slate);
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: var(--lightest-navy);
    margin-left: 20px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
}

.about-text {
    flex: 3;
    font-size: 18px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-text a {
    color: var(--green);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
}

.skill-category h4 {
    color: var(--lightest-slate);
    margin-bottom: 20px;
    font-size: 22px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--slate);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.skill-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* Experience Section */
.timeline {
    border-left: 2px solid var(--lightest-navy);
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -48px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--navy);
    border: 2px solid var(--green);
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--light-slate);
    margin-bottom: 5px;
    display: block;
}

.role {
    font-size: 22px;
    font-weight: 500;
}

.company {
    color: var(--green);
}

.job-desc {
    font-size: 18px;
}

.job-desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.job-desc li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* Projects Section */
.projects-grid-old {
    /* Renaming old one to avoid conflict, though we are replacing logic below */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--light-navy);
    padding: 2rem 1.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: default;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-7px);
}

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

.folder-icon {
    color: var(--green);
}

.project-links {
    display: flex;
    gap: 20px;
    color: var(--slate);
}

.project-links a:hover {
    color: var(--green);
}

.project-title {
    color: var(--lightest-slate);
    font-size: 22px;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--light-slate);
    font-size: 17px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate);
}

/* Contact Section */
#contact {
    padding-bottom: 30px;
}

.center-title {
    justify-content: center;
}

.center-title::after {
    display: none;
}

.big-heading {
    text-align: center;
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 20px;
    color: var(--lightest-slate);
}

.big-btn {
    margin-top: 30px;
}

/* Footer */
.footer {
    padding: 40px 20px 40px;
    background-color: var(--navy);
    /* Ensure seamless blend */
    text-align: center;
    color: var(--slate);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-text {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--slate);
    margin-bottom: 20px;
}

.footer-text:nth-of-type(2) {
    margin-bottom: 40px;
}

.footer-cta {
    display: inline-block;
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 1rem 1.75rem;
    font-size: 14px;
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 60px;
}

.footer-cta:hover {
    background-color: rgba(var(--green-rgb), 0.1);
    transform: translateY(-3px);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--light-slate);
    margin-top: auto;
}

.social-links-footer {
    display: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1080px) {
    .container {
        padding: 0 50px;
    }
}

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

    .nav-links,
    .resume-btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .about-content {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu (To be implemented with JS) */
    .nav-active .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75vw;
        background-color: var(--light-navy);
        z-index: 99;
        box-shadow: -10px 0px 30px -15px rgba(var(--shadow-rgb), 0.7);
        padding: 50px;
    }

    .nav-active .nav-links ol {
        flex-direction: column;
        height: auto;
        gap: 20px;
        margin-bottom: 40px;
    }

    .nav-active .resume-btn {
        display: block;
        margin: 0;
    }

    .social-links-footer {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        color: var(--slate);
    }

    .social-links-footer a:hover {
        color: var(--green);
    }

    .section-title::after {
        width: 100px;
    }
}

/* ... Existing Styles ... */

/* --- NEW: Spotlight Effect --- */
:root {
    /* Add this to existing variables */
    --cursor-x: 0px;
    --cursor-y: 0px;
}

/* The Spotlight Overlay */
/* We will use a pseudo-element on the body or a fixed div to create the flashlight effect across the whole page */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(600px circle at var(--cursor-x) var(--cursor-y),
            rgba(var(--spotlight-rgb), 0.15),
            transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Card Glow Effect - Makes borders/bg light up when spotlight is near */
.project-card {
    position: relative;
    /* overflow: hidden; Removed or else the glow might be cut off, keeping it simple for now */
    z-index: 1;
}

/* Optional: detailed border glow for cards using the same coordinate system */
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    /* The border width */
    background: radial-gradient(800px circle at var(--cursor-x) var(--cursor-y),
            rgba(var(--card-glow-rgb), 0.4),
            transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    /* JS will toggle this */
    transition: opacity 0.5s ease;
}

/* --- NEW: Featured Project Layout --- */

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 50px;
}

.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* 1. Visual Side (Video/Browser) */
.project-visual {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Browser Frame */
.browser-frame {
    background: var(--light-navy);
    border-radius: 8px;
    box-shadow: 0 20px 50px -15px rgba(var(--shadow-rgb), 0.7);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--lightest-navy);
}

.browser-header {
    height: 30px;
    background: var(--browser-header-bg);
    display: flex;
    align-items: center;
    padding-left: 15px;
    gap: 8px;
    border-bottom: 1px solid var(--lightest-navy);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: black;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 2. Content Side */
.project-content {
    display: flex;
    flex-direction: column;
    z-index: 20;
    text-align: left;
    /* Strict left alignment */
}

.featured-label {
    font-family: var(--font-mono);
    color: var(--green);
    font-size: 13px;
    margin-bottom: 10px;
}

.featured-title {
    color: var(--lightest-slate);
    font-size: 28px;
    margin-bottom: 20px;
}

.featured-title a:hover {
    color: var(--green);
}

.featured-desc {
    background-color: var(--light-navy);
    color: var(--light-slate);
    padding: 25px;
    border-radius: var(--border-radius);
    font-size: 16px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--light-slate);
    margin-bottom: 25px;
}

.featured-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--lightest-slate);
}

.featured-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
}

.featured-links a svg {
    width: 20px;
    height: 20px;
}

/* Social Side Bar */
.social-sidebar {
    position: fixed;
    bottom: 0;
    left: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-list a {
    color: var(--light-slate);
    transition: var(--transition);
}

.social-list a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

.sf-line {
    width: 1px;
    height: 90px;
    background-color: var(--light-slate);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .social-sidebar {
        display: none;
        /* Hide on mobile/tablet */
    }

    .project-content {
        padding: 0;
    }

    .featured-project {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* On mobile, usually we want Visual (Screenshot/Video) First */
    .project-visual {
        order: -1;
    }

    .project-content {
        padding: 0;
    }

    .featured-desc {
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }
}