@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
    --bg:#050505;
    --card:#0b0b0d;
    --white:#fff;
    --muted:#777;
    --line:rgba(255,255,255,.1);
    --purple:#8b5cf6;
    --cyan:#22d3ee;
    --pink:#ec4899;
    --mx:50%;
    --my:50%;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--white);
    font-family:Inter,sans-serif;
    overflow-x:hidden;
    transition:background .5s,color .5s;
}

body.light{
    --bg:#f4f4f7;
    --card:#fff;
    --white:#111;
    --muted:#555;
    --line:rgba(0,0,0,.12);
}

body::-webkit-scrollbar{
    width:6px;
}

body::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--purple),var(--cyan));
    border-radius:20px;
}

a{
    color:inherit;
    text-decoration:none;
}

button{
    font-family:inherit;
    cursor:pointer;
}

::selection{
    background:var(--purple);
    color:#fff;
}


/* LOADER */

.loader{
    position:fixed;
    inset:0;
    z-index:99999;
    background:#050505;
    display:grid;
    place-items:center;
    align-content:center;
    transition:.8s;
}

.loader.hide{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.loader-logo{
    font-family:"Space Grotesk";
    font-size:clamp(50px,10vw,120px);
    font-weight:700;
    letter-spacing:-.08em;
}

.loader-logo span,
.logo span,
footer span{
    color:var(--purple);
}

.loader-line{
    width:230px;
    height:2px;
    background:#222;
    margin:25px auto 15px;
    overflow:hidden;
}

.loader-line span{
    display:block;
    height:100%;
    width:100%;
    background:linear-gradient(90deg,var(--purple),var(--cyan));
    animation:load 1.3s infinite;
}

.loader p{
    color:#555;
    font-size:9px;
    letter-spacing:.2em;
}

@keyframes load{
    from{transform:translateX(-100%)}
    to{transform:translateX(100%)}
}


/* BACKGROUND */

.noise{
    position:fixed;
    inset:0;
    z-index:20;
    pointer-events:none;
    opacity:.035;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#particles{
    position:fixed;
    inset:0;
    z-index:-3;
    pointer-events:none;
}

.cursor-glow{
    position:fixed;
    left:var(--mx);
    top:var(--my);
    width:500px;
    height:500px;
    transform:translate(-50%,-50%);
    pointer-events:none;
    z-index:-1;
    border-radius:50%;
    background:radial-gradient(circle,rgba(124,58,237,.16),transparent 65%);
    transition:left .08s linear,top .08s linear;
}

.cursor-dot{
    position:fixed;
    width:7px;
    height:7px;
    left:0;
    top:0;
    border-radius:50%;
    background:white;
    pointer-events:none;
    z-index:10000;
    transform:translate(-50%,-50%);
    mix-blend-mode:difference;
}

.cursor-ring{
    position:fixed;
    width:35px;
    height:35px;
    left:0;
    top:0;
    border:1px solid rgba(255,255,255,.7);
    border-radius:50%;
    pointer-events:none;
    z-index:9999;
    transform:translate(-50%,-50%);
    transition:width .25s,height .25s,border-color .25s;
    mix-blend-mode:difference;
}

.cursor-ring.active{
    width:65px;
    height:65px;
    border-color:var(--cyan);
}

.trail-dot{
    position:fixed;
    width:5px;
    height:5px;
    border-radius:50%;
    pointer-events:none;
    z-index:9998;
    background:var(--purple);
    box-shadow:0 0 15px var(--purple);
}


/* SCROLL */

.scroll-progress{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:3px;
    z-index:99999;
}

.scroll-progress span{
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg,var(--purple),var(--cyan),var(--pink));
}


/* STATUS */

.system-status{
    position:fixed;
    left:25px;
    bottom:25px;
    z-index:1000;
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:30px;
    background:rgba(5,5,5,.6);
    backdrop-filter:blur(15px);
    font-size:8px;
    color:#888;
}

.system-status i{
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 15px #22c55e;
    margin-right:5px;
}


/* THEME */

.theme-toggle,
.back-top{
    position:fixed;
    right:25px;
    z-index:1000;
    width:43px;
    height:43px;
    border:1px solid var(--line);
    border-radius:13px;
    background:rgba(10,10,10,.7);
    backdrop-filter:blur(20px);
    color:white;
    transition:.3s;
}

