/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOKENS — UI UX PRO MAX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root{
  --surface:              #ffffff;
  --surface-dim:          #f8fafc;
  --surface-low:          #f1f5f9;
  --ink:                  #0f172a;   
  --ink-variant:          #64748b;   
  --primary:              #2563eb;   /* Electric Blue */
  --primary-deep:         #1d4ed8;
  --accent:               #bef264;   /* Brand Lime Green */
  --on-primary:           #ffffff;
  --border:               rgba(15, 23, 42, 0.1);
  --border-dark:          #0f172a;
  
  --ff-display:           'Lexend Mega', sans-serif;
  --ff-sans:              'Inter', sans-serif;
  --expo:                 cubic-bezier(0.16, 1, 0.3, 1);
  --r-md:                 12px;
  --r-lg:                 24px;
  --glow:                 0 20px 40px -10px rgba(37, 99, 235, 0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GLOBAL & NOISE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:var(--ff-sans);
  background:var(--surface);
  color:var(--ink);
  overflow-x:hidden;
  cursor: none;
  line-height: 1.5;
}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit;transition: color .3s var(--expo)}

/* Grain Overlay (Premium Touch) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PREMIUM COMPONENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#cursor{
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}
#cursor-follower{
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--expo);
}

#loader{
  position:fixed;inset:0;
  z-index:10000;
  background:var(--ink);
  display:flex;align-items:center;justify-content:center;
}
.loader-content{ text-align:center; }
.loader-txt{
  font-family:var(--ff-display);
  font-size:clamp(1rem, 2vw, 1.25rem);
  color:var(--on-primary);
  text-transform:uppercase;
  letter-spacing:.5em;
  margin-bottom:24px;
}
.loader-bar-wrap{ width:240px; height:1px; background:rgba(255,255,255,0.1); margin:0 auto; overflow:hidden; }
.loader-bar{ width:0%; height:100%; background:var(--primary); }
.loader-logo{ width:200px; height:200px; margin:0 auto 40px; perspective: 1000px; }
.loader-logo img{ width:100%; height:100%; object-fit:contain; }

/* Nav */
#nav{
  position:fixed;top:32px;left:50%;
  transform: translateX(-50%) translateY(-150%);
  z-index:2000;
  padding:12px 32px;
  display:flex;align-items:center;justify-content:space-between;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  width: auto;
  min-width: 600px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transition: transform 0.6s var(--expo);
}
#nav.visible { transform: translateX(-50%) translateY(0); }

.nav-logo-wrap{ display:flex; align-items:center; gap:12px; }
.nav-logo-wrap img{ height:24px; }
.nav-logo-text{ 
  font-family:var(--ff-display); 
  font-size:0.9rem; 
  font-weight:900; 
  color:var(--ink); 
  letter-spacing:-0.05em;
  text-transform:uppercase;
}
.nav-links{ display:flex; gap:32px; list-style:none; }
.nav-links a{ 
  font-size:.7rem; font-weight:700; text-transform:uppercase; 
  letter-spacing:.1em; color:var(--ink);
}
.nav-links a:hover{ color:var(--primary); }

/* Hero */
#hero{
  min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  padding:0 56px 80px 56px;
  position:relative;
  overflow:hidden;
}
.hero-h1{
  font-family:var(--ff-display);
  font-size:clamp(3.5rem, 10vw, 12rem);
  font-weight:900;
  line-height:0.85;
  letter-spacing:-.06em;
  margin-bottom:60px;
}
.hero-h1 > span{ display:block; overflow:hidden; }
.hero-h1 em{ 
  font-style:normal;
  -webkit-text-stroke: 2px var(--ink);
  color:transparent;
}
/* Hero word-split wrappers */
.w-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.w-word { display: inline-block; }
.w-sp   { display: inline-block; width: 0.28em; }
.hero-foot{ display:block; }
.hero-desc{ max-width:720px; font-size:1.2rem; color:var(--ink-variant); line-height:1.7; margin-bottom: 48px; }
.hero-sub{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-variant);
  margin-bottom: 32px;
  opacity: 0.7;
}
.hero-sub-dot{
  font-size: 0.4rem;
  color: var(--primary);
  opacity: 0.6;
}
.btn-primary{
  display: inline-block;
  padding:24px 56px;
  background:var(--ink);
  color:white;
  font-family:var(--ff-sans);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  border-radius:var(--r-md);
  transition: all .4s var(--expo);
}
.btn-primary:hover{ 
  background: var(--primary); 
  transform: translateY(-4px); 
  box-shadow: var(--glow);
}

