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

:root{
    --purple:#6C2BD9;
    --purple-dark:#5520B5;
    --purple-soft:#F3EEFF;
    --ink:#17151D;
    --muted:#77727F;
    --line:#E9E5EF;
    --bg:#FAF9FC;
    --white:#fff;
    --shadow:0 20px 60px rgba(31,18,57,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',Arial,sans-serif;
    color:var(--ink);
    background:#fff;
    line-height:1.6;
    overflow-x:hidden;
}

body.no-scroll{
    overflow:hidden;
}

a{
    color:inherit;
    text-decoration:none;
}

button{
    font:inherit;
}

.container{
    width:min(1160px,calc(100% - 40px));
    margin:auto;
}

/* ================= NAV ================= */

nav{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    height:78px;
    transition:.3s;
}

nav.scrolled{
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(233,229,239,.8);
    box-shadow:0 8px 30px rgba(20,10,40,.04);
}

.nav-inner{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    background:var(--purple);
    color:#fff;
    border-radius:13px;
    font-weight:800;
    font-size:18px;
    box-shadow:0 10px 25px rgba(108,43,217,.2);
}

.nav-links{
    display:flex;
    align-items:center;
    gap:34px;
    font-size:13px;
    font-weight:600;
    color:#55515D;
}

.nav-links a{
    transition:.2s;
}

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

.nav-cta{
    padding:11px 18px;
    background:var(--ink);
    color:#fff;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
    transition:.25s;
}

.nav-cta:hover{
    background:var(--purple);
    transform:translateY(-2px);
}

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    border:1px solid var(--line);
    background:#fff;
    border-radius:11px;
    cursor:pointer;
}

.menu-toggle span{
    display:block;
    width:19px;
    height:2px;
    background:var(--ink);
    margin:4px auto;
    transition:.25s;
}

/* ================= HERO ================= */

.hero{
    min-height:100vh;
    padding-top:78px;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 86% 20%,rgba(108,43,217,.13),transparent 25%),
        radial-gradient(circle at 8% 80%,rgba(108,43,217,.07),transparent 23%),
        #fff;
}