.theme-toggle{
    bottom:80px;
}

.back-top{
    bottom:25px;
    opacity:0;
    pointer-events:none;
}

.back-top.show{
    opacity:1;
    pointer-events:auto;
}

.theme-toggle:hover,
.back-top:hover{
    transform:translateY(-5px) rotate(8deg);
    border-color:var(--purple);
}


/* NAV */

.navbar{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:min(1150px,calc(100% - 40px));
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:13px 17px;
    border:1px solid var(--line);
    border-radius:18px;
    background:rgba(5,5,5,.7);
    backdrop-filter:blur(25px);
}

.logo{
    font-family:"Space Grotesk";
    font-size:21px;
    font-weight:700;
}

.navbar nav{
    display:flex;
    gap:30px;
}

.navbar nav a{
    color:#888;
    font-size:12px;
    transition:.3s;
}

.navbar nav a:hover{
    color:white;
}

.nav-btn{
    color:#000;
    background:white;
    padding:10px 15px;
    border-radius:10px;
    font-size:11px;
    font-weight:700;
}

.menu-btn{
    display:none;
}


/* HERO */

.hero{
    min-height:100vh;
    padding:150px 5% 100px;
    display:flex;
    align-items:center;
    position:relative;
}

.hero-grid{
    position:absolute;
    inset:0;
    opacity:.18;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
    background-size:80px 80px;
    mask-image:linear-gradient(black,transparent);
}

.hero-content{
    width:min(1200px,100%);
    margin:auto;
    display:grid;
    grid-template-columns:1fr .8fr;
    align-items:center;
    gap:70px;
}

.available{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid var(--line);
    padding:8px 13px;
    border-radius:50px;
    color:#aaa;
    font-size:11px;
    margin-bottom:25px;
}

.available i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 15px #22c55e;
}

.hero h1{
    font-family:"Space Grotesk";
    font-size:clamp(70px,9vw,145px);
    line-height:.78;
    letter-spacing:-.09em;
}

.hero h1 span{
    background:linear-gradient(110deg,#fff,var(--purple),var(--cyan),#fff);
    background-size:300%;
    color:transparent;
    -webkit-background-clip:text;
    animation:gradient 5s linear infinite;
}

@keyframes gradient{
    to{background-position:300%}
}

.typing{
    margin-top:30px;
    color:var(--cyan);
    font-family:monospace;
    font-size:15px;
}

.typing b{
    animation:blink .7s infinite;
}

@keyframes blink{
    50%{opacity:0}
}

.hero-text>p{
    max-width:600px;
    margin-top:25px;
    color:#888;
    line-height:1.8;
    font-size:14px;
}

.hero-text strong{
    color:var(--white);
}

.hero-buttons{
    display:flex;
    gap:10px;
    margin-top:30px;
}

.btn{
    padding:14px 20px;
    border-radius:12px;
    font-size:12px;
    font-weight:700;
    transition:.3s;
    position:relative;
    overflow:hidden;
}

.btn.primary{
    color:#000;
    background:white;
}

.btn.secondary{
    border:1px solid var(--line);
}

.btn:hover{
    transform:translateY(-4px) scale(1.02);
}

.hero-stats{
    display:flex;
    gap:35px;
    margin-top:45px;
}

.hero-stats div{
    display:flex;
    flex-direction:column;
}

.hero-stats strong{
    font-family:"Space Grotesk";
    font-size:25px;
}

.hero-stats span{
    color:#555;
    font-size:9px;
    margin-top:3px;
}


/* TERMINAL */

.hero-terminal{
    margin-top:35px;
    width:min(500px,100%);
    border:1px solid var(--line);
    border-radius:15px;
    overflow:hidden;
    background:rgba(0,0,0,.45);
    box-shadow:0 20px 80px rgba(0,0,0,.35);
}

.terminal-header{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 14px;
    border-bottom:1px solid var(--line);
    color:#555;
    font-size:9px;
}

.terminal-dots{
    display:flex;
    gap:5px;
}

.terminal-dots i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#ff5f56;
}

