/* ══════════════════════════════════════════════
   Code With Raj 26 — v6 Design Polish Layer
   Loaded after styles.css. Refines typography,
   spacing, layout and responsiveness on every
   screen size (phone → tablet → laptop → 4K).
══════════════════════════════════════════════ */

:root{
  --font-body:'Plus Jakarta Sans','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-display:'Orbitron',sans-serif;
  --surface:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.012) 45%,rgba(239,68,68,.035));
  --surface-hover:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.02) 45%,rgba(239,68,68,.08));
  --line:rgba(255,255,255,.075);
  --line-hot:rgba(239,68,68,.45);
  --shadow-card:0 1px 0 rgba(255,255,255,.04) inset,0 20px 40px -24px rgba(0,0,0,.8);
  --shadow-hot:0 1px 0 rgba(255,255,255,.06) inset,0 24px 50px -22px rgba(239,68,68,.45);
  --r-lg:20px;
  --r-md:14px;
  --header-h:72px;
  --section-y:clamp(3.25rem,7vw,6rem);
  --gutter:clamp(1rem,4vw,2rem);
}

/* ── Base ───────────────────────────────────── */
html{scroll-padding-top:calc(var(--header-h) + 12px);}
body{
  font-family:var(--font-body);
  font-size:clamp(.95rem,.9rem + .2vw,1.02rem);
  letter-spacing:-.005em;
  text-rendering:optimizeLegibility;
  transition:opacity .22s ease;
}
body.is-leaving{opacity:0;}
body.nav-open{overflow:hidden;}
::selection{background:rgba(239,68,68,.35);color:#fff;}
img{height:auto;}

/* Slim branded scrollbar (desktop) */
@media (pointer:fine){
  html{scrollbar-width:thin;scrollbar-color:#7f1d1d #070707;}
  ::-webkit-scrollbar{width:10px;}
  ::-webkit-scrollbar-track{background:#070707;}
  ::-webkit-scrollbar-thumb{background:linear-gradient(#ef4444,#7f1d1d);border-radius:10px;border:2px solid #070707;}
}

.container{
  max-width:1200px;
  padding-left:max(var(--gutter),env(safe-area-inset-left));
  padding-right:max(var(--gutter),env(safe-area-inset-right));
}

/* Accessible focus everywhere */
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{
  outline:2px solid #f87171;outline-offset:3px;border-radius:10px;
}

/* ── Fluid typography ───────────────────────── */
h1,h2,h3{text-wrap:balance;}
p{text-wrap:pretty;}
.hero h1{font-size:clamp(2.1rem,1.2rem + 4.2vw,4.4rem)!important;line-height:1.05!important;}
.page-heading h1,.backend-hero-text h1{font-size:clamp(2rem,1.3rem + 3.4vw,3.8rem)!important;line-height:1.08!important;}
.section-head h2,.about-text h2,.cta-card h2{font-size:clamp(1.65rem,1.1rem + 2.4vw,2.75rem)!important;line-height:1.15!important;}
.section-head p,.page-heading p{max-width:62ch;margin-left:auto;margin-right:auto;}
.section-head{margin-bottom:clamp(1.75rem,4vw,3rem);}

/* ── Scroll progress bar ────────────────────── */
.scroll-progress{
  position:fixed;top:0;left:0;right:0;height:3px;z-index:1000;
  background:linear-gradient(90deg,#ef4444,#f97316,#facc15);
  transform-origin:0 50%;transform:scaleX(0);
  box-shadow:0 0 12px rgba(239,68,68,.7);
  pointer-events:none;
}

/* ── Back to top ────────────────────────────── */
.back-to-top{
  position:fixed;z-index:300;
  right:max(1rem,env(safe-area-inset-right));
  bottom:max(1rem,env(safe-area-inset-bottom));
  width:48px;height:48px;border-radius:16px;
  display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,#ef4444,#f97316);
  box-shadow:0 14px 30px -10px rgba(239,68,68,.7),inset 0 1px 0 rgba(255,255,255,.25);
  opacity:0;transform:translateY(16px) scale(.9);pointer-events:none;
  transition:opacity .3s ease,transform .35s cubic-bezier(.34,1.56,.64,1);
}
.back-to-top svg{width:22px;height:22px;}
.back-to-top.show{opacity:1;transform:none;pointer-events:auto;}
.back-to-top:hover{transform:translateY(-3px);}

/* ── Header ─────────────────────────────────── */
.site-header{
  background:rgba(7,5,5,.6)!important;
  border-bottom:1px solid var(--line)!important;
  transition:background .3s ease,box-shadow .3s ease;
  padding-top:env(safe-area-inset-top);
}
.site-header.scrolled{
  background:rgba(7,5,5,.86)!important;
  box-shadow:0 12px 34px -18px rgba(0,0,0,.9)!important;
}
.header-inner{
  min-height:var(--header-h)!important;
  transition:min-height .3s ease;
  padding-left:max(var(--gutter),env(safe-area-inset-left))!important;
  padding-right:max(var(--gutter),env(safe-area-inset-right))!important;
}
.site-header.scrolled .header-inner{min-height:62px!important;}
.brand-name{font-family:var(--font-display);}

/* Desktop nav as a pill group */
.nav-desktop{
  padding:.3rem;border-radius:999px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
}
.nav-desktop .nav-link{border-radius:999px!important;}

/* ── Mobile navigation (floating glass sheet) ─ */
@media (min-width:821px){
  .nav-mobile{display:none!important;}
}
@media (max-width:820px){
  .nav-desktop{display:none!important;}
  .nav-toggle{display:inline-flex!important;border-radius:14px;}
  .nav-mobile{
    position:absolute;left:.75rem;right:.75rem;top:calc(100% + .5rem);
    display:flex!important;flex-direction:column;gap:.35rem;
    max-height:none!important;
    padding:.6rem!important;
    border-radius:20px;
    background:rgba(14,9,9,.94)!important;
    border:1px solid rgba(239,68,68,.22)!important;
    box-shadow:0 30px 60px -20px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.03) inset;
    -webkit-backdrop-filter:blur(20px) saturate(160%);
    backdrop-filter:blur(20px) saturate(160%);
    opacity:0;visibility:hidden;
    transform:translateY(-10px) scale(.98);transform-origin:top center;
    transition:opacity .25s ease,transform .3s cubic-bezier(.34,1.3,.64,1),visibility .25s;
    overflow:visible!important;
  }
  .nav-mobile.open{opacity:1;visibility:visible;transform:none;}
  .nav-mobile .nav-link{
    display:flex!important;align-items:center;gap:.85rem;
    padding:.9rem 1rem!important;
    border-radius:14px!important;
    border:1px solid transparent!important;
    border-bottom:1px solid transparent!important;
    font-size:1rem!important;
    color:#d4d4d8!important;
  }
  .nav-mobile .nav-link svg{width:20px;height:20px;flex-shrink:0;opacity:.85;}
  .nav-mobile .nav-link:hover{background:rgba(239,68,68,.08);padding-left:1.15rem!important;}
  .nav-mobile .nav-link.active{
    color:#fff!important;
    background:linear-gradient(100deg,rgba(239,68,68,.25),rgba(249,115,22,.08))!important;
    border-color:rgba(239,68,68,.35)!important;
    box-shadow:inset 3px 0 0 #ef4444!important;
  }
  /* dim page behind the menu */
  body.nav-open main,body.nav-open .site-footer{filter:brightness(.55);transition:filter .3s ease;}
}

/* ── Buttons ────────────────────────────────── */
.btn{
  min-height:48px;border-radius:14px!important;
  font-weight:700!important;letter-spacing:.01em;
}
.btn-primary{box-shadow:0 14px 34px -14px rgba(239,68,68,.8),inset 0 1px 0 rgba(255,255,255,.22)!important;}
.btn-outline{background:rgba(255,255,255,.02)!important;}

/* ── Unified card surface ───────────────────── */
.feature-card,.stat-card,.skill-card,.core-card,.journey-card,
.be-learn-card,.be-foundation-card,.be-roadmap-card,
.contact-details-card,.hours-card,.cta-card{
  background:var(--surface),var(--card)!important;
  border:1px solid var(--line)!important;
  border-radius:var(--r-lg)!important;
  box-shadow:var(--shadow-card);
}
@media (hover:hover){
  .feature-card:hover,.stat-card:hover,.skill-card:hover,.core-card:hover,.journey-card:hover,
  .be-learn-card:hover,.be-foundation-card:hover,.be-roadmap-card:hover{
    background:var(--surface-hover),var(--card)!important;
    border-color:var(--line-hot)!important;
    box-shadow:var(--shadow-hot);
  }
}

/* ── Hero ───────────────────────────────────── */
.hero{padding-top:clamp(2.5rem,6vw,5rem)!important;padding-bottom:clamp(3rem,7vw,6rem)!important;}
.hero-desc{max-width:56ch;}
.hero-tags .tag{border-radius:999px!important;}
.hero-photo-wrap{width:100%;}
.hero-photo-frame{max-width:100%;}

/* ── Tech strip ─────────────────────────────── */
.tech-badge{border-radius:14px!important;}

/* ── About / stats ──────────────────────────── */
.about-section{padding:var(--section-y) 0!important;}
.stat-value{font-size:clamp(1.6rem,1.2rem + 1.6vw,2.4rem)!important;}

/* ── Features (What I do best) ──────────────── */
.features-section{padding:var(--section-y) 0!important;}
.features-section .features-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(1rem,2vw,1.5rem)!important;
}
/* centre a lonely last card instead of leaving a hole */
@media (min-width:1024px){
  .features-section .feature-card:last-child:nth-child(3n+1){grid-column:2;}
}
.features-section .feature-card{padding:clamp(1.35rem,2.4vw,2rem)!important;height:100%;}
.section-cta{margin-top:clamp(1.75rem,4vw,2.75rem)!important;text-align:center;}
.section-cta .link-arrow{
  padding:.8rem 1.4rem;border-radius:999px;
  border:1px solid rgba(239,68,68,.35);background:rgba(239,68,68,.06);
}

/* ── Journey ────────────────────────────────── */
.journey-section{padding:var(--section-y) 0!important;}
.journey-cards{gap:clamp(1rem,2vw,1.5rem)!important;}

/* ── Frontend page ──────────────────────────── */
.page-heading{padding:clamp(3rem,7vw,5.5rem) 0 clamp(1.5rem,3vw,2.5rem)!important;}
.core-section,.skills-section,.workflow-section{padding:clamp(2rem,5vw,3.5rem) 0!important;}
.skills-grid{gap:clamp(.9rem,1.8vw,1.25rem)!important;}

/* ── Backend page ───────────────────────────── */
.backend-construction-wrap{
  display:flex!important;flex-direction:column;align-items:center;
  gap:clamp(1.25rem,3vw,2rem)!important;text-align:center;
}
.construction-icon-wrap{width:132px!important;height:132px!important;}
.backend-hero-text{
  margin:0 auto;max-width:760px!important;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.backend-hero-text .be-tagline{max-width:60ch;margin-left:auto;margin-right:auto;padding:0!important;}
.be-progress-wrap{width:100%;max-width:520px;margin-left:auto;margin-right:auto;}
.be-section{padding:clamp(2.5rem,6vw,4.5rem) 0!important;}

/* ── Contact page ───────────────────────────── */
.contact-layout{gap:clamp(1rem,2.5vw,1.75rem)!important;align-items:start;}
@media (min-width:1024px){
  .contact-right{position:sticky;top:calc(var(--header-h) + 1.25rem);}
}
.cta-card{height:auto!important;justify-content:flex-start!important;padding:clamp(1.5rem,3.5vw,2.75rem)!important;}
.cta-buttons{display:flex;flex-wrap:wrap;gap:.75rem;}
.cta-buttons .btn{flex:1 1 220px;justify-content:center;}
.contact-item{border-radius:var(--r-md)!important;}
.contact-info{min-width:0;}
.contact-value{overflow-wrap:anywhere;}

/* ── Footer ─────────────────────────────────── */
.site-footer{padding-bottom:env(safe-area-inset-bottom);}
.footer-icon{width:44px;height:44px;}

/* ══════════════ Breakpoints ══════════════ */

/* Large screens: give content a touch more room */
@media (min-width:1440px){
  .container{max-width:1280px;}
  .header-inner{max-width:1320px!important;}
}

/* Tablet */
@media (min-width:641px) and (max-width:1023px){
  .features-section .features-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .features-section .feature-card:last-child:nth-child(odd){grid-column:1 / -1;}
  .contact-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;}
  .contact-items .contact-item{margin:0!important;}
  .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}

/* Hero stacks earlier so it never feels cramped */
@media (max-width:820px){
  .hero-grid{gap:2rem!important;}
  .hero-photo-wrap{max-width:300px!important;margin:0 auto!important;}
  .hero-desc{margin-left:auto;margin-right:auto;}
}

/* Phone */
@media (max-width:640px){
  :root{--header-h:64px;}
  section{padding-top:clamp(2.5rem,10vw,3.25rem)!important;padding-bottom:clamp(2.5rem,10vw,3.25rem)!important;}
  .hero{padding-top:1.75rem!important;}
  .hero-photo-wrap{max-width:240px!important;}
  .hero-tags{gap:.45rem!important;}
  .hero-tags .tag{font-size:.74rem!important;padding:.4rem .7rem!important;}
  .btn-row{gap:.65rem!important;}
  .socials{gap:.6rem!important;}

  /* Stats as compact 2×2 */
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.75rem!important;}
  .stat-card{padding:1.15rem .75rem!important;}
  .stat-label{font-size:.85rem!important;}
  .stat-sub{font-size:.72rem!important;}

  /* Feature cards: icon beside title, less scrolling */
  .features-section .features-grid{grid-template-columns:1fr!important;gap:.85rem!important;}
  .features-section .feature-card{
    display:grid!important;grid-template-columns:auto 1fr;column-gap:.95rem;align-items:center;
    padding:1.15rem!important;text-align:left;
  }
  .features-section .feature-card .feature-icon{margin:0!important;grid-row:span 1;}
  .features-section .feature-card h3{margin:0!important;font-size:1.02rem!important;}
  .features-section .feature-card p{grid-column:1 / -1;margin-top:.7rem!important;font-size:.88rem;}

  /* Skill cards: chips instead of long lists */
  .skills-grid{grid-template-columns:1fr!important;gap:.85rem!important;}
  .skill-card{padding:1.2rem!important;}
  .skill-card h3{font-size:1.05rem!important;margin:.6rem 0 .75rem!important;}
  .skill-list{display:flex;flex-wrap:wrap;gap:.4rem;}
  .skill-list li{
    padding:.32rem .65rem!important;border-radius:999px;
    background:rgba(239,68,68,.07);border:1px solid rgba(239,68,68,.18);
    font-size:.76rem!important;color:#e5e7eb!important;
  }
  .skill-list li::before{display:none!important;}
  .skill-card:hover .skill-list li{padding-left:.65rem!important;}

  .core-card{padding:1.3rem!important;}

  /* Backend */
  .construction-icon-wrap{width:104px!important;height:104px!important;}
  .backend-hero-text{padding:1.4rem 1.1rem!important;border-radius:20px!important;}
  .be-foundation-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}

  /* Contact */
  .contact-details-card,.hours-card{padding:1.15rem!important;}
  .contact-item{padding:.85rem!important;gap:.8rem!important;}
  .contact-info{text-align:left!important;align-items:flex-start!important;}
  .cta-buttons .btn{flex-basis:100%;}

  .back-to-top{width:44px;height:44px;border-radius:14px;}
}

/* Small phones */
@media (max-width:380px){
  .hero h1{font-size:1.9rem!important;}
  .hero-photo-wrap{max-width:210px!important;}
  .stat-value{font-size:1.4rem!important;}
  .tech-grid{gap:.5rem!important;}
}

/* Landscape phones: keep hero compact */
@media (max-height:500px) and (orientation:landscape){
  .hero{min-height:auto!important;}
  .hero-photo-wrap{max-width:200px!important;}
}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
  .sr{opacity:1!important;transform:none!important;}
}

/* ── Fine-tuning ────────────────────────────── */
@media (min-width:1024px){
  .hero-grid{grid-template-columns:1.15fr .85fr!important;}
}
.hero h1{font-size:clamp(2.1rem,1.1rem + 3.9vw,4.1rem)!important;}
.cta-buttons .btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:.6rem;padding:.9rem 1.25rem!important;text-align:center;
}
.cta-buttons .btn svg{width:20px;height:20px;flex-shrink:0;}
.backend-hero-text .be-progress-wrap{margin-top:1.75rem!important;}
.features-section .feature-card{margin:0!important;}
.nav-mobile .nav-link::after,.nav-mobile .nav-link::before{display:none!important;}
@media (max-width:1023px){
  .call-also,.available-badge{justify-content:center;}
}

