/* ==========================================================================
   A KABIR PORTFOLIO — DESIGN SYSTEM
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root{
  --bg:#050816;
  --bg-secondary:#0B1120;
  --primary:#3B82F6;
  --accent:#8B5CF6;
  --text:#FFFFFF;
  --text-secondary:#94A3B8;
  --glow:#60A5FA;

  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --glass-bg-strong: rgba(255,255,255,0.07);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 40px rgba(96,165,250,0.25);
  --shadow-card: 0 20px 40px -20px rgba(0,0,0,0.6);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-h: 76px;
  --container: 1240px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

[data-theme="light"]{
  --bg:#F6F7FB;
  --bg-secondary:#FFFFFF;
  --text:#0B1120;
  --text-secondary:#48546B;
  --glass-bg: rgba(11,17,32,0.04);
  --glass-border: rgba(11,17,32,0.10);
  --glass-bg-strong: rgba(11,17,32,0.06);
  --shadow-card: 0 20px 40px -20px rgba(20,30,60,0.18);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
html,body{ height:100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,textarea,select{ font-family:inherit; }

h1,h2,h3,h4{ font-family:var(--font-heading); font-weight:600; letter-spacing:-0.02em; line-height:1.12; }

::selection{ background: var(--primary); color:#fff; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Layout helpers ---------- */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:120px 0; position:relative; }
.section-sm{ padding:80px 0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-heading); font-size:13px; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--glow); margin-bottom:16px;
}
.eyebrow::before{ content:''; width:24px; height:2px; background:linear-gradient(90deg,var(--primary),var(--accent)); border-radius:2px; }
.section-title{ font-size:clamp(28px,4vw,44px); margin-bottom:14px; }
.section-sub{ color:var(--text-secondary); max-width:620px; font-size:17px; }

/* ---------- Aurora background ---------- */
.aurora{
  position:fixed; inset:0; z-index:-2; overflow:hidden; pointer-events:none;
  background: var(--bg);
}
.aurora::before, .aurora::after{
  content:''; position:absolute; width:70vw; height:70vw; max-width:900px; max-height:900px;
  border-radius:50%; filter: blur(120px); opacity:0.35;
  animation: aurora-float 22s ease-in-out infinite;
}
.aurora::before{
  background: radial-gradient(circle, var(--primary), transparent 65%);
  top:-20%; left:-10%;
}
.aurora::after{
  background: radial-gradient(circle, var(--accent), transparent 65%);
  bottom:-25%; right:-10%;
  animation-delay: -10s;
  animation-direction: reverse;
}
[data-theme="light"] .aurora::before,
[data-theme="light"] .aurora::after{ opacity:0.18; }

@keyframes aurora-float{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(6%,8%) scale(1.1); }
  66%{ transform: translate(-4%,-6%) scale(0.95); }
}

