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

html{
    scroll-behavior:smooth;
}

body{
    background:#050713;
    color:#fff;
    font-family:Arial, sans-serif;
    overflow-x:hidden;
}

/* HEADER */
.header{
    width:100%;
    height:78px;
    padding:0 7%;
    position:fixed;
    top:0;
    left:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:rgba(5,7,19,.76);
    backdrop-filter:blur(22px);
    border-bottom:1px solid rgba(0,255,179,.14);
}

.logo{
    color:#fff;
    text-decoration:none;
    font-size:29px;
    font-weight:900;
    letter-spacing:-1px;
}

.logo span{
    color:#00ffb3;
    text-shadow:0 0 22px rgba(0,255,179,.75);
}

.nav{
    display:flex;
    align-items:center;
    gap:58px;
}

.nav a{
    color:#e2e5f5;
    text-decoration:none;
    font-size:15px;
    font-weight:700;
    position:relative;
}

.nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-9px;
    width:0;
    height:2px;
    background:linear-gradient(90deg,#00ffb3,#00d0ff);
    box-shadow:0 0 16px rgba(0,255,179,.8);
    transition:.3s;
}

.nav a:hover::after{
    width:100%;
}

.menu-btn{
    display:none;
    border:none;
}

/* HERO */
.hero{
    min-height:100vh;
    padding:150px 7% 80px;
    display:grid;
    grid-template-columns:1.12fr .88fr;
    align-items:center;
    gap:70px;
    position:relative;
    overflow:hidden;

    background:
        radial-gradient(circle at 12% 20%, rgba(0,255,179,.18), transparent 35%),
        radial-gradient(circle at 88% 25%, rgba(0,208,255,.15), transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(0,255,179,.08), transparent 45%),
        #050713;
}



.hero::before{
    content:"</>";
    position:absolute;
    right:7%;
    top:17%;
    font-size:180px;
    font-weight:900;
    color:rgba(0,255,179,.035);
    z-index:0;
}

.hero::after{
    content:"{ handcrafted web experiences }";
    position:absolute;
    left:7%;
    bottom:34px;
    color:rgba(255,255,255,.08);
    font-size:14px;
    letter-spacing:2px;
}

#particleCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:1;
    pointer-events:none;
    opacity:.78;
}

.hero-content,
.hero-card{
    position:relative;
    z-index:2;
}

.hero-content{
    max-width:730px;
    animation:heroFade .9s ease forwards;
}

.hero-content::before{
    content:"";
    position:absolute;
    left:-24px;
    top:8px;
    width:4px;
    height:95%;
    background:linear-gradient(#00ffb3, transparent);
    border-radius:40px;
    box-shadow:0 0 25px rgba(0,255,179,.55);
}

.small-title{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#00ffb3;
    font-size:13px;
    font-weight:800;
    letter-spacing:1.8px;
    margin-bottom:22px;
    text-transform:uppercase;
    padding:10px 16px;
    border-radius:40px;
    border:1px solid rgba(0,255,179,.2);
    background:rgba(0,255,179,.045);
}

.small-title::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:#00ffb3;
    box-shadow:0 0 18px #00ffb3;
}

.hero h1{
    font-size:clamp(44px,5vw,76px);
    line-height:1.08;
    font-weight:900;
    letter-spacing:-2.5px;
    text-wrap:balance;
}

.hero h1 span{
    color:#00ffb3;
    text-shadow:
        0 0 18px rgba(0,255,179,.75),
        0 0 52px rgba(0,255,179,.34);
}

.hero-text{
    margin-top:26px;
    max-width:590px;
    color:#c2c6d8;
    font-size:16px;
    line-height:1.9;
    border-left:1px solid rgba(0,255,179,.28);
    padding-left:18px;
}

.hero-buttons{
    margin-top:38px;
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}

.primary-btn,
.outline-btn{
    min-width:190px;
    height:56px;
    padding:0 30px;
    border-radius:17px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:15px;
    font-weight:900;
    transition:.3s ease;
}