/* ══════════════════════════════════════════════
   v7 — Silky Smooth Layer
   • buttery inertia scrolling (desktop)
   • lighter, GPU-friendly backgrounds (no jank)
   • aurora hero, soft grain, cursor glow
   • infinite tech marquee, richer reveals
   • hide-on-scroll header on phones
══════════════════════════════════════════════ */

/* ── Performance: stop animating EVERY element ── */
*,*::before,*::after{transition:none;}
a,button,.btn,.nav-link,.tag,.tech-badge,.social-icon,.footer-icon,.link-arrow,
.feature-card,.stat-card,.skill-card,.core-card,.journey-card,.contact-item,
.be-learn-card,.be-foundation-card,.be-roadmap-card,.highlight-box,.cta-card,
.feature-icon,.journey-arrow,.hero-photo-frame{
  transition:background-color .35s var(--ease),border-color .35s var(--ease),color .3s var(--ease),
             box-shadow .45s var(--ease),transform .5s var(--ease),opacity .35s var(--ease),
             translate .5s var(--ease);
}

/* Smooth-scroll engine owns scrolling when active */
html.has-smooth{scroll-behavior:auto!important;}
html{overscroll-behavior-y:none;}

/* Fixed backgrounds caused repaint on every scroll — move to a composited layer */
body{
  background:var(--bg)!important;
  background-attachment:scroll!important;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(60% 45% at 15% 5%,rgba(239,68,68,.16),transparent 70%),
    radial-gradient(45% 35% at 90% 0%,rgba(249,115,22,.10),transparent 70%),
    radial-gradient(70% 40% at 50% 110%,rgba(220,38,38,.10),transparent 70%);
  transform:translateZ(0);
}
/* Soft film grain */
body::after{
  content:"";position:fixed;inset:0;z-index:998;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode:overlay;
}

