:root{
    --bg:#05010a;

    --purple:#a855f7;

    --cyan:#33ccff;

    --text:#e5e5e5;

    --muted:#9ca3af;
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#05010a;

    color:white;

    font-family:"Times New Roman", Times, serif;

    line-height:1.6;

    overflow-x:hidden;
}

.navbar{
    position:fixed;
    top:0;
    width:100%;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;

    background:rgba(0,0,0,0.2);
    backdrop-filter:blur(10px);

    z-index:1000;
}

.logo{
    font-size:22px;
    font-weight:bold;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.nav-links a:hover{
    color:#64ffda;
}

.hero{
    min-height:100vh;

    display:flex;
    align-items:center;

    padding:0 10%;
}

.hero-text{
    max-width:700px;
}

.small-text{
    color:#64ffda;
    margin-bottom:15px;
    font-size:18px;
}

.hero h1{
    font-size:80px;
    line-height:1.1;
    margin-bottom:20px;
}

.hero-description{
    color:#aaaaaa;
    font-size:20px;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:20px;
}

.btn{
    padding:14px 28px;
    border-radius:10px;
    text-decoration:none;
    color:black;
    background:#64ffda;
    font-weight:bold;
    transition:0.3s;
}

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

.secondary-btn{
    background:transparent;
    color:white;
    border:1px solid #64ffda;
}

.section{
    padding:120px 10%;
}

.section h2{
    font-size:48px;
    margin-bottom:40px;
}

.skills-grid,
.project-grid{
    display:grid;

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

    gap:25px;
}

.card,
.project-card{
    background:#111827;

    padding:30px;

    border-radius:18px;

    transition:0.3s;
}

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

.project-card h3{
    margin-bottom:15px;
}
.about-container{
    display:grid;

    grid-template-columns:
    2fr 1fr;

    gap:50px;

    align-items:start;
}

.about-text p{
    color:#b5b5b5;
    font-size:18px;
    line-height:1.9;
}

.about-stats{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.stat-card{
    background:#111827;

    border:1px solid rgba(255,255,255,0.05);

    padding:30px;

    border-radius:18px;

    transition:0.3s;
}

.stat-card:hover{
    transform:translateY(-6px);
}

.stat-card h3{
    font-size:42px;
    color:#64ffda;

    margin-bottom:10px;
}

.stat-card p{
    color:#b5b5b5;
}
.skills-wrapper{
    display:flex;
    flex-direction:column;
    gap:40px;
}

.skills-box{
    background:#111827;

    padding:40px;

    border-radius:20px;

    border:1px solid rgba(255,255,255,0.05);
}

.skills-box h3{
    margin-bottom:30px;

    font-size:28px;

    color:#64ffda;
}

.skill{
    margin-bottom:25px;
}

.skill-info{
    display:flex;

    justify-content:space-between;

    margin-bottom:10px;

    color:#dddddd;
}

.progress-bar{
    width:100%;
    height:10px;

    background:#1f2937;

    border-radius:20px;

    overflow:hidden;
}

.progress{
    height:100%;

    border-radius:20px;

    background:#64ffda;
}

.c{
    width:90%;
}

.python{
    width:90%;
}

.javafx{
    width:85%;
}

.java{
    width:84%;
}

.js{
    width:70%;
}

.mysql{
    width:78%;
}

.tool-grid,
.knowledge-grid{
    display:grid;

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

    gap:20px;
}

.tool-card,
.knowledge-card{
    background:#1a2233;

    padding:20px;

    border-radius:15px;

    text-align:center;

    transition:0.3s;
}

.tool-card:hover,
.knowledge-card:hover{
    transform:translateY(-6px);

    background:#222c41;
}
.skills-tabs{
    display:flex;

    gap:20px;

    margin-bottom:40px;

    flex-wrap:wrap;
}

.tab-btn{
    padding:12px 24px;

    border:none;

    border-radius:12px;

    background:#111827;

    color:white;

    cursor:pointer;

    transition:0.3s;

    font-size:16px;
}

.tab-btn:hover{
    background:#1f2937;
}

.tab-btn.active{
    background:#64ffda;

    color:black;

    font-weight:bold;
}

.tab-content{
    display:none;
}

.active-tab{
    display:block;
}
.vscode { width: 95%; }
.intellij { width: 85%; }
.git { width: 80%; }
.processing { width: 75%; }
.pygame { width: 78%; }
.matlab { width: 70%; }

.algo { width: 96%; }
.ds { width: 85%; }
.oop { width: 80%; }
.db { width: 74%; }

.contact-container{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:start;
}

.contact-header h3{
    font-size:32px;

    margin-bottom:20px;

    color:#ffffff;
}

.contact-header p{
    color:#b5b5b5;

    font-size:18px;

    line-height:1.8;
}

.contact-box{
    background:#111827;

    padding:40px;

    border-radius:18px;

    border:1px solid rgba(255,255,255,0.05);
}

.contact-box h4{
    font-size:22px;

    margin-bottom:25px;

    color:#64ffda;
}

.contact-item{
    display:flex;

    flex-direction:column;

    gap:6px;

    margin-bottom:20px;
}

.contact-item span{
    color:#888;
    font-size:14px;
}

.contact-item a{
    color:white;

    text-decoration:none;

    font-size:16px;

    transition:0.3s;
}

.contact-item a:hover{
    color:#64ffda;

    transform:translateX(5px);
}
.footer{
    padding:40px 10%;

    text-align:center;

    color:#888;

    font-size:14px;

    border-top:1px solid rgba(255,255,255,0.05);

    margin-top:80px;
}

.footer p{
    transition:0.3s;
}

.footer p:hover{
    color:#64ffda;
}
p{
    letter-spacing:0.2px;
}

h1, h2, h3{
    letter-spacing:0.5px;
}

.section h2{
    color:var(--cyan);
    text-shadow:0 0 12px rgba(51,204,255,0.4);
}
.navbar{
    position:fixed;

    top:0;
    width:100%;

    padding:20px 8%;

    display:flex;
    justify-content:space-between;

    align-items:center;

    background:rgba(5,1,10,0.6);

    backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(51,204,255,0.1);

    z-index:1000;
}

.logo{
    color:var(--cyan);

    font-weight:bold;

    text-shadow:0 0 10px rgba(51,204,255,0.6);
}

.nav-links a{
    color:white;

    transition:0.3s;
}

.nav-links a:hover{
    color:var(--cyan);

    text-shadow:0 0 10px var(--cyan);
}
.hero h1{
    font-size:80px;

    color:white;

    text-shadow:
        0 0 10px rgba(168,85,247,0.4),
        0 0 20px rgba(51,204,255,0.2);
}

.hero p{
    color:var(--muted);
}

.btn{
    background:linear-gradient(
        90deg,
        var(--purple),
        var(--cyan)
    );

    color:black;

    font-weight:bold;

    box-shadow:0 0 15px rgba(51,204,255,0.3);
}

.btn:hover{
    box-shadow:0 0 25px rgba(51,204,255,0.6);
}
.card,
.project-card,
.skill,
.stat-card,
.contact-box{
    background:rgba(255,255,255,0.03);

    border:1px solid rgba(51,204,255,0.1);

    backdrop-filter:blur(10px);

    box-shadow:0 0 20px rgba(168,85,247,0.1);

    transition:0.3s;
}

.card:hover,
.project-card:hover{
    transform:translateY(-8px);

    border-color:var(--cyan);

    box-shadow:0 0 25px rgba(51,204,255,0.3);
}
.progress-bar{
    background:rgba(255,255,255,0.05);

    border:1px solid rgba(51,204,255,0.1);
}

.progress{
    background:linear-gradient(
        90deg,
        var(--purple),
        var(--cyan)
    );

    box-shadow:0 0 10px rgba(51,204,255,0.4);
}
.footer{
    padding:40px 10%;

    text-align:center;

    color:var(--muted);

    border-top:1px solid rgba(51,204,255,0.1);

    margin-top:80px;
}
.hero{
    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:100vh;

    padding:0 10%;
    gap:60px;
}

/* IMAGE SECTION */
.hero-image{
    position:relative;
}

.image-frame{
    width:320px;
    height:420px;

    border-radius:20px;

    overflow:hidden;

    border:1px solid rgba(51,204,255,0.3);

    box-shadow:
        0 0 25px rgba(168,85,247,0.3),
        0 0 50px rgba(51,204,255,0.15);

    position:relative;
}

/* IMAGE */
.image-frame img{
    width:100%;
    height:100%;

    object-fit:cover;

    filter:contrast(1.05) brightness(1.05);

    transition:0.4s;
}

.image-frame:hover img{
    transform:scale(1.05);
}

/* CYBER GLOW LAYER */
.image-frame::before{
    content:"";

    position:absolute;
    inset:-2px;

    background:linear-gradient(
        45deg,
        #a855f7,
        #33ccff
    );

    z-index:-1;

    filter:blur(20px);

    opacity:0.6;
}
.hero-text{
    max-width:600px;
}
.badges{
    margin-top:12px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.badge{
    font-size:12px;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(51,204,255,0.08);
    border:1px solid rgba(51,204,255,0.2);
    color:#33ccff;
}

.project-buttons{
    margin-top:15px;
    display:flex;
    gap:10px;
}

.btn.small{
    padding:8px 14px;
    font-size:13px;
}
.project-card{
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(51,204,255,0.1);
    backdrop-filter: blur(10px);

    padding: 25px;
    border-radius: 18px;

    transition: 0.3s;

    display: flex;
    flex-direction: column;

    overflow: hidden; /* prevents weird cut-offs */
}

.project-card h3{
    margin-bottom: 10px;
}

.project-card p{
    color: #b5b5b5;
    font-size: 15px;
    line-height: 1.6;
}

/* BADGES FIX (IMPORTANT PART) */
.badges{
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;   /* ensures wrapping */
    gap: 8px;

    max-width: 100%;
    overflow-wrap: break-word;
}

.badge{
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;

    background: rgba(51,204,255,0.08);
    border: 1px solid rgba(51,204,255,0.25);
    color: #33ccff;

    white-space: nowrap; /* prevents half-cut text */
}

/* BUTTON FIX */
.project-buttons{
    margin-top: 15px;
    display: flex;
    gap: 10px;

    flex-wrap: wrap; /* prevents overflow on small screens */
}

.btn.small{
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}

/* RESPONSIVE SAFETY */
.project-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
/* =========================
   TABLET (<= 1024px)
========================= */
@media (max-width: 1024px) {

    .hero{
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 40px;
    }

    .hero h1{
        font-size: 60px;
    }

    .hero-image{
        display: flex;
        justify-content: center;
    }

    .about-container{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-container{
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section{
        padding: 100px 6%;
    }
}

/* =========================
   MOBILE (<= 768px)
========================= */
/* =========================
   MOBILE RESPONSIVE FIX ONLY
========================= */

@media (max-width: 1024px) {
    .hero{
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-container,
    .contact-container{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* HERO FIX */
    .hero{
        flex-direction: column;
        text-align: center;
        padding: 120px 6% 60px;
    }

    .hero h1{
        font-size: 42px;
        line-height: 1.2;
    }

    .hero-description{
        font-size: 16px;
    }

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

    .btn{
        width: 85%;
        text-align: center;
    }

    /* IMAGE FIX */
    .image-frame{
        width: 240px;
        height: 320px;
    }

    /* PROJECT GRID FIX */
    .project-grid{
        grid-template-columns: 1fr;
    }

    /* BADGE SAFETY */
    .badges{
        justify-content: center;
    }

    /* ABOUT STATS STACK */
    .about-stats{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-card{
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {

    .hero h1{
        font-size: 34px;
    }

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

    .btn{
        width: 100%;
    }

    .image-frame{
        width: 200px;
        height: 260px;
    }
}
.coa{
    width:50%;
}

.micro{
    width:90%;
}