/* ===========================
   Google Font
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   Variables
=========================== */

:root{

    --primary:#6C63FF;
    --secondary:#9D8DFF;
    --accent:#FF9EAA;

    --bg:#F7F7FC;
    --white:#ffffff;

    --text:#2E2E3A;
    --text-light:#666;

    --shadow:0 15px 40px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.35s ease;

}

/* ===========================
   Reset
=========================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

}

/* ===========================
   Animated Background
=========================== */

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:

    radial-gradient(circle at 20% 30%,#d7ccff55,transparent 25%),

    radial-gradient(circle at 80% 20%,#ffd8d855,transparent 25%),

    radial-gradient(circle at 70% 80%,#c8f7dd55,transparent 25%),

    radial-gradient(circle at 15% 90%,#b8e4ff55,transparent 25%);

    z-index:-2;

    animation:bgMove 15s linear infinite alternate;

}

@keyframes bgMove{

    from{

        transform:translateY(-40px);

    }

    to{

        transform:translateY(40px);

    }

}

/* ===========================
   General
=========================== */

section{

    padding:90px 9%;

}

section h2{

    font-size:2.3rem;

    text-align:center;

    margin-bottom:50px;

    color:var(--primary);

    position:relative;

}

section h2::after{

    content:"";

    width:80px;

    height:4px;

    background:var(--accent);

    display:block;

    margin:15px auto;

    border-radius:20px;

}

.card{

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(12px);

    border-radius:var(--radius);

    padding:35px;

    box-shadow:var(--shadow);

}

/* ===========================
   Navbar
=========================== */

nav{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    padding:18px 9%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(15px);

    z-index:1000;

    box-shadow:0 3px 20px rgba(0,0,0,.05);

}

nav h2{

    color:var(--primary);

    font-weight:700;

}

nav ul{

    list-style:none;

    display:flex;

    gap:30px;

}

nav a{

    text-decoration:none;

    color:var(--text);

    transition:var(--transition);

    font-weight:500;

}

nav a:hover{

    color:var(--primary);

}

.resume-btn{

    background:var(--primary);

    color:white!important;

    padding:12px 22px;

    border-radius:30px;

}

.resume-btn:hover{

    background:#574df2;

}

/* ===========================
   Hero
=========================== */

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:120px 9%;

}

.hero h1{

    font-size:4rem;

    font-weight:800;

    margin-bottom:15px;

}

.hero span{

    color:var(--primary);

}

.hero h2{

    color:var(--accent);

    margin-bottom:20px;

    min-height:40px;

}

.hero p{

    max-width:700px;

    margin:auto;

    color:var(--text-light);

    line-height:1.9;

    font-size:1.05rem;

}

.hero-buttons{

    margin-top:40px;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:20px;

}

.btn{

    display:inline-block;

    text-decoration:none;

    padding:14px 28px;

    border-radius:40px;

    background:var(--primary);

    color:white;

    transition:var(--transition);

    box-shadow:var(--shadow);

}

.btn:hover{

    transform:translateY(-5px);

}

.secondary{

    background:white;

    color:var(--primary);

}

/* ===========================
   About
=========================== */

#about p{

    font-size:1.05rem;

    line-height:2;

    text-align:center;

}

/* ===========================
   Skills
=========================== */

.skills-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.skill-card{

    background:white;

    border-radius:20px;

    padding:30px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.skill-card:hover{

    transform:translateY(-10px);

}

.skill-card h3{

    margin-bottom:15px;

    color:var(--primary);

}

.skill-card p{

    line-height:1.8;

}

/* ===========================
   Experience Timeline
=========================== */

.timeline{

    position:relative;

    max-width:900px;

    margin:auto;

    padding-left:30px;

    border-left:4px solid var(--primary);

}

.timeline-item{

    position:relative;

    margin-bottom:45px;

    padding:25px 30px;

    background:white;

    border-radius:18px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.timeline-item:hover{

    transform:translateX(10px);

}

.timeline-item::before{

    content:"";

    position:absolute;

    left:-43px;

    top:32px;

    width:18px;

    height:18px;

    border-radius:50%;

    background:var(--accent);

    border:4px solid white;

    box-shadow:0 0 0 4px var(--primary);

}

.timeline-item h3{

    color:var(--primary);

    margin-bottom:6px;

}

.timeline-item h4{

    color:#666;

    margin-bottom:10px;

    font-weight:500;

}

.timeline-item span{

    color:#888;

    font-size:.9rem;

}


/* ===========================
   Projects
=========================== */

.projects-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.project-card{

    background:white;

    border-radius:20px;

    padding:30px;

    box-shadow:var(--shadow);

    transition:var(--transition);

    border-top:6px solid var(--primary);

}

.project-card:hover{

    transform:translateY(-10px);

}

.project-card h3{

    color:var(--primary);

    margin-bottom:15px;

}

.project-card p{

    color:#666;

    line-height:1.8;

    margin-bottom:20px;

}

.project-card a{

    color:var(--accent);

    font-weight:600;

    text-decoration:none;

}

.project-card a:hover{

    color:var(--primary);

}


/* ===========================
   Leadership & Volunteering
=========================== */

.card ul{

    list-style:none;

}

.card li{

    padding:15px 0;

    border-bottom:1px solid #eee;

    line-height:1.7;

}

.card li:last-child{

    border-bottom:none;

}


/* ===========================
   Certificates
=========================== */

#certifications .projects-grid{

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

}

#certifications .project-card{

    text-align:center;

    cursor:pointer;

}

#certifications .project-card::before{

    content:"📜";

    display:block;

    font-size:3rem;

    margin-bottom:20px;

}