/* ── Header: smooth hide / show on phones ──── */
.site-header{transition:transform .45s var(--ease),background .3s ease,box-shadow .3s ease!important;will-change:transform;}
@media (max-width:820px){
  .site-header.header-hidden{transform:translateY(-110%);}
}

/* ── Scroll progress: smoother, softer ─────── */
.scroll-progress{height:2px;will-change:transform;}

/* ── Aurora (hero + page headings) ─────────── */
.hero,.page-heading{position:relative;isolation:isolate;}
.aurora{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;}
.aurora span{
  position:absolute;border-radius:50%;will-change:transform;
  width:clamp(260px,45vw,620px);aspect-ratio:1;opacity:.55;
  background:radial-gradient(circle at center,var(--c) 0%,transparent 65%);
  animation:auroraDrift var(--d,22s) ease-in-out infinite alternate;
}
.aurora span:nth-child(1){--c:rgba(239,68,68,.45);top:-18%;left:-10%;--d:24s;}
.aurora span:nth-child(2){--c:rgba(249,115,22,.30);top:10%;right:-14%;--d:28s;animation-delay:-6s;}
.aurora span:nth-child(3){--c:rgba(190,24,93,.25);bottom:-30%;left:30%;--d:32s;animation-delay:-12s;}
@keyframes auroraDrift{
  0%  {transform:translate3d(0,0,0) scale(1);}
  50% {transform:translate3d(6%,8%,0) scale(1.12);}
  100%{transform:translate3d(-6%,-4%,0) scale(.95);}
}

