 /* --- RESET & VARIABLES --- */
    :root {
        --bg-color: #050505;
        --surface-color: #0f0f0f;
        --card-bg: rgba(25, 25, 25, 0.6);
        --border-color: rgba(255, 255, 255, 0.15);
        --text-main: #ffffff;
        --text-muted: #a0a0a0;
        --grid-color: rgba(255, 255, 255, 0.01);

        /* Font Variables */
        --font-display: 'Orbitron', sans-serif;       /* For Big Titles */
        --font-tech: 'Orbitron', sans-serif;          /* For UI/Links/Buttons */
        --font-body: 'Outfit', sans-serif;            /* For Paragraph Reading Text */
    }

    html { scroll-behavior: smooth; }
    
    /* RECOMMENDED FOR LENIS: Reset html/body to auto to let JS handle it */
    html.lenis, html.lenis body {
        height: auto;
    }


     a { text-decoration: none; color: inherit; transition: 0.3s ease; cursor: pointer; }
    img { max-width: 100%; display: block; width: 100%; object-fit: cover; }


    /* Scrollbar Hide */
  /* For Chrome, Safari, Edge */
*::-webkit-scrollbar {
    display: none !important;
}

/* For Firefox */
* {
    scrollbar-width: none !important; 
}

/* For old IE/Edge */
* {
    -ms-overflow-style: none !important;
}

    .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;
    }

    *:focus-visible {
    outline: 2px solid #ffffff79;
    outline-offset: 2px;
    }

/* 3. TEXT SELECTION COLOR (Forces Pink) */
    ::selection { 
    background: #ffffff79; 
    color: white; 
    }


    * { box-sizing:border-box; margin:0; padding:0; cursor:crosshair; user-select:none; -webkit-tap-highlight-color:transparent; tap-highlight-color:transparent; } img { -webkit-user-drag:none; user-drag:none; }

    body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: auto; 
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-body); 
    font-weight: 300;
    
    /* THIS LOCKS THE SCROLL INITIALLY */
    overflow: hidden; 
    }
    /* --- UPDATED FONT STYLES HERE --- */
    a { 
        text-decoration: none; 
        color: inherit; 
        transition: 0.3s;
        font-family: var(--font-tech); /* CHANGED TO ORBITRON */
        letter-spacing: 0.5px;
        font-weight: 500;
    }
    
    ul { list-style: none; }

    /* --- UTILITIES --- */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px; 
        width: 100%;
    }

    .section-title {
        text-align: center;
        font-family: var(--font-display);
        font-size: 2.5rem;
        margin-bottom: 1rem;
        font-weight: 800;
        letter-spacing: -1px;
        color: var(--text-main);
        text-transform: uppercase;
    }

    .section-subtitle {
        text-align: center;
        font-family: 'Orbitron';
        color: var(--text-muted);
        max-width: 600px;
        margin: 0 auto 3rem auto;
        font-size: 1.05rem;
        padding: 0 10px;
    }

    /* --- HERO SECTION --- */
    .hero {
        position: relative;
        min-height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        background-image: 
            linear-gradient(var(--grid-color) 1px, transparent 1px),
            linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
        background-size: 50px 50px;
        padding: 80px 0;
        overflow: hidden;
    }

    .hero-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px; 
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: 4rem;
        z-index: 2;
    }

    .hero-content { padding-right: 1rem; }

    .hero-label {
        display: inline-block;
        font-family: var(--font-tech);
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        padding-bottom: 5px;
    }

    .hero h1 {
        font-family: var(--font-display);
        font-size: clamp(2.5rem, 5.5vw, 5rem);
        line-height: 1.1;
        font-weight: 800;
        margin-bottom: 1.5rem;
        letter-spacing: -1.5px;
        color: white;
    }

    .hero h1 span { 
        display: block; 
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 600;
        color: #ddd;
        margin-top: 10px;
    }

    .typewriter-box {
        font-family: 'Orbitron', sans-serif; /* Keep Courier for code effect, or change to var(--font-tech) if preferred */
        font-size: 1.1rem;
        color: #ccc;
        margin-bottom: 2.5rem;
        min-height: 1.6em;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .typewriter-box i { font-size: 0.9rem; color: var(--text-muted); }

    .hero-btns { display: flex; gap: 1.5rem; }

    .btn {
        padding: 15px 35px;
        border-radius: 1px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        white-space: nowrap;
        font-family: var(--font-tech); 
    }

    .btn-primary { background: white; color: black; border: 1px solid white; }
    .btn-primary:hover { background: transparent; color: white; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    
    .btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: white; }
    .btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

    /* Hero Image */
    .hero-visual {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .img-frame {
        position: relative;
        width: auto;
        height: 500px;
        border-radius: 1px; 
        border: 1px solid rgba(255,255,255,0.15);
        background: #111;
        padding: 10px; 
        box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        z-index: 2;
        max-width: 100%;
    }

    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 1px;
        filter: grayscale(100%) contrast(1.1);
        transition: filter 0.5s ease;
        display: block;
    }
    .img-frame:hover .hero-img { filter: grayscale(0%) contrast(1); }

   .tech-pill {
    position: absolute; 
    background: #000; 
    border: 1px solid #333;
    padding: 8px 16px; 
    font-size: 0.8rem; 
    color: #ccc;
    border-radius: 1px; /* Note: Change to 50px if you want rounded pills */
    display: flex; 
    align-items: center; 
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    z-index: 3;
    animation: float 4s ease-in-out infinite;
    font-family: var(--font-tech);
}

/* Left Side */
.tp-1 { top: 10%; left: -30px; animation-delay: 0s; }
.tp-2 { bottom: 15%; left: -40px; animation-delay: 2s; }

/* Right Side (New) */
.tp-3 { top: 12%; right: -30px; animation-delay: 1s; }
.tp-4 { bottom: 18%; right: -40px; animation-delay: 3s; }

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-10px); } 
}

