/* ================================
   GLOBAL RESET & VARIABLES
================================ */
:root {
    --primary: #00eaff;
    --dark: #0b0f1a;
    --card: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.12);
    --text-muted: rgba(255,255,255,0.75);
    --radius: 16px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html{
    scroll-behavior: smooth;
}

/* ================================
   BODY & BACKGROUND
================================ */
body{
    background:
        radial-gradient(circle at 15% 20%, rgba(0,234,255,0.12), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(0,150,255,0.10), transparent 35%),
        linear-gradient(120deg, #05070f, #0b1224, #05070f);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================
   HEADER - GLASSMORPHISM
================================ */
header{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 8%;
    background: rgba(10,15,30,0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header h2{
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}

/* ================================
   NAVIGATION
================================ */
nav{
    display: flex;
    gap: 35px;
}

nav a{
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

nav a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

nav a:hover{
    color: var(--primary);
}

nav a:hover::after{
    width: 100%;
}

/* ================================
   SECTIONS
================================ */
section{
    padding: 120px 8%;
    min-height: 100vh;
}

/* ================================
   HOME / HERO
================================ */
#home{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#home h1{
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    margin-bottom: 15px;
}

#home h1 span{
    color: var(--primary);
}

#home p{
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

#home button{
    margin-top: 35px;
    padding: 14px 34px;
    background: linear-gradient(135deg, var(--primary), #0abfff);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.35s;
}

#home button:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,234,255,0.4);
}

/* ================================
   SKILLS
================================ */
.skills-container{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.skill{
    background: var(--card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    position: relative;
    transition: 0.4s;
}

.skill::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0;
    transition: 0.4s;
}

.skill:hover::before{
    opacity: 0.15;
}

.skill:hover{
    transform: translateY(-10px);
}

.skill h3{
    margin-bottom: 8px;
}

.skill p{
    color: var(--text-muted);
}

/* ================================
   PROJECTS
================================ */
.project-box{
    background: var(--card);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    transition: 0.4s;
}

.project-box:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* ================================
   YOUTUBE
================================ */
.youtube-box{
    margin-top: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
}

iframe{
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
}

/* ================================
   ABOUT
================================ */
#about p{
    max-width: 760px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
}

/* ================================
   CONTACT
================================ */
.contact-table{
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 35px;
}

.contact-table th,
.contact-table td{
    border: 1px solid var(--border);
    padding: 14px;
}

form{
    max-width: 600px;
}

form input,
form textarea{
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: #fff;
    outline: none;
}

form input:focus,
form textarea:focus{
    border-color: var(--primary);
}

form button{
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary), #0abfff);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* ================================
   FOOTER
================================ */
footer{
    text-align: center;
    padding: 25px;
    background: rgba(0,0,0,0.6);
    color: var(--text-muted);
}

/* ================================
   MODAL
================================ */
.modal{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
}

.modal-content{
    background: var(--dark);
    margin: 15% auto;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: pop 0.35s ease;
}

@keyframes pop{
    from{transform: scale(0.7); opacity: 0;}
    to{transform: scale(1); opacity: 1;}
}
.youtube-btn{
    margin-top: 20px;
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.youtube-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,0,0,0.4);
}
/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 900px){
    nav{
        display: none;
    }
}

@media (max-width: 600px){
    header{
        padding: 15px 6%;
    }

    section{
        padding: 100px 6%;
    }

    #home h1{
        font-size: 2.2rem;
    }
}
/* ================================ HAMBURGER MENU ================================ */
#hamburger{
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

#nav-links.active{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 8%;
    background: rgba(10,15,30,0.9);
    padding: 20px;
    border-radius: 12px;
    gap: 15px;
}

/* Show hamburger icon on small devices */
@media (max-width: 900px){
    #hamburger{
        display: block;
    }
    #nav-links{
        display: none;
    }
}
/* ================================ HOME / HERO ================================ */
#home{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    min-height: 100vh;
}

.home-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.home-text{
    flex: 1 1 500px;
}

.home-text h1{
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    margin-bottom: 15px;
}

.home-text h1 span{
    color: var(--primary);
}

.home-text p{
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.home-text button{
    margin-top: 35px;
    padding: 14px 34px;
    background: linear-gradient(135deg, var(--primary), #0abfff);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.35s;
}

.home-text button:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,234,255,0.4);
}

.home-image{
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-image img{
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,234,255,0.4);
    transition: transform 0.3s ease;
}

.home-image img:hover{
    transform: scale(1.05);
}

/* ================================ RESPONSIVE ================================ */
@media (max-width: 900px){
    #home{
        text-align: center;
        padding: 100px 6%;
    }
    .home-container{
        flex-direction: column;
        gap: 30px;
    }
    .home-text button{
        margin-top: 20px;
    }
}
/* ================================ CERTIFICATES GALLERY ================================ */
#certificates{
    padding: 100px 8%;
    background: rgba(10,15,30,0.6);
    border-radius: var(--radius);
}

.certificates-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.certificate-item{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.certificate-item img{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.certificate-item p{
    padding: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.certificate-item:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,234,255,0.3);
}

.certificate-item:hover img{
    transform: scale(1.05);
}

/* ================================ LIGHTBOX MODAL ================================ */
.lightbox-modal{
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.9);
}

.lightbox-modal img{
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,234,255,0.3);
}

.lightbox-modal p{
    text-align: center;
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
}

.lightbox-close{
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover{
    color: var(--primary);
}

/* ================================ RESPONSIVE ================================ */
@media (max-width: 600px){
    #certificates{
        padding: 80px 6%;
    }
}