/* ── Cursor glow (desktop only, added by JS) ─ */
.cursor-glow{
  position:fixed;top:0;left:0;z-index:0;pointer-events:none;
  width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;
  background:radial-gradient(circle,rgba(239,68,68,.10),transparent 65%);
  opacity:0;transition:opacity .5s ease;will-change:transform;
}
.cursor-glow.on{opacity:1;}
main,.site-footer{position:relative;z-index:1;}

/* ── Richer scroll reveal ──────────────────── */
.sr{
  opacity:0;transform:translate3d(0,34px,0) scale(.985)!important;
  transition:opacity .9s cubic-bezier(.22,1,.36,1),transform 1s cubic-bezier(.22,1,.36,1),
             border-color .35s ease,box-shadow .45s ease,background .35s ease!important;
}
.sr.show,.sr.in{opacity:1;transform:none!important;}
@media (hover:hover) and (min-width:1024px){
  .sr.show:is(.feature-card,.skill-card,.core-card,.be-learn-card,.stat-card):hover{transform:translate3d(0,-6px,0)!important;}
}

/* ── Section heading accent ────────────────── */
.section-head h2,.page-heading h1{position:relative;}
.section-head h2::after{
  content:"";display:block;width:56px;height:3px;margin:.85rem auto 0;border-radius:3px;
  background:linear-gradient(90deg,#ef4444,#f97316);
  box-shadow:0 0 14px rgba(239,68,68,.6);
}

/* ── Gradient border that follows the pointer ── */
@media (hover:hover){
  .feature-card,.skill-card,.core-card,.journey-card,.be-learn-card,.stat-card{position:relative;}
  .feature-card::after,.skill-card::after,.core-card::after,.journey-card::after,.be-learn-card::after,.stat-card::after{
    content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;
    background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(249,115,22,.9),rgba(239,68,68,.35) 40%,transparent 70%);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;mask-composite:exclude;
    opacity:0;transition:opacity .4s ease;
  }
  .feature-card:hover::after,.skill-card:hover::after,.core-card:hover::after,.journey-card:hover::after,.be-learn-card:hover::after,.stat-card:hover::after{opacity:1;}
}

