/* 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;
    scroll-behavior:smooth;
    transition: all 0.3s ease;
}

:root{
    --bg:#0a0a0a;
    --card:#111111;
    --text:#ffffff;
    --primary:#00ff88;
    --border:rgba(255,255,255,0.1);
}

body.light{
    --bg:#f5f5f5;
    --card:#ffffff;
    --text:#111111;
    --primary:#00b86b;
}

body{
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

/* Loader */


#loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        -45deg,
        #00d4ff,
        #6a11cb,
        #ff4ecd
    );
    background-size: 400% 400%;

    animation: gradientBG 8s ease infinite;
    z-index: 9999;
}


.loader-text{
    font-size: 5rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: white;
    

    animation: textFloat 2s ease-in-out infinite;

    text-shadow:
        0 0 10px rgba(255,255,255,.8),
        0 0 20px #00d4ff,
        0 0 40px #6a11cb,
        0 0 60px #ff4ecd;
}

@keyframes gradientBG{
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    100%{
        background-position: 0% 50%;
    }
}

@keyframes textFloat{
    0%,100%{
        transform: translateY(0) scale(1);
    }
    50%{
        transform: translateY(-15px) scale(1.05);
    }
}

/* Navbar */

.navbar{
    position:fixed;
    top:0;
    width:100%;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter:blur(20px);
    background:rgba(0,0,0,.4);
    z-index:1000;
}

.logo{
    color:var(--primary);
    font-size:1.5rem;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:10px;
}

.logo-img{
    height:50px;
    width:30;
    display:block;
    border-radius:5px;
}

.logo-text{
    display:inline;
    color:var(--primary);
    font-weight:700;
}

@media (max-width: 768px) {
    .logo-img{
        height:40px;
    }
    .logo-text{
        font-size:1.2rem;
    }
}

.nav-links{
    display:flex;
    list-style:none;
    gap:25px;
}

.nav-links a{
    text-decoration:none;
    color:var(--text);
    transition:.3s;
}

.nav-links a:hover{
    color:var(--primary);
}

#theme-toggle{
    border:none;
    background:var(--primary);
    padding:10px;
    border-radius:50%;
    cursor:pointer;
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:15px;
}

.menu-container{
    position:relative;
}

#menu-toggle{
    border:none;
    background:var(--card);
    color:var(--text);
    padding:10px;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.menu-dropdown{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:0 15px 30px rgba(0,0,0,.25);
    padding:8px 0;
    min-width:160px;
    display:none;
    z-index:1000;
}

.menu-dropdown.show{
    display:block;
}

.menu-dropdown a{
    display:block;
    padding:10px 16px;
    color:var(--text);
    text-decoration:none;
    transition:.2s;
}

.menu-dropdown a:hover{
    background:rgba(0,255,136,0.08);
    color:var(--primary);
}

/* Hero */

.hero{
    min-height:90vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    /* padding:100px 20px; */
}

.bubble-container{
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    overflow:hidden;
}

.bubble{
    position:absolute;
    bottom:-120px;
    border-radius:50%;
    opacity:0.4;
    animation:rise 10s infinite ease-in;
}

.bubble1{
    left:10%;
    width:50px;
    height:50px;
    background:rgba(0,255,136,0.35);
    animation-duration:12s;
}

.bubble2{
    left:30%;
    width:50px;
    height:50px;
    background:rgba(0,123,255,0.28);
    animation-duration:14s;
    animation-delay:2s;
}

.bubble3{
    left:50%;
    width:50px;
    height:50px;
    background:rgba(255,0,138,0.32);
    animation-duration:11s;
    animation-delay:1s;
}

.bubble4{
    left:70%;
    width:50px;
    height:50px;
    background:rgba(255,207,0,0.3);
    animation-duration:13s;
    animation-delay:3s;
}

.bubble5{
    left:85%;
    width:60px;
    height:60px;
    background:rgba(121,0,255,0.25);
    animation-duration:9s;
    animation-delay:4s;
}

.bubble6{
    left:20%;
    width:50px;
    height:50px;
    background:rgba(0,255,255,0.28);
    animation-duration:10s;
    animation-delay:5s;
}

