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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}
html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
}
/* Desktop */
.certification-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin:auto;
}

/* Tablet */
@media (max-width: 768px){
    .certification-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .certification-card{
        width: 100%;
        padding: 20px;
    }

    .certification-card img{
        width: 160px;
        height: auto;
    }
     .navbar{
        flex-direction:column;
    }

    .navbar ul{
        display:flex;
        flex-wrap:wrap;
    }
}

/* Small phones */
@media (max-width: 480px){
    .certification-grid{
        grid-template-columns: 1fr;
    }

    .certification-card img{
        width: 180px;
    }
}
@media (max-width:768px){

    .navbar{
        height:auto;
        padding:15px 5%;
        min-height:70px;
        gap:15px;
    }

    .navbar ul{
        width:100%;
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .navbar ul li a{
        font-size:14px;
    }

    .hero{
        min-height:100vh;
        padding:120px 20px 60px;
    }

    .hero h1{
        font-size:1.5rem;
        overflow-wrap:break-word;
    }

    .hero h2{
        font-size:2.5rem;
        line-height:1.2;
        overflow-wrap:break-word;
    }

    .hero h3{
        font-size:1.2rem;
        overflow-wrap:break-word;
    }

    .hero p{
        font-size:clamp(1rem,2vw,1.1rem);
        padding:0 10px;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
        width:100%;
        gap:15px;
    }

    .btn{
        width:100%;
        max-width:300px;
    }

    .hero-image img{
        width:220px;
    }

    .about .container{
        padding:25px;
    }

    .section-title{
        font-size:32px;
    }

    .project-list{
        grid-template-columns:1fr;
    }

    .project-card{
        width:100%;
    }
}
/* ===== Theme Colors ===== */

/* ===== Dark Mode (Default) ===== */
:root{
    --bg: #000000;

    --section-bg: #0f172a;
    --card-bg: #1e293b;

    --text: #ffffff;
    --heading: #ffffff;

    --navbar: rgba(2,11,36,.9);
    --nav-text: #ffffff;

    --button-bg: #2563eb;
    --button-text: #ffffff;

    --btn-bg:rgba(255,255,255,.15);
    --hero-text: #ffffff;
     --hero-glow: rgba(255,255,255,.04);

    --shadow:
        0 8px 20px rgba(0,0,0,.12),
        0 18px 45px rgba(0,0,0,.18);
}

/* ===== Navigation ===== */

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;

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

    padding: 0 5%;
    background: var(--navbar);
    backdrop-filter: blur(14px);
    z-index: 9999;
    transition: background-color .4s ease,
                background .4s ease,
                color .4s ease,
                border-color .4s ease;
}

.logo{
    color: var(--nav-text);
    font-size:30px;
    font-weight:800;
}

.navbar ul{
    display:flex;
    justify-content:flex-end;
    align-items:center;

    list-style:none;
    gap:25px;

    margin:0;
    padding:0;
}

.navbar ul li{
    display:block;
}

.navbar ul li a{
    color: var(--nav-text);
    text-decoration:none;
    font-size:16px;
    font-weight:500;
    transition: color .3s ease;
}

.navbar ul li a:hover{
    color:#90caf9;
}
/* ===== Hero Section ===== */

.hero{
    animation: heroFade .5s ease forwards;
    position: relative;
    overflow: hidden;
    
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap: 25px;
    text-align:center;
    padding:100px 8% 30px;
    color:white;
   
    background: var(--bg);
}

@keyframes heroFade{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
.hero-text h1{
    animation-delay:.1s;
}

.hero-text h2{
    animation-delay:.2s;
}

.hero-text h3{
    animation-delay:.3s;
}

.hero-text p{
    animation-delay:.4s;
}

.hero-buttons{
    animation-delay:.5s;
}
@keyframes slideUp{
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text{
    position: relative;
    z-index: 2;
    max-width:800px;
    margin:0 auto;
}

.hero::before{
    content:"";
    position:absolute;
    width:700px;
    height:700px;
    background: var(--hero-glow);
    border-radius:50%;
    top:-250px;
    left:-250px;
    filter:blur(80px);
    pointer-events: none;
}

.hero::after{
    content:"";
    position:absolute;
    width:600px;
    height:600px;
    background: var(--hero-glow);
    border-radius:50%;
    bottom:-220px;
    right:-220px;
    filter:blur(80px);
    pointer-events: none;
}
.hero-text h1,
.hero-text h2,
.hero-text h3,
.hero-text p,
.hero-buttons{
    opacity: 0;
    animation: slideUp .5s ease forwards;
}

.hero h1{
    font-size: clamp(1.5rem,4vw,2rem);
    font-weight:400;
    color: var(--hero-text);
}

.hero h2{
    font-size: clamp(2.5rem,7vw,4.5rem);
    font-weight:800;
    margin:10px 0;
    color: var(--hero-text);  
}

.typing{
    display: inline-block;
    width: 0;
    white-space: nowrap;
    overflow: hidden;

    animation:
        typing 0.8s steps(15, end) forwards;
}

@keyframes typing{
    from{
        width: 0;
    }
    to{
        width: 100%;
    }
}

.hero h3{
    font-size:24px;
    font-weight:400;
    letter-spacing:0.5px;
    color: var(--hero-text);
    margin-bottom:20px;
}

.hero p{
    font-size: 16px;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto 40px;
    color: var(--hero-text);
    font-style: italic;
    font-weight: 400;
}

.hero-buttons{
    position: relative;
    z-index: 5;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top:30px;
}

.btn{
    display:inline-block;
    background:var(--button-bg);
    color: var(--button-text);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    min-height:48px;
    padding:14px 28px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:all .3s ease;
}

.btn:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,.25);
}