#certifications .project-card:hover{

    background:linear-gradient(135deg,#ffffff,#f6f2ff);

}

body.dark #certifications .project-card:hover{

    background:#2f3345;

    transform: translateY(-10px);

}


/* ===========================
   Contact
=========================== */

#contact form{

    max-width:700px;

    margin:auto;

    display:flex;

    flex-direction:column;

    gap:20px;

}

#contact input,

#contact textarea{

    padding:16px;

    border:none;

    border-radius:15px;

    background:white;

    box-shadow:var(--shadow);

    font-family:inherit;

    font-size:1rem;

}

#contact textarea{

    resize:vertical;

}

#contact button{

    border:none;

    cursor:pointer;

    font-size:1rem;

}


/* ===========================
   Footer
=========================== */

footer{

    margin-top:80px;

    padding:50px 9%;

    text-align:center;

    background:white;

}

footer h3{

    color:var(--primary);

    margin-bottom:15px;

}

footer p{

    color:#666;

    margin-bottom:20px;

}

.footer-links{

    display:flex;

    justify-content:center;

    gap:30px;

}

.footer-links a{

    text-decoration:none;

    color:var(--primary);

    font-weight:600;

}

.footer-links a:hover{

    color:var(--accent);

}


/* ===========================
   Fade Animation
=========================== */

.hidden{

    opacity:0;

    transform:translateY(50px);

    transition:all .8s ease;

}

.show{

    opacity:1;

    transform:translateY(0);

}


/* ===========================
   Responsive Design
=========================== */

@media(max-width:900px){

    nav{

        flex-direction:column;

        gap:18px;

        padding:20px;

    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:18px;

    }

    .hero h1{

        font-size:2.8rem;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;

    }

    section{

        padding:80px 6%;

    }

    .timeline{

        border-left:none;

        padding-left:0;

    }

    .timeline-item{

        margin-left:0;

    }

    .timeline-item::before{

        display:none;

    }

}

@media(max-width:600px){

    .hero h1{

        font-size:2.2rem;

    }

    section h2{

        font-size:1.9rem;

    }

    .projects-grid{

        grid-template-columns:1fr;

    }

    .skills-grid{

        grid-template-columns:1fr;

    }

    .footer-links{

        flex-direction:column;

        gap:12px;

    }

}

/* ===========================
   Hamburger Menu
=========================== */

.nav-buttons{

    display:flex;

    align-items:center;

    gap:15px;

}

#menu-toggle{

    display:none;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:white;

    box-shadow:var(--shadow);

    font-size:1.1rem;

    transition:.3s;

}

#menu-toggle:hover{

    transform:scale(1.08);

}

/* Mobile */

@media (max-width:768px){

    nav{

        padding:18px;

    }

    #menu-toggle{

        display:block;

    }

    #nav-links{

        position:absolute;

        top:100%;

        left:0;

        width:100%;

        background:white;

        display:flex;

        flex-direction:column;

        align-items:center;

        gap:20px;

        padding:25px 0;

        box-shadow:0 15px 30px rgba(0,0,0,.1);

        transform:translateY(-20px);

        opacity:0;

        pointer-events:none;

        transition:.35s;

    }

    #nav-links.active{

        opacity:1;

        transform:translateY(0);

        pointer-events:auto;

    }

    .resume-btn{

        display:none;

    }

    .hero{

        padding-top:140px;

    }

}

/* ===========================
   Dark Mode
=========================== */

#theme-toggle{

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    cursor:pointer;

    background:white;

    box-shadow:var(--shadow);

    font-size:1.2rem;

    transition:.3s;

}

#theme-toggle:hover{

    transform:rotate(20deg) scale(1.08);

}

body.dark{

    --bg:#15171d;
    --white:#20232d;
    --text:#f3f3f3;
    --text-light:#c8c8c8;
    --primary:#9d8dff;
    --accent:#ffb2bc;

}

/* Main Cards */

body.dark nav{

    background:rgba(25,25,35,.85);

}

body.dark .card,
body.dark .skill-card,
body.dark .project-card,
body.dark .timeline-item,
body.dark footer{

    background:#232632;
    color:white;

}

body.dark .card li{

    border-color:#3a3a4d;

}

/* Contact Form */

body.dark #contact input,
body.dark #contact textarea{

    background:#232632;

    color:#ffffff;

    border:1px solid #444;

}

body.dark #contact input::placeholder,
body.dark #contact textarea::placeholder{

    color:#bdbdbd;

}

body.dark #contact input:focus,
body.dark #contact textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(108,99,255,.25);

}

/* Buttons */

body.dark .btn{

    color:white !important;

}

body.dark .secondary{

    background:#2d3040;

    color:white !important;

    border:1px solid #444;

}

body.dark .secondary:hover{

    background:var(--primary);

    color:white !important;

}

/* Links */

body.dark a{

    color:#9d8dff;

}

/* Theme Button */

body.dark #theme-toggle{

    background:#2b2e3c;

    color:white;

}

/* Certificates Hover */

body.dark #certifications .project-card:hover{

    background:#2f3345;

}

body.dark #menu-toggle{

    background:#2b2e3c;

    color:white;

}

body.dark #nav-links{

    background:#232632;

}