body {
            min-height: 100vh;
            margin: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            /* amplified layered neon gradient with clearer motion and saturation */
            background-color: #04000a;
            background-image:
                /* stronger cool teal wash (left) */
                radial-gradient(ellipse at 8% 12%, rgba(66,240,255,0.28) 0%, rgba(66,240,255,0.06) 14%, transparent 30%),
                /* stronger warm purple wash (right) */
                radial-gradient(ellipse at 92% 86%, rgba(195,110,255,0.28) 0%, rgba(195,110,255,0.06) 16%, transparent 32%),
                /* soft center glow */
                radial-gradient(circle at 50% 30%, rgba(120,60,255,0.09), transparent 24%),
                /* base dark gradient */
                linear-gradient(120deg, rgba(6,6,12,1) 0%, rgba(12,8,20,1) 40%, rgba(8,6,14,1) 100%),
                /* subtle color streak overlay (shifted toward blue) */
                linear-gradient(60deg, rgba(0,120,255,0.06), rgba(0,200,180,0.04));
            background-blend-mode: screen, screen, screen, normal, overlay;
            background-size: 240% 240%, 240% 240%, 180% 180%, 100% 100%, 180% 180%;
            /* slightly faster, more visible motion */
            animation: bgShift 12s ease-in-out infinite;
            /* site-wide text color (kept in a CSS variable for easy reuse) */
            color: var(--site-text, #e8f0f7);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

/* root-level variables */
:root {
    --site-text: #e8f0f7; /* primary page text color (from index) */
}

/* Accent palette aligned with index (blue vibe) */
:root {
    --accent: #00bfff;    /* primary blue accent */
    --accent-2: #66f0ff;  /* secondary cyan accent */
}

@keyframes bgShift {
    0% { background-position: 0% 35%, 100% 65%, 50% 20%, 0% 0%, 0% 100%; }
    50% { background-position: 100% 65%, 0% 35%, 50% 40%, 0% 0%, 100% 0%; }
    100% { background-position: 0% 35%, 100% 65%, 50% 20%, 0% 0%, 0% 100%; }
}

        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 2rem;
            background: linear-gradient(180deg, #000000 0%, #111115 100%);
            color: #ffffff;
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-shadow: 0 0 8px rgba(0, 150, 255, 0.35);
        }

        /* When nav is placed inside the header, make it inline on the right */
        header nav {
            background: transparent;
            box-shadow: none;
            border-bottom: none;
            padding: 0;
            display: flex;
            gap: 1.25rem;
            align-items: center;
        }

        html {
            scroll-behavior: smooth;
        }

        nav {
            background: #0b0b0d;
            display: flex;
            justify-content: center;
            gap: 2rem;
            padding: 1.2rem 0;
            border-bottom: 1px solid rgba(0, 150, 255, 0.3);
            box-shadow: 0 0 12px rgba(0,150,255,0.2);
        }

/* When nav is inside the project panel, make it visually part of the panel */
#project nav {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px dashed rgba(100,100,150,0.04);
    padding: 0.65rem 0 0.8rem 0;
    gap: 1.5rem;
}

        nav a {
            color: var(--site-text);
            text-decoration: none;
            font-size: 1.1rem;
            transition: 0.25s ease;
            letter-spacing: 0.5px;
        }

        nav a:hover {
            text-shadow: 0 0 8px rgba(0, 150, 255, 0.8);
            color: #ffffff;
        }

        
        h2 {
            font-size: 2.5rem;
            color: #00bfff;
            text-align: center;
            margin-bottom: 2rem;
            
        }

        #about {
            max-width: 1000px;
            margin: 3rem auto;
            padding: 2rem;
        }

        .about-container {
            display: flex;
            gap: 2rem;
            flex-wrap: nowrap;
        }

        .about-text {
            flex: 1 1 65%;
            padding: 1.5rem;
            border: 2px solid rgba(0, 150, 255, 0.5);
            border-radius: 10px;
            background: #141418;
            box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
        }

        .about-text p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--site-text);
        }

        .about-image {
            flex: 0 0 auto;
            width: 250px;
            text-align: center;
        }

        .about-image img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            border: 2px solid rgba(0, 150, 255, 0.5);
            box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
        }


        #projects {
            max-width: 1000px;
            margin: 3rem auto;
            padding: 2rem;
        }

        .projects-list {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: center;
        }

        .project-card {
            background: #141418;
            border: 2px solid rgba(0, 150, 255, 0.5);
            border-radius: 10px;
            width: 400px;
            box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .project-card:hover {
            transform: scale(1.03);
        }

        .project-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .project-card-content {
            padding: 1rem;
        }

        .project-card-content h3 {
            margin: 0 0 0.5rem 0;
            color: #00bfff;
        }

        .project-card-content p {
            margin: 0;
            color: var(--site-text);
            font-size: 1rem;
        }

        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

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

        a {
            text-decoration: none;
        }

        .contact-bars {
            /* match the width of the `#project` panel */
            max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-bar {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--site-text);
    font-size: 1.2rem;
    text-decoration: none;
    background: #141418;
    border-left: 5px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.2);
}

