/* =========================================
   LT DEV STUDIO — Desktop-first stylesheet
   Pairs with: index.php, services.php, Projects.php
   Fonts loaded in HTML: Inter, JetBrains Mono
   ========================================= */

/* THEME TOKENS */
:root{
  --bg: #0b1220;            /* page bg gradient start */
  --bg-2: #0f172a;          /* page bg gradient end */
  --surface: #0f1b33;       /* card/nav surface */
  --surface-2:#122042;      /* darker surface */
  --text: #e5e7eb;          /* body text */
  --muted:#b3c0d4;          /* subtext */
  --brand:#00d4ff;          /* primary accent */
  --brand-2:#7c3aed;        /* secondary accent (violet) */
  --ok:#22c55e;
  --warn:#f59e0b;
  --err:#ef4444;
  --ring: color-mix(in srgb, var(--brand) 45%, transparent);
  --radius: 16px;           /* slightly softer corners */
  --shadow: 0 10px 30px rgba(2,6,23,.35);
  --deep-navy: #1a2a3c;     /* used by brand helpers */
}

/* BASE */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,body{
  height:100%;
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 20% -10%, #1b2a4f 0%, transparent 60%),
    radial-gradient(1000px 800px at 120% 10%, #1f1148 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 80%);
}

/* Soft glow blobs behind content */
body::before,
body::after{
  content:"";
  position:fixed;
  inset:auto;
  width:260px;
  height:260px;
  border-radius:999px;
  pointer-events:none;
  z-index:-1;
  filter: blur(60px);
  opacity:.55;
}

/* cyan blob bottom left */
body::before{
  background: radial-gradient(circle, rgba(0,212,255,.35), transparent 60%);
  bottom:-80px;
  left:-40px;
}

/* violet blob bottom right */
body::after{
  background: radial-gradient(circle, rgba(124,58,237,.35), transparent 60%);
  bottom:-100px;
  right:-60px;
}

/* UTIL */
.container{
  max-width:1100px;
  margin-inline:auto;
  padding-inline:20px;
}
.section-title{
  font-size:clamp(1.6rem,2vw,2rem);
  margin:0 0 .25rem;
}
.section-subtitle{
  color:var(--muted);
  margin:.25rem 0 1.25rem;
}
.highlight{ color:var(--brand); }

.section-head-centered{
  text-align:center;
  max-width:640px;
  margin:0 auto 1.6rem;
}

/* generic section spacing */
.about{
  padding:36px 0 16px;
}
.services{
  padding:40px 0;
}
.contact{
  padding:40px 0 60px;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.8rem 1.25rem;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand) 0%, #60a5fa 80%);
  color:#081020;
  font-weight:700;
  text-decoration:none;
  border:1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  box-shadow: 0 10px 26px rgba(0,212,255,.25);
  transition: transform .15s ease, filter .15s ease, box-shadow .2s ease, background .2s ease;
  letter-spacing:.02em;
}
.btn:hover{
  transform: translateY(-2px) scale(1.02);
  filter:brightness(1.05);
}
.btn:active{
  transform: translateY(0) scale(.98);
  filter:brightness(.98);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px var(--ring);
}
.btn--ghost{
  background: rgba(255,255,255,.03);
  color: var(--text);
  border: 1px solid #2b3a63;
  box-shadow:none;
  border-radius:999px;
}
.btn--ghost:hover{
  border-color:#516bb0;
  background: rgba(255,255,255,.06);
}
.btn[disabled],
.btn.is-loading{
  opacity:.6;
  pointer-events:none;
  cursor:not-allowed;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.actions-centered{
  justify-content:flex-start;
}
@media (max-width: 720px){
  .actions-centered{
    justify-content:center;
  }
}

/* NAV */
header{
  position:sticky;
  top:0;
  z-index:40;
}
nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,17,32,.85), rgba(11,17,32,.55));
  border-bottom:1px solid rgba(255,255,255,.06);
  transition: padding .15s ease, background .15s ease, box-shadow .15s ease;
  position: relative;
}
body.is-scrolled nav{
  padding:10px 20px;
  background: rgba(11,17,32,.9);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.logo{
  font-weight:800;
  letter-spacing:.4px;
  background:linear-gradient(180deg,#fff, #a5b4fc);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-size:1.05rem;
}
.menu-toggle{
  display:none;
  appearance:none;
  background:transparent;
  color:var(--text);
  font-size:1.4rem;
  border:0;
  cursor:pointer;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding:8px 10px;
  border-radius:8px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
  border:1px solid transparent;
  position:relative;
  overflow:hidden;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:16%;
  right:16%;
  bottom:4px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin:center;
  transition: transform .18s ease-out;
  opacity:.9;
}
.nav-links a:hover,
.nav-links a.active{
  color:#fff;
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.06);
}
.nav-links a:hover::after,
.nav-links a.active::after{
  transform: scaleX(1);
}

/* optional brand helpers */
.brand-mark{ color:var(--text); }
.brand{
  display:flex;
  gap:.6rem;
  align-items:center;
  text-decoration:none;
}
.brand .brand-text{
  font-weight:800;
  letter-spacing:.03em;
  color:var(--brand);
}

/* HERO */
.hero{
  padding:64px 20px 36px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:28px;
  align-items:center;
  background:
    radial-gradient(700px 400px at -15% 10%, rgba(124,58,237,.18) 0%, transparent 55%),
    radial-gradient(700px 400px at 110% -10%, rgba(0,212,255,.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(26,42,78,.35), rgba(12,19,34,.35));
  border:1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  padding:28px;
  box-shadow: 0 18px 40px rgba(2,6,23,.75);
}
.hero-content{
  position:relative;
  z-index:1;
}
.hero-visual{
  position:relative;
}
.hero-centered{
  align-items:center;
}
.hero h1{
  margin:0 0 10px;
  font-size:clamp(1.6rem,2.4vw,2.4rem);
  line-height:1.2;
}
.hero p{
  margin:0 0 16px;
  color:var(--muted);
}

/* badge used in hero + elsewhere */
.badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.35rem .7rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  background: radial-gradient(circle at top left, rgba(0,212,255,.25), rgba(15,23,42,1));
  border:1px solid rgba(255,255,255,.12);
  color:#dbeafe;
  box-shadow: 0 4px 14px rgba(15,23,42,.7);
}
.badge i{
  font-size:.8rem;
}
.badge code{
  font-family:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.78rem;
  color:#a5b4fc;
}
.badge--tech{
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(2,6,23,.3));
  border-color:#3b2c67;
}