.primary-btn{
    background:linear-gradient(135deg,#00ffb3,#00d0ff);
    color:#04100e;
    box-shadow:
        0 18px 48px rgba(0,255,179,.32),
        inset 0 1px 0 rgba(255,255,255,.45);
}

.outline-btn{
    color:#fff;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(0,255,179,.45);
    backdrop-filter:blur(14px);
}

.primary-btn:hover,
.outline-btn:hover{
    transform:translateY(-5px);
    box-shadow:0 24px 58px rgba(0,255,179,.28);
}

/* CODE CARD */
.hero-card{
    width:100%;
    max-width:470px;
    justify-self:end;
    animation:floatCode 4.5s ease-in-out infinite;
}

.code-window{
    position:relative;
    overflow:hidden;
    padding:26px;
    padding-top:62px;
    border-radius:28px;
    background:linear-gradient(180deg, rgba(17,20,38,.94), rgba(6,8,20,.97));
    backdrop-filter:blur(22px);
    border:1px solid rgba(0,255,179,.24);
    box-shadow:
        0 30px 95px rgba(0,0,0,.58),
        0 0 70px rgba(0,255,179,.14),
        inset 0 0 35px rgba(255,255,255,.035);
}

.code-window::before{
    content:"portfolio.js";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#8f94aa;
    font-size:13px;
    background:rgba(255,255,255,.035);
    border-bottom:1px solid rgba(255,255,255,.06);
}

.code-window::after{
    content:"";
    position:absolute;
    width:170px;
    height:170px;
    right:-70px;
    bottom:-80px;
    background:#00ffb3;
    filter:blur(95px);
    opacity:.18;
}

.dots{
    position:absolute;
    top:16px;
    left:22px;
    display:flex;
    gap:9px;
    z-index:3;
}

.dots i{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#ff5f56;
    box-shadow:0 0 14px rgba(255,95,86,.65);
}

.dots i:nth-child(2){
    background:#ffbd2e;
    box-shadow:0 0 14px rgba(255,189,46,.65);
}

.dots i:nth-child(3){
    background:#00ffb3;
    box-shadow:0 0 14px rgba(0,255,179,.8);
}

.code-window pre{
    color:#e8eaf5;
    font-size:15px;
    line-height:1.9;
    white-space:pre-wrap;
    position:relative;
    z-index:2;
}

.code-window pre::after{
    content:"|";
    color:#00ffb3;
    animation:blinkCursor .8s infinite;
}

.green{
    color:#00ffb3;
}

.cyan{
    color:#42e8ff;
}

/* MOBILE */
@media(max-width:768px){

    .header{
        height:72px;
        padding:0 18px;
        background:rgba(5,7,19,.96);
        border-bottom:1px solid rgba(0,255,179,.14);
        box-shadow:0 8px 35px rgba(0,0,0,.35);
    }

    .logo{
        font-size:22px;
    }

    .menu-btn{
        width:46px;
        height:46px;
        display:flex;
        flex-direction:column;
        justify-content:center;
        gap:6px;
        padding:10px;
        border-radius:17px;
        cursor:pointer;
        background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
        border:1px solid rgba(0,255,179,.25);
        box-shadow:0 0 28px rgba(0,255,179,.14);
    }

    .menu-btn span{
        width:100%;
        height:2.5px;
        background:#fff;
        border-radius:30px;
        transition:.3s;
    }

    .menu-btn.active span:nth-child(1){
        transform:translateY(8.5px) rotate(45deg);
    }

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

    .menu-btn.active span:nth-child(3){
        transform:translateY(-8.5px) rotate(-45deg);
    }

    .nav{
        position:fixed;
        top:84px;
        left:16px;
        right:16px;
        display:none;
        flex-direction:column;
        gap:10px;
        padding:14px;
        border-radius:24px;
        background:rgba(10,12,26,.97);
        border:1px solid rgba(0,255,179,.18);
        backdrop-filter:blur(22px);
        box-shadow:0 35px 90px rgba(0,0,0,.62);
    }

    .nav.active{
        display:flex;
        animation:mobileMenu .28s ease forwards;
    }

    .nav a{
        width:100%;
        padding:16px 18px;
        border-radius:16px;
        background:rgba(255,255,255,.045);
        color:#fff;
        font-size:15px;
    }

    .nav a::after{
        display:none;
    }

    .hero{
        min-height:auto;
        padding:112px 18px 54px;
        grid-template-columns:1fr;
        gap:30px;
        align-items:flex-start;
        background:
            linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
            radial-gradient(circle at 10% 12%, rgba(0,255,179,.20), transparent 36%),
            radial-gradient(circle at 90% 28%, rgba(0,208,255,.14), transparent 38%),
            #050713;
        background-size:32px 32px,32px 32px,auto,auto,auto;
    }

    .hero::before{
        content:"</>";
        font-size:86px;
        right:-14px;
        top:96px;
        opacity:.9;
    }

    .hero::after,
    .hero-content::before{
        display:none;
    }

    .small-title{
        font-size:10.5px;
        letter-spacing:1.2px;
        margin-bottom:16px;
        padding:9px 12px;
    }

    .hero h1{
        font-size:39px;
        line-height:1.07;
        letter-spacing:-1.4px;
    }

    .hero-text{
        margin-top:18px;
        max-width:100%;
        font-size:14.8px;
        line-height:1.8;
        color:#d0d3e3;
        padding-left:14px;
    }

    .hero-buttons{
        width:100%;
        margin-top:28px;
        flex-direction:column;
        gap:13px;
    }

    .primary-btn,
    .outline-btn{
        width:100%;
        height:58px;
        border-radius:18px;
    }

    .primary-btn{
        box-shadow:0 18px 45px rgba(0,255,179,.34);
    }

    .outline-btn{
        background:rgba(255,255,255,.055);
    }

    .hero-card{
        max-width:100%;
        width:100%;
        justify-self:start;
        animation:floatCodeMobile 4s ease-in-out infinite;
    }

    .code-window{
        padding:18px;
        padding-top:58px;
        border-radius:24px;
        box-shadow:
            0 25px 75px rgba(0,0,0,.55),
            0 0 48px rgba(0,255,179,.12);
    }

    .code-window pre{
        font-size:12.2px;
        line-height:1.75;
        overflow-x:auto;
    }

    #particleCanvas{
        opacity:.55;
    }
}

