/* =========================
   Base / Reset / Tokens
   ========================= */
   *,
   *::before,
   *::after { box-sizing: border-box; }
   
   :root{
     /* spacing */
     --pad: 60px;          /* desktop page gutter */
     --pad-sm: 20px;       /* mobile page gutter */
     --gap-lg: 60px;
     --gap-md: 30px;
     --gap-sm: 16px;
   
     /* colors */
     --bg-dark: #000;
     --text-light: #fff;
     --muted: #a9a9a9;
     --brand: #a100ff;     /* accent */
     --card-bg: #fff;
     --card-fg: #2e2e2e;
     --soft-bg: #e2d9e5;   /* section background */
   
     /* shadows */
     --shadow-1: 0 4px 10px rgba(0,0,0,.15);
     --shadow-2: 0 4px 15px rgba(0,0,0,.15);
   }
   
   html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
   body {
     margin: 0;
     font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
     background: var(--bg-dark);
     color: var(--text-light);
     line-height: 1.5;
     overflow-x: hidden;
   }
   img, video { max-width: 100%; height: auto; display: block; }
   
   /* Reduce heavy motion on phones and for users who prefer less motion */
   @media (max-width: 768px), (prefers-reduced-motion: reduce){
     * { animation: none !important; transition: none !important; }
   }
   
   /* Kill hover-only effects on touch */
   @media (hover: none){
     a:hover, button:hover { transform:none !important; }
   }
   
   /* Typography scales */
   h1 { font-size: clamp(2rem, 6vw, 3rem); margin: .25rem 0; }
   h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin: .5rem 0 1rem; }
   p, li, input, button, textarea { font-size: 1rem; }
   
   /* Utility containers */
   .section { padding: 80px var(--pad); }
   @media (max-width: 768px){
     .section { padding: 48px var(--pad-sm); }
   }
   
   /* =========================
      Header / Navbar
      ========================= */
   header{
     position: sticky; top: 0; z-index: 100;
     display: flex; justify-content: space-between; align-items: center;
     padding: 12px var(--pad);
     background: rgba(0,0,0,.6);
     backdrop-filter: saturate(1.2) blur(6px);
     border-bottom: 1px solid rgba(255,255,255,.06);
   }
   @media (max-width: 768px){ header{ padding: 12px var(--pad-sm); } }
   
   nav ul{
     list-style: none; display: flex; gap: 40px; margin:0; padding:0;
   }
   nav ul li a{
     color: var(--text-light); text-decoration: none;
     font-size: 16px; font-weight: 500; letter-spacing: .5px;
     transition: color .25s ease;
   }
   nav ul li a:hover{ color: var(--brand); }
   
   /* Burger button */
   .nav-toggle{
     display: none; background: transparent; border: 0; color: var(--text-light);
     font-size: 1.6rem; line-height: 1; cursor: pointer;
   }
   @media (max-width: 768px){
     .nav-toggle{ display:inline-block; }
     nav ul{
       position: absolute; left: 0; right: 0; top: 100%;
       background: rgba(0,0,0,.92);
       display: none; flex-direction: column; gap: 16px;
       padding: 16px var(--pad-sm) 20px;
       border-bottom: 1px solid rgba(255,255,255,.08);
     }
     header.nav-open nav ul{ display: flex; }
     nav ul li a{ font-size: 15px; }
   }
   
   /* =========================
      Hero (Unified)
      ========================= */
   /* Both #hero and .hero share the same layout so they don't conflict */
   #hero, .hero{
     position: relative; width: 100%;
     min-height: 70dvh;                 /* safer than 100vh on iOS */
     display: grid; align-items: center;
     padding: 80px var(--pad);
     overflow: hidden;
     /* BLEND: dark → tinted → lavender to match the next section */
     background:
       radial-gradient(40% 60% at 30% 30%, #6ea8fe22 0%, transparent 60%),
       radial-gradient(35% 55% at 70% 40%, #c29bff22 0%, transparent 60%),
       radial-gradient(45% 65% at 50% 80%, #90f7d822 0%, transparent 60%),
       linear-gradient(to bottom, #000 0%, #1a161c 55%, var(--soft-bg) 100%);
   }
   @media (max-width: 768px){
     #hero, .hero{ padding: 72px var(--pad-sm) 40px; min-height: 60dvh; }
   }
   
   /* Decorative background layers (blobs) */
   .hero-bg{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
   .blob{
     position: absolute; filter: blur(40px); opacity: .55; transform: translateZ(0); will-change: transform;
   }
   .blob.b1{ width: 45vmin; height: 45vmin; left: -10vmin; top: 10vmin;
     background: radial-gradient(50% 60% at 50% 50%, #6ea8fe 0%, transparent 70%);
   }
   .blob.b2{ width: 50vmin; height: 50vmin; right: -8vmin; top: 0;
     background: radial-gradient(50% 60% at 50% 50%, #c29bff 0%, transparent 70%);
   }
   .blob.b3{ width: 50vmin; height: 50vmin; left: 25vmin; bottom: -8vmin;
     background: radial-gradient(50% 60% at 50% 50%, #90f7d8 0%, transparent 70%);
   }
   .shine{
     position: absolute; inset: -20%;
     background: radial-gradient(30% 30% at var(--mx,50%) var(--my,50%), rgba(255,255,255,.10), transparent 60%);
     transition: background-position .2s ease-out;
   }
   
   /* Content on top */
   .hero__inner, .hero-text{ position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
   .hero__inner .right, .hero-text .right{ text-align: right; }
   @media (max-width: 768px){
     .hero__inner, .hero-text{ grid-template-columns: 1fr; }
     .hero__inner .right, .hero-text .right{ text-align: left; }
   }
   .hero-text .sub{ font-size: 1rem; color: #716e6e; margin: 0; text-shadow: 1px 1px 10px rgba(0,0,0,.5); }
   .faded{ opacity: .3; margin-right: 8px; }
   .hero-text .social-icons{ margin-top: 8px; display: flex; gap: 12px; }
   .hero-text .social-icons a{
     color: var(--text-light); font-size: 1.4rem; transition: transform .25s ease, color .25s ease;
   }
   .hero-text .social-icons a:hover{ color: var(--brand); transform: scale(1.15); }
   
   /* Wave divider into the next section */
   .wave{
     position: absolute; left: 0; right: 0; bottom: -1px;
     width: 100%; height: 160px; display: block;
     z-index: 1; pointer-events: none;
   }
   .wave path{ fill: var(--soft-bg); }
   
   /* Extra soft fade (covers any seam under the wave) */
   #hero::after{
     content:""; position:absolute; left:0; right:0; bottom:0; height:120px;
     z-index: 1; pointer-events:none;
     background: linear-gradient(to bottom, rgba(226,217,229,0) 0%, var(--soft-bg) 100%);
   }
   
   /* Remove/disable Spline (leftovers) */
   .spline-bg{ display: none !important; }
   
   /* =========================
      About
      ========================= */
   #about{
     background: var(--soft-bg); color: #222;
     padding: 100px var(--pad);
   }
   @media (max-width: 768px){ #about{ padding: 56px var(--pad-sm); } }
   
   .about-wrapper{
     display: flex; align-items: center; justify-content: space-between;
     gap: var(--gap-lg); max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
   }
   @media (max-width: 768px){ .about-wrapper{ gap: var(--gap-md); } }
   
   .about-image{ flex: 1 1 40%; text-align: center; }
   .about-image img{ max-width: 100%; height: auto; border-radius: 20px; }
   
   .about-text{ flex: 1 1 55%; color: #000; }
   .about-text h2{ font-size: 2.5rem; margin-bottom: 20px; }
   .about-text p{
     font-size: 1.1rem; line-height: 1.6; margin-bottom: 15px;
     color: #716e6e;
   }
   
   /* =========================
      Skills
      ========================= */
   #skills{
     background: var(--soft-bg);
     padding: 80px var(--pad); text-align: center;
   }
   @media (max-width: 768px){ #skills{ padding: 56px var(--pad-sm); } }
   
   #skills h2{
     font-size: 2.5rem; color: #2e2e2e; margin-bottom: 40px;
   }
   
   .skills-wrapper{
     display: flex; flex-direction: row-reverse; align-items: center; justify-content: center;
     gap: 50px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
   }
   @media (max-width: 768px){ .skills-wrapper{ gap: var(--gap-md); } }
   
   .skills-image img{ max-width: 300px; height: auto; border-radius: 20px; }
   
   .skills-grid{
     display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
     gap: 20px; justify-items: center; width: 100%; max-width: 600px;
   }
   
   .skill-card{
     background: #fff; color: var(--card-fg);
     border-radius: 16px; padding: 20px 12px; text-align: center;
     box-shadow: var(--shadow-1); transition: transform .25s ease;
     width: 100px;
   }
   .skill-card:hover{ transform: translateY(-6px); }
   .skill-card img{ width: 40px; height: 40px; margin-bottom: 10px; }
   .skill-card span{ display:block; font-weight:600; font-size:.95rem; color:#2e2e2e; }
   
   /* =========================
      Projects
      ========================= */
   #projects{
     background: var(--soft-bg);
     padding: 80px var(--pad); text-align: center;
   }
   @media (max-width: 768px){ #projects{ padding: 56px var(--pad-sm); } }
   
   #projects h2{
     font-size: 2.5rem; color: #2e2e2e; margin-bottom: 40px;
   }
   
   .projects-grid{
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 30px; max-width: 1100px; margin: 0 auto;
   }
   @media (min-width: 992px){ .projects-grid{ grid-template-columns: repeat(3, 1fr); } }
   
   .project-card{
     background: var(--card-bg);
     border-radius: 16px; padding: 20px;
     box-shadow: var(--shadow-2); transition: transform .25s ease;
     max-width: 350px; margin: 0 auto; color: var(--card-fg);
   }
   .project-card:hover{ transform: translateY(-8px); }
   
   .project-card img{
     width: 100%; height: 200px; object-fit: cover;
     border-radius: 12px; margin-bottom: 15px;
   }
   .project-card h3{ font-size: 1.25rem; color: #333; margin-bottom: 10px; }
   .project-card p{ font-size: .95rem; color: #555; margin-bottom: 15px; }
   
   .tech-stack span{
     display: inline-block; background: #d3c0d6; color:#333;
     padding: 5px 10px; border-radius: 6px; margin: 0 5px 5px 0; font-size: .8rem;
   }
   
   .buttons a{
     display: inline-block; background: #1a1a2e; color: #fff; text-decoration: none;
     padding: 8px 15px; border-radius: 8px; margin: 5px; font-size: .9rem;
     transition: background-color .2s ease;
   }
   .buttons a:hover{ background: #333; }
   
   /* =========================
      Contact
      ========================= */
   #contact{
     background: var(--soft-bg);
     padding: 80px var(--pad); text-align: center;
   }
   @media (max-width: 768px){ #contact{ padding: 56px var(--pad-sm); } }
   
   #contact h2{ font-size: 2.5rem; color: #2e2e2e; margin-bottom: 10px; }
   .contact-intro{ color: #555; font-size: 1rem; margin-bottom: 30px; }
   
   .contact-form{
     max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;
   }
   .contact-form input,
   .contact-form textarea{
     padding: 15px; border-radius: 10px; border: 1px solid #ccc;
     background: #fff; color: #111; font-family: inherit; font-size: 1rem;
   }
   .contact-form button{
     background: #1a1a2e; color: #fff; padding: 12px 20px; border: 0;
     border-radius: 10px; font-size: 1rem; cursor: pointer; transition: background-color .25s ease;
   }
   .contact-form button:hover{ background: #333; }
   
   /* =========================
      Helpers
      ========================= */
   .container{ width: min(100% - 2rem, 1200px); margin-inline: auto; }
   .hidden{ display: none !important; }
   .visually-hidden{ position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
   
   /* Optional sticky footer for future use (respects notches) */
   .sticky-footer{
     position: sticky; bottom: 0; padding: .75rem;
     padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
     background: rgba(255,255,255,.9); backdrop-filter: saturate(1.2) blur(6px);
     color: #111;
   }
   