/* Hero title animated gradient (if you add class="hero-title" to H1) */
.hero-title{
  background: linear-gradient(120deg, #e5e7eb, #a5b4fc, var(--brand), #e5e7eb);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  background-size: 220% 220%;
  animation: heroGradient 8s ease-in-out infinite;
}
@keyframes heroGradient{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* subtle entrance for hero card */
.hero-inner{
  animation: heroIntro .7s ease-out .05s both;
}
@keyframes heroIntro{
  from{
    opacity:0;
    transform: translateY(10px) scale(.98);
  }
  to{
    opacity:1;
    transform: translateY(0) scale(1);
  }
}

/* Float animation */
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
/* apply float to hero visual image */
.hero-visual img{
  animation: floaty 6s ease-in-out infinite;
}

/* ABOUT — compact portrait with framed card */
.neumorphic-about{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:start;
  background: linear-gradient(180deg, #0c1a33, #0c1830);
  border:1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding:26px;
  box-shadow: var(--shadow);
}
.about-centered{
  max-width:960px;
  margin:0 auto;
}
.about-text p{ color:var(--muted); }

.about-img{
  align-self:start;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(2,6,23,.45);
}
.about-img img{
  display:block;
  width:100%;
  max-width:420px;
  aspect-ratio: 4 / 5;
  object-fit:cover;
  border-radius:12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}

.about-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin:.8rem 0 1.1rem;
}

/* SERVICES (grid on desktop; carousel on mobile) */
.services{
  padding:40px 0;
}
.service-slider{
  position:relative;
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:16px;
}
.neumorphic-service-item{
  position:relative;
  background: linear-gradient(180deg, #0e1a33, #0b1630);
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.06);
  min-height:150px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  overflow:hidden;
}
.neumorphic-service-item::before{
  content:"";
  position:absolute;
  inset:-40% -10%;
  background: radial-gradient(circle, rgba(0,212,255,.12), transparent 60%);
  opacity:0;
  transition: opacity .2s ease;
}
.neumorphic-service-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(2,6,23,.45);
  border-color: color-mix(in srgb, var(--brand) 25%, rgba(255,255,255,.06));
}
.neumorphic-service-item:hover::before{ opacity:1; }
.neumorphic-service-item h3{
  margin:.25rem 0 .25rem;
  font-size:1.05rem;
}
.neumorphic-service-item p{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
}

/* service icon slot */
.service-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background: rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.06);
  margin-bottom:.6rem;
  color: var(--brand);
  font-size:1.1rem;
  position:relative;
  z-index:1;
}
.neumorphic-service-item > *{
  position:relative;
  z-index:1;
}