.contact-bar img.contact-icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
}

.contact-bar.github:hover {
    transform: translateX(5px);
    /* purple glow instead of yellow/green */
    border-color: rgba(179,123,255,0.6);
    box-shadow: 0 0 24px rgba(179,123,255,0.18);
}

.contact-bar.linkedin:hover {
    transform: translateX(5px);
    border-color: #0a66c2;
    box-shadow: 0 0 20px #0a66c233;
}

.contact-bar.email:hover {
    transform: translateX(5px);
    border-color: #ea0707;
    box-shadow: 0 0 20px #ff572233;
}

@media (max-width: 500px) {
    .contact-bar {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .contact-bar img.contact-icon {
        width: 25px;
        height: 25px;
    }
}


@media (max-width: 500px) {
    .about-container {
        flex-direction: column;
        flex-wrap: wrap;
            }

    .about-text, .about-image {
        flex: 1 1 100%;
    }

    #contacts {
          flex-direction: column;
                gap: 1rem;
    }
 }

 section {
     max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #141418;
    border: 2px solid rgba(0, 150, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
           
}

section h2 {
     color: #00bfff;
     margin-bottom: 1rem;
 }

 section p {
             color: var(--site-text);
         line-height: 1.6;
 }

 video {
     width: 100%;
      border-radius: 10px;
     margin-top: 1rem;
     border: 2px solid rgba(0, 150, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
 }

/* Project page neon layout inspired styles */
#project {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 2.25rem;
    background: linear-gradient(180deg, rgba(16,12,20,0.6), rgba(8,6,10,0.6));
    border-radius: 12px;
    border: 1px solid rgba(0, 150, 255, 0.22);
    box-shadow: 0 12px 50px rgba(0, 120, 255, 0.12), inset 0 0 36px rgba(0,0,0,0.35);
    position: relative;
}

.project-title {
    display: block;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(100,100,150,0.06);
}

/* Boxed container for project "about" content */
.info-box {
    background: linear-gradient(180deg, rgba(16,16,20,0.6), rgba(12,12,18,0.55));
    padding: 1rem 1.15rem;
    border-radius: 10px;
    border: 1px solid rgba(0,150,255,0.08);
    box-shadow: 0 10px 30px rgba(0,120,255,0.05);
}

.info-box { 
    max-width: 720px; /* keep the box a readable width when centered */
    text-align: center; /* center headings and paragraph text inside */
}

.info-box .project-part { margin-top: 1.2rem; }

/* center h2 inside boxed about sections */
.info-box .project-part h2 {
    text-align: center;
}

.project-title h1 {
    margin: 0;
    font-size: 3.4rem;
    color: var(--accent-2);
    text-shadow: 0 2px 18px rgba(102,240,255,0.12);
    letter-spacing: -1px;
}

.project-title .project-subtitle {
    margin: 0.35rem 0 0;
    color: #66f0ff;
    opacity: 0.9;
    font-weight: 600;
}

.project-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-part {
    margin-top: 1.75rem;
    /* make project parts visually integrated into the single project panel
       — remove individual backgrounds, borders and hover lift */
    background: transparent;
    padding: 0; /* rely on #project padding for spacing */
    border-radius: 0;
    border: none;
    transition: none;
}

.project-part:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.project-part h2 {
    font-size: 1.25rem;
    color: #66f0ff;
    margin-bottom: 0.75rem;
}

/* style for the smaller left-aligned subsections inside the about box */
.info-box .project-part h3 {
    font-size: 1.05rem;
    color: #66f0ff;
    margin: 0.6rem 0 0.6rem; /* more space above and below the H3 */
    text-align: center; /* center the subsections per request */
}

.info-box .project-part h3 + p {
    text-align: center;
    margin-top: 0.25rem; /* small gap after the heading */
}

/* GitHub base matches other contact bars; hover keeps purple glow */
.contact-bar.github {
    background: #141418; /* same base as other contact bars */
    color: var(--site-text);
    border-left-color: transparent;
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.2);
}

