/* ==========================================================================
   Ceylon Computer Service - Enterprise Design System
   Primary stylesheet: layout, components, glassmorphism, typography
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary: #0F4C81;
  --primary-dark: #0a3560;
  --primary-light: #1565C0;
  --secondary: #1565C0;
  --accent: #00BCD4;
  --accent-glow: rgba(0, 188, 212, 0.35);
  --success: #2E7D32;
  --warning: #FF9800;
  --danger: #D32F2F;
  --bg: #F8FAFC;
  --bg-alt: #EEF2F7;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --text: #1A2332;
  --text-muted: #5A6578;
  --text-light: #8896A8;
  --border: rgba(15, 76, 129, 0.12);
  --shadow-sm: 0 2px 8px rgba(15, 76, 129, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 76, 129, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 76, 129, 0.14);
  --shadow-glass: 0 8px 32px rgba(15, 76, 129, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-height: 80px;
  --topbar-height: 42px;
  --site-chrome-height: calc(var(--topbar-height) + var(--header-height));
  --hero-viewport-height: calc(100vh - var(--site-chrome-height));
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  --gradient-primary: linear-gradient(135deg, #0F4C81 0%, #1565C0 50%, #00BCD4 100%);
  --gradient-hero: linear-gradient(135deg, rgba(15, 76, 129, 0.92) 0%, rgba(21, 101, 192, 0.85) 60%, rgba(0, 188, 212, 0.75) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
}

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-alt: #111827;
  --surface: #151D2E;
  --glass: rgba(21, 29, 46, 0.82);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #E8EDF5;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --gradient-card: linear-gradient(145deg, rgba(21,29,46,0.95) 0%, rgba(17,24,39,0.98) 100%);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

@supports (height: 100dvh) {
  :root {
    --hero-viewport-height: calc(100dvh - var(--site-chrome-height));
  }
}
body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
.lead { font-size: 1.125rem; line-height: 1.7; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-wide { max-width: 1600px; }
.section { padding: 5rem 0; position: relative; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-header .badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(0, 188, 212, 0.12);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --- Glass Card --- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn:active::after { opacity: 1; }
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 76, 129, 0.4); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #00a5bb; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb855; color: #fff; }

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  z-index: 1001;
  position: relative;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: var(--accent); }
.top-bar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.top-bar__info { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.top-bar__info span, .top-bar__info a { display: flex; align-items: center; gap: 0.4rem; }
.top-bar__actions { display: flex; align-items: center; gap: 1rem; }
.top-bar__social { display: flex; gap: 0.75rem; }
.top-bar__social a { opacity: 0.85; transition: opacity var(--transition); }
.top-bar__social a:hover { opacity: 1; }

/* --- Language Switcher --- */
.lang-switcher { display: flex; align-items: center; gap: 0.25rem; font-weight: 500; }
.lang-switcher a, .lang-switcher button {
  background: none; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 0.2rem 0.4rem; font-size: 0.8125rem;
  transition: color var(--transition);
}
.lang-switcher a.active, .lang-switcher button.active { color: var(--accent); font-weight: 700; }
.lang-switcher .sep { color: rgba(255,255,255,0.35); user-select: none; }

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}
.site-header.transparent .navbar { background: transparent; }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo svg { width: 42px; height: 42px; }
.logo span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Site logo (official brand mark) */
.site-logo {
  gap: 0.75rem;
  line-height: 1.15;
  align-items: center;
}
.site-logo__img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.site-logo__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.site-logo__subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent, #06b6d4);
  line-height: 1.1;
  white-space: nowrap;
}
.site-logo--header .site-logo__img {
  width: 48px;
  height: 48px;
}
.site-logo--mobile .site-logo__img {
  width: 42px;
  height: 42px;
}
.site-logo--mobile .site-logo__title {
  font-size: 0.9375rem;
}
.site-logo--mobile .site-logo__subtitle {
  font-size: 0.6875rem;
}
.site-logo--footer {
  margin-bottom: 0.75rem;
}
.site-logo--footer .site-logo__img {
  width: 52px;
  height: 52px;
  margin-bottom: 0;
}
.site-logo--footer .site-logo__title {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.site-logo--footer .site-logo__subtitle {
  color: #67e8f9;
}
.site-logo--loader .site-logo__img {
  width: 72px;
  height: 72px;
  animation: site-logo-pulse 1.2s ease-in-out infinite;
}
.page-loader__logo {
  pointer-events: none;
}
@keyframes site-logo-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.88; }
}