.hero-grid{
    position:absolute;
    inset:0;
    opacity:.42;
    background-image:
        linear-gradient(#eeeaf5 1px,transparent 1px),
        linear-gradient(90deg,#eeeaf5 1px,transparent 1px);
    background-size:72px 72px;
    mask-image:linear-gradient(to bottom,#000,transparent 90%);
}

.hero-orb{
    position:absolute;
    width:500px;
    height:500px;
    border:1px solid rgba(108,43,217,.08);
    border-radius:50%;
    right:-180px;
    top:15%;
}

.hero-orb:before,
.hero-orb:after{
    content:"";
    position:absolute;
    border:1px solid rgba(108,43,217,.08);
    border-radius:50%;
}

.hero-orb:before{
    inset:70px;
}

.hero-orb:after{
    inset:145px;
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:920px;
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:8px 13px;
    border:1px solid #e2d7fb;
    background:var(--purple-soft);
    color:var(--purple);
    border-radius:30px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.5px;
    margin-bottom:28px;
}

.live-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#28a66a;
    box-shadow:0 0 0 4px rgba(40,166,106,.1);
}

.hero h1{
    font-size:clamp(54px,8vw,96px);
    line-height:.98;
    letter-spacing:-5px;
    font-weight:800;
    max-width:900px;
}

.hero h1 span{
    color:var(--purple);
    position:relative;
}

.hero h1 span:after{
    content:"";
    position:absolute;
    left:0;
    right:3%;
    bottom:-8px;
    height:5px;
    background:var(--purple);
    border-radius:10px;
    transform:rotate(-1deg);
}

.hero-description{
    max-width:650px;
    margin-top:34px;
    color:var(--muted);
    font-size:17px;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:34px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:14px 21px;
    border-radius:11px;
    font-size:13px;
    font-weight:700;
    transition:.25s;
    cursor:pointer;
}

.btn-primary{
    color:#fff;
    background:var(--purple);
    box-shadow:0 13px 30px rgba(108,43,217,.2);
}

.btn-primary:hover{
    background:var(--purple-dark);
    transform:translateY(-3px);
}

.btn-secondary{
    color:var(--ink);
    background:#fff;
    border:1px solid var(--line);
}

.btn-secondary:hover{
    border-color:var(--purple);
    color:var(--purple);
    transform:translateY(-3px);
}

.hero-meta{
    display:flex;
    gap:30px;
    margin-top:60px;
}

.meta-item{
    display:flex;
    align-items:center;
    gap:9px;
    color:#66616d;
    font-size:12px;
}

.meta-item strong{
    color:var(--ink);
}

/* ================= GENERAL ================= */

section{
    padding:115px 0;
}

.section-label{
    color:var(--purple);
    font-size:10px;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.section-title{
    font-size:clamp(36px,5vw,54px);
    line-height:1.05;
    letter-spacing:-3px;
    font-weight:800;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:40px;
    margin-bottom:55px;
}

.section-description{
    max-width:460px;
    color:var(--muted);
    font-size:14px;
}

/* ================= ABOUT ================= */

.about{
    background:var(--bg);
}

.about-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:80px;
    align-items:center;
}

.about-copy p{
    color:var(--muted);
    font-size:15px;
    margin-bottom:20px;
}

.about-copy p:first-child{
    color:var(--ink);
    font-size:19px;
    line-height:1.7;
}

.about-card{
    padding:35px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:var(--shadow);
}

.code-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:32px;
}

.code-icon{
    width:52px;
    height:52px;
    border-radius:15px;
    background:var(--purple-soft);
    color:var(--purple);
    display:grid;
    place-items:center;
    font-weight:800;
}

.available{
    font-size:11px;
    color:#6e6974;
}

.available i{
    display:inline-block;
    width:7px;
    height:7px;
    background:#25a56b;
    border-radius:50%;
    margin-right:5px;
}

.code{
    padding:22px;
    border-radius:15px;
    background:#18151e;
    color:#aaa4b2;
    font-family:monospace;
    font-size:13px;
    line-height:2;
    overflow:auto;
}

.code .purple{
    color:#b894ff;
}

.code .white{
    color:#fff;
}

/* ================= SERVICES ================= */

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.service{
    position:relative;
    padding:31px;
    min-height:280px;
    border:1px solid var(--line);
    border-radius:21px;
    background:#fff;
    transition:.3s;
}

.service:hover{
    transform:translateY(-7px);
    border-color:#d8c8fa;
    box-shadow:var(--shadow);
}

.service-number{
    color:var(--purple);
    font-size:11px;
    font-weight:800;
}

.service-icon{
    position:absolute;
    top:27px;
    right:28px;
    width:43px;
    height:43px;
    border-radius:12px;
    background:var(--purple-soft);
    color:var(--purple);
    display:grid;
    place-items:center;
    font-weight:800;
}

.service h3{
    margin-top:65px;
    font-size:21px;
    margin-bottom:10px;
}

.service p{
    color:var(--muted);
    font-size:13px;
}

/* ================= PROJECTS ================= */

.projects{
    background:var(--bg);
}

.filters{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.filter-btn{
    padding:9px 15px;
    border-radius:9px;
    border:1px solid var(--line);
    background:#fff;
    color:#66616d;
    cursor:pointer;
    font-size:11px;
    font-weight:700;
    transition:.2s;
}

.filter-btn:hover,
.filter-btn.active{
    background:var(--purple);
    border-color:var(--purple);
    color:#fff;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
}

.project{
    overflow:hidden;
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    transition:.3s;
}

.project:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
}

.project-preview{
    height:280px;
    padding:30px;
    background:
        radial-gradient(circle at 85% 15%,rgba(168,132,255,.5),transparent 25%),
        linear-gradient(135deg,#1a1720,#302040);
    position:relative;
    overflow:hidden;
}

.project-window{
    position:absolute;
    left:11%;
    right:11%;
    top:14%;
    bottom:-12%;
    background:#fff;
    border-radius:12px 12px 0 0;
    box-shadow:0 25px 60px rgba(0,0,0,.3);
    padding:14px;
}

.window-bar{
    display:flex;
    gap:5px;
    margin-bottom:17px;
}

.window-bar i{
    width:6px;
    height:6px;
    background:#d6d2dc;
    border-radius:50%;
}

.window-body{
    display:grid;
    grid-template-columns:24% 1fr;
    gap:12px;
    height:calc(100% - 25px);
}

.window-side{
    background:#f3f0f7;
    border-radius:7px;
}

.window-main{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.mock-title{
    width:55%;
    height:15px;
    background:#24202b;
    border-radius:4px;
}

.mock-line{
    width:80%;
    height:7px;
    background:#e8e4ed;
    border-radius:4px;
}

.mock-line.small{
    width:50%;
}

.mock-cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:8px;
    margin-top:6px;
}

.mock-card{
    height:70px;
    background:var(--purple-soft);
    border-radius:8px;
}

.project-info{
    padding:26px;
}

.project-info h3{
    font-size:20px;
    margin-bottom:7px;
}

.project-info p{
    color:var(--muted);
    font-size:13px;
    margin-bottom:17px;
}

.project-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
}

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.tag{
    padding:5px 8px;
    border-radius:6px;
    background:var(--purple-soft);
    color:var(--purple);
    font-size:10px;
    font-weight:700;
}

.project-link{
    color:var(--purple);
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}

/* ================= STACK ================= */

.stack-grid{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.stack{
    border:1px solid var(--line);
    background:#fff;
    border-radius:12px;
    padding:14px 19px;
    font-size:13px;
    font-weight:700;
    transition:.2s;
}

.stack:hover{
    color:var(--purple);
    border-color:#d6c6f9;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(40,20,80,.05);
}

/* ================= CONTACT ================= */

.contact{
    background:#17151d;
    color:#fff;
    text-align:center;
}

.contact .section-label{
    color:#ad91ed;
}

.contact h2{
    max-width:850px;
    margin:auto;
    font-size:clamp(42px,6vw,70px);
    line-height:1;
    letter-spacing:-4px;
}

.contact h2 span{
    color:#a989ed;
}

.contact p{
    max-width:560px;
    margin:24px auto 32px;
    color:#aaa5b1;
    font-size:14px;
}

.contact-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
}

.contact .btn-primary{
    background:#fff;
    color:var(--ink);
}

.contact .btn-primary:hover{
    background:#a989ed;
    color:#fff;
}

.email-copy{
    background:transparent;
    border:1px solid #3a3640;
    color:#fff;
}

.email-copy:hover{
    border-color:#a989ed;
    color:#a989ed;
}

/* ================= FOOTER ================= */

footer{
    padding:25px 0;
    background:#17151d;
    color:#77717d;
    border-top:1px solid #2d2932;
    font-size:11px;
}

.footer-inner{
    display:flex;
    justify-content:space-between;
    gap:20px;
}

/* ================= ANIMATION ================= */

.reveal-element{
    opacity:0;
    transform:translateY(25px);
    transition:opacity .7s ease,transform .7s ease;
}

.reveal-element.visible{
    opacity:1;
    transform:none;
}

/* ================= RESPONSIVE ================= */

@media(max-width:850px){

    .nav-links{
        position:fixed;
        top:78px;
        left:20px;
        right:20px;
        padding:15px;
        background:#fff;
        border:1px solid var(--line);
        border-radius:16px;
        box-shadow:var(--shadow);
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        opacity:0;
        visibility:hidden;
        transform:translateY(-10px);
        transition:.25s;
    }

    .nav-links.active{
        opacity:1;
        visibility:visible;
        transform:none;
    }

    .nav-links a{
        padding:13px;
        border-radius:8px;
    }

    .nav-links a:hover{
        background:var(--purple-soft);
    }

    .nav-cta{
        display:none;
    }

    .menu-toggle{
        display:block;
    }

    .menu-toggle.active span:first-child{
        transform:translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2){
        opacity:0;
    }

    .menu-toggle.active span:last-child{
        transform:translateY(-6px) rotate(-45deg);
    }

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

    .services-grid{
        grid-template-columns:1fr;
    }

    .projects-grid{
        grid-template-columns:1fr;
    }

    .section-head{
        display:block;
    }

    .section-description{
        margin-top:18px;
    }
}

@media(max-width:550px){

    .container{
        width:calc(100% - 28px);
    }

    .hero h1{
        font-size:48px;
        letter-spacing:-2.7px;
    }

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

    .hero-meta{
        flex-direction:column;
        gap:10px;
        margin-top:40px;
    }

    section{
        padding:80px 0;
    }

    .section-title{
        font-size:36px;
        letter-spacing:-2px;
    }

    .project-preview{
        height:230px;
    }

    .about-card{
        padding:20px;
    }

    .code{
        font-size:11px;
    }

    .footer-inner{
        flex-direction:column;
    }
}

/* =========================
   Floating Contact Buttons
========================= */

.floating-contact{
    position:fixed;
    right:22px;
    bottom:22px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.floating-contact a{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    font-size:21px;
    font-weight:800;
    box-shadow:0 10px 28px rgba(0,0,0,.16);
    transition:transform .25s ease, box-shadow .25s ease;
}

.floating-contact a:hover{
    transform:translateY(-4px) scale(1.04);
    box-shadow:0 15px 35px rgba(0,0,0,.22);
}

.floating-whatsapp{
    background:#25D366;
}

.floating-messenger{
    background:#6C2BD9;
}

.floating-contact .floating-label{
    position:absolute;
    right:64px;
    white-space:nowrap;
    padding:7px 10px;
    border-radius:7px;
    background:#17151D;
    color:#fff;
    font-size:10px;
    font-weight:600;
    opacity:0;
    pointer-events:none;
    transform:translateX(5px);
    transition:.2s;
}

.floating-contact a:hover .floating-label{
    opacity:1;
    transform:none;
}

@media(max-width:550px){

    .floating-contact{
        right:14px;
        bottom:14px;
        gap:8px;
    }

    .floating-contact a{
        width:47px;
        height:47px;
        font-size:19px;
    }

    .floating-contact .floating-label{
        display:none;
    }

}

.floating-contact a svg{
    width:24px;
    height:24px;
    display:block;
    fill:currentColor;
}

@media(max-width:550px){
    .floating-contact a svg{
        width:21px;
        height:21px;
    }
}

/* =========================
   Tech Stack
========================= */

.stack-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.stack-category{
    padding:26px;
    border:1px solid var(--border);
    border-radius:18px;
    background:#fff;
    transition:.25s ease;
}

.stack-category:hover{
    transform:translateY(-4px);
    border-color:#d8c8f5;
    box-shadow:0 15px 35px rgba(108,43,217,.08);
}

.stack-category-title{
    margin-bottom:20px;
    font-size:12px;
    font-weight:800;
    color:var(--text);
}

.stack-items{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.stack-items .stack{
    width:auto;
    padding:9px 12px;
    border:1px solid #ebe7f2;
    border-radius:9px;
    background:#faf9fc;
    color:#5f5968;
    font-size:11px;
    font-weight:600;
}

.stack-items .stack:hover{
    color:var(--purple);
    border-color:#d8c8f5;
    background:var(--purple-light);
}

@media(max-width:800px){

    .stack-grid{
        grid-template-columns:1fr;
    }

}


/* =========================
   Contact
========================= */

.contact-box{
    position:relative;
    overflow:hidden;

    padding:70px 60px;

    border-radius:24px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(108,43,217,.18),
            transparent 30%
        ),
        #17151d;

    color:#fff;
}

.contact-box .section-label{
    color:#a987ff;
}

.contact-box h2{
    margin:18px 0 20px;

    font-size:clamp(42px,6vw,72px);
    line-height:1.02;
    letter-spacing:-2px;
}

.contact-box h2 span{
    color:#a987ff;
}

.contact-box p{
    max-width:620px;

    margin-bottom:30px;

    color:#b9b4c1;

    font-size:16px;
}

.contact-box .contact-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.contact-box .btn{
    display:inline-flex;
    align-items:center;
    gap:18px;
}

.contact-box .btn span{
    font-size:18px;
}

.contact-box .btn:not(.btn-primary){
    color:#fff;
    border-color:#45404d;
    background:rgba(255,255,255,.04);
}

.contact-box .btn:not(.btn-primary):hover{
    border-color:#8060d4;
    background:rgba(108,43,217,.12);
}

@media(max-width:700px){

    .contact-box{
        padding:45px 28px;
        border-radius:20px;
    }

    .contact-box h2{
        font-size:42px;
        letter-spacing:-1px;
    }

}


/* =========================
   Skill Icons
========================= */

.stack-items .stack.stack-icon{
    display:inline-flex;
    align-items:center;
    gap:9px;

    width:auto;
    min-height:42px;

    padding:9px 13px;

    background:#fff;
}

.stack-items .stack.stack-icon img{
    width:22px;
    height:22px;

    object-fit:contain;

    flex:none;
}

.stack-items .stack.stack-icon span{
    line-height:1;
}

.stack-items .stack-icon .api-symbol,
.stack-items .stack-icon .tool-symbol{
    width:22px;
    height:22px;

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

    border-radius:6px;

    background:var(--purple-light);
    color:var(--purple);

    font-size:11px;
    font-weight:800;
}

.stack-items .stack.stack-icon:hover{
    transform:translateY(-2px);
    border-color:#d8c8f5;
    background:#faf8ff;
    box-shadow:0 6px 16px rgba(108,43,217,.08);
}


/* Real tool icons */

.stack-items .stack.stack-icon img{
    width:22px;
    height:22px;
    object-fit:contain;
    display:block;
    flex:none;
}

.stack-items .stack.stack-icon .responsive-icon{
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    background:#f2edff;
    color:#6C2BD9;
    font-size:17px;
    font-weight:800;
    line-height:1;
}


/* =========================
   Hero Visual
========================= */

.hero .container{
    position:relative;
    z-index:2;
}

.hero-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(380px,520px);
    align-items:center;
    gap:55px;
}

.hero-content{
    max-width:720px;
}

.hero-visual{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image-frame{
    position:relative;
    width:100%;
    max-width:500px;
    border-radius:28px;
    overflow:hidden;
    isolation:isolate;
}

.hero-image-frame img{
    display:block;
    width:100%;
    height:auto;
    position:relative;
    z-index:2;
    object-fit:cover;
}

.hero-image-glow{
    position:absolute;
    width:320px;
    height:320px;
    right:-100px;
    top:-80px;
    background:rgba(108,43,217,.20);
    filter:blur(90px);
    border-radius:50%;
    z-index:1;
}

.hero-visual:after{
    content:"";
    position:absolute;
    width:70%;
    height:70%;
    right:5%;
    bottom:0;
    border:1px solid rgba(108,43,217,.12);
    border-radius:30px;
    transform:rotate(5deg);
    z-index:-1;
}

@media(max-width:900px){

    .hero-layout{
        grid-template-columns:1fr;
        gap:45px;
    }

    .hero-content{
        max-width:850px;
    }

    .hero-visual{
        justify-content:flex-start;
    }

    .hero-image-frame{
        max-width:460px;
    }

}

@media(max-width:550px){

    .hero-layout{
        gap:35px;
    }

    .hero-image-frame{
        max-width:100%;
        border-radius:20px;
    }

}

