:root{
    --bg:#0f1117;
    --card:#171923;
    --text:#ffffff;
    --text-soft:#b8bfd3;
    --primary:#7c5cff;
    --secondary:#00d4ff;
    --border:rgba(255,255,255,0.08);
    --shadow:0 20px 60px rgba(0,0,0,0.35);
}

[data-theme="light"]{
    --bg:#f4f7fb;
    --card:#ffffff;
    --text:#111827;
    --text-soft:#5c6370;
    --primary:#6d4dff;
    --secondary:#00a6ff;
    --border:rgba(0,0,0,0.08);
    --shadow:0 20px 50px rgba(0,0,0,0.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
    transition:0.4s;
}

/* BACKGROUND */
.bg-blur{
    position:fixed;
    width:400px;
    height:400px;
    border-radius:50%;
    filter:blur(120px);
    z-index:-1;
}

.blur-1{
    background:var(--primary);
    top:-100px;
    left:-100px;
    opacity:0.3;
}

.blur-2{
    background:var(--secondary);
    bottom:-100px;
    right:-100px;
    opacity:0.2;
}

/* NAVBAR */
.navbar{
    width:100%;
    padding:25px 8%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:999;
    backdrop-filter:blur(14px);
    background:rgba(15,17,23,0.45);
    border-bottom:1px solid var(--border);
}

.logo{
    font-size:28px;
    font-weight:800;
}

.logo span{
    color:var(--primary);
}

.nav-links{
    display:flex;
    gap:35px;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:var(--text-soft);
    transition:0.3s;
    font-weight:500;
}

.nav-links a:hover{
    color:var(--text);
}

.theme-btn{
    width:48px;
    height:48px;
    border-radius:50%;
    border:none;
    cursor:pointer;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    font-size:16px;
}

/* HERO */
.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    padding:100px 8%;
}

.hero-left{
    flex:1;
}

.badge{
    display:inline-block;
    padding:12px 18px;
    border-radius:999px;
    background:rgba(255,255,255,0.05);
    border:1px solid var(--border);
    margin-bottom:25px;
    color:var(--text-soft);
}

.hero h1{
    font-size:72px;
    line-height:1.1;
    margin-bottom:20px;
    font-weight:800;
}

.hero h1 span{
    background:linear-gradient(90deg,var(--primary),var(--secondary));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-desc{
    color:var(--text-soft);
    font-size:18px;
    line-height:1.9;
    max-width:650px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    margin-top:40px;
}

.btn-primary,
.btn-secondary{
    padding:16px 28px;
    border-radius:14px;
    text-decoration:none;
    font-weight:600;
    transition:0.4s;
}

.btn-primary{
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
}

.btn-primary:hover{
    transform:translateY(-5px);
}

.btn-secondary{
    border:1px solid var(--border);
    color:var(--text);
    background:rgba(255,255,255,0.03);
}

.btn-secondary:hover{
    background:rgba(255,255,255,0.08);
}

/* HERO INFO */
.hero-info{
    display:flex;
    gap:20px;
    margin-top:50px;
}

.info-box{
    background:var(--card);
    border:1px solid var(--border);
    padding:25px;
    border-radius:22px;
    flex:1;
    box-shadow:var(--shadow);
}

.info-box h2{
    font-size:32px;
    margin-bottom:8px;
}

.info-box p{
    color:var(--text-soft);
}

/* IMAGE */
.hero-right{
    flex:1;
    display:flex;
    justify-content:center;
}

.image-wrapper{
    width:420px;
    height:520px;
    border-radius:40px;
    overflow:hidden;
    position:relative;
    background:linear-gradient(145deg,var(--primary),var(--secondary));
    padding:5px;
    animation:float 5s ease-in-out infinite;
}

.image-wrapper img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:36px;
}

.glow{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,transparent,rgba(255,255,255,0.1));
    z-index:2;
}

@keyframes float{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-15px);
    }
    100%{
        transform:translateY(0px);
    }
}

/* SECTION */
.premium-section,
.projects,
.contact-section{
    padding:120px 8%;
}

.section-title{
    margin-bottom:60px;
}

.section-title span{
    color:var(--secondary);
    font-weight:700;
    letter-spacing:2px;
    font-size:14px;
}

.section-title h2{
    font-size:52px;
    margin-top:10px;
}

.about-card{
    background:var(--card);
    border:1px solid var(--border);
    padding:45px;
    border-radius:30px;
    line-height:2;
    color:var(--text-soft);
    box-shadow:var(--shadow);
}

/* PROJECT */
.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.project-card{
    background:var(--card);
    border:1px solid var(--border);
    padding:40px;
    border-radius:30px;
    transition:0.4s;
    position:relative;
    overflow:hidden;
    box-shadow:var(--shadow);
}

.project-card:hover{
    transform:translateY(-10px);
}

.card-icon{
    width:70px;
    height:70px;
    border-radius:20px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-bottom:25px;
}

.project-card h3{
    font-size:28px;
    margin-bottom:15px;
}

.project-card p{
    color:var(--text-soft);
    line-height:1.8;
}

/* CONTACT */
.contact-card{
    background:linear-gradient(135deg,
    rgba(124,92,255,0.18),
    rgba(0,212,255,0.12));
    border:1px solid var(--border);
    border-radius:40px;
    padding:80px 50px;
    text-align:center;
    box-shadow:var(--shadow);
}

.contact-tag{
    color:var(--secondary);
    letter-spacing:3px;
    font-weight:700;
}

.contact-card h2{
    font-size:54px;
    margin:20px 0;
}

.contact-card p{
    color:var(--text-soft);
    max-width:700px;
    margin:auto;
    line-height:1.8;
}

.contact-btn{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:40px;
    text-decoration:none;
    padding:18px 34px;
    border-radius:16px;
    background:#25D366;
    color:#fff;
    font-weight:700;
    transition:0.3s;
}

.contact-btn:hover{
    transform:scale(1.05);
}

/* FOOTER */
footer{
    padding:30px;
    text-align:center;
    border-top:1px solid var(--border);
    color:var(--text-soft);
}

/* RESPONSIVE */
@media(max-width:1100px){

    .hero{
        flex-direction:column;
        text-align:center;
    }

    .hero-desc{
        margin:auto;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-info{
        flex-direction:column;
    }

    .hero h1{
        font-size:56px;
    }
}

@media(max-width:768px){

    .nav-links{
        display:none;
    }

    .hero h1{
        font-size:42px;
    }

    .section-title h2{
        font-size:38px;
    }

    .contact-card h2{
        font-size:38px;
    }

    .image-wrapper{
        width:100%;
        height:420px;
    }
}