/* ── Feature icons get a soft gradient tile ── */
.feature-icon{
  background:linear-gradient(145deg,rgba(239,68,68,.22),rgba(249,115,22,.06))!important;
  border:1px solid rgba(239,68,68,.3)!important;
  box-shadow:0 10px 24px -12px rgba(239,68,68,.7),inset 0 1px 0 rgba(255,255,255,.08);
}
@media (hover:hover){
  .feature-card:hover .feature-icon{transform:translateY(-3px) rotate(-6deg);}
}

/* ── Infinite tech marquee ─────────────────── */
.tech-grid.is-marquee{
  display:block!important;max-width:100%!important;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}
.marquee-track{
  display:flex;gap:.85rem;width:max-content;padding:.5rem 0;
  animation:marquee 36s linear infinite;will-change:transform;
}
.marquee-track .tech-badge{flex:0 0 auto;white-space:nowrap;}
.tech-grid.is-marquee .marquee-track{animation-play-state:running!important;}
@keyframes marquee{to{transform:translate3d(calc(-50% - .425rem),0,0);}}

/* ── Hero photo: gentle 3D tilt ────────────── */
.hero-photo-frame{
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translate3d(0,var(--py,0px),0);
  transition:transform .6s cubic-bezier(.22,1,.36,1)!important;
  will-change:transform;
}
.hero-photo-frame:hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translate3d(0,var(--py,0px),0) scale(1.02);}