.bubble7{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(255,100,0,0.22);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble8{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(232, 116, 39, 0.797);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble9{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(42, 9, 208, 0.884);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble10{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(6, 240, 146, 0.934);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble11{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(14, 172, 239, 0.941);
    animation-duration:15s;
}
.bubble12{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(255,100,0,0.22);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble13{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(42, 239, 2, 0.954);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble14{
    left:60%;
    width:50px;
    height:50px;
    background:rgb(242, 104, 13);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble15{ 
    left:60%;
    width:50px;
    height:50px;
    background:rgba(0, 110, 255, 0.998);
    animation-duration:15s;
    animation-delay:2.5s;
}   
.bubble16{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(204, 248, 10, 0.993);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble17{
    left:60%;
    width:50px;
    height:50px;
    background:rgb(240, 6, 96);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble18{
    left:60%;
    width:50px;
    height:50px;
    background:rgb(250, 60, 8);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble19{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(148, 243, 5, 0.979);
    animation-duration:15s;
    animation-delay:2.5s;
}
.bubble20{
    left:60%;
    width:50px;
    height:50px;
    background:rgba(167, 1, 129, 0.979);
    animation-duration:15s;
    animation-delay:2.5s;
}

.bubble-text{
    position:absolute;
    bottom:50%;
    left:50%;
    transform:translate(-50%, 50%);
    font-size:4rem;
    font-weight:900;
    color:rgb(1, 245, 131);
    text-shadow:0 0 20px rgba(0, 255, 136, 0.3);
    animation:floatText 15s infinite ease-in-out;
    z-index:-1;
    letter-spacing:3px;
}

@keyframes floatText{
    0%{
        transform:translate(-50%, 50%) translateY(0);
        opacity:0.05;
    }
    50%{
        opacity:0.2;
    }
    100%{
        transform:translate(-50%, 50%) translateY(-100vh);
        opacity:0;
    }
}
   
@keyframes rise{
    0%{
        transform:translateY(0) scale(1);
        opacity:0.35;
    }
    50%{
        opacity:0.6;
    }
    100%{
        transform:translateY(-120vh) scale(1.2);
        opacity:0;
    }
}

.hero-content{
    max-width:600px;
    text-align:left;
}

.hero-content h1{
    font-size:4rem;
    margin-bottom:10px;
}

.hero-image{
    max-width:520px;
    width:100%;
    display:flex;
    justify-content:center;
}

.hero-image .hero-photo{
    width:70%;
    max-width:450px;
    height:500px;
    border-radius:30px;
    opacity:0.85;
    border:2px solid rgba(0,255,136,0.18);
    box-shadow:0 30px 80px rgba(0,255,136,0.12);
    animation:floatImage 6s ease-in-out infinite;
}

@keyframes floatImage{
    0%,100%{
        transform:translateY(0);
        opacity:0.85;
    }
    50%{
        transform:translateY(-18px);
        opacity:0.95;
    }
}

.hero-content h2{
    color:var(--primary);
    /* margin-bottom:20px; */
}

.hero-content p{
    max-width:700px;
    /* margin:auto;
    margin-bottom:30px; */
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    padding:12px 25px;
    background:var(--primary);
    color:#000;
    text-decoration:none;
    border-radius:30px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-5px);
}

.btn2{
    background:transparent;
    border:2px solid var(--primary);
    color:var(--primary);
}

/* Sections */

section{
    padding:100px 8%;
}

.section-title{
    text-align:center;
    font-size:2.5rem;
    margin-bottom:50px;
    color:var(--primary);
}

/* About */

.about-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.about-image img{
    width:100%;
    border-radius:20px;
}

.counter-box{
    display:flex;
    gap:20px;
    margin-top:30px;
    flex-wrap:wrap;
}

.counter{
    background:var(--card);
    padding:20px;
    border-radius:15px;
    flex:1;
    text-align:center;
    border:1px solid var(--border);
}

/* Skills */

.skills-container{
    display:grid;
    gap:25px;
}

.skill h4{
    margin-bottom:10px;
}

.progress{
    height:12px;
    background:#222;
    border-radius:50px;
    overflow:hidden;
}

.progress span{
    display:block;
    height:100%;
    background:var(--primary);
    border-radius:50px;
}

/* Services */

.services-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.service-card{
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(20px);
    border:1px solid var(--border);
    padding:40px;
    text-align:center;
    border-radius:20px;
    transition:.4s;
}

.service-card:hover{
    transform:translateY(-10px);
}

.service-card i{
    font-size:3rem;
    color:var(--primary);
    margin-bottom:15px;
}

/* Projects */

.projects-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.project-card{
    background:var(--card);
    border-radius:20px;
    overflow:hidden;
    border:1px solid var(--border);
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-10px);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-card h3,
.project-card p{
    padding:10px 20px;
}

.project-card button{
    margin:20px;
    padding:10px 20px;
    border:none;
    background:var(--primary);
    border-radius:10px;
    cursor:pointer;
}

/* Terminal */

.terminal-box{
    background:#000;
    border:2px solid var(--primary);
    padding:30px;
    border-radius:20px;
    overflow:auto;
}

.terminal-box pre{
    color:var(--primary);
    font-family:monospace;
}

/* Timeline */

.timeline{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.timeline-item{
    background:var(--card);
    padding:25px;
    border-left:5px solid var(--primary);
    border-radius:15px;
}

/* Certificates */

.certificate-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.certificate-gallery img{
    width:100%;
    border-radius:15px;
    transition:.4s;
}

.certificate-gallery img:hover{
    transform:scale(1.05);
}

/* FAQ */

.faq-item{
    background:var(--card);
    border-radius:15px;
    margin-bottom:20px;
    overflow:hidden;
}

.faq-question{
    width:100%;
    padding:20px;
    background:none;
    border:none;
    color:var(--text);
    text-align:left;
    cursor:pointer;
    font-size:1rem;
}

.faq-answer{
    display:none;
    padding:20px;
}

/* Contact */

form{
    max-width:700px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

form input,
form textarea{
    padding:15px;
    border:none;
    border-radius:10px;
    background:var(--card);
    color:var(--text);
}

form textarea{
    height:150px;
}

form button{
    background:var(--primary);
    padding:15px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
}

/* Footer */

footer{
    text-align:center;
    padding:40px;
    border-top:1px solid var(--border);
}

.socials{
    margin-bottom:20px;
}

.socials a{
    color:var(--primary);
    margin:0 10px;
    font-size:1.5rem;
}

/* Animations */

@keyframes float{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-15px);
    }
    100%{
        transform:translateY(0);
    }
}

.hero-content{
    animation:float 4s ease-in-out infinite;
}

/* Responsive */

@media(max-width:900px){

    .about-container{
        grid-template-columns:1fr;
    }

    .nav-links{
        display:none;
    }

    .hero-content h1{
        font-size:2.5rem;
    }
}