.noise-overlay{
  position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:0.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass components ---------- */
.glass{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
}
.glass-card{
  background: var(--glass-bg);
  border:1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding:28px;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .4s;
}
.glass-card:hover{
  transform: translateY(-6px);
  border-color: rgba(96,165,250,0.4);
  box-shadow: var(--shadow-glow);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-heading); font-size:15px; font-weight:500;
  padding:14px 28px; border-radius:999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s;
  white-space:nowrap;
}
.btn-primary{
  background: linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff;
  box-shadow: 0 8px 30px -8px rgba(59,130,246,0.6);
}
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 40px -8px rgba(139,92,246,0.7); }
.btn-ghost{
  border:1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover{ border-color: var(--glow); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-sm{ padding:10px 20px; font-size:13px; }
.btn[disabled]{ opacity:0.5; cursor:not-allowed; pointer-events:none; }

.btn .spinner{ display:none; width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,0.4); border-top-color:#fff; animation: spin .7s linear infinite; }
.btn.loading .spinner{ display:inline-block; }
.btn.loading .btn-label{ opacity:0.7; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.navbar{
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--nav-h);
  display:flex; align-items:center;
  background: transparent;
  transition: background .4s var(--ease), border-color .4s, height .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled{
  background: color-mix(in srgb, var(--bg-secondary) 75%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  height:66px;
}
.nav-inner{ width:100%; display:flex; align-items:center; justify-content:space-between; }
.brand{ font-family:var(--font-heading); font-weight:700; font-size:20px; letter-spacing:-0.01em; display:flex; align-items:center; gap:10px; }
.brand-mark{
  width:36px; height:36px; border-radius:10px;
  background: linear-gradient(135deg,var(--primary),var(--accent));
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:15px; font-weight:700;
}
.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{
  font-size:14.5px; font-weight:500; padding:9px 16px; border-radius:999px; color: var(--text-secondary);
  transition: color .25s, background .25s;
  position:relative;
}
.nav-links a:hover{ color:var(--text); background: var(--glass-bg); }
.nav-links a.active{ color:#fff; background: linear-gradient(135deg,var(--primary),var(--accent)); }
.nav-actions{ display:flex; align-items:center; gap:10px; }

.theme-toggle{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--glass-border); background:var(--glass-bg); transition: border-color .3s, transform .3s;
}
.theme-toggle:hover{ border-color:var(--glow); transform: rotate(20deg); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-moon{ display:none; }
[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

.nav-toggle{ display:none; width:40px; height:40px; border-radius:10px; border:1px solid var(--glass-border); background:var(--glass-bg); align-items:center; justify-content:center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; display:block; width:18px; height:2px; background: var(--text); position:relative; transition: transform .3s, opacity .3s;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.nav-toggle.open span{ background:transparent; }
.nav-toggle.open span::before{ top:0; transform: rotate(45deg); background:var(--text); }
.nav-toggle.open span::after{ top:0; transform: rotate(-45deg); background:var(--text); }

/* ---------- Scroll progress ---------- */
.scroll-progress{ position:fixed; top:0; left:0; height:3px; width:0%; background: linear-gradient(90deg,var(--primary),var(--accent)); z-index:200; transition: width .1s linear; }

/* ---------- Hero ---------- */
.hero{ min-height:100vh; display:flex; align-items:center; padding-top:var(--nav-h); position:relative; }
.hero-grid{ display:grid; grid-template-columns: 1.15fr 0.85fr; gap:48px; align-items:center; }
.hero-eyebrow{ display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border-radius:999px; border:1px solid var(--glass-border); background:var(--glass-bg); font-size:13px; color:var(--text-secondary); margin-bottom:24px; }
.hero-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:#34D399; box-shadow:0 0 8px #34D399; }
.hero h1{ font-size:clamp(38px,6vw,74px); }
.hero h1 .highlight{ background: linear-gradient(135deg,var(--primary),var(--glow),var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero .role{ font-family:var(--font-heading); font-size:clamp(18px,2.2vw,26px); color:var(--text-secondary); margin-top:10px; min-height:1.4em; }
.hero .role .cursor{ display:inline-block; width:2px; background:var(--glow); margin-left:2px; animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.hero p.tagline{ margin-top:22px; font-size:17px; color:var(--text-secondary); max-width:520px; }
.hero-actions{ display:flex; gap:14px; margin-top:36px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:36px; margin-top:56px; flex-wrap:wrap; }
.hero-stats .stat b{ font-family:var(--font-heading); font-size:28px; display:block; background:linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-stats .stat span{ font-size:13px; color:var(--text-secondary); }

.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-photo-wrap{
  position:relative; width:100%; max-width:400px; aspect-ratio:1/1.05; border-radius:32px;
  background: var(--glass-bg); border:1px solid var(--glass-border); overflow:hidden;
  box-shadow: var(--shadow-glow);
}
.hero-photo-wrap img{ width:100%; height:100%; object-fit:cover; }
.hero-photo-wrap::after{
  content:''; position:absolute; inset:0; border-radius:32px;
  background: linear-gradient(160deg, transparent 50%, rgba(59,130,246,0.25));
}
.hero-orbit{ position:absolute; inset:-30px; border:1px dashed var(--glass-border); border-radius:50%; animation: spin-slow 30s linear infinite; }
@keyframes spin-slow{ to{ transform: rotate(360deg); } }
.float-badge{
  position:absolute; padding:10px 16px; border-radius:14px; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
  animation: floaty 5s ease-in-out infinite;
}
.float-badge.b1{ top:6%; left:-8%; animation-delay:0s; }
.float-badge.b2{ bottom:10%; right:-10%; animation-delay:1.5s; }
@keyframes floaty{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

.scroll-indicator{
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--text-secondary); font-size:12px;
}
.scroll-indicator .mouse{ width:24px; height:38px; border:2px solid var(--glass-border); border-radius:14px; display:flex; justify-content:center; padding-top:6px; }
.scroll-indicator .mouse span{ width:4px; height:8px; border-radius:2px; background: var(--glow); animation: scrolldown 1.6s ease-in-out infinite; }
@keyframes scrolldown{ 0%{ opacity:1; transform:translateY(0); } 100%{ opacity:0; transform:translateY(10px); } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal-stagger > *{ transition-delay: calc(var(--i,0) * 80ms); }

/* ---------- Grid layouts ---------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:56px; align-items:start; }
.about-photo{ border-radius:28px; overflow:hidden; border:1px solid var(--glass-border); position:sticky; top:110px; }
.about-photo img{ width:100%; aspect-ratio:4/5; object-fit:cover; }
.timeline{ position:relative; padding-left:28px; margin-top:20px; }
.timeline::before{ content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background: linear-gradient(var(--primary),var(--accent)); }
.timeline-item{ position:relative; padding-bottom:32px; }
.timeline-item::before{ content:''; position:absolute; left:-28px; top:4px; width:12px; height:12px; border-radius:50%; background:var(--glow); box-shadow:0 0 0 4px var(--glass-bg), 0 0 16px var(--glow); }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item .date{ font-size:12.5px; color:var(--glow); font-weight:600; letter-spacing:.04em; text-transform:uppercase; margin-bottom:4px; }
.timeline-item h4{ font-size:17px; margin-bottom:4px; }
.timeline-item p{ color:var(--text-secondary); font-size:14.5px; }
.mv-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px; }

/* ---------- Skills ---------- */
.skills-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.skills-tab{ padding:10px 20px; border-radius:999px; border:1px solid var(--glass-border); background:var(--glass-bg); font-size:14px; font-weight:500; color:var(--text-secondary); transition:.25s; }
.skills-tab.active, .skills-tab:hover{ color:#fff; background:linear-gradient(135deg,var(--primary),var(--accent)); border-color:transparent; }
.skill-item{ display:flex; align-items:center; gap:14px; padding:16px 18px; }
.skill-icon{ width:42px; height:42px; border-radius:12px; background:var(--glass-bg-strong); display:flex; align-items:center; justify-content:center; font-family:var(--font-heading); font-weight:700; font-size:14px; color:var(--glow); flex-shrink:0; }
.skill-info{ flex:1; }
.skill-info .name{ font-size:14.5px; font-weight:600; margin-bottom:6px; display:flex; justify-content:space-between; }
.skill-bar{ height:6px; border-radius:4px; background:var(--glass-bg-strong); overflow:hidden; }
.skill-bar-fill{ height:100%; border-radius:4px; background:linear-gradient(90deg,var(--primary),var(--accent)); width:0%; transition: width 1.2s var(--ease); }

/* ---------- Counters ---------- */
.counters{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.counter-card{ text-align:center; padding:32px 20px; }
.counter-num{ font-family:var(--font-heading); font-size:40px; background:linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.counter-label{ color:var(--text-secondary); font-size:13.5px; margin-top:6px; }

/* ---------- Projects ---------- */
.projects-toolbar{ display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:36px; }
.search-box{ position:relative; flex:1; min-width:240px; max-width:360px; }
.search-box input{ width:100%; padding:12px 16px 12px 42px; border-radius:12px; border:1px solid var(--glass-border); background:var(--glass-bg); color:var(--text); font-size:14px; }
.search-box input::placeholder{ color:var(--text-secondary); }
.search-box svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-secondary); }
.filter-chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ padding:8px 16px; border-radius:999px; border:1px solid var(--glass-border); background:var(--glass-bg); font-size:13px; color:var(--text-secondary); transition:.25s; }
.chip.active, .chip:hover{ color:#fff; background:linear-gradient(135deg,var(--primary),var(--accent)); border-color:transparent; }

.project-card{ display:flex; flex-direction:column; overflow:hidden; padding:0; }
.project-thumb{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--glass-bg-strong); }
.project-thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.project-card:hover .project-thumb img{ transform: scale(1.08); }
.project-thumb .overlay{ position:absolute; inset:0; background:linear-gradient(180deg,transparent 40%,rgba(5,8,22,0.85)); opacity:0; transition:.4s; display:flex; align-items:flex-end; padding:16px; gap:10px; }
.project-card:hover .project-thumb .overlay{ opacity:1; }
.project-body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.project-body h3{ font-size:18px; }
.project-body p{ color:var(--text-secondary); font-size:14px; flex:1; }
.tech-tags{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0; }
.tech-tags span{ font-size:11.5px; padding:4px 10px; border-radius:999px; background:var(--glass-bg-strong); color:var(--glow); border:1px solid var(--glass-border); }
.project-links{ display:flex; gap:10px; margin-top:6px; }
.project-links a{ font-size:13px; font-weight:600; display:flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; border:1px solid var(--glass-border); transition:.25s; }
.project-links a:hover{ border-color:var(--glow); color:var(--glow); }
.pagination{ display:flex; justify-content:center; gap:8px; margin-top:44px; }
.pagination button{ width:38px; height:38px; border-radius:10px; border:1px solid var(--glass-border); background:var(--glass-bg); font-size:14px; }
.pagination button.active{ background:linear-gradient(135deg,var(--primary),var(--accent)); border-color:transparent; }
.load-more-wrap{ display:flex; justify-content:center; margin-top:40px; }
.empty-state{ text-align:center; padding:60px 20px; color:var(--text-secondary); }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:48px; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; padding:20px 0; border-bottom:1px solid var(--glass-border); }
.contact-info-item:last-child{ border-bottom:none; }
.contact-icon{ width:44px; height:44px; border-radius:12px; background:var(--glass-bg-strong); display:flex; align-items:center; justify-content:center; color:var(--glow); flex-shrink:0; }
.social-row{ display:flex; gap:10px; margin-top:24px; }
.social-btn{ width:44px; height:44px; border-radius:12px; border:1px solid var(--glass-border); background:var(--glass-bg); display:flex; align-items:center; justify-content:center; transition:.3s; }
.social-btn:hover{ border-color:var(--glow); transform:translateY(-3px); box-shadow:var(--shadow-glow); }

.form-group{ margin-bottom:20px; }
.form-group label{ display:block; font-size:13px; font-weight:600; margin-bottom:8px; color:var(--text-secondary); }
.form-group input, .form-group textarea{
  width:100%; padding:14px 16px; border-radius:12px; border:1px solid var(--glass-border); background:var(--glass-bg); color:var(--text); font-size:14.5px;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus{ border-color:var(--glow); box-shadow:0 0 0 3px rgba(96,165,250,0.15); outline:none; }
.form-group textarea{ resize:vertical; min-height:140px; }
.form-error{ color:#F87171; font-size:12.5px; margin-top:6px; display:none; }
.form-group.invalid input, .form-group.invalid textarea{ border-color:#F87171; }
.form-group.invalid .form-error{ display:block; }
.form-status{ margin-top:16px; padding:14px 16px; border-radius:12px; font-size:14px; display:none; }
.form-status.show{ display:flex; align-items:center; gap:10px; }
.form-status.success{ background:rgba(52,211,153,0.12); color:#34D399; border:1px solid rgba(52,211,153,0.3); }
.form-status.error{ background:rgba(248,113,113,0.12); color:#F87171; border:1px solid rgba(248,113,113,0.3); }

/* ---------- Blog / Certificates coming soon ---------- */
.coming-soon{ text-align:center; padding:100px 20px; max-width:560px; margin:0 auto; }
.coming-soon .icon-badge{ width:88px; height:88px; margin:0 auto 28px; border-radius:24px; background:var(--glass-bg); border:1px solid var(--glass-border); display:flex; align-items:center; justify-content:center; color:var(--glow); }
.notify-form{ display:flex; gap:10px; max-width:380px; margin:28px auto 0; }
.notify-form input{ flex:1; padding:13px 16px; border-radius:999px; border:1px solid var(--glass-border); background:var(--glass-bg); color:var(--text); font-size:14px; }
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; opacity:0.5; filter:grayscale(0.4); pointer-events:none; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--glass-border); padding:64px 0 28px; margin-top:60px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-quote{ font-family:var(--font-heading); font-size:18px; color:var(--text-secondary); margin-top:14px; max-width:280px; }
.footer-col h5{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-secondary); margin-bottom:16px; }
.footer-col a{ display:block; font-size:14.5px; color:var(--text-secondary); padding:6px 0; transition:.25s; }
.footer-col a:hover{ color:var(--glow); padding-left:4px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--glass-border); flex-wrap:wrap; gap:12px; font-size:13.5px; color:var(--text-secondary); }

/* ---------- Back to top ---------- */
.back-to-top{
  position:fixed; bottom:28px; right:28px; width:48px; height:48px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform:translateY(10px); transition:.35s; z-index:90; box-shadow:0 10px 30px -10px rgba(59,130,246,0.6);
}
.back-to-top.show{ opacity:1; visibility:visible; transform:none; }

/* ---------- Chatbot ---------- */
.chat-fab{
  position:fixed; bottom:28px; left:28px; width:58px; height:58px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 30px -8px rgba(139,92,246,0.7); z-index:95; transition:.3s;
}
.chat-fab:hover{ transform:scale(1.08); }
.chat-fab svg{ width:26px; height:26px; }
.chat-window{
  position:fixed; bottom:96px; left:28px; width:360px; max-width:90vw; height:480px; max-height:70vh; z-index:96;
  display:flex; flex-direction:column; overflow:hidden; opacity:0; visibility:hidden; transform:translateY(20px) scale(.97); transition:.3s var(--ease);
}
.chat-window.open{ opacity:1; visibility:visible; transform:none; }
.chat-header{ padding:16px 18px; border-bottom:1px solid var(--glass-border); display:flex; align-items:center; gap:10px; }
.chat-header .dot{ width:8px; height:8px; border-radius:50%; background:#34D399; box-shadow:0 0 8px #34D399; }
.chat-header b{ font-family:var(--font-heading); font-size:14.5px; }
.chat-header span{ font-size:12px; color:var(--text-secondary); }
.chat-messages{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }
.chat-msg{ max-width:82%; padding:10px 14px; border-radius:14px; font-size:13.5px; line-height:1.5; }
.chat-msg.bot{ align-self:flex-start; background:var(--glass-bg-strong); border:1px solid var(--glass-border); border-bottom-left-radius:4px; }
.chat-msg.user{ align-self:flex-end; background:linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; border-bottom-right-radius:4px; }
.chat-suggestions{ display:flex; flex-wrap:wrap; gap:6px; padding:0 16px 12px; }
.chat-suggestions button{ font-size:12px; padding:7px 12px; border-radius:999px; border:1px solid var(--glass-border); background:var(--glass-bg); color:var(--text-secondary); }
.chat-input-row{ display:flex; gap:8px; padding:14px; border-top:1px solid var(--glass-border); }
.chat-input-row input{ flex:1; padding:11px 14px; border-radius:999px; border:1px solid var(--glass-border); background:var(--glass-bg); color:var(--text); font-size:13.5px; }
.chat-input-row button{ width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--accent)); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring{ position:fixed; top:0; left:0; pointer-events:none; z-index:9999; border-radius:50%; transform:translate(-50%,-50%); }
.cursor-dot{ width:6px; height:6px; background:var(--glow); }
.cursor-ring{ width:32px; height:32px; border:1px solid var(--glass-border); transition: width .2s, height .2s, border-color .2s, background .2s; }
.cursor-ring.hovering{ width:50px; height:50px; background:rgba(96,165,250,0.1); border-color:var(--glow); }
@media (hover:none), (pointer:coarse){ .cursor-dot, .cursor-ring{ display:none; } }

/* ---------- Utility pages (404/legal) ---------- */
.error-page{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px; }
.error-code{ font-family:var(--font-heading); font-size:clamp(90px,18vw,180px); line-height:1; background:linear-gradient(135deg,var(--primary),var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.legal-content{ max-width:760px; margin:0 auto; }
.legal-content h2{ margin-top:36px; margin-bottom:14px; font-size:22px; }
.legal-content p, .legal-content li{ color:var(--text-secondary); margin-bottom:12px; font-size:15px; }
.legal-content li{ margin-left:20px; }

/* ---------- Page loader ---------- */
.page-loader{ position:fixed; inset:0; z-index:9998; background:var(--bg); display:flex; align-items:center; justify-content:center; transition:opacity .5s, visibility .5s; }
.page-loader.hide{ opacity:0; visibility:hidden; }
.loader-mark{ width:52px; height:52px; border-radius:14px; background:linear-gradient(135deg,var(--primary),var(--accent)); display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--font-heading); font-weight:700; animation: pulse-loader 1.1s ease-in-out infinite; }
@keyframes pulse-loader{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.12); opacity:.75; } }

/* ---------- Toast ---------- */
.toast-wrap{ position:fixed; top:90px; right:20px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.toast{ padding:14px 18px; border-radius:12px; font-size:13.5px; min-width:240px; box-shadow:var(--shadow-card); animation: toast-in .3s var(--ease); }
@keyframes toast-in{ from{ opacity:0; transform:translateX(20px); } to{ opacity:1; transform:none; } }
.toast.success{ background:#0B1120; border:1px solid #34D399; color:#34D399; }
.toast.error{ background:#0B1120; border:1px solid #F87171; color:#F87171; }

/* ---------- Skip link ---------- */
.skip-link{ position:absolute; left:-999px; top:0; background:var(--primary); color:#fff; padding:12px 20px; z-index:9999; border-radius:0 0 10px 0; }
.skip-link:focus{ left:0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:320px; margin:0 auto 20px; }
  .about-grid{ grid-template-columns:1fr; }
  .about-photo{ position:static; max-width:320px; margin:0 auto; }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .counters{ grid-template-columns:repeat(2,1fr); }
  .blog-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px){
  .nav-links{
    position:fixed; top:66px; left:0; right:0; bottom:0; flex-direction:column; align-items:stretch; padding:20px;
    background: var(--bg-secondary); border-top:1px solid var(--glass-border);
    transform: translateY(-110%); opacity:0; transition:.35s var(--ease); overflow-y:auto;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; }
  .nav-links a{ padding:14px 16px; font-size:16px; }
  .nav-toggle{ display:flex; }
  .grid-2, .grid-3{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  .mv-grid{ grid-template-columns:1fr; }
  .counters{ grid-template-columns:1fr 1fr; }
  .blog-grid{ grid-template-columns:1fr; }
  .section{ padding:80px 0; }
  .chat-window{ left:12px; right:12px; width:auto; }
  .chat-fab{ left:16px; bottom:16px; }
  .back-to-top{ right:16px; bottom:16px; }
}
@media (max-width: 480px){
  .footer-grid{ grid-template-columns:1fr; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ width:100%; }
}