/* Bento Grid */
#services{ padding:160px 56px; background:var(--surface-dim); }
.section-h{ font-family:var(--ff-display); font-size:clamp(2.5rem, 5.5vw, 5rem); line-height:0.9; margin-bottom:80px; }
.srv-bento{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  grid-template-rows:repeat(2, 320px);
  gap:20px;
}
.srv-card{
  background:white;
  padding:48px;
  border-radius:var(--r-lg);
  border:1px solid var(--border);
  display:flex;flex-direction:column;justify-content:space-between;
  transition:all .6s var(--expo);
}
.srv-card:hover{ border-color:var(--primary); box-shadow: 0 40px 80px -20px rgba(37,99,235,0.15); transform:translateY(-12px); }
.srv-card.large{ grid-column: span 2; }
.srv-card h3{ font-family:var(--ff-display); font-size:2rem; line-height:1.1; margin-bottom:16px; }
.srv-card p{ font-size:1rem; color:var(--ink-variant); }
.srv-num{ font-family:var(--ff-display); font-size:.8rem; color:var(--primary); margin-bottom:24px; display:block; }

/* Portfolio */
#portfolio{ padding:160px 56px; }
.port-row{
  display:grid; grid-template-columns: 80px 1fr 200px 100px;
  padding:48px 0;
  border-top:1px solid var(--border);
  align-items:center;
  transition:all .4s var(--expo);
}
.port-row:hover{ color:var(--primary); padding-left:32px; border-top-color: var(--primary); }
.port-title{ font-family:var(--ff-display); font-size:3rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STATS & WHY US
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#stats{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:white; }
.stats-row{ display:grid; grid-template-columns:repeat(4, 1fr); }
.stat{ padding:100px 56px; border-right:1px solid var(--border); text-align: center; }
.stat:last-child{ border-right:none; }
.stat-v{ font-family:var(--ff-display); font-size:5rem; line-height:1; color:var(--primary); }
.stat-l{ font-family:var(--ff-sans); font-size:.75rem; text-transform:uppercase; letter-spacing:.2em; color:var(--ink-variant); margin-top:12px; font-weight:700; }

#why{ padding:160px 56px; background:var(--surface); }
.why-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:120px; align-items: start; }
.why-left h2{ font-family:var(--ff-display); font-size:clamp(3rem, 6vw, 6rem); line-height:0.9; margin-bottom:40px; }
.why-right{ display:grid; gap:40px; }
.why-item{ padding:40px; background:white; border:1px solid var(--border); border-radius:var(--r-lg); transition: all .4s var(--expo); }
.why-item:hover{ border-color:var(--primary); transform:translateX(10px); }
.why-item h4{ font-family:var(--ff-display); font-size:1.5rem; margin-bottom:16px; display:flex; align-items:center; gap:16px; }
.why-item h4::before{ content:''; width:12px; height:12px; background:var(--primary); border-radius:2px; transform:rotate(45deg); }
.why-item p{ color:var(--ink-variant); line-height:1.7; font-size:1.1rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PORTFOLIO CAROUSEL
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#portfolio{ padding:160px 0; overflow:hidden; }
.port-header{ padding:0 56px; margin-bottom:80px; display:flex; justify-content:space-between; align-items:flex-end; }
.port-carousel{ padding-left:56px; cursor: grab; }
.port-carousel:active{ cursor: grabbing; }
.port-track{ display:flex; gap:40px; }
.port-card{ 
  flex: 0 0 800px; 
  aspect-ratio: 16/10;
  background: var(--surface-low); 
  border-radius: var(--r-lg); 
  overflow:hidden;
  position:relative;
  border:1px solid var(--border);
}
.port-card img{ width:100%; height:100%; object-fit:cover; transition: transform .8s var(--expo); pointer-events: none; }
.port-card:hover img{ transform: scale(1.05); }
.port-carousel {
  padding-left: 56px;
  cursor: grab;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: auto; /* Important for drag */
}
.port-carousel::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.port-info{ 
  position:absolute; bottom:0; left:0; right:0; 
  padding:40px; background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%); 
  color:white; transform: translateY(20px); opacity:0; transition: all .6s var(--expo);
}
.port-card:hover .port-info{ transform: translateY(0); opacity:1; }
.port-info h3{ font-family:var(--ff-display); font-size:2rem; margin-bottom:8px; }
.port-info p{ font-size:.9rem; opacity:0.8; text-transform:uppercase; letter-spacing:.1em; }