@media(max-width:390px){
    .hero h1{
        font-size:34px;
    }

    .logo{
        font-size:20px;
    }

    .code-window pre{
        font-size:11.5px;
    }
}


/* ========================= */
/* SKILLS SECTION */
/* ========================= */

.skills-section{
    padding:110px 7%;
    background:#070912;
    overflow:hidden;
}

.skills-top{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
    margin-bottom:90px;
}

.skills-info h2{
    font-size:42px;
    margin-bottom:18px;
}

.skills-info h2 span{
    color:#00ffb3;
}

.skills-info p{
    color:#aeb3c7;
    max-width:450px;
    line-height:1.9;
}

.skill-cloud{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
}

.skill-cloud span{
    padding:12px 18px;
    border-radius:40px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(0,255,179,.15);

    color:#fff;

    transition:.3s;
}

.skill-cloud span:hover{
    transform:translateY(-4px);
    border-color:#00ffb3;
}

/* ========================= */
/* LAPTOP AREA */
/* ========================= */

.laptop-area{
    display:grid;
    grid-template-columns:62% 38%;
    align-items:center;
    gap:70px;
}

.macbook-wrap{
    width:100%;
    display:flex;
    justify-content:flex-start;
    perspective:2000px;
}

.macbook{
    width:100%;
    max-width:820px;
    position:relative;
    transform-style:preserve-3d;
    opacity:0;
    transform:translateY(120px);
}

.macbook.animate-mac{
    animation:macRise .9s ease forwards;
}

.macbook-screen{
    width:100%;
    aspect-ratio:16/10;
    position:relative;
    overflow:hidden;
    border-radius:24px 24px 10px 10px;
    border:10px solid #232733;
    background:#000;
    box-shadow:0 50px 120px rgba(0,0,0,.65);
    transform-origin:bottom center;
    transform:perspective(2000px) rotateX(-95deg);
}

.macbook.animate-mac .macbook-screen{
    animation:macBookOpen 2.6s cubic-bezier(.22,1,.36,1) .35s forwards;
}

.screen-wallpaper{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.screen-reflection{
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(255,255,255,.18), transparent 30%);
    pointer-events:none;
}

