/* =========================
   GOOGLE FONT
========================= */

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

:root{
    --primary:#2563eb;
    --secondary:#38bdf8;
    --dark:#0f172a;
    --light:#f8fafc;
    --card:#ffffff;
    --text:#1e293b;
    --shadow:0 10px 30px rgba(0,0,0,.12);
}

.dark-mode{
    --light:#0f172a;
    --card:#1e293b;
    --text:#f8fafc;
    --shadow:0 10px 30px rgba(255,255,255,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--light);
    color:var(--text);
    transition:.4s;
}

/* =========================
   NAVBAR
========================= */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 8%;

    background:rgba(15,23,42,.9);
    backdrop-filter:blur(10px);
}

.logo{
    color:white;
    font-size:1.4rem;
    font-weight:700;
}

.navbar ul{
    display:flex;
    list-style:none;
    gap:25px;
}

.navbar a{
    text-decoration:none;
    color:white;
    transition:.3s;
}

.navbar a:hover{
    color:var(--secondary);
}

#theme-toggle{
    border:none;
    background:white;
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
}

/* =========================
   HERO
========================= */

.hero{
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
    135deg,
    #0f172a,
    #1e3a8a,
    #2563eb
    );

    color:white;
}

.hero-content{
    width:90%;
    max-width:900px;
}

.hero h1{
    font-size:4rem;
    font-weight:800;
    margin-bottom:10px;
}

.hero h2{
    color:#93c5fd;
    margin-bottom:15px;
    min-height:40px;
}

.hero p{
    line-height:1.8;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    padding:12px 25px;
    background:white;
    color:#2563eb;
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-4px);
}

.btn-outline{
    background:transparent;
    border:2px solid white;
    color:white;
}

/* =========================
   SECTION
========================= */

.section{
    padding:100px 8%;
}

.section h2{
    text-align:center;
    margin-bottom:40px;
    font-size:2rem;
    color:var(--primary);
}

/* =========================
   CARD
========================= */

.card{
    background:var(--card);
    padding:30px;
    border-radius:20px;
    box-shadow:var(--shadow);
    line-height:1.8;
}

/* =========================
   TIMELINE
========================= */

.timeline{
    max-width:700px;
    margin:auto;
}

.timeline-item{
    position:relative;
    padding:25px 25px 25px 45px;
    margin-bottom:25px;

    background:var(--card);

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

    border-radius:12px;

    box-shadow:var(--shadow);
}

.timeline-item h3{
    color:var(--primary);
}

/* =========================
   SKILLS
========================= */

.skills-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}

.skill-card{
    background:var(--card);
    padding:25px;
    text-align:center;

    border-radius:15px;

    box-shadow:var(--shadow);

    transition:.3s;
}

.skill-card:hover{
    transform:translateY(-8px);
}

/* =========================
   PROJECTS
========================= */

.project-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.project-card{
    background:var(--card);

    padding:30px;

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.4s;
}

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

.project-card h3{
    color:var(--primary);
    margin-bottom:15px;
}

.project-card p{
    margin-bottom:20px;
}

.project-card a{
    text-decoration:none;
    color:white;

    background:var(--primary);

    padding:10px 18px;

    border-radius:8px;
}


/* =========================
   CONTACT
========================= */

.contact-icons{
    display:flex;
    justify-content:center;
    gap:30px;
    margin-bottom:25px;
}

.contact-icons a{
    font-size:2rem;
    color:var(--primary);
    transition:.3s;
}

.contact-icons a:hover{
    transform:scale(1.2);
}

#contact p{
    text-align:center;
}

/* =========================
   THANK YOU
========================= */

.thankyou{

    text-align:center;

    padding:100px 20px;

    color:white;

    background:
    linear-gradient(
    135deg,
    #0f172a,
    #2563eb
    );
}

.thankyou h2{
    font-size:2.5rem;
    margin-bottom:20px;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#020617;
    color:white;
    text-align:center;
    padding:20px;
}

/* =========================
   SCROLL ANIMATION
========================= */

.section,
.project-card,
.skill-card,
.timeline-item{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

.hero h1{
    font-size:2.4rem;
}

.navbar{
    flex-direction:column;
    gap:15px;
}

.navbar ul{
    flex-wrap:wrap;
    justify-content:center;
}

.section{
    padding:80px 6%;
}

}