.port-nav-btns{ display:flex; gap:16px; margin-top: 40px; padding: 0 56px; }
.port-btn{
  width:64px; height:64px; border-radius:50%; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition: all .4s var(--expo);
  background: white; color: var(--ink);
}
.port-btn:hover{ background:var(--primary); border-color:var(--primary); color:white; transform: scale(1.1); }
.port-btn svg{ width:24px; height:24px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TESTIMONIALS (Premium Cards)
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#testimonials{ padding:160px 56px; background:var(--ink); color:white; }
.testi-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:32px; margin-top:80px; min-height: 400px; }
.testi-card{ background:rgba(255,255,255,0.03); padding:48px; border-radius:var(--r-lg); border:1px solid rgba(255,255,255,0.1); opacity:1 !important; visibility:visible !important; }
.testi-card:hover{ background:rgba(255,255,255,0.06); border-color:var(--primary); transform:translateY(-10px); }
.testi-quote{ font-size:1.25rem; line-height:1.6; margin-bottom:32px; font-style: italic; }
.testi-user{ display:flex; align-items:center; gap:20px; }
.testi-avatar{ width:56px; height:56px; border-radius:16px; background:var(--primary); display:flex; align-items:center; justify-content:center; font-family:var(--ff-display); font-weight:900; color:white; }
.testi-info h5{ font-family:var(--ff-display); font-size:1rem; }
.testi-info p{ font-size:.8rem; opacity:0.6; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE OVERRIDES (MOBILE FIRST APPROACH)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
  #nav { min-width: 90%; padding: 12px 24px; }
  .nav-links { gap: 16px; }
  .srv-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { gap: 60px; }
}