.terminal-dots i:nth-child(2){background:#ffbd2e}
.terminal-dots i:nth-child(3){background:#27c93f}

.terminal-body{
    padding:17px;
    font-family:monospace;
    font-size:11px;
    line-height:2;
    color:#aaa;
}

.terminal-body b{
    color:#c084fc;
}

.terminal-body em{
    color:#22d3ee;
    font-style:normal;
}

.terminal-body .success{
    color:#22c55e;
}


/* PHOTO */

.hero-photo-area{
    position:relative;
    width:min(500px,100%);
    margin:auto;
}

.photo-card{
    position:relative;
    aspect-ratio:.82;
    overflow:hidden;
    border-radius:30px;
    border:1px solid var(--line);
    background:
        radial-gradient(circle at var(--mx) var(--my),
        rgba(139,92,246,.35),
        transparent 30%),
        #090909;
    box-shadow:0 50px 100px rgba(0,0,0,.7);
    transform-style:preserve-3d;
    transition:transform .15s ease;
}

.photo-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:1s;
}

.photo-card:hover img{
    transform:scale(1.07);
}

.photo-placeholder{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    align-content:center;
    background:
        radial-gradient(circle at center,
        rgba(139,92,246,.3),
        transparent 45%);
}

.photo-placeholder span{
    font-family:"Space Grotesk";
    font-size:180px;
    font-weight:700;
    color:rgba(255,255,255,.07);
}

.photo-placeholder small{
    color:#555;
    letter-spacing:.3em;
}

.photo-gradient{
    position:absolute;
    inset:0;
    background:linear-gradient(transparent 40%,rgba(0,0,0,.85));
}

.photo-info{
    position:absolute;
    bottom:20px;
    left:20px;
}

.photo-info small{
    color:#aaa;
    font-size:8px;
}

.photo-info h3{
    margin-top:6px;
    font-family:"Space Grotesk";
    font-size:16px;
}

.floating-card{
    position:absolute;
    right:-25px;
    top:50px;
    z-index:2;
    padding:14px 17px;
    background:rgba(10,10,10,.7);
    backdrop-filter:blur(20px);
    border:1px solid var(--line);
    border-radius:14px;
    animation:float 4s ease-in-out infinite;
}

.floating-card small{
    display:block;
    color:#555;
    font-size:8px;
}

.floating-card strong{
    display:block;
    margin-top:4px;
    font-size:10px;
}

@keyframes float{
    50%{transform:translateY(-12px)}
}

.photo-orbit{
    position:absolute;
    border:1px solid rgba(139,92,246,.15);
    border-radius:50%;
    pointer-events:none;
}

.orbit-1{inset:-35px}
.orbit-2{inset:-70px}


/* MARQUEE */

.marquee{
    overflow:hidden;
    padding:18px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

.marquee-track{
    display:flex;
    width:max-content;
    animation:marquee 25s linear infinite;
}

.marquee span{
    color:#444;
    font-family:"Space Grotesk";
    font-size:12px;
    margin:0 25px;
    white-space:nowrap;
}

.marquee b{
    color:var(--purple);
}

@keyframes marquee{
    to{transform:translateX(-50%)}
}


/* SECTION */

.section{
    width:min(1150px,calc(100% - 40px));
    margin:auto;
    padding:140px 0;
}

.section-label{
    color:var(--purple);
    font-size:9px;
    letter-spacing:.2em;
    font-weight:700;
    margin-bottom:20px;
}

.section h2{
    max-width:850px;
    font-family:"Space Grotesk";
    font-size:clamp(45px,6vw,85px);
    line-height:.9;
    letter-spacing:-.07em;
}

.section h2 span{
    color:#555;
}


/* REVEAL */

.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:1s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible{
    opacity:1;
    transform:none;
}


/* ABOUT */

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    margin-top:70px;
}

.about-text p{
    color:#888;
    font-size:14px;
    line-height:1.9;
    margin-bottom:20px;
}

.about-text strong{
    color:var(--white);
}

.info-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.info-card{
    min-height:180px;
    padding:23px;
    position:relative;
    border:1px solid var(--line);
    background:
        radial-gradient(circle at var(--mx) var(--my),
        rgba(139,92,246,.2),
        transparent 35%),
        rgba(255,255,255,.025);
    border-radius:20px;
    transition:.3s;
    transform-style:preserve-3d;
}

.info-card:hover{
    border-color:rgba(139,92,246,.5);
}

.info-card>span{
    position:absolute;
    right:20px;
    color:#333;
    font-size:10px;
}

.info-card>div{
    font-size:25px;
    margin-top:25px;
}

.info-card h3{
    margin-top:25px;
    font-size:13px;
}

.info-card p{
    color:#555;
    font-size:10px;
    margin-top:7px;
}


/* SKILLS */

.skills-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-top:70px;
}