/* ── Magnetic buttons ──────────────────────── */
.btn,.social-icon{translate:var(--tx,0) var(--ty,0);}

/* ── Fix: "Let's Work Together" button ─────── */
.highlight-box{padding:clamp(1.75rem,4vw,3rem) clamp(1.25rem,4vw,3rem)!important;border-radius:var(--r-lg)!important;
  background:var(--surface),var(--card)!important;border:1px solid var(--line)!important;}
.highlight-box .btn{
  display:inline-flex!important;align-items:center;justify-content:center;gap:.6rem;
  white-space:nowrap;padding:.9rem 1.6rem!important;font-size:1rem!important;width:auto!important;
}
.highlight-box .btn svg{width:20px!important;height:20px!important;flex-shrink:0;}

/* ── Tech badges a bit livelier ────────────── */
.tech-badge{background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.015))!important;border:1px solid var(--line)!important;}
@media (hover:hover){.tech-badge:hover{border-color:var(--line-hot)!important;transform:translateY(-3px);}}

/* ── Footer polish ─────────────────────────── */
.site-footer{background:linear-gradient(180deg,transparent,rgba(239,68,68,.05))!important;}
@media (max-width:640px){
  .footer-inner{text-align:center;gap:1rem!important;}
  .footer-links{justify-content:center;}
}

/* ── Phones ────────────────────────────────── */
@media (max-width:640px){
  .aurora span{opacity:.45;}
  .tech-section{padding-top:2rem!important;padding-bottom:2rem!important;}
  .section-head h2::after{width:44px;margin-top:.7rem;}
  .highlight-box .btn{width:100%!important;}
  body::after{opacity:.035;}
}

/* ── Tablets: tidy 2-up grids ──────────────── */
@media (min-width:641px) and (max-width:1023px){
  .core-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .core-grid > :last-child:nth-child(odd){grid-column:1 / -1;}
  .be-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* ── Big screens ───────────────────────────── */
@media (min-width:1920px){
  html{font-size:112.5%;}
}

/* Reduced motion: switch everything calm */
@media (prefers-reduced-motion:reduce){
  .aurora span{animation:none!important;}
  .cursor-glow{display:none;}
  .sr{opacity:1!important;transform:none!important;}
}
/* soft fade so the aurora never shows a hard edge */
.aurora{-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent);mask-image:linear-gradient(180deg,#000 55%,transparent);}