.btn:active{
    transform: scale(0.92);
    box-shadow:0 4px 10px rgba(0,0,0,.2);
}

.hero-image{
    margin-bottom:20px;
    animation:slideUp .4s ease forwards;
}

.hero-image img{
    width:100%;
    max-width:320px;
    aspect-ratio:1;
    border-radius:50%;
    object-fit:cover;
    border:6px solid rgba(255,255,255,.15);
    box-shadow:0 20px 50px rgba(0,0,0,.4);
}

/* ===== Container ===== */

.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}
/* =======================
   About Section
======================= */

.about{
    padding:100px 0;
    background: var(--bg);
    transition: background-color .4s ease,
                background .4s ease,
                color .4s ease,
                border-color .4s ease;
}

.about .container{
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(12px);
    padding:50px;
    border-radius:20px;
    box-shadow:var(--shadow);
}
.about h2{
    text-align: center;
    color: var(--heading);
    font-size:clamp(2rem,5vw,2.7rem);
    margin-bottom:25px;
}

.about p{
    text-align: center;
    font-size:clamp(1rem,2vw,1.1rem);
    color: var(--text);
    max-width:850px;
    margin:auto;
    line-height:1.8;
    margin-bottom:0;
}

.skills{
    padding:100px 0;
    background: var(--bg);
    
    transition: background-color .4s ease,
                background .4s ease,
                color .4s ease,
                border-color .4s ease;
}
.skills h2{
    text-align:center;
    font-size:clamp(2rem,5vw,2.7rem);
    color: var(--heading);
    margin-bottom:60px;
}

.skill-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.skill-card{
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    padding:35px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:transform .3s ease,
                box-shadow .3s ease;
}

.skill-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 50px rgba(0,0,0,0.25);
}

.skill-card i{
    font-size:60px;
    color: var(--button-bg);
    margin-bottom:20px;
}

.skill-card h3{
    font-size:20px;
    color: var(--text);
}

/* ===== SECTION TITLES ===== */
.section-title{
    text-align: center;
    font-size: clamp(2rem,5vw,3rem);
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 60px;
    letter-spacing: 1px;
}

/* ===== CERTIFICATIONS ===== */
.certifications{
    padding:100px 30px;
    background: var(--bg);
    color: white;
}

.certification-card{
max-width:320px;
    width:100%;
    margin:auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    transition:all .3s ease;
}
.certification-card a{
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 25px;
}

.certification-card h3{
    color: var(--heading);
}

.certification-card p{
    color: var(--text);
}

.certification-card img{
    width: 220px;
    height: 100px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
}

.projects{
    margin: 0;
    padding:100px 0;
    background: var(--bg);
    transition: background-color .4s ease,
                background .4s ease,
                color .4s ease;
}

.project-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}
.project-card{
    width:100%;
    min-height:250px;
    
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border:1px solid rgba(255,255,255,.1);

    display:flex;
    flex-direction:column;

    box-shadow: var(--shadow);
    transition:transform .3s ease,
                box-shadow .3s ease;
    padding:30px;
border-radius:20px;
}

.project-buttons{
text-align:center;
margin-top:30px;
}


.project-buttons button{
padding:10px 20px;
margin:5px;
cursor:pointer;
}
.project-buttons button:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.project-buttons button:active{
    transform: scale(.95);
}
.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 50px rgba(0,0,0,0.25);
}
.project-card h3{
    color: var(--heading);
    margin-bottom:15px;
}

.project-card p{
    color: var(--text);
    margin-bottom:20px;
}

.project-card a{
    margin-top: auto;
    align-self: flex-start;
    display:inline-block;
    padding:10px 20px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration:none;
    border-radius:20px;
}

/* ===== FOOTER ===== */
.footer{
    width: 100%;
    padding: 25px 0;
    background: var(--bg);
    border-top: 1px solid rgba(255,255,255,0.1);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer p{
    color: var(--text);
    margin-top: 10px;
    font-size: 14px;
}