.skill-card{
    min-height:260px;
    padding:28px;
    border:1px solid var(--line);
    border-radius:24px;
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at var(--mx) var(--my),
        rgba(255,255,255,.09),
        transparent 32%),
        var(--card);
    transition:.3s;
    transform-style:preserve-3d;
}

.skill-card:hover{
    transform:translateY(-5px);
}

.skill-icon{
    margin-top:50px;
    font-family:"Space Grotesk";
    font-size:27px;
    font-weight:700;
}

.skill-card h3{
    margin-top:10px;
    font-family:"Space Grotesk";
    font-size:21px;
}

.skill-card p{
    color:#666;
    margin-top:8px;
    font-size:11px;
    line-height:1.6;
}

.orange:hover{border-color:#f97316}
.blue:hover{border-color:#3b82f6}
.yellow:hover{border-color:#facc15}
.purple:hover{border-color:var(--purple)}
.cyan:hover{border-color:var(--cyan)}
.pink:hover{border-color:#ec4899}

.skill-progress{
    margin-top:20px;
}

.skill-progress>div:first-child{
    display:flex;
    justify-content:space-between;
    color:#555;
    font-size:8px;
}

.skill-progress b{
    color:var(--white);
}

.skill-bar{
    height:3px;
    background:#1b1b1b;
    margin-top:7px;
    overflow:hidden;
    border-radius:10px;
}

.skill-bar i{
    display:block;
    width:var(--level);
    height:100%;
    background:linear-gradient(90deg,var(--purple),var(--cyan));
    animation:skillLoad 1.5s ease;
}

@keyframes skillLoad{
    from{width:0}
}


/* TIMELINE */

.timeline{
    margin-top:70px;
    border-left:1px solid var(--line);
}

.timeline-item{
    padding:0 0 60px 45px;
    position:relative;
}

.timeline-item::before{
    content:"";
    position:absolute;
    left:-5px;
    top:2px;
    width:9px;
    height:9px;
    border-radius:50%;
    background:var(--purple);
    box-shadow:0 0 20px var(--purple);
}

.timeline-item>span{
    color:var(--purple);
    font-family:monospace;
    font-size:9px;
}

.timeline-item h3{
    margin:10px 0;
    font-family:"Space Grotesk";
    font-size:25px;
}

.timeline-item p{
    max-width:650px;
    color:#666;
    font-size:12px;
    line-height:1.7;
}


/* PROJECTS */

.project-filter{
    display:flex;
    gap:8px;
    margin-top:50px;
}

.filter-btn{
    border:1px solid var(--line);
    background:transparent;
    color:#777;
    padding:9px 15px;
    border-radius:30px;
    font-size:10px;
    transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
    color:#fff;
    background:var(--purple);
    border-color:var(--purple);
}

.projects-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin-top:25px;
}

.project-card{
    min-height:350px;
    padding:30px;
    border:1px solid var(--line);
    border-radius:25px;
    background:
        radial-gradient(circle at var(--mx) var(--my),
        rgba(139,92,246,.25),
        transparent 35%),
        var(--card);
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    position:relative;
    overflow:hidden;
    transition:.3s;
    transform-style:preserve-3d;
}

.project-card:hover{
    border-color:rgba(139,92,246,.6);
}

.project-card.hide{
    display:none;
}

.project-top{
    position:absolute;
    left:30px;
    top:30px;
    right:30px;
    display:flex;
    justify-content:space-between;
}

.project-top small{
    color:#444;
}

.project-top span{
    color:#333;
    font-family:"Space Grotesk";
    font-size:12px;
}

.project-icon{
    font-size:50px;
    margin-bottom:20px;
    color:var(--purple);
    text-shadow:0 0 30px currentColor;
}

.project-card h3{
    font-family:"Space Grotesk";
    font-size:30px;
}

.project-card p{
    color:#666;
    font-size:11px;
    line-height:1.7;
    margin:10px 0 20px;
}

.project-tags i,
.modal-tags i{
    display:inline-block;
    padding:6px 9px;
    border:1px solid var(--line);
    border-radius:7px;
    color:#777;
    font-style:normal;
    font-size:8px;
    margin-right:4px;
}

.project-btn{
    width:max-content;
    margin-top:20px;
    border:0;
    background:white;
    color:#000;
    padding:11px 14px;
    border-radius:9px;
    font-size:10px;
    font-weight:700;
    transition:.25s;
}

.project-btn:hover{
    transform:translateY(-3px) scale(1.04);
    box-shadow:0 10px 35px rgba(255,255,255,.15);
}


/* U CARD */

.u-card{
    background:
        radial-gradient(circle at var(--mx) var(--my),
        rgba(255,255,255,.35),
        transparent 22%),
        linear-gradient(135deg,#fff,#999,#fff,#555,#fff);
    background-size:100% 100%,300% 300%;
    color:#000;
    animation:uGradient 7s ease infinite;
}

@keyframes uGradient{
    0%,100%{background-position:50% 50%,0 50%}
    50%{background-position:50% 50%,100% 50%}
}

.u-card h3{
    color:#000;
}

.u-card p{
    color:#333;
}

.u-card .project-top small,
.u-card .project-top span{
    color:#555;
}

.u-card .project-tags i{
    color:#222;
    border-color:rgba(0,0,0,.2);
}

.u-logo-big{
    font-family:"Space Grotesk";
    font-weight:700;
    font-size:100px;
    letter-spacing:-.1em;
    line-height:.8;
    margin-bottom:25px;
    transition:.2s;
}

.u-card:hover .u-logo-big{
    transform:translateZ(80px) rotate(-5deg) scale(1.08);
    text-shadow:
        10px 10px 0 rgba(139,92,246,.3),
        -10px -10px 0 rgba(34,211,238,.3);
}

.u-particles{
    position:absolute;
    inset:0;
    pointer-events:none;
}

.u-particle{
    position:absolute;
    width:4px;
    height:4px;
    border-radius:50%;
    background:#000;
    animation:uParticle 2s linear forwards;
}

@keyframes uParticle{
    from{
        transform:translate(0,0) scale(1);
        opacity:1;
    }
    to{
        transform:translate(var(--tx),var(--ty)) scale(0);
        opacity:0;
    }
}


/* MODAL */

.project-modal{
    position:fixed;
    inset:0;
    z-index:10000;
    background:rgba(0,0,0,.8);
    backdrop-filter:blur(20px);
    display:grid;
    place-items:center;
    padding:20px;
    opacity:0;
    pointer-events:none;
    transition:.35s;
}

.project-modal.active{
    opacity:1;
    pointer-events:auto;
}

.project-modal-box{
    width:min(600px,100%);
    padding:45px;
    border:1px solid var(--line);
    border-radius:28px;
    background:#0b0b0d;
    position:relative;
    transform:translateY(30px) scale(.95);
    transition:.35s;
}

.project-modal.active .project-modal-box{
    transform:none;
}

.modal-close{
    position:absolute;
    right:20px;
    top:20px;
    width:35px;
    height:35px;
    border:1px solid var(--line);
    border-radius:50%;
    background:transparent;
    color:#fff;
    font-size:20px;
}

#modalLabel{
    color:var(--purple);
    font-size:9px;
    letter-spacing:.2em;
}

.modal-icon{
    font-size:70px;
    color:var(--cyan);
    margin:25px 0;
}

.project-modal-box h3{
    font-family:"Space Grotesk";
    font-size:45px;
}

.project-modal-box>p{
    color:#777;
    line-height:1.8;
    font-size:13px;
    margin:15px 0 20px;
}

.modal-actions{
    display:flex;
    gap:10px;
    margin-top:30px;
}

.modal-demo,
.modal-back{
    padding:13px 18px;
    border-radius:10px;
    border:0;
    font-weight:700;
    font-size:11px;
}

.modal-demo{
    background:white;
    color:#000;
}

.modal-back{
    background:transparent;
    border:1px solid var(--line);
    color:#fff;
}


/* CONTACT */

.contact{
    width:min(1150px,calc(100% - 40px));
    min-height:600px;
    margin:50px auto 100px;
    border:1px solid var(--line);
    border-radius:35px;
    display:grid;
    place-items:center;
    text-align:center;
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at var(--mx) var(--my),
        rgba(124,58,237,.35),
        transparent 45%),
        rgba(255,255,255,.015);
}

.contact h2{
    margin-top:20px;
    font-family:"Space Grotesk";
    font-size:clamp(55px,8vw,110px);
    line-height:.8;
    letter-spacing:-.08em;
}

.contact h2 span{
    color:var(--purple);
}

.contact p{
    color:#666;
    margin:25px 0;
    font-size:12px;
}

.contact-btn{
    display:inline-block;
    color:#000;
    background:white;
    padding:14px 20px;
    border-radius:11px;
    font-weight:700;
    font-size:11px;
}


/* FOOTER */

footer{
    border-top:1px solid var(--line);
    padding:30px 5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#444;
    font-size:9px;
}

footer strong{
    color:var(--white);
}


/* RIPPLE */

.ripple{
    position:absolute;
    border-radius:50%;
    transform:scale(0);
    background:rgba(139,92,246,.5);
    animation:ripple .6s linear;
    pointer-events:none;
}

@keyframes ripple{
    to{
        transform:scale(5);
        opacity:0;
    }
}


/* MOBILE */

.mobile-menu{
    display:none;
}

@media(max-width:950px){

    .hero-content{
        grid-template-columns:1fr;
    }

    .hero-text{
        text-align:center;
    }

    .available,
    .hero-buttons{
        justify-content:center;
    }

    .hero-text>p{
        margin-left:auto;
        margin-right:auto;
    }

    .hero-stats{
        justify-content:center;
    }

    .hero-photo-area{
        width:min(500px,90%);
    }

    .about-grid{
        grid-template-columns:1fr;
    }

    .skills-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:650px){

    .cursor-dot,
    .cursor-ring,
    .trail-dot{
        display:none;
    }

    .navbar{
        width:calc(100% - 20px);
        top:10px;
    }

    .navbar nav,
    .nav-btn{
        display:none;
    }

    .menu-btn{
        display:flex;
        flex-direction:column;
        justify-content:center;
        gap:5px;
        width:40px;
        height:35px;
        border:1px solid var(--line);
        background:transparent;
        border-radius:9px;
    }

    .menu-btn span{
        width:17px;
        height:1px;
        background:white;
        margin:auto;
    }

    .mobile-menu{
        position:fixed;
        top:65px;
        left:10px;
        right:10px;
        z-index:999;
        display:flex;
        flex-direction:column;
        padding:20px;
        border:1px solid var(--line);
        border-radius:20px;
        background:rgba(5,5,5,.9);
        backdrop-filter:blur(25px);
        transform:translateY(-20px);
        opacity:0;
        pointer-events:none;
        transition:.3s;
    }

    .mobile-menu.active{
        transform:none;
        opacity:1;
        pointer-events:auto;
    }

    .mobile-menu a{
        padding:15px 5px;
        border-bottom:1px solid var(--line);
        color:#aaa;
        font-size:13px;
    }

    .hero{
        padding:120px 20px 70px;
    }

    .hero-content{
        gap:60px;
    }

    .hero h1{
        font-size:clamp(65px,20vw,100px);
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .hero-photo-area{
        width:90%;
    }

    .floating-card{
        right:-10px;
    }

    .photo-orbit{
        display:none;
    }

    .section{
        width:calc(100% - 30px);
        padding:90px 0;
    }

    .section h2{
        font-size:48px;
    }

    .info-grid{
        grid-template-columns:1fr 1fr;
    }

    .skills-grid,
    .projects-grid{
        grid-template-columns:1fr;
    }

    .project-filter{
        overflow-x:auto;
        padding-bottom:5px;
    }

    .contact{
        width:calc(100% - 20px);
        min-height:500px;
        margin-bottom:60px;
    }

    .contact h2{
        font-size:65px;
    }

    footer{
        flex-direction:column;
        gap:12px;
        text-align:center;
    }

    .system-status{
        display:none;
    }

    .theme-toggle{
        right:15px;
        bottom:75px;
    }

    .back-top{
        right:15px;
        bottom:20px;
    }

    .project-modal-box{
        padding:30px 22px;
    }

    .project-modal-box h3{
        font-size:35px;
    }
}

@media(max-width:380px){

    .hero h1{
        font-size:60px;
    }

    .section h2{
        font-size:42px;
    }

    .info-grid{
        grid-template-columns:1fr;
    }

    .contact h2{
        font-size:52px;
    }
}