/* Resume contact-bar uses the same hover treatment as other contact buttons */
.contact-bar.resume {
    /* base looks like other contact bars */
    background: #141418;
    color: var(--site-text);
    border-left-color: transparent;
    box-shadow: 0 0 12px rgba(0,150,255,0.2);
}

.contact-bar.resume:hover {
    transform: translateX(5px);
    border-color: #ffb86b; /* warm accent for resume */
    box-shadow: 0 0 20px rgba(255,184,107,0.18);
}

/* Back button placed inside project panel top-left */
.back-button {
    position: absolute;
    left: 18px;
    top: 18px;
    display: inline-block;
    padding: 0.45rem 0.7rem;
    background: rgba(10,10,14,0.7);
    color: var(--site-text);
    border: 1px solid rgba(100,150,255,0.08);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,120,255,0.06);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,120,255,0.10);
}

.tag, .lang {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: rgba(50,50,70,0.25);
    color: #cfe9ff;
    border: 1px solid rgba(100,200,255,0.06);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.gallery {
    margin-top: 1rem;
}

.gallery .hero {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0,120,255,0.06);
}

.thumbs {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.thumbs img {
    width: 72px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
}

/* smaller screens */
@media (max-width: 700px) {
    .project-title h1 { font-size: 2.2rem; }
    #project { padding: 1.25rem; margin: 1.5rem 1rem; }
}

/* Two-column layout for project pages */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
}

.project-left {
    min-width: 0;
    display: flex;
    justify-content: center; /* center the left column content horizontally */
}

.project-right {
    position: relative;
}

.project-right .hero,
.project-right video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 12px 40px rgba(10,20,40,0.6), 0 0 28px rgba(0,120,255,0.06);
}

.project-meta { margin-top: 0.85rem; }

 .project-part p { font-size: 1rem; color: var(--site-text); opacity: 0.95; }

 .project-right .caption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--site-text);
    opacity: 0.9;
}

/* decorative left border like reference */
#project::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(180deg, rgba(0,191,255,0.95), rgba(102,240,255,0.8));
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(102,240,255,0.06);
}

@media (max-width: 980px) {
    .project-grid { grid-template-columns: 1fr; }
    .project-right { order: -1; }
    #project::before { left: 8px; top: 10px; bottom: 10px; }
}

/* Small visual polish for links and GitHub */
.project-part a {
    color: #bfefff;
    text-decoration: underline dotted rgba(190,239,255,0.12);
}

.project-title h1 { letter-spacing: -1px; }

/* Slightly smaller H2 within project pages to avoid oversized headings */
#project > h2,
#project h2:not(.project-part h2) {
    font-size: 1.35rem;
    color: #66f0ff;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

/* GitHub heading placed after main should match project H2 sizing */
main + h2 {
    font-size: 1.35rem;
    color: #66f0ff;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Project CTA button (GitHub, view repo) */
.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: linear-gradient(90deg, #0088e6 0%, #42f0ff 100%);
    color: #071018;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 26px rgba(0,120,255,0.10);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}

.project-cta .btn-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.project-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,120,255,0.14);
    opacity: 0.98;
}

.project-cta.github {
    background: linear-gradient(90deg, #0066cc 0%, #33e6d6 100%);
}

/* Centered CTA wrapper for project pages (match index contact style) */
.project-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.6rem;
}

/* Reuse contact-bar visual for project CTA, but keep it compact */
.contact-bar.project-cta {
    padding: 0.6rem 1rem;
    background: #141418;
    border-left: 5px solid transparent;
    box-shadow: 0 0 12px rgba(0,150,255,0.08);
    color: var(--site-text);
    text-decoration: none;
    gap: 0.75rem;
    align-items: center;
    max-width: 520px;
}

.contact-bar.project-cta img.contact-icon, .contact-bar.project-cta .btn-icon {
    width: 26px;
    height: 26px;
}

.contact-bar.project-cta:hover {
    transform: translateY(-3px);
    border-color: rgba(102,240,255,0.08);
    box-shadow: 0 10px 30px rgba(0,150,255,0.06);
}


 