@media (max-width: 380px) {
  .site-logo--header .site-logo__text {
    display: none;
  }
}

.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 1rem; color: var(--text); font-weight: 500;
  font-size: 0.9375rem; background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.nav-menu > li > a:hover, .nav-menu > li > a.active,
.nav-menu > li > button:hover { color: var(--primary-light); background: rgba(21, 101, 192, 0.08); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; color: var(--text);
}

/* Mega Menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 680px; background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem; opacity: 0; visibility: hidden;
  transition: all var(--transition); pointer-events: none;
}
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.mega-menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mega-menu__col h4 {
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mega-menu__col a {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0;
  color: var(--text-muted); font-size: 0.875rem;
}
.mega-menu__col a:hover { color: var(--primary-light); padding-left: 0.25rem; }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 0.5rem; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all var(--transition);
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 0.6rem 1rem; color: var(--text-muted);
  border-radius: var(--radius-sm); font-size: 0.875rem;
}
.dropdown-menu a:hover { background: rgba(21, 101, 192, 0.08); color: var(--primary); }

/* Theme Toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--text); transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg-alt); border-color: var(--accent); color: var(--accent); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; padding: 6rem 0 4rem;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--gradient-hero);
}
.hero__bg-image {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.25;
}
.hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__content { position: relative; z-index: 2; max-width: 680px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px; color: #fff; font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .lead { color: rgba(255,255,255,0.88); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__stat { color: rgba(255,255,255,0.9); }
.hero__stat strong { display: block; font-size: 1.5rem; font-family: var(--font-display); color: #fff; }
.hero__stat span { font-size: 0.8125rem; opacity: 0.8; }
.hero__visual {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 45%; max-width: 600px; z-index: 2;
}
.hero__float-item {
  position: absolute; background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 1rem; box-shadow: var(--shadow-md);
}

/* --- Stats Section --- */
.stats-section {
  background: var(--gradient-primary); padding: 3.5rem 0; position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.stat-card { text-align: center; color: #fff; padding: 1.5rem 1rem; }
.stat-card__icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.stat-card__number {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 800;
  line-height: 1; margin-bottom: 0.35rem;
}
.stat-card__label { font-size: 0.875rem; opacity: 0.88; }

/* --- Feature Cards --- */
.feature-card {
  padding: 2rem; text-align: center; height: 100%;
  background: var(--gradient-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  background: rgba(0, 188, 212, 0.1); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: all var(--transition);
}
.feature-card:hover .feature-card__icon { background: var(--accent); color: #fff; transform: scale(1.08); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.875rem; margin: 0; }

/* --- Service Cards --- */
.service-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition); height: 100%; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__image {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-card__image img { transform: scale(1.08); }
.service-card__icon {
  position: absolute; bottom: -24px; left: 1.5rem;
  width: 48px; height: 48px; background: var(--accent); color: #fff;
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 2;
}
.service-card__body { padding: 2rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 { margin-bottom: 0.75rem; font-size: 1.125rem; }
.service-card__body p { font-size: 0.875rem; flex: 1; margin-bottom: 1rem; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; font-size: 0.875rem; color: var(--primary-light);
}
.service-card__link:hover { gap: 0.6rem; color: var(--accent); }

/* --- Product Cards --- */
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__badges { position: absolute; top: 1rem; left: 1rem; z-index: 2; display: flex; flex-direction: column; gap: 0.35rem; }
.badge {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-discount { background: var(--danger); color: #fff; }
.badge-new { background: var(--accent); color: #fff; }
.badge-stock { background: var(--success); color: #fff; }
.badge-out { background: var(--text-light); color: #fff; }
.product-card__actions-top {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: flex; flex-direction: column; gap: 0.35rem; opacity: 0;
  transform: translateX(10px); transition: all var(--transition);
}
.product-card:hover .product-card__actions-top { opacity: 1; transform: translateX(0); }
.product-card__image {
  height: 220px; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: var(--bg-alt); position: relative;
}
.product-card__image img { max-height: 180px; object-fit: contain; }
.product-card__body { padding: 1.25rem; }
.product-card__brand { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.product-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.product-card__rating { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.75rem; font-size: 0.8125rem; }
.stars { color: #FFB800; letter-spacing: -1px; }
.product-card__price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; }
.price-current { font-size: 1.25rem; font-weight: 700; color: var(--primary); font-family: var(--font-display); }
.price-old { font-size: 0.875rem; color: var(--text-light); text-decoration: line-through; }
.product-card__footer { display: flex; gap: 0.5rem; }

/* --- Category Grid --- */
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; cursor: pointer; group: category;
}
.category-card__bg {
  position: absolute; inset: 0;
  background: var(--gradient-primary); transition: transform 0.5s;
}
.category-card:hover .category-card__bg { transform: scale(1.08); }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,18,32,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.category-card__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.category-card h3 { color: #fff; font-size: 1.125rem; margin-bottom: 0.25rem; }
.category-card span { color: rgba(255,255,255,0.75); font-size: 0.8125rem; }

/* --- Brand Logos --- */
.brands-slider {
  overflow: hidden;
  padding: 2rem 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.brands-marquee {
  display: flex;
  width: max-content;
  animation: brandScroll 45s linear infinite;
  will-change: transform;
}

.brands-marquee:hover {
  animation-play-state: paused;
}

.brands-track {
  display: flex;
  gap: 3.5rem;
  flex-shrink: 0;
  width: max-content;
  padding-right: 3.5rem;
}
.brand-logo {
  flex-shrink: 0;
  width: 220px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  opacity: 1;
  transition: transform var(--transition), opacity var(--transition);
}
.brand-logo__img {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.brand-logo__text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}
.brand-logo:hover {
  transform: translateY(-3px) scale(1.04);
}
.brand-logo:hover .brand-logo__text {
  color: var(--accent);
}

/* --- Timeline --- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: var(--gradient-primary); transform: translateX(-50%);
}
.timeline-item {
  display: flex; align-items: center; margin-bottom: 3rem; position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-item__content {
  width: calc(50% - 40px); padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.timeline-item:nth-child(odd) .timeline-item__content { margin-right: auto; text-align: right; }
.timeline-item:nth-child(even) .timeline-item__content { margin-left: auto; }
.timeline-item__dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; background: var(--gradient-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.125rem; z-index: 2;
  box-shadow: 0 0 0 6px var(--bg);
}
.timeline-item__content h3 { margin-bottom: 0.5rem; }
.timeline-item__content p { margin: 0; font-size: 0.875rem; }

/* --- Testimonials --- */
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-card {
  min-width: 100%; padding: 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); text-align: center;
}
.testimonial-card__avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.25rem;
  object-fit: cover; border: 3px solid var(--accent);
}
.testimonial-card__stars { color: #FFB800; font-size: 1.25rem; margin-bottom: 1rem; }
.testimonial-card__text { font-size: 1.0625rem; font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.testimonial-card__author h4 { margin-bottom: 0.15rem; }
.testimonial-card__author span { font-size: 0.875rem; color: var(--text-light); }
.testimonial-nav { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.testimonial-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: var(--border); cursor: pointer; transition: all var(--transition);
}
.testimonial-dot.active { background: var(--accent); width: 28px; border-radius: 5px; }

/* --- Team Cards --- */
.team-card {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card__photo { height: 280px; overflow: hidden; background: var(--bg-alt); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 1.5rem; }
.team-card__body h3 { margin-bottom: 0.25rem; }
.team-card__role { color: var(--accent); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.team-card__meta { font-size: 0.8125rem; color: var(--text-muted); }

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 0.75rem; overflow: hidden; background: var(--surface);
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer;
  font-weight: 600; color: var(--text); text-align: left; font-size: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary-light); }
.faq-question svg { transition: transform var(--transition); flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s;
  padding: 0 1.5rem;
}
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { margin: 0; font-size: 0.9375rem; }

/* --- Blog Cards --- */
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__image { height: 200px; overflow: hidden; background: var(--bg-alt); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card__image img { transform: scale(1.06); }
.blog-card__body { padding: 1.5rem; }
.blog-card__meta { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--text-light); margin-bottom: 0.75rem; }
.blog-card__body h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.blog-card__body h3 a { color: var(--text); }
.blog-card__body h3 a:hover { color: var(--primary-light); }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.875rem;
  margin-bottom: 0.5rem; color: var(--text);
}
.form-group label .required { color: var(--danger); }
.form-control {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); outline: none; }
.form-control.error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 0.8125rem; margin-top: 0.35rem; display: none; }
.form-error.visible { display: block; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md);
}
select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6578' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-checkbox input { margin-top: 0.25rem; accent-color: var(--primary); }

/* --- Contact --- */
.contact-info-card {
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); display: flex; gap: 1rem; align-items: flex-start;
  transition: all var(--transition);
}
.contact-info-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.contact-info-card__icon {
  width: 48px; height: 48px; background: rgba(0,188,212,0.1);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.map-placeholder {
  width: 100%; height: 400px; background: var(--bg-alt);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-muted);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.875rem; padding: 1rem 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* --- Page Header --- */
.page-header {
  background: var(--gradient-primary); padding: 4rem 0 3rem;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 { color: #fff; margin-bottom: 0.75rem; position: relative; }
.page-header p { color: rgba(255,255,255,0.85); position: relative; margin: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.85);
  padding-top: 4rem;
  padding-bottom: 1rem;
}
[data-theme="dark"] .site-footer { background: #060a12; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; padding-bottom: 3rem; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.875rem; margin: 1rem 0; }
.footer-brand .logo { color: #fff; margin-bottom: 0.5rem; }
.footer-col h4 {
  color: #fff; font-size: 1rem; margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer-col a:hover { color: var(--accent); }
.footer-newsletter { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-newsletter input {
  flex: 1; padding: 0.65rem 1rem; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); color: #fff;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.45); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 0;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom__copy {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.footer-bottom__devra-link {
  font-weight: 600;
  color: #22d3ee;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-bottom__devra-link:hover {
  color: #67e8f9;
  text-decoration: underline;
}
.footer-bottom a:not(.footer-bottom__devra-link) { color: rgba(255,255,255,0.65); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

/* --- Floating Actions (legacy — back-to-top uses .fab-top in fab-rail.css) --- */

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 10002;
  background: var(--gradient-primary); width: 0%; transition: width 0.1s;
}

/* --- Page Loader --- */
.page-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 56px; height: 56px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text { margin-top: 1.25rem; font-weight: 600; color: var(--text-muted); }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(11, 18, 32, 0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition); padding: 1.5rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: scale(0.9); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-body { padding: 1.5rem; }
.modal-close {
  background: none; border: none; cursor: pointer; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-alt); color: var(--danger); }

/* --- Toast --- */
.toast-container {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 10001;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.toast {
  padding: 1rem 1.5rem; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem;
  transform: translateX(120%); transition: transform 0.4s ease; min-width: 280px;
}
.toast.show { transform: translateX(0); }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--accent); }

/* --- Search --- */
.search-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(11, 18, 32, 0.85); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10vh; opacity: 0; visibility: hidden; transition: all var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  width: 100%; max-width: 640px; background: var(--surface);
  border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg);
  transform: translateY(-20px); transition: transform var(--transition);
}
.search-overlay.active .search-box { transform: translateY(0); }
.search-input-wrap { position: relative; }
.search-input-wrap input {
  width: 100%; padding: 1rem 1rem 1rem 3rem; font-size: 1.125rem;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); color: var(--text);
}
.search-input-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.search-suggestions { margin-top: 1rem; max-height: 320px; overflow-y: auto; }
.search-suggestion {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem;
  border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition);
}
.search-suggestion:hover { background: var(--bg-alt); }
.search-suggestion__type {
  font-size: 0.6875rem; text-transform: uppercase; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 4px; background: rgba(0,188,212,0.12); color: var(--accent);
}

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; background: var(--bg-alt);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute; inset: 0; background: rgba(15,76,129,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition); color: #fff;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 10003;
  background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: #fff; cursor: pointer; font-size: 2rem;
}

/* --- 404 --- */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page__code {
  font-size: clamp(6rem, 15vw, 12rem); font-weight: 900;
  background: var(--gradient-primary); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; line-height: 1;
}
.error-page__illustration { max-width: 400px; margin: 0 auto 2rem; }

/* --- Newsletter --- */
.newsletter-section {
  background: var(--gradient-primary); padding: 3.5rem 0; position: relative; overflow: hidden;
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-inner h2 { color: #fff; margin-bottom: 0.5rem; }
.newsletter-inner p { color: rgba(255,255,255,0.85); margin: 0; }
.newsletter-form { display: flex; gap: 0.75rem; flex: 1; max-width: 480px; }
.newsletter-form input {
  flex: 1; padding: 0.85rem 1.25rem; border: none; border-radius: var(--radius-md);
  font-size: 0.9375rem;
}
.newsletter-form input:focus { outline: 2px solid rgba(255,255,255,0.5); }

/* --- Tabs --- */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.tab-btn {
  padding: 0.75rem 1.5rem; background: none; border: none; cursor: pointer;
  font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.875rem;
  border: 1px solid var(--border); color: var(--text-muted); transition: all var(--transition);
}
.pagination a:hover, .pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}

/* --- Utility --- */
.bg-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