@media (max-width: 768px) {
  section { padding: 80px 20px !important; }
  body { cursor: auto !important; }
  #cursor, #cursor-follower { display: none !important; }
  
  /* Nav Mobile */
  .nav-links { display: none; }
  .nav-hamburger { display: flex !important; }
  #nav { min-width: calc(100% - 48px); justify-content: space-between; top: 16px; }

  /* Hero Mobile */
  #hero { padding: 120px 20px 60px !important; overflow: hidden; }
  .hero-h1 { font-size: clamp(1.75rem, 8.5vw, 2.75rem) !important; line-height: 1.05; letter-spacing: -0.02em; }
  .hero-h1 > span { overflow: visible; }
  /* word-split wrappers */
  .w-wrap { display: inline-block !important; overflow: hidden !important; vertical-align: bottom !important; }
  .w-word { display: inline-block !important; }

  .hero-desc { font-size: 1rem; }
  .hero-sub { font-size: 0.62rem; gap: 10px; letter-spacing: 0.12em; }

  /* Services Mobile */
  .srv-bento { grid-template-columns: 1fr; grid-template-rows: auto; gap: 16px; }
  .srv-card.large { grid-column: span 1; }
  .srv-card { padding: 24px; min-height: auto; }
  .srv-card h3 { font-size: 1.5rem; }

  /* Stats Mobile */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 40px 24px; }
  .stat-v { font-size: 3rem; }

  /* Why Us Mobile */
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-left h2 { font-size: 2.5rem; }

  /* Portfolio Mobile */
  .port-header { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .port-carousel { padding-left: 24px; }
  .port-card { flex: 0 0 85vw; }
  .port-info { padding: 24px; }
  .port-info h3 { font-size: 1.5rem; }

  /* Testimonials Mobile */
  .testi-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .testi-card { padding: 32px; }

  /* CTA & Footer Mobile */
  #cta { padding: 100px 20px; }
  .cta-h { font-size: 2.75rem; }
  .btn-cta { width: 100%; padding: 20px; font-size: 1.1rem; }
  .foot-top { grid-template-columns: 1fr; gap: 40px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA & FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#cta{ padding:200px 56px; text-align:center; background:var(--primary); color:white; }
.cta-h{ font-family:var(--ff-display); font-size:clamp(3rem, 10vw, 10rem); line-height:0.8; letter-spacing:-.04em; margin-bottom:64px; }
.btn-cta{ padding:32px 80px; background:white; color:var(--primary); font-family:var(--ff-display); font-size:1.5rem; border-radius:var(--r-md); transition:all .4s var(--expo); display:inline-block; }
.btn-cta:hover{ transform:scale(1.05); box-shadow: 0 40px 100px rgba(0,0,0,0.2); }

#footer{ padding:120px 56px 60px; background:var(--surface-dim); border-top:1px solid var(--border); }
.foot-top{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:80px; margin-bottom:100px; }
.foot-logo img{ height:32px; margin-bottom:32px; }
.foot-desc{ color:var(--ink-variant); max-width:320px; }
.foot-h{ font-family:var(--ff-display); font-size:.8rem; text-transform:uppercase; letter-spacing:.2em; margin-bottom:32px; }
.foot-links{ list-style:none; }
.foot-links li{ margin-bottom:16px; }
.foot-links a{ color:var(--ink-variant); font-size:.9rem; }
.foot-links a:hover{ color:var(--primary); }
.foot-bot{ padding-top:40px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; color:var(--ink-variant); font-size:.8rem; }

@media(max-width:1024px){
  .stats-row, .testi-grid, .foot-top{ grid-template-columns: 1fr 1fr; }
  #why{ grid-template-columns: 1fr; gap:60px; }
  .port-row{ grid-template-columns: 40px 1fr auto; }
}
@media(max-width:768px){
  .stats-row, .testi-grid, .foot-top{ grid-template-columns: 1fr; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HAMBURGER MENU (MOBILE)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 3000;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.35s var(--expo);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--expo);
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mm-inner {
  text-align: center;
  padding: 40px 24px;
}
.mm-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 60px;
}
.mm-link {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 12vw, 4rem);
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: color 0.3s var(--expo);
}
.mm-link:hover { color: var(--accent); }
.mm-footer {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  font-family: var(--ff-sans);
  font-weight: 700;
}

/* FAQ Accordion Section Style */
#faq { padding: 160px 56px; background: var(--surface); position: relative; z-index: 10; border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; max-width: 1400px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq-item {
  background: var(--surface-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .4s var(--expo);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item.active { border-color: var(--primary); background: white; box-shadow: 0 20px 40px -10px rgba(37,99,235,0.05); }
.faq-trigger {
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--ff-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.faq-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s var(--expo);
}
.faq-item:hover .faq-icon-wrap { border-color: var(--primary); color: var(--primary); }
.faq-item.active .faq-icon-wrap { background: var(--primary); border-color: var(--primary); color: white; transform: rotate(45deg); }
.faq-icon-wrap svg { width: 14px; height: 14px; fill: currentColor; transition: transform .4s var(--expo); }
.faq-content {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--expo);
}
.faq-content-inner {
  padding: 0 40px 32px 40px;
  font-family: var(--ff-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-variant);
}
.faq-content-inner strong { color: var(--ink); }

@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  #faq { padding: 80px 24px !important; }
  .faq-trigger { padding: 24px 20px; font-size: 1.05rem; }
  .faq-content-inner { padding: 0 20px 24px 20px; font-size: 0.95rem; }
}