.macbook-notch{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:120px;
    height:20px;
    background:#050505;
    border-radius:0 0 12px 12px;
    z-index:20;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.05),
        0 2px 8px rgba(0,0,0,.5);
}

.macbook-base{
    width:108%;
    height:28px;
    margin-left:-4%;
    background:linear-gradient(180deg,#f0f2f5 0%,#d8dde5 20%,#aab2be 100%);
    border-radius:0 0 45px 45px;
    box-shadow:0 25px 50px rgba(0,0,0,.4);
}

.service-list{
    display:flex;
    flex-direction:column;
    gap:55px;
}

.service-card{
    transition:.3s;
}

.service-card:hover{
    transform:translateX(8px);
}

.service-card h3{
    color:#fff;
    font-size:24px;
    margin-bottom:12px;
}

.service-card p{
    color:#aeb3c7;
    line-height:1.8;
    max-width:280px;
}

.service-card:hover h3{
    color:#00ffb3;
}

@keyframes macRise{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes macBookOpen{
    0%{
        transform:perspective(2000px) rotateX(-95deg);
    }

    65%{
        transform:perspective(2000px) rotateX(8deg);
    }

    100%{
        transform:perspective(2000px) rotateX(0deg);
    }
}

@media(max-width:900px){
    .skills-top{
        grid-template-columns:1fr;
        gap:40px;
    }

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

    .macbook{
        max-width:100%;
    }

    .macbook-screen{
        border-width:6px;
        border-radius:18px 18px 8px 8px;
    }

    .macbook-notch{
        width:80px;
        height:14px;
    }

    .macbook-base{
        height:18px;
        border-radius:0 0 30px 30px;
    }

    .service-list{
        gap:25px;
    }

    .service-card{
        padding:20px;
        border-radius:18px;
        background:rgba(255,255,255,.03);
        border:1px solid rgba(255,255,255,.08);
    }

    .service-card h3{
        font-size:20px;
    }

    .service-card p{
        max-width:100%;
    }
}


.projects-section{
    padding:95px 7%;
    background:#1b1c25;
    display:grid;
    grid-template-columns:35% 65%;
    align-items:center;
    gap:50px;
    overflow:hidden;
}

.projects-left h2{
    color:#fff;
    font-size:38px;
    line-height:1.22;
    margin-bottom:28px;
}

.see-more-btn,
.contact-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:150px;
    height:48px;
    color:#fff;
    text-decoration:none;
    border:1px solid rgba(0,255,179,.55);
    background:rgba(0,255,179,.04);
    border-radius:4px;
    transition:.3s;
}

.see-more-btn:hover,
.contact-btn:hover{
    background:#00ffb3;
    color:#06110e;
    box-shadow:0 0 35px rgba(0,255,179,.35);
    transform:translateY(-4px);
}

.projects-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

.project-card{
    height:170px;
    border-radius:8px;
    overflow:hidden;
    background:#111;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    transition:.35s;
}

.project-card.big{
    height:190px;
}

.project-card.wide{
    grid-column:span 2;
    height:185px;
}

.project-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.45s;
}

.project-card:hover{
    transform:translateY(-8px) scale(1.02);
    border-color:rgba(0,255,179,.35);
}

.project-card:hover img{
    transform:scale(1.08);
}

.contact-section{
    min-height:340px;
    padding:95px 7%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0,255,179,.08), transparent 35%),
        #080910;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.contact-mini{
    color:#00ffb3;
    margin-bottom:16px;
    letter-spacing:1px;
}

.contact-section h2{
    color:#fff;
    font-size:46px;
    line-height:1.15;
}

/* Mobile */
@media(max-width:768px){
    .projects-section{
        padding:75px 20px;
        grid-template-columns:1fr;
        gap:38px;
    }

    .projects-left h2{
        font-size:30px;
    }

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

    .project-card,
    .project-card.big,
    .project-card.wide{
        grid-column:auto;
        height:210px;
    }

    .see-more-btn{
        width:100%;
        height:54px;
    }

    .contact-section{
        padding:75px 20px;
        min-height:320px;
        flex-direction:column;
        align-items:flex-start;
    }

    .contact-section h2{
        font-size:36px;
    }

    .contact-btn{
        width:100%;
        height:54px;
    }
}