* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    background-color: #050505;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #acacac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.btn {
    background: linear-gradient(90deg, #ff3a82, #5233ff);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 58, 130, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 58, 130, 0.4);
}

.gradient-background {
    position: fixed;   /* <-- fix it in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;       /* <-- send it behind content */
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.sphere-1 {
    width: 40vw;
    height: 40vw;
    background: linear-gradient(40deg, rgba(255, 0, 128, 0.8), rgba(255, 102, 0, 0.4));
    top: -10%;
    left: -10%;
    animation: float-1 15s ease-in-out infinite alternate;
}

.sphere-2 {
    width: 45vw;
    height: 45vw;
    background: linear-gradient(240deg, rgba(72, 0, 255, 0.8), rgba(0, 183, 255, 0.4));
    bottom: -20%;
    right: -10%;
    animation: float-2 18s ease-in-out infinite alternate;
}

.sphere-3 {
    width: 30vw;
    height: 30vw;
    background: linear-gradient(120deg, rgba(133, 89, 255, 0.5), rgba(98, 216, 249, 0.3));
    top: 60%;
    left: 20%;
    animation: float-3 20s ease-in-out infinite alternate;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes float-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-10%, -5%) scale(1.15);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-5%, 10%) scale(1.05);
        opacity: 0.6;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image:
            linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: 2;
}

.glow {
    position: absolute;
    width: 40vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(72, 0, 255, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: pulse 8s infinite alternate;
    filter: blur(30px);
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* Fade animation
/* Initial fade-in when page loads */
body {
    opacity: 0;
    transition: opacity 0.7s ease;
}

/* When the page is fully loaded */
body.fade-in {
    opacity: 1;
}

/* === About Me Section === */
.about-container {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.about-container h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #dcdcdc;
}
/* === EXPERIENCE SECTION === */
.experience-container {
    position: relative;
    padding: 1150px 10% 1px 10%;
    color: white;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Timeline container centered and vertical */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #5233ff,#ff3a82 );
    border-radius: 2px;
}

/* Timeline items stacked vertically */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 50px;
}

/* Timeline dot */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    background: white;
}

/* Content box */
.timeline-content {
    background: rgba(255, 255, 255, 0.1); /* slightly more visible glass */
    border: 1px solid rgba(255, 255, 255, 0.2); /* slightly stronger border */
    padding: 20px 25px;
    border-radius: 12px;
    backdrop-filter: blur(15px) saturate(150%); /* blur + saturation for shiny effect */
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.6), 0 0 45px rgba(255, 0, 153, 0.4);
}

.timeline-content h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 10px;
}

/* Make page scrollable naturally */
body {
    overflow-y: auto;
}

body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background-color: #050505;
    color: white;
    margin: 0;
    overflow-y: auto;  /* <-- allow vertical scrolling */
}

.experience-container,
.about-container {
    position: relative; /* so z-index works */
    z-index: 1;
}
.nav-bar {
    position: fixed;        /* stays at the top */
    top: 20px;              /* distance from top */
    right: 30px;            /* distance from right */
    display: flex;          /* horizontal layout */
    gap: 25px;              /* space between links */
    z-index: 100;           /* on top of all content */
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-bar a:hover {
    color: #ff3a82;          /* accent color on hover */
}

.nav-bar a.active {
    color: #ff3a82;  /* pink highlight */
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 58, 130, 0.6);
}


/* === PROJECTS SECTION === */
.projects-container {
    position: relative;
    padding: 150px 10% 100px 10%;
    color: white;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* soft shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.6), 0 0 45px rgba(255, 0, 153, 0.4);
}

/* Project Text */
.project-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}
/* Github Text */
.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #24292e, #171a1d);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.github-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(1.2);
}

.github-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}


/* === CONTACT PAGE === */

.contact-container {
    position: relative;
    padding: 150px 10% 100px 10%;
    color: white;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
}

.contact-subtext {
    font-size: 1.1rem;
    color: #dcdcdc;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 550px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 35px;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 1rem;
}

.contact-form textarea {
    height: 140px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #c9c9c9;
    font-size: 0.95rem;
}

/* ===============================
   RESPONSIVE DESIGN FIXES
================================*/

/* Large tablets & small laptops */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }

    .content-container {
        max-width: 90%;
        padding: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .nav-bar {
        right: 15px;
        gap: 15px;
        font-size: 0.9rem;
    }

    .about-container,
    .experience-container,
    .projects-container,
    .contact-container {
        padding: 120px 5% 80px 5%;
    }

    .section-heading {
        font-size: 2.4rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-item::before {
        left: 5px;
    }

    .timeline::before {
        left: 10px;
    }
}

/* Phones */
@media (max-width: 600px) {

    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    p {
        font-size: 1rem;
    }

    .nav-bar {
        top: 15px;
        right: 10px;
        gap: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* 1 project per row */
        gap: 25px;
    }

    .project-card {
        padding: 22px;
    }

    .contact-form {
        padding: 25px;
    }

    .about-container,
    .experience-container,
    .projects-container,
    .contact-container {
        padding: 90px 5% 70px 5%;
    }

    .timeline {
        padding-left: 15px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-item::before {
        width: 12px;
        height: 12px;
        left: 2px;
    }

    .timeline::before {
        width: 2px;
        left: 8px;
    }

    .gradient-sphere {
        filter: blur(40px); /* reduce blur for tiny screens */
    }
}

/* ============================
   MOBILE FIXES FOR HOME PAGE
   ============================ */
@media (max-width: 600px) {

    /* NAVBAR */
    .nav-bar {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        gap: 10px;
        padding: 8px 14px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        font-size: 0.8rem;
        z-index: 200;
    }

    .nav-bar a {
        font-size: 0.8rem;
    }

    /* ABOUT SECTION */
    .about-container {
        padding: 120px 20px 60px 20px;
        text-align: center;
    }

    .about-container h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .about-container p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* FIX BACKGROUND SPHERES (too big on mobile) */
    .sphere-1, .sphere-2, .sphere-3 {
        width: 70vw;
        height: 70vw;
        filter: blur(40px);
    }

    /* Prevent text from being pushed down */
    .content-container {
        padding-top: 130px;
    }

    /* Reduce glow size */
    .glow {
        width: 60vw;
        height: 35vh;
        filter: blur(20px);
    }
}



