:root{--brand:#FA5600;--brand-600:#FA5600;--ink:#0f172a;--muted:#475569;--bg:#fff;--surface:#f8fafc;--border:#e2e8f0;--shadow:0 10px 30px rgba(2,6,23,.06);--maxw:1200px}

/* Dark theme */
[data-theme="dark"]{
  --brand:#FA5600;
  --brand-600:#FF6B1A;
  --ink:#f8fafc;
  --muted:#94a3b8;
  --bg:#0f172a;
  --surface:#1e293b;
  --border:#334155;
  --shadow:0 10px 30px rgba(0,0,0,.3);
}
*{box-sizing:border-box}
html,body{overflow-x:hidden;width:100%}
body{margin:0;font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.brand-text{color:var(--brand);font-weight:700}
.logo-brand{max-height:50px}
/* Header fixed sticky */
.header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(255,255,255,.9);opacity: 0.9;backdrop-filter:blur(10px);border-bottom:1px solid rgba(15,23,42,.06);transition:box-shadow .2s,background .2s}
.header.scrolled{background:#fff;box-shadow:0 6px 24px rgba(2,6,23,.06)}

/* Dark mode header */
[data-theme="dark"] .header{background:rgba(15,23,42,.9);border-bottom:1px solid rgba(51,65,85,.3)}
[data-theme="dark"] .header.scrolled{background:#0f172a;box-shadow:0 6px 24px rgba(0,0,0,.4)}
.header-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer}
.mark{width:36px;height:36px;border-radius:999px;display:grid;place-items:center;background:var(--brand);color:#fff}
.nav{display:flex;gap:14px;align-items:center}
.nav a{padding:8px 10px;border-radius:10px;font-weight:600;cursor:pointer;transition:background .2s,color .2s}
.nav a:hover,.nav a.active{background:var(--brand);color:#fff}
.btn-cta{background:var(--brand);color:#fff!important;padding:12px 16px;border-radius:12px;font-weight:700;cursor:pointer;transition:background .2s}
.btn-cta:hover{background:var(--brand-600)}
.menu-btn{display:none;border:1px solid var(--border);padding:8px 10px;border-radius:10px;background:#fff;cursor:pointer;transition:background .2s}
.menu-btn:hover{background:var(--brand);color:#fff}
.lang{display:flex;border:1px solid var(--border);border-radius:10px;overflow:hidden}

/* Theme toggle */
.theme-toggle{display:flex;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-left:8px}
.theme-toggle button{padding:8px 10px;border:0;background:#fff;color:#334155;font-weight:700;cursor:pointer;transition:background .2s}
.theme-toggle button[aria-pressed="true"], .theme-toggle button:hover{background:var(--brand);color:#fff}

/* Dark mode theme toggle */
[data-theme="dark"] .theme-toggle{border-color:var(--border)}
[data-theme="dark"] .theme-toggle button{background:var(--surface);color:var(--muted)}
[data-theme="dark"] .theme-toggle button[aria-pressed="true"], 
[data-theme="dark"] .theme-toggle button:hover{background:var(--brand);color:#fff}
.lang button{padding:8px 10px;border:0;background:#fff;color:#334155;font-weight:700;cursor:pointer;transition:background .2s}
.lang button[aria-pressed="true"], .lang button:hover{background:var(--brand);color:#fff}

/* Mobile nav: class .open to show */
#mobileNav{display:none}
#mobileNav.open{display:flex;flex-direction:column;gap:8px;padding:0 20px 12px}

/* Dark mode mobile nav */
[data-theme="dark"] #mobileNav{background:var(--surface)}
[data-theme="dark"] #mobileNav .links a{background:var(--bg);color:var(--ink)}
[data-theme="dark"] #mobileNav .links a:hover{background:var(--brand);color:#fff}
#mobileNav .links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
#mobileNav .links a{padding:8px 10px;border-radius:10px;font-weight:600}
@media(max-width:680px){
  .nav{display:none}
  .menu-btn{display:inline-flex}
  #langDesktop{display:none}
  #langMobile{display:flex;justify-content:center}
}
@media(min-width:681px){
  #langDesktop{display:flex}
  #langMobile{display:none}
  #mobileNav{display:none!important}
}

/* Layout */
.spacer{height:var(--hdr-h,72px)}
section{padding:64px 20px;overflow:hidden}
.container{max-width:var(--maxw);margin:0 auto;overflow:hidden}
.title{font-size:28px;margin:0 0 10px}
.hero-title{font-size:clamp(32px,6vw,56px);line-height:1.1;margin:0 0 10px;color: var(--muted);}
.lead{color:var(--muted)}
.sub{color:var(--muted);margin:0 0 24px}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.align-center{align-items:center}
.gap-40{gap:40px}
.card{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:18px;transition:transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s}

/* Dark mode cards */
[data-theme="dark"] .card{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow)}
.card.hoverable{cursor:pointer}
/* Detail hint marker on cards */
.card.hoverable{position:relative}
.detail-hint{
  position:absolute;
  left:14px;
  bottom:8px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  background:var(--brand);
  border:1px solid var(--brand);
  color:#fff;
  font-weight:800;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  pointer-events:none
}

/* Improve contrast when card is hovered */
.card.hoverable:hover .detail-hint{
  background:#fff;
  color:var(--brand);
  border-color:var(--brand);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
/* Hover orange for clickable */
.hover-orange{cursor:pointer}
.hover-orange:hover,.card.hoverable:hover,.menu-btn:hover,.lang button:hover,.nav a:hover,.btn:hover,.btn-cta:hover{background:var(--brand)!important;color:#fff!important;border-color:var(--brand-600)!important}

/* Technologies section - no cursor pointer needed */
.technologies .card.hoverable{cursor:default}
/* Thumbs */
.thumb{width:100%;height:180px;border:1px solid var(--border);border-radius:12px;background:linear-gradient(135deg,#e5e7eb,#f1f5f9);display:grid;place-items:center;color:#9ca3af;font-weight:700;overflow:hidden}
img.thumb,.img{object-fit:cover;width:100%;height:180px;border-radius:12px;border:1px solid var(--border)}
.btn,.actions .btn{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;border-radius:12px;border:1px solid var(--border);font-weight:700;background:#fff;cursor:pointer;transition:background .2s,color .2s}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}

/* Chips */
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:#64748b;font-size:12px}
.chip.small{padding:4px 8px;font-size:11px}
.chip.soft{background:#fff7ed;border-color:#ffedd5;color:#a16207}

/* Hero */
.hero{position:relative;min-height:clamp(420px,70vh,720px);padding:0;isolation:isolate}
.hero .hero-media{position:absolute;inset:0;z-index:-1;overflow:hidden}
.hero .hero-media video.hero-img{width:100%;height:100%;object-fit:cover;display:block}
.hero .hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.4))}

/* Hero commemorative */
.hero-commemorative {
  position: relative;
  min-height: clamp(420px, 70vh, 720px);
  display: grid;
  place-items: center;
  padding: 0;
  isolation: isolate;
}
.hero-commemorative .hero-media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-commemorative .hero-img {
  width: 100%; height: auto; max-height: 100%; object-fit: cover; object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-commemorative .hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,0.08), transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.18));
}
.hero-commemorative .hero-content {
  max-width: 1000px; margin: 0 auto; padding: 64px 20px; text-align: center; color: #fff;
}
.hero-commemorative .chip.soft {
  background: rgba(255,255,255,0.12);
  color: #fff; border: 1px solid rgba(255,255,255,0.18);
}
.hero-commemorative .hero-title {
  margin: 10px 0 8px;
  font-size: clamp(28px, 5.5vw, 52px); line-height: 1.15;
  color: #1e293b; /* Dark blue-gray for better contrast on sky blue */
  text-shadow: 0 2px 20px rgba(255,255,255,0.8);
  font-weight: 700;
}

.hero-commemorative .hero-title-time {
  display: block;
  font-size: clamp(18px, 3vw, 24px);
  color: #dc2626; /* Red color to match Vietnam flag */
  font-weight: 600;
  margin-top: 8px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.8);
}
.hero-commemorative .lead {
  color: #334155; /* Darker blue-gray for better readability */
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 8px auto 16px; max-width: 800px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.6);
  font-weight: 600;
}
.hero-commemorative .actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Button styles for National Day section */
.hero-commemorative .btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-commemorative .btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}
.hero-commemorative .btn-cta {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}
.hero-commemorative .btn-cta:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

/* Mobile responsive for National Day hero */
@media (max-width: 768px) {
  .hero-commemorative {
    min-height: 100vh;
    height: 100vh;
  }
  .hero-commemorative .hero-img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-commemorative .hero-img { transform: none !important; }
}
.hero .mesh{position:absolute;inset:-40% -20% auto -20%;height:120%;z-index:-1;background:radial-gradient(60% 60% at 30% 40%,#ffe1cc 0,transparent 60%),radial-gradient(60% 60% at 70% 30%,#ffeada 0,transparent 60%);overflow:hidden}

/* Dark mode hero */
[data-theme="dark"] .hero .mesh{background:radial-gradient(60% 60% at 30% 40%,rgba(250,86,0,.1) 0,transparent 60%),radial-gradient(60% 60% at 70% 30%,rgba(255,107,26,.1) 0,transparent 60%)}

/* Dark mode elements */
[data-theme="dark"] .slogan{color:#ffa366}
[data-theme="dark"] .logo{background:var(--surface);border-color:var(--border);color:var(--muted)}
[data-theme="dark"] .thumb{background:linear-gradient(135deg,var(--surface),var(--bg));border-color:var(--border);color:var(--muted)}
[data-theme="dark"] .btn{background:var(--surface);border-color:var(--border);color:var(--ink)}
[data-theme="dark"] .chip{background:var(--surface);border-color:var(--border);color:var(--muted)}
[data-theme="dark"] .input,
[data-theme="dark"] .textarea{background:var(--surface);border-color:var(--border);color:var(--ink)}

/* Dark mode additional elements */
[data-theme="dark"] .menu-btn{background:var(--surface);border-color:var(--border);color:var(--ink)}
[data-theme="dark"] .lang button{background:var(--surface);color:var(--muted)}
[data-theme="dark"] .lang button[aria-pressed="true"], 
[data-theme="dark"] .lang button:hover{background:var(--brand);color:#fff}
[data-theme="dark"] .surface{background:var(--surface)}
[data-theme="dark"] .footer{background:var(--surface);border-color:var(--border);color:var(--muted)}
[data-theme="dark"] .tech-stack{background:rgba(250,86,0,.1);border-color:rgba(250,86,0,.2)}
[data-theme="dark"] .case-studies{background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.2)}

/* Dark mode code blocks and other elements */
[data-theme="dark"] .modal-body code{background:rgba(148,163,184,.1);color:var(--ink)}
[data-theme="dark"] .modal-body pre{background:var(--surface);border-color:var(--border)}
[data-theme="dark"] .modal-body blockquote{border-color:var(--brand)}
[data-theme="dark"] .chip.soft{background:rgba(250,86,0,.1);border-color:rgba(250,86,0,.2);color:#ffa366}
.hero-inner{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;padding:64px 20px 40px}
.hero-inner{position:relative;z-index:1}
.hero-original .hero-inner{grid-template-columns:1fr;text-align:center;gap:20px;min-height:inherit;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.hero-original .hero-title{max-width:none;margin-left:auto;margin-right:auto;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.hero-original .lead{max-width:none;margin-left:auto;margin-right:auto;color:#e5e7eb;text-shadow:0 1px 6px rgba(0,0,0,.3)}
.hero-original .actions{justify-content:center}
.slogan{margin-top:6px;color:#7b4a30;font-weight:700;font-size:clamp(14px,3.5vw,18px)}

/* Trusted */
.trusted-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:nowrap}
.trusted .muted{color:#94a3b8;font-size:14px}
.logo-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.logo{display:grid;place-items:center;height:56px;border:1px dashed #e5e7eb;border-radius:12px;color:#64748b;font-weight:700;letter-spacing:.3px;filter:grayscale(1);opacity:.75;transition:opacity .2s, filter .2s, transform .2s}
.logo:hover{filter:none;opacity:1;transform:translateY(-2px)}

/* Technologies */
.technologies .tech-head{display:flex;align-items:center;gap:10px;margin-bottom:24px;flex-wrap:nowrap}
/* Normalize vertical rhythm for Trusted & Technologies sections */
.trusted.surface{padding-top:56px;padding-bottom:56px}
.technologies.surface{padding-top:56px;padding-bottom:56px}
.trusted-head{margin-bottom:10px}
.technologies .tech-head{margin-bottom:14px}
.technologies .tech-head .muted{color:#94a3b8;font-size:14px}

/* Why */
.why-wrap{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.list{display:grid;gap:12px}
.list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.list-item i {
  flex-shrink: 0;
}
.icon-color{color: #FF8994;font-size: 32px;}

/* Contact */
.contact{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.input,.textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:12px 14px;font:inherit;background:#fff}
.textarea{min-height:140px;resize:vertical}
.submit{background:var(--brand);color:#fff;border:none;padding:12px 16px;border-radius:12px;font-weight:800;cursor:pointer;transition:background .2s}
.submit:hover{background:var(--brand-600)}
.address-google-maps{color:var(--brand);text-decoration:underline}
.address-google-maps:hover{color:var(--brand-600)}
.address-website{color:var(--brand);text-decoration:underline}
.address-website:hover{color:var(--brand-600)}
.address-email{color:var(--brand);text-decoration:underline}
.address-email:hover{color:var(--brand-600)}
.address-phone{color:var(--brand);text-decoration:underline}
.address-phone:hover{color:var(--brand-600)}
/* Surface & Footer */
.surface{background:#f8fafc}
.footer{background:#f8fafc;border-top:1px solid var(--border);color:#64748b;padding:28px 20px;text-align:center}

/* Modal */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.55);z-index:9999;overflow:hidden}

/* Dark mode modal */
[data-theme="dark"] .modal{background:rgba(0,0,0,.75)}

/* Prevent scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}
[data-theme="dark"] .modal-dialog{background:var(--surface);border-color:var(--border)}
[data-theme="dark"] .modal-header{border-color:var(--border)}
[data-theme="dark"] .modal-close{background:var(--surface);border-color:var(--border);color:var(--ink)}
.modal.open{display:flex}
.modal-dialog{position:relative;width:min(1000px,95vw);max-height:90vh;background:#fff;border-radius:16px;border:1px solid var(--border);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.modal-body{padding:24px;line-height:1.6;overflow-y:auto;flex:1}
.modal-close{
  border: 1px solid var(--border) !important;
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  min-width: 60px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--brand) !important;
  color: white;
  border-color: var(--brand) !important;
}

/* Mobile responsive for modal close button */
@media (max-width: 768px) {
  .modal-close {
    padding: 12px 16px;
    font-size: 16px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.modal-cover{width:100%;max-height:320px;object-fit:cover;border-bottom:1px solid var(--border);border-radius:8px 8px 0 0;flex-shrink:0}
.modal-body a{ color: var(--brand); text-decoration: underline; }
.modal-body strong{ font-weight: 800; }
.modal-body h3{font-size:20px;margin:6px 0 3px;color:var(--ink)}
.modal-body h4{font-size:18px;margin:4px 0 2px;color:var(--ink)}
.modal-body h5{font-size:16px;margin:8px 0 4px;color:var(--ink)}
.modal-body h6{font-size:14px;margin:6px 0 3px;color:var(--ink)}
.modal-body p{margin:0 0 4px;color:var(--muted)}
.modal-body ul, .modal-body ol{margin:0 0 4px;padding-left:18px;list-style-position:outside}
.modal-body li{margin:0 0 3px;color:var(--muted);list-style-type:disc !important;list-style-position:outside}
.modal-body ul li{list-style-type:disc !important;list-style-position:outside}
.modal-body ol li{list-style-type:decimal !important;list-style-position:outside}
.modal-body code{background:#f1f5f9;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:14px;color:var(--ink)}
.modal-body pre{background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:8px;overflow-x:auto;margin:8px 0}
.modal-body blockquote{border-left:4px solid var(--brand);padding-left:8px;margin:8px 0;font-style:italic;color:var(--muted)}
.modal-body hr{border:none;border-top:1px solid var(--border);margin:8px 0}
.modal-body .tech-stack{background:#fff7ed;border:1px solid #ffedd5;border-radius:8px;padding:10px;margin:12px 0 0 0}
.modal-body .tech-stack strong{color:#a16207;display:block;margin-bottom:3px}
.modal-body .case-studies{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:10px;margin:12px 0 0 0}
.modal-body .case-studies strong{color:#0369a1;display:block;margin-bottom:3px}

/* Compact spacing for better readability */
.modal-body > *:first-child{margin-top:0}
.modal-body > *:last-child{margin-bottom:0}
.modal-body h3 + p{margin-top:4px}
.modal-body h4 + ul{margin-top:3px}
.modal-body ul + h4{margin-top:6px}
.modal-body p + h4{margin-top:6px}
.modal-body ul + p{margin-top:4px}

/* Force remove all default margins and padding */
.modal .modal-dialog .modal-body *{
  margin-block-start:0 !important;
  margin-block-end:0 !important;
  margin-inline-start:0 !important;
  margin-inline-end:0 !important;
}

/* Fix white-space issue - override inline styles */
.modal .modal-dialog .modal-body,
.modal .modal-dialog .modal-body[style*="white-space"],
#modalContent,
#modalContent[style*="white-space"],
.modal #modalContent,
.modal #modalContent[style*="white-space"]{
  white-space:normal !important;
}

/* Force override any inline white-space */
.modal .modal-dialog .modal-body *,
#modalContent *{
  white-space:normal !important;
}
.modal .modal-dialog .modal-body h3{margin:12px 0 6px !important}
.modal .modal-dialog .modal-body h4{margin:10px 0 5px !important}
.modal .modal-dialog .modal-body p{margin:0 0 6px !important}
.modal .modal-dialog .modal-body ul{margin:0 0 6px !important}
.modal .modal-dialog .modal-body ol{margin:0 0 6px !important}

/* Ensure list bullets are visible */
.modal-body ul{list-style:disc outside !important}
.modal-body ol{list-style:decimal outside !important}
.modal-body li{display:list-item !important}

/* Force bullet display with higher specificity - remove default bullets first */
.modal .modal-dialog .modal-body ul{
  list-style:none !important;
  margin-block-start:0 !important;
  margin-block-end:0 !important;
  padding-inline-start:0 !important;
}
.modal .modal-dialog .modal-body ul li{list-style:none !important;position:relative;padding-left:20px}
.modal .modal-dialog .modal-body ul li::before{content:"•";position:absolute;left:0;color:var(--muted);font-weight:bold}
.modal .modal-dialog .modal-body ol{
  margin-block-start:0 !important;
  margin-block-end:0 !important;
  padding-inline-start:0 !important;
}
.modal .modal-dialog .modal-body ol li{list-style:decimal outside !important;padding-left:0}

/* Fix double bullets in case studies and tech stack */
.modal .modal-dialog .modal-body .case-studies ul,
.modal .modal-dialog .modal-body .tech-stack ul{
  margin-block-start:0 !important;
  margin-block-end:0 !important;
  padding-inline-start:0 !important;
}
.modal .modal-dialog .modal-body .case-studies ul li,
.modal .modal-dialog .modal-body .tech-stack ul li{
  list-style:none !important;
  position:relative;
  padding-left:20px;
}
.modal .modal-dialog .modal-body .case-studies ul li::before,
.modal .modal-dialog .modal-body .tech-stack ul li::before{
  content:"•";
  position:absolute;
  left:0;
  color:var(--muted);
  font-weight:bold;
}

/* Floating controls */
.floating-controls{position:fixed;right:32px;bottom:48px;display:flex;flex-direction:column;gap:12px;z-index:40}

/* Theme toggle vertical */
.theme-toggle-vertical{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--bg);box-shadow:var(--shadow)}
.theme-toggle-vertical button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;background:var(--bg);color:var(--muted);font-size:16px;cursor:pointer;transition:background .2s,color .2s;line-height:1;border-radius:0}
.theme-toggle-vertical i{display:block;line-height:1}
.theme-toggle-vertical button[aria-pressed="true"], 
.theme-toggle-vertical button:hover{background:var(--brand);color:#fff}

/* Theme button active states */
.theme-toggle-vertical button[data-theme="light"][aria-pressed="true"]{background:var(--brand);color:#fff}
.theme-toggle-vertical button[data-theme="dark"][aria-pressed="true"]{background:var(--brand);color:#fff}

/* Dark mode theme toggle vertical */
[data-theme="dark"] .theme-toggle-vertical{background:var(--surface);border-color:var(--border);box-shadow:0 4px 20px rgba(0,0,0,.4)}
[data-theme="dark"] .theme-toggle-vertical button{background:var(--surface);color:var(--muted)}

/* Back to top */
#backToTop{display:none;border:none;background:var(--brand);width:48px;height:48px;padding:0;border-radius:50%;box-shadow:var(--shadow);cursor:pointer;display:flex;align-items:center;justify-content:center}

/* Dark mode back to top */
[data-theme="dark"] #backToTop{box-shadow:0 4px 20px rgba(0,0,0,.4)}
#backToTop svg{display:block;width:20px;height:20px}
#backToTop:hover{background:var(--brand-600)}

/* Prevent horizontal scroll */
.grid{overflow:hidden}
.card{overflow:hidden}
.hero-inner{overflow:hidden}
.trusted-head{overflow:hidden}
.logo-strip{overflow:hidden}
.technologies{overflow:hidden}
.why-wrap{overflow:hidden}
.contact{overflow:hidden}

/* Responsive */
@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .logo-strip{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .grid-4,.grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .why-wrap{grid-template-columns:1fr}
  .hero-inner{gap:20px}
  .thumb,.img{height:220px}
  .logo-strip{grid-template-columns:repeat(2,1fr)}
  
  /* Modal responsive */
  .modal-dialog{width:95vw;max-height:95vh;margin:10px}
  .modal-cover{max-height:200px}
  .modal-body{padding:16px}
  
  /* Floating controls responsive */
  .floating-controls{right:16px;bottom:32px;gap:8px}
  .theme-toggle-vertical button{width:44px;height:44px;padding:0;font-size:14px}
  #backToTop{width:44px;height:44px;padding:0}
  
  /* Trusted and tech heads responsive */
  .trusted-head{flex-direction:column;align-items:flex-start;gap:6px}
  .technologies .tech-head{flex-direction:column;align-items:flex-start;gap:6px}
}