/* service feature list */
.feature-list{
  list-style:none;
  padding-left:0;
  margin:.6rem 0 0;
  color:var(--muted);
  font-size:.9rem;
}
.feature-list li{
  position:relative;
  padding-left:1.1rem;
  margin-bottom:.25rem;
}
.feature-list li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:var(--brand);
}

/* Why choose grid (Services page extra section) */
.why-choose-grid{
  display:grid;
  gap:1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top:2.5rem;
}

/* TABLES (Services page) */
.table-responsive{
  width:100%;
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
}
.neumorphic-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:720px;
  background: linear-gradient(180deg, #0c1a33, #0b1730);
}
.neumorphic-table thead th{
  text-align:left;
  padding:12px 14px;
  font-weight:700;
  background: rgba(255,255,255,.04);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.neumorphic-table tbody td{
  padding:12px 14px;
  color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.table-title{ margin:18px 0 10px; }

/* PROJECTS */
.projects{
  padding:38px 0;
}
.project-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
.project-card{
  background: linear-gradient(180deg, #0e1a33, #0b1730);
  border:1px solid rgba(255,255,255,.06);
  border-radius:20px;
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.project-details{
  padding:14px;
}
.project-details h3,
.project-details h2{
  margin:.5rem 0 .25rem;
}
.project-details p{
  margin:.25rem 0 .75rem;
  color:var(--muted);
}
.project-meta{
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
}
.project-card:hover{
  transform: translateY(-5px);
  border-color:rgba(124,58,237,.35);
  box-shadow: 0 16px 36px rgba(2,6,23,.55);
}

/* ===== FOOTER ===== */
footer{
  position: relative;
  padding: 26px 20px;
  text-align: center;
  color: #bfc9e2;
  background: linear-gradient(180deg, rgba(10,17,33,.75), rgba(10,17,33,.45));
  border-top: 1px solid rgba(255,255,255,.06);
}
footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  opacity:.9;
}
footer p{
  margin: .25rem 0 .75rem;
  font-size: .95rem;
  color: #a9b4cb;
}
footer .socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:6px;
}


footer .socials a{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem .9rem;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.1px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: #d7e6ff;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease, color .15s ease;
  box-shadow: 0 6px 18px rgba(2,6,23,.25);
  position:relative;
}
footer .socials a:hover{
  transform: translateY(-2px);
  color:#fff;
  background: color-mix(in srgb, var(--brand) 8%, rgba(255,255,255,.06));
  border-color: color-mix(in srgb, var(--brand) 45%, rgba(255,255,255,.10));
  box-shadow: 0 10px 28px rgba(0,212,255,.20);
}
footer .socials a:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px var(--ring), 0 10px 28px rgba(0,212,255,.20);
}
footer .socials a::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:8px;
  height:2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  opacity:0;
  transform: scaleX(.6);
  transform-origin:center;
  transition: opacity .15s ease, transform .15s ease;
}
footer .socials a:hover::after{
  opacity:.9;
  transform: scaleX(1);
}

@media (max-width: 520px){
  footer .socials{ gap:8px; }
  footer .socials a{ padding:.5rem .8rem; font-weight:700; }
}