/* Optional: Ensure they hide on mobile */
@media screen and (max-width: 768px) {
    .tech-pill { display: none; }
}

    /* --- SECTIONS --- */
    .section { padding: 100px 0; }
    
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
    
    .about-text p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }

    .glass-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 2rem;
        margin-bottom: 1.5rem;
        position: relative;
    }
    .glass-card::before {
        content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px;
        border-top: 2px solid white; border-left: 2px solid white;
    }

    .card-header {
        display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem;
        font-size: 1.2rem; font-weight: 700; color: var(--text-main);
        font-family: var(--font-display); text-transform: uppercase;
    }

    .edu-item { margin-bottom: 1.5rem; border-left: 1px solid var(--border-color); padding-left: 1.2rem; }
    .edu-item:last-child { margin-bottom: 0; }
    .edu-item h4 { font-size: 1.1rem; color: white; margin-bottom: 0.3rem; font-weight: 500; font-family: var(--font-tech); /* Added font-tech */ }
    .edu-item span { font-size: 0.9rem; color: var(--text-muted); }

    .skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
    .pill {
        padding: 6px 14px; border: 1px solid #333; font-size: 0.8rem;
        background: transparent; color: #aaa; transition: 0.3s;
        font-family: var(--font-tech);
    }
    .pill:hover { border-color: white; color: white; background: rgba(255,255,255,0.1); }

    /* --- EXPERIENCE SECTION STYLES --- */
    .timeline {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
    }
    
    .timeline::after {
        content: '';
        position: absolute;
        width: 2px;
        background: rgba(255,255,255,0.1);
        top: 0;
        bottom: 0;
        left: 0;
        margin-left: -1px;
    }

    .timeline-item {
        padding-left: 40px;
        position: relative;
        margin-bottom: 3rem;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        background: #000;
        border: 2px solid white;
        top: 0;
        left: -9px;
        border-radius: 1px;
        z-index: 1;
        transition: 0.3s;
    }
    
    .timeline-item:hover::after { background: white; }

    .job-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 2rem;
        position: relative;
        transition: transform 0.3s ease;
    }
    .job-card:hover { transform: translateX(10px); background: rgba(30,30,30,0.8); }

    .job-date {
        display: inline-block;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        border: 1px solid rgba(255,255,255,0.2);
        padding: 4px 12px;
        border-radius: 20px;
        font-family: var(--font-tech);
    }

    .job-role {
        font-family: var(--font-display);
        font-size: 1.5rem;
        color: white;
        margin-bottom: 5px;
    }

    .job-company {
        font-size: 1.1rem;
        color: #ccc;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .job-desc { list-style: none; }
    .job-desc li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 10px;
        color: var(--text-muted);
        font-size: 1rem;
        /* Optional: Change list items to tech font? Kept as body for readability, but uncomment below if you want everything tech */
        /* font-family: var(--font-tech); font-size: 0.9rem; */
    }
    .job-desc li::before {
        content: '▹';
        position: absolute;
        left: 0;
        color: white;
    }


    /* --- PROJECTS SECTION STYLES --- */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }

    .project-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: all 0.3s ease;
        margin-bottom: 0;
        padding: 0;
        overflow: hidden;
    }

    .project-card:hover {
        transform: translateY(-7px);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .project-img-box {
        width: 100%;
        height: 200px; 
        overflow: hidden;
        border-bottom: 1px solid var(--border-color);
        position: relative;
    }

    .project-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .project-card:hover .project-img { transform: scale(1.1); }

    .project-content {
        padding: 1.5rem 2rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .folder-icon {
        font-size: 1.5rem;
        color: white;
        margin-bottom: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .project-links a {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-left: 15px;
        background: rgba(255,255,255,0.05);
        width: 35px; height: 35px;
        display: inline-flex; justify-content: center; align-items: center;
        border-radius: 50%;
        transition: 0.3s;
        font-family: var(--font-tech); /* Ensure project links match */
    }
    .project-links a:hover { color: white; background: rgba(255,255,255,0.2); }

    .project-card h3 {
        font-family: var(--font-display);
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: white;
    }

    .project-card p {
        color: var(--text-muted);
        font-size: 1rem;
        margin-bottom: 1.5rem;
        flex-grow: 1; 
    }

    .project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.75rem;
        color: #888;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 1rem;
    }

    /* --- TESTIMONIALS SECTION --- */
    .testimonial-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .t-card {
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        margin-bottom: 0;
        transition: all 0.3s;
    }

    .t-card:hover {
        background: rgba(40, 40, 40, 0.7);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .t-quote-icon {
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.1);
        margin-bottom: 1.5rem;
    }

    .t-text {
        font-size: 1.05rem;
        color: #ccc;
        font-style: italic;
        margin-bottom: 2rem;
        line-height: 1.8;
    }

    .t-profile {
        display: flex;
        align-items: center;
        gap: 15px;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 1.5rem;
    }

    .t-img {
        width: 50px;
        height: 50px;
        border-radius: 1px;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.1);
    }

    .t-info h4 { font-size: 1rem; color: white; margin-bottom: 2px; font-family: var(--font-display); }
    .t-info span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-tech);}


    /* CONTACT */
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
    .form-group { margin-bottom: 1.5rem; }
    .form-label { display: block; margin-bottom: 0.6rem; color: #888; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; font-family: var(--font-tech);}
    
    .form-input {
        width: 100%; padding: 14px; background: rgba(255,255,255,0.03);
        border: 1px solid var(--border-color); color: white; font-size: 16px;
        transition: 0.3s; border-radius: 0;
        /* UPDATED: Changed from Body to Tech font for inputs */
        font-family: var(--font-tech); 
        letter-spacing: 0.5px;
    }
    
    .form-input:focus { outline: none; border-color: white; background: rgba(255,255,255,0.05); }
    textarea.form-input { min-height: 140px; resize: vertical; }

    .contact-item {
        display: flex; align-items: center; gap: 1.2rem;
        margin-bottom: 1.2rem; padding-bottom: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .contact-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    
    .c-icon {
        font-size: 1.2rem; color: white; width: 40px; height: 40px;
        display: flex; justify-content: center; align-items: center;
        border: 1px solid #333; flex-shrink: 0;
    }

    .btn-full { width: 100%; text-align: center;}

    footer { padding: 1rem 0; text-align: center; border-top: 1px solid var(--border-color); color: #555; font-size: 0.9rem; background: #000; }
    .socials { margin-bottom: 1.5rem; }
    .socials a { font-size: 1.5rem; margin: 0 15px; color: #555; transition: 0.3s; }
    .socials a:hover { color: white; }

    /* =========================================
       RESPONSIVE MARGIN/PADDING FIXES
       ========================================= */

    @media (max-width: 1024px) {
        .section { padding: 60px 0; }
        .hero { padding-top: 100px; padding-bottom: 60px; min-height: auto; }
        
        .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
        .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

        .hero-content { padding-right: 0; display: flex; flex-direction: column; align-items: center; }
        .typewriter-box { justify-content: center; }
        .hero-btns { justify-content: center; }
        
        .img-frame { width: 340px; height: 420px; margin: 0 auto; max-width: 100%; }
        .tech-pill { display: none; } 

        .container, .hero-container {
            padding-left: 30px;
            padding-right: 30px;
        }
    }

    @media (max-width: 480px) {
        .section-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
        .section-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }
        .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
        
        .hero-container { gap: 2rem; }
        .typewriter-box { margin-bottom: 1.5rem; min-height: 1.4em; }
        
        .glass-card { margin-bottom: 1rem; }
        
        .img-frame { width: 100%; height: auto; aspect-ratio: 4/5; }

        .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
        .btn { width: 100%; padding: 12px 0; }
        
        .container, .hero-container {
            padding-left: 20px;
            padding-right: 20px;
        }

        footer { padding: 2.5rem 0; }
    }

       /* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column;
    
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loader-text {
    font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 2px;
    margin-bottom: 20px; animation: blink 1s infinite;
}

.progress-bar {
    width: 200px; height: 2px; background: #333; position: relative; overflow: hidden;
}

.progress-fill {
    position: absolute; left: 0; top: 0; height: 100%; width: 0%;
    background: #fff; animation: load 2s ease-in-out forwards;
}

@keyframes load { 0% { width: 0%; } 100% { width: 100%; } }
     @keyframes blink { 50% { opacity: 0; } }

/* ADDED: Keyframes for the main container fade out */
@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden; /* Ensures clicks go through to the site after fade */
    }
}

/* --- CANVAS BACKGROUND --- */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.4; pointer-events: none;
}


/* --- CUSTOM TOAST NOTIFICATION --- */
#toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #050505; /* Matches body bg */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Slight slide-up animation */
}

/* --- FIXED EMAIL TEXT STYLE --- */
.email-copy-link {
    /* Matches the font family of your <a> tags (GitHub, YouTube, etc) */
    font-family: var(--font-tech); 
    
    /* Matches the color of the other links (White) instead of Gray */
    color: inherit; 
    
    cursor: pointer;
    word-break: break-all;
    font-size: 0.95rem; /* Matches the size of other links */
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.email-copy-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.email-copy-link::after {
    content: ' (COPY)';
    font-size: 0.65rem;
    opacity: 0;
    margin-left: 8px;
    transition: 0.3s;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.email-copy-link:hover::after {
    opacity: 1;
}