
  html, body { width: 100%; overflow-x: hidden; }
  html { scroll-padding-top: 70px; }
  body { padding-top: 70px; }

/* Keep header visible while scrolling */
nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 999;height: 90px; }

/* Desktop nav links */
.quick {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
   
}

.quick::-webkit-scrollbar {
    display: none;
}

/* Mobile / zoomed view: hide desktop links and show sidenav toggle */
nav.nav--mobile .quick { display: none; }
nav.nav--mobile .hamburger { display: block; }

/* Default: hide hamburger, show desktop nav */
.hamburger { display: none; cursor: pointer; font-size: 24px; position: absolute; top: 20px; right: 20px; z-index: 1001; }
.sidenav { position: fixed; top: 0; left: -250px; width: 250px; height: 100%; background: #333; transition: left 0.3s; z-index: 1000; }
.sidenav.open { left: 0; }
.sidenav-content { padding: 20px; }
.sidenav a { display: block; color: white; text-decoration: none; margin: 10px 0; transition: 0.3s; }
.sidenav a:hover { color: #22c55e; padding-left: 10px; }
.sidenav .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; }
.sidenav button { margin-top: 20px; }

/* Fix extra space on mobile */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial;

    }

    body{
    background:#f5f5f5;
    color:#d6bdd6;
    transition:.3s;
    overflow-x:hidden;
    margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
    }
    
    /* 3D HERO CARD */
    .hero-card{
      transform-style: preserve-3d;
      transition: transform 0.2s;
      cursor: pointer;
    }
    
    /* GRADIENT TEXT */
    .gradient{
      background: linear-gradient(90deg,#22c55e,#3b82f6,#22c55e);
      background-size: 200%;
      -webkit-background-clip: text;
      color: transparent;
      animation: gradientMove 4s linear infinite;
    }
    
    @keyframes gradientMove{
      0%{background-position:0%}
      100%{background-position:200%}
    }
    
    /* DARK MODE */
    
    .dark{
    background:#020617;
    color:white;
    }
    
    .dark nav{
    background:#020617;
    }
    
    .dark input,
    .dark textarea{
    background:#0f172a;
    color:white;
    border:1px solid #334155;
    }
    
    /* LOADER */
    
    

    

    #loader {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;  
        background: #000000;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s ease;
      }
      

    
    
    /* MATRIX BACKGROUND */
    
    #matrix{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    background:#000;
    }
   

    
    /* CURSOR GLOW */
    
    #cursor{
    position:fixed;
    width:200px;
    height:150px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(34,197,94,0.4) 0%, transparent 60%);
    pointer-events:none;
    transform:translate(-50%,-50%);
    z-index:-1;
    }
    
    /* NAV */
    
    nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:5px 40px;
    position:fixed;
    left: 0;
    width: 100%;
    top:0;
    background:rgb(4, 71, 4);
    z-index:10;
    }
    
    nav a{
    margin:0 10px;
    text-decoration:none;
    font-weight:bold;
    color:inherit;
    }
    
    .quick{
        justify-content:space-between;
    padding:20px;
    position:sticky;
    top:0;
    z-index:10;
    }
    
    
    
    /* CONTAINER */
    
    .container{
    max-width:1100px;
    margin:auto;
    padding:80px 20px;
    display:block;
    }
    
  
    /* HERO */
    
    .hero{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
    }
    
    .hero h1{
    font-size:50px;
    }
    
    /* GRADIENT TEXT */
    
    .gradient{
    background:linear-gradient(90deg,#22c55e,#3b82f6,#22c55e);
    background-size:200%;
    -webkit-background-clip:text;
    color:transparent;
    animation:gradientMove 4s linear infinite;
    }
    
    @keyframes gradientMove{
    0%{background-position:0%}
    100%{background-position:200%}
    }
    
    /* CARD */
    
    .card{
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(10px);
    padding:25px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(6, 224, 115, 0.856);
    }
    .cardd
    {
        background:rgba(255,255,255,0.15);
        backdrop-filter:blur(10px);
        padding:25px;
        border-radius:12px;
        box-shadow:0 10px 25px rgba(82, 92, 87, 0.178);
    }


    /* GRID */
    
    .grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    }
    
    /* PROJECT */
    
    .project img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:10px;
    }

    img{
        max-width:100%;
        height:auto;
        display:block;
        }
    
    /* BUTTON */
    
    button{
    padding:10px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    }
    
    /* SKILLS */
    
    .bar{
    background:#ddd;
    height:8px;
    border-radius:5px;
    overflow:hidden;
    }
    
    .progress{
    height:8px;
    background:#22c55e;
    width:0%;
    transition:1.5s;
    }
    
    /* TESTIMONIAL */
    
    .testimonial{
    text-align:center;
    padding:40px;
    }
    
    footer {
    text-align:center;
    padding:40px;
    color:rgb(104, 53, 53);
    background-color:#020617;
    margin-top: 60px;
   
    }

    .dark footer {
        background: #0f172a;
        border-top: 1px solid #1e293b;
        color: #9ca3af;
    }

    footer h3 {
        font-size: 24px;
        margin-bottom: 10px;
        background: linear-gradient(90deg,#0de95e, #da7a0d,#22c55e);
        background-size: 200%;
        -webkit-background-clip: text;
        color: transparent;
      animation: gradientMove 4s linear infinite;
    }

    .dark footer h3 {
        background: linear-gradient(90deg,#0de95e, #da7a0d,#22c55e);
        background-size: 200%;
        -webkit-background-clip: text;
        color: transparent;
    }

    footer p {
        margin-bottom: 20px;
        font-style: italic;
    }

    footer div {
        margin-bottom: 20px;
    }

    footer div a {
        margin: 0 12px;
        font-weight: normal;
        transition: color 0.3s;
    }
    
    .text
    {
       
       font-weight:bold;
       background:rgba(255,255,255,0.15);
       backdrop-filter:blur(10px);
        padding:5px 20px;
        border-radius:12px;
    }
    
    input,textarea{
        width:100%;
        padding:12px;
        margin:1% 0;
        border-radius:6px;
        border:1px solid #ddd;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        }
        .der
        {
            max-width: 100%;
            margin: 0 auto;
          
            max-height: 100%;
            resize: none;
            overflow-y: auto;
            box-sizing: border-box;
            max-width: 100%;
            
        }
        

        .dark input,textarea
        {
            background:#fdfdfd;
            color:black;
            border:1px solid #334155;
        }

        .dark textarea
        {
            background:#fdfdfd;
            color:black;
            border:1px solid #334155;
        }
    .dom{
        margin-top:10px;
        margin-bottom:20px;
        }
    
        a.links{
            color:inherit;
            text-decoration:none;
    
        }
        
        a.links:hover{
            color:#22c55e;
        }
    
    
        a{
            margin:0 10px;
            font-weight:bold;
            color:inherit;
            text-decoration:none;
        }
        a:hover{
            color:#52dd46;
        }

        .build{
            background:linear-gradient(90deg,#22c55e,#3b82f6,#22c55e);
            background-size:200%;
            -webkit-background-clip:text;
            color:transparent;
            animation:gradientMove 3s linear infinite;
        }
        /* MOBILE FIX */
@media (max-width:768px){

/* Fix hero layout */
.hero{
grid-template-columns:1fr;
text-align:center;
}

/* Reduce large text */
.hero h1{
font-size:32px;
}

/* Fix navigation spacing */
nav{
flex-wrap:wrap;
}

/* Prevent icons pushing layout */
#skills div{
font-size:35px;
}

/* Make logo smaller on phones */
nav img{
width:90px;
height:auto;
}

/* Prevent anything overflowing screen */
.container{
padding:60px 15px;
}

}    