/* FORMS (Contact + Idea Popup) */
.neumorphic-form{
  display:grid;
  gap:12px;
  background: linear-gradient(180deg, #0e1a33, #0a1630);
  border:1px solid rgba(255,255,255,.06);
  border-radius:20px;
  padding:18px;
  box-shadow: 0 14px 34px rgba(2,6,23,.65);
}
.contact-centered{
  max-width:520px;
  margin:0 auto;
}
.neumorphic-input,
.neumorphic-form input,
.neumorphic-form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  color:#e6ecff;
  background: #0b1630;
  border:1px solid #2b3a63;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.neumorphic-input:focus,
.neumorphic-form input:focus,
.neumorphic-form textarea:focus{
  outline:none;
  border-color:#5c7dd7;
  box-shadow:0 0 0 2px rgba(0,212,255,.3);
}

/* form state helpers */
.input--ok{
  border-color: color-mix(in srgb, var(--ok) 80%, transparent);
  box-shadow: 0 0 0 2px rgba(34,197,94,.15);
}
.input--err{
  border-color: color-mix(in srgb, var(--err) 80%, transparent);
  box-shadow: 0 0 0 2px rgba(239,68,68,.12);
}
.form-hint{
  font-size:.78rem;
  color: rgba(229,231,235,.55);
}
.form-hint--err{
  color: rgba(239,68,68,.9);
}

/* POPUP (Idea form) */
.overlay[hidden]{ display:none !important; }
.overlay{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.6);
  z-index:50;
  padding:16px;
}
.popup{
  width:100%;
  max-width:560px;
  background: linear-gradient(180deg, #0d1934, #0b1730);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:20px;
  box-shadow: 0 14px 36px rgba(2,6,23,.6);
  animation: pop-fade .18s ease-out;
}
.neumorphic-popup h2{
  margin:.25rem 0 1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  letter-spacing:.2px;
}
.neumorphic-popup .neumorphic-form label{
  font-weight:600;
  color:#cfe0ff;
  margin-bottom:4px;
}
.neumorphic-popup .neumorphic-form textarea,
.neumorphic-popup .neumorphic-form input{
  background:#0b1630;
  border:1px solid #2b3a63;
  color:#e6ecff;
  border-radius:10px;
  padding:12px;
}
.neumorphic-popup .neumorphic-form textarea::placeholder,
.neumorphic-popup .neumorphic-form input::placeholder{
  color:#8fa3cc;
}

/* Buttons row */
.popup-buttons{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:8px;
}

/* Tiny entrance */
@keyframes pop-fade{
  from{ opacity:0; transform: translateY(6px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}

/* Contact form: make submit button small/standard */
.neumorphic-form .btn{
  justify-self:start;
  width:auto;
  padding:8px 14px;
  font-size:14px;
  line-height:1.2;
  border-radius:999px;
  box-shadow:none;
}
@media (max-width:460px){
  .neumorphic-form .btn{ width:auto; }
}

/* ===== Section CTA (Services) ===== */
.section-cta{
  margin-top:.6rem;
  display:inline-block;
  width:auto;
  align-self:flex-start;
}

/* Base card look shared by all link-cards */
.link-card{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
  padding:14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e1a33, #0b1630);
  border:1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.link-card:hover{
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 35%, rgba(255,255,255,.06));
  box-shadow: 0 12px 30px rgba(2,6,23,.45);
}
.link-card:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 12px 30px rgba(2,6,23,.45);
}

/* Icon chip */
.icon-wrap{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  color: color-mix(in srgb, var(--brand) 75%, #dbeafe);
}
.icon-wrap svg{ width:20px; height:20px; }

/* Text stack */
.link-card .text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.link-card .title{
  font-weight:800;
  letter-spacing:.2px;
}
.link-card .sub{
  color:var(--muted);
  font-size:.93rem;
  margin-top:2px;
}

/* Arrow */
.link-card .chevron{
  margin-left:auto;
  font-size:20px;
  color: color-mix(in srgb, var(--brand) 70%, #dbeafe);
  transition: transform .15s ease;
}
.link-card:hover .chevron{
  transform: translateX(3px);
}

/* Compact variant for Services */
.link-card--compact{
  flex:0 0 auto;
  gap:8px;
  padding:8px 10px;
  min-height:0;
  box-shadow:0 6px 18px rgba(2,6,23,.32);
}
.link-card--compact .icon-wrap{
  width:28px;
  height:28px;
  border-radius:8px;
}
.link-card--compact .icon-wrap svg{
  width:14px;
  height:14px;
}
.link-card--compact .title{
  font-size:.95rem;
}
.link-card--compact .sub{
  font-size:.82rem;
  margin-top:1px;
}
.link-card--compact .chevron{
  font-size:16px;
}

@media (max-width:520px){
  .link-card:not(.link-card--compact){ padding:12px 14px; }
  .link-card:not(.link-card--compact) .icon-wrap{ width:36px; height:36px; }
  .link-card:not(.link-card--compact) .icon-wrap svg{ width:18px; height:18px; }
}

/* Force tables to stack on narrow screens (<= 900px) */
@media (max-width: 900px){
  .table-responsive{
    overflow: visible;
    border: 0;
  }

  .neumorphic-table{
    width: 100%;
    min-width: 0;
    border-spacing: 0;
  }

  .neumorphic-table thead{
    display: none;
  }

  .neumorphic-table,
  .neumorphic-table tbody,
  .neumorphic-table tr,
  .neumorphic-table td{
    display: block;
    width: 100%;
  }

  .neumorphic-table tbody tr{
    margin: 0 0 12px;
    background: linear-gradient(180deg, #0c1a33, #0b1730);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
  }

  .neumorphic-table td{
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 8px;
    align-items: start;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .neumorphic-table td:last-child{ border-bottom: 0; }

  .neumorphic-table td::before{
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }
}

/* ===== FAQ CARDS ===== */
.faq-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-bottom:32px;
}
@media (max-width: 900px){
  .faq-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px){
  .faq-grid{
    grid-template-columns: 1fr;
  }
}
.faq-card{
  background: linear-gradient(180deg, #0e1a33, #0b1730);
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 28px rgba(2,6,23,.55);
  padding:14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.faq-card:hover{
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 25%, rgba(255,255,255,.08));
  box-shadow: 0 14px 32px rgba(2,6,23,.75);
}

/* Question button */
.faq-question{
  width:100%;
  background:transparent;
  border:0;
  padding:4px 2px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  color:var(--text);
  font-size:.95rem;
  font-weight:600;
  cursor:pointer;
}
.faq-question span:first-child{
  flex:1;
}

/* plus icon */
.faq-icon{
  width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  color: var(--brand);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

/* Answer panel (collapsible) */
.faq-answer{
  font-size:.9rem;
  color:var(--muted);
  line-height:1.5;
  max-height:0;
  opacity:0;
  overflow:hidden;
  pointer-events:none;
  transform: translateY(4px);
  transition: max-height .2s ease, opacity .18s ease, transform .18s ease;
}
.faq-card.is-open .faq-answer{
  max-height:160px;
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
  margin-top:4px;
}
.faq-card.is-open .faq-icon{
  transform: rotate(45deg);
  background: rgba(0,212,255,.16);
  color:#e5f6ff;
}

/* enable hover open on devices that support hover (desktop) */
@media (hover: hover){
  .faq-card:hover .faq-answer{
    max-height:160px;
    opacity:1;
    transform: translateY(0);
    pointer-events:auto;
    margin-top:4px;
  }
  .faq-card:hover .faq-icon{
    transform: rotate(45deg);
    background: rgba(0,212,255,.16);
    color:#e5f6ff;
  }
}

/* ===== Scroll reveal (data-reveal) ===== */
[data-reveal]{
  opacity:0;
  transform: translateY(18px);
  transition:
    opacity .55s ease,
    transform .55s ease;
  will-change: opacity, transform;
}
.reveal-visible{
  opacity:1;
  transform: translateY(0);
}
[data-reveal="left"]{
  transform: translateX(-18px);
}
[data-reveal="right"]{
  transform: translateX(18px);
}
[data-reveal="left"].reveal-visible,
[data-reveal="right"].reveal-visible{
  transform: translateX(0);
}

/* ===== Cursor glow blob (desktop only) ===== */
.cursor-blob{
  position:fixed;
  width:80px;
  height:80px;
  border-radius:999px;
  pointer-events:none;
  mix-blend-mode:screen;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), rgba(0,212,255,.12));
  filter: blur(3px);
  opacity:.6;
  z-index:5;
  transform: translate3d(-999px,-999px,0);
  transition: opacity .25s ease;
}
@media (max-width: 900px){
  .cursor-blob{
    display:none;
  }
}

/* Tilted card helper */
.tilted-card{
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

/* ACCESSIBILITY HELPERS */
.visually-hidden{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* SCROLL-TOP */
.scroll-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:38px;
  height:38px;
  border-radius:999px;
  background: linear-gradient(180deg, var(--brand), #60a5fa);
  border:1px solid rgba(255,255,255,.15);
  display:grid;
  place-items:center;
  color:#0b1220;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition: opacity .12s ease;
  box-shadow: 0 8px 26px rgba(0,212,255,.28);
  z-index:60;
}
.scroll-top.show{
  opacity:1;
  pointer-events:auto;
  animation: floaty 5s ease-in-out infinite;
}
.scroll-top:hover{
  transform: translateY(-2px);
}

/* RESPONSIVE — desktop first, adjust downwards */
@media (max-width: 1024px){
  .hero-inner,
  .neumorphic-about{ grid-template-columns:1fr; }
  .project-grid{ grid-template-columns: 1fr 1fr; }
  .service-slider{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px){
  .menu-toggle{ display:block; }
  .nav-links{
    position:absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    background: linear-gradient(180deg, rgba(11,17,32,.96), rgba(11,17,32,.88));
    border-bottom:1px solid rgba(255,255,255,.06);
    padding:10px 16px;
    display:none;
    flex-direction:column;
    gap:6px;
    border-radius: var(--radius);
  }
  .nav-links.active{ display:flex; }

  .project-grid{ grid-template-columns:1fr; }
  .project-card img{ height:200px; }

  /* Services: carousel mode on mobile — JS toggles .active */
  .service-slider{ grid-template-columns: 1fr; }
  .service-slider .neumorphic-service-item{ display:none; }
  .service-slider .neumorphic-service-item.active{ display:block; }

  /* show slider arrows on mobile */
  .slider-btn{ display:inline-flex; }

  /* larger tap targets on mobile */
  .slider-btn{ width:40px; height:40px; }

  /* keep arrows from overlapping card text */
  .service-slider{
    padding-inline:40px;
    overflow:hidden;
  }
  .prev-service{ left:8px; }
  .next-service{ right:8px; }

  .hero-inner{
    gap:18px;
    padding:20px;
  }
}
@media (max-width: 460px){
  .actions .btn{
    width:100%;
    justify-content:center;
  }
  .actions{
    flex-direction:column;
  }
}

/* Make images never overflow */
img{
  max-width:100%;
  height:auto;
}

/* About image: keep the compact, framed portrait and center it on small screens */
@media (max-width: 1024px){
  .about-img{
    margin-inline:auto;
    max-width:480px;
  }
}
@media (max-width: 520px){
  .about-img img{
    max-width:360px;
    aspect-ratio: 4 / 5;
  }
}

/* === Arrow-only service nav (no circles) === */
.slider-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 6px 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  box-shadow: none;
  cursor: pointer;
  display: none; /* hidden on desktop; shown in mobile MQ above */
}
.prev-service{ left:8px; }
.next-service{ right:8px; }
.slider-btn:hover{
  color: var(--brand);
  transform: translateY(-50%) scale(1.08);
}
.slider-btn:focus-visible{
  outline: 2px dashed var(--brand);
  outline-offset: 2px;
}
@media (pointer: coarse){
  .slider-btn{
    font-size:30px;
    padding:10px;
  }
}

/* AOS perf hint */
[data-aos]{
  will-change: transform, opacity;
}

/* =========================================
   LT DEV STUDIO — End of stylesheet
   ========================================= */
