/* ============================================================
   MahaRana Studios — Modern SaaS Design System
   ============================================================ */

/* Root Variables & Theme Configuration */
:root {
  /* Color Palette */
  --bg: #0b0f14;
  --bg-secondary: #0f1720;
  --card: #0f1720;
  --text: #E6EEF7;
  --text-strong: #ffffff;
  --text-muted: #9aa6b2;
  --accent1: #7C5CFF;
  --accent2: #00D4FF;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Glass Morphism & Borders */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 60px 120px rgba(0, 0, 0, 0.6);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Sora', sans-serif;
  
  /* Spacing */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 20px;
  
  /* Transitions */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  
  color-scheme: dark;
}

/* Light Theme */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-secondary: #f7fbff;
  --card: #fbfdff;
  --text: #0b1220;
  --text-strong: #020b1f;
  --text-muted: #222b33;
  --accent1: #4b2bff;
  --accent2: #007ea9;
  --glass: rgba(11, 15, 20, 0.03);
  --glass-hover: rgba(11, 15, 20, 0.06);
  --border: rgba(2, 11, 31, 0.08);
  --border-hover: rgba(2, 11, 31, 0.12);
  --shadow-sm: 0 2px 4px rgba(2, 11, 31, 0.05);
  --shadow-md: 0 12px 40px rgba(2, 11, 31, 0.10);
  --shadow-lg: 0 40px 80px rgba(2, 11, 31, 0.12);
  --shadow-xl: 0 60px 120px rgba(2, 11, 31, 0.15);
  color-scheme: light;
}

/* ============================================================
   Global Styles
   ============================================================ */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* ============================================================
   Particle System Background
   ============================================================ */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

/* Hide particle canvas for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .particle-canvas {
    display: none;
  }
}

/* Light theme particle opacity */
html[data-theme="light"] .particle-canvas {
  opacity: 0.3;
}

/* ============================================================
   Custom Scrollbar
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7C5CFF, #00D4FF);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00D4FF, #7C5CFF);
}

::-webkit-scrollbar-corner {
  background: var(--bg-secondary);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #7C5CFF var(--bg-secondary);
}

html[data-theme="light"] * {
  scrollbar-color: #4b2bff var(--bg-secondary);
}

/* ============================================================
   Gradient Text & Borders
   ============================================================ */
.gradient-text {
  background: linear-gradient(
    135deg,
    #7C5CFF 0%,
    #00D4FF 50%,
    #7C5CFF 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.gradient-border {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #7C5CFF, #00D4FF);
  border-radius: calc(var(--radius) + 2px);
  z-index: -1;
  animation: gradientRotate 4s linear infinite;
}

@keyframes gradientRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ============================================================
   Magnetic Buttons
   ============================================================ */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn-magnetic:hover {
  transform: scale(1.05);
}

/* ============================================================
   Hover Glow Effects
   ============================================================ */
.glow-hover {
  position: relative;
  transition: all 0.3s ease;
}

.glow-hover::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #7C5CFF, #00D4FF, #7C5CFF);
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: glowMove 3s ease infinite;
}

.glow-hover:hover::before {
  opacity: 1;
}

@keyframes glowMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Apply glow to service cards, portfolio cards, etc. */
.service-card,
.portfolio-card,
.testimonial-card,
.case-card {
  position: relative;
}

.service-card::before,
.portfolio-card::before,
.testimonial-card::before,
.case-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #7C5CFF, #00D4FF, #7C5CFF);
  background-size: 400% 400%;
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: glowMove 3s ease infinite;
}

.service-card:hover::before,
.portfolio-card:hover::before,
.testimonial-card:hover::before,
.case-card:hover::before {
  opacity: 1;
}

/* ============================================================
   Mobile-Only Features
   ============================================================ */
.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }
}

/* Shake to Contact Indicator */
.shake-indicator {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent1);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.4);
}

.shake-indicator.visible {
  opacity: 1;
  visibility: visible;
  animation: shakeBounce 0.5s ease-out;
}

@keyframes shakeBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  25% { transform: translateX(-50%) translateY(-10px); }
  50% { transform: translateX(-50%) translateY(5px); }
  75% { transform: translateX(-50%) translateY(-2px); }
}

/* Swipe Hint for Portfolio */
.swipe-hint {
  display: none;
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: swipeHint 2s ease-in-out infinite;
}

@media (max-width: 767px) {
  .swipe-hint {
    display: block;
  }
}

@keyframes swipeHint {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(10px); }
}

/* AR Preview Button */
.ar-preview-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent1);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base) var(--ease);
  z-index: 10;
}

.ar-preview-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.5);
}

.ar-preview-btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .ar-preview-btn {
    display: none;
  }
}

/* AR Modal */
.ar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.ar-modal.active {
  display: flex;
}

.ar-modal-content {
  width: 90%;
  max-width: 500px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.ar-modal video {
  width: 100%;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.ar-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--error);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #07101a 0%, #071018 60%);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 600ms cubic-bezier(0.23, 1, 0.320, 1);
}

html[data-theme="light"] body {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 60%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 1rem + 0.8vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text);
}

a {
  color: var(--accent1);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease);
}

a:hover { color: var(--accent2); }

/* Main Content Transitions */
main {
  opacity: 1;
  transition: opacity 300ms cubic-bezier(0.23, 1, 0.320, 1);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

/* ============================================================
   Accessibility
   ============================================================ */

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--text-strong);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-120%);
  transition: transform var(--duration-base) ease;
  opacity: 0;
}

.skip-link:focus {
  transform: none;
  opacity: 1;
  outline: 3px solid var(--accent1);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--accent1);
  outline-offset: 3px;
}

/* ============================================================
   Scroll Progress Indicator
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* Light theme support */
html[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

/* ============================================================
   Floating WhatsApp CTA Button
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: all var(--duration-base) cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 998;
  cursor: pointer;
  border: 3px solid white;
  animation: whatsappFloatIn 600ms ease-out forwards, whatsappPulseFloat 2s ease-in-out infinite 600ms;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  transform-origin: center;
  will-change: transform;
}

.floating-whatsapp:hover {
  transform: scale(1.15) translateY(-8px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
  filter: brightness(1.1);
}

.floating-whatsapp:active {
  transform: scale(0.95);
}

.floating-whatsapp:focus-visible {
  outline: 2px solid var(--accent1);
  outline-offset: 2px;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  display: block;
}

.whatsapp-label {
  display: block;
  line-height: 1;
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, 0.6);
  top: 0;
  left: 0;
  animation: whatsappPulseRing 2s ease-out infinite 600ms;
  pointer-events: none;
}

@keyframes whatsappFloatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsappPulseFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes whatsappPulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
  }
  
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
  
  .whatsapp-label {
    font-size: 0.55rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
    width: 54px;
    height: 54px;
    font-size: 0.6rem;
  }
  
  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp {
    animation: none;
  }
  
  .floating-whatsapp:hover {
    transform: scale(1.05);
  }
  
  .whatsapp-pulse {
    animation: none;
    opacity: 0.2;
  }
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.45), rgba(11, 15, 20, 0.15));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-base) ease;
  transform: translateY(0) !important;
  opacity: 1 !important;
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
  border-bottom-color: rgba(2, 11, 31, 0.06);
}

.site-header.scrolled {
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.8), rgba(11, 15, 20, 0.6));
  box-shadow: var(--shadow-md);
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Keep header visible even if any class/script tries to hide it on scroll */
.site-header.hide,
.site-header.hidden,
.site-header.is-hidden {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

html[data-theme="light"] .site-header.scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--accent1);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease);
  white-space: nowrap;
}

.brand:hover { transform: translateY(-2px); }

.brand-logo {
  height: 50px;
  width: 50px;
  min-width: 50px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease);
}

.brand:hover .brand-logo { transform: scale(1.05); }

/* Navigation */
.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  margin-left: 2rem;
}

.nav-link {
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all var(--duration-base) ease;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.nav-link:hover {
  color: var(--text-strong);
  background: var(--glass);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: width var(--duration-base) ease, left var(--duration-base) ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
  left: 50%;
}

.nav.open {
  position: absolute;
  left: auto;
  right: 0;
  top: calc(100% + 0.6rem);
  flex-direction: column;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0.95), rgba(11, 15, 20, 0.9));
  padding: 0.8rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  width: min(78vw, 260px);
  min-width: 220px;
  animation: slideDown var(--duration-base) var(--ease);
}

html[data-theme="light"] .nav.open {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.nav.open .nav-link { padding: 0.7rem 0.8rem; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--duration-base) ease;
}

.mobile-toggle:hover { color: var(--text-strong); }

.hamburger {
  display: inline-block;
  width: 22px;
  height: 18px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  left: 0;
  transition: all var(--duration-base) var(--ease);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.mobile-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--accent2);
}

.mobile-toggle.open .hamburger span:nth-child(2) { opacity: 0; }

.mobile-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--accent2);
}

.theme-toggle {
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base) ease;
}

.theme-toggle:hover { background: var(--glass); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #071024;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.22);
  font-weight: 700;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px rgba(124, 92, 255, 0.4), 0 0 40px rgba(124, 92, 255, 0.2);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-lg {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 0.8rem 1.3rem;
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(0, 212, 255, 0.05));
  border-color: var(--accent1);
  color: var(--text-strong);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.15);
}

html[data-theme="light"] .btn-outline {
  border-color: rgba(2, 11, 31, 0.12);
}

html[data-theme="light"] .btn-outline:hover {
  background: rgba(2, 11, 31, 0.04);
  border-color: rgba(2, 11, 31, 0.18);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem;
}

.btn-ghost:hover {
  color: var(--text-strong);
  background: var(--glass);
}

/* Focus styles for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.footer-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent1);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-primary:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 3px;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.5), 0 20px 50px rgba(124, 92, 255, 0.4);
}

/* Ensure focus is visible on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent1);
  outline-offset: 2px;
}

/* Skip link and reduced motion already defined at top of file */

/* ============================================================
   Animations
   ============================================================ */

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes pageLoadFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.section:first-of-type { padding-top: 4.5rem; }

.section-bg-parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0); /* GPU acceleration */
  pointer-events: none;
}

.section .container {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
}

.section-head h2 {
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp var(--duration-slow) var(--ease) 100ms forwards;
  opacity: 0;
}

.section-head .lead {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  animation: fadeInUp var(--duration-slow) var(--ease) 200ms forwards;
  opacity: 0;
}

.reveal .section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}

.reveal .section.in-view {
  opacity: 1;
  transform: none;
}

/* Smooth transitions when section comes into view */
.reveal .section.in-view .section-head {
  animation: fadeInUp var(--duration-slow) var(--ease) forwards !important;
  opacity: 1;
}

.reveal .section.in-view .section-head h2 {
  animation: fadeInUp var(--duration-slow) var(--ease) 100ms forwards !important;
  opacity: 1;
}

.reveal .section.in-view .section-head .lead {
  animation: fadeInUp var(--duration-slow) var(--ease) 200ms forwards !important;
  opacity: 1;
}

/* Staggered scroll animations for child elements */
.reveal .section.in-view .service-card,
.reveal .section.in-view .portfolio-card,
.reveal .section.in-view .testimonial-card,
.reveal .section.in-view .case-card,
.reveal .section.in-view .why-item,
.reveal .section.in-view .about-card {
  animation-play-state: running !important;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0); /* GPU acceleration */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.15), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1), transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* Secondary pages (privacy, 404, success) layout helpers */
.container-wide {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--accent1) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 55ch;
  animation: fadeInUp var(--duration-slow) var(--ease) 100ms forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp var(--duration-slow) var(--ease) 200ms forwards;
  opacity: 0;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  animation: fadeInUp var(--duration-slow) var(--ease) 300ms forwards;
  opacity: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.checkmark {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
}

.trust-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp var(--duration-slow) var(--ease) 400ms forwards;
  opacity: 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trust-item strong {
  color: var(--accent1);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  display: block;
  letter-spacing: -0.5px;
}

.trust-item span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   About Section
   ============================================================ */

.about { padding: 4rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  transition: all var(--duration-base) var(--ease);
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
  perspective: 1000px;
}

.about-card:nth-child(1) { animation-delay: 100ms; }
.about-card:nth-child(2) { animation-delay: 200ms; }
.about-card:nth-child(3) { animation-delay: 300ms; }

.about-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124, 92, 255, 0.3);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 212, 255, 0.05));
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.15), inset 0 0 20px rgba(124, 92, 255, 0.08);
}

.about-card h3 {
  margin-bottom: 1rem;
  color: var(--text-strong);
  font-size: 1.25rem;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

html[data-theme="light"] .about-card {
  background: rgba(2, 11, 31, 0.02);
  border-color: rgba(2, 11, 31, 0.08);
}

html[data-theme="light"] .about-card:hover {
  background: rgba(2, 11, 31, 0.04);
  border-color: rgba(75, 43, 255, 0.18);
}

/* ============================================================
   Services Section
   ============================================================ */

.services { padding: 4rem 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  text-align: center;
  transition: all var(--duration-base) var(--ease);
  cursor: pointer;
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.service-card:nth-child(1) { animation-delay: 100ms; }
.service-card:nth-child(2) { animation-delay: 200ms; }
.service-card:nth-child(3) { animation-delay: 300ms; }
.service-card:nth-child(4) { animation-delay: 400ms; }

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 255, 0.08));
  box-shadow: 0 30px 80px rgba(124, 92, 255, 0.25), inset 0 0 30px rgba(124, 92, 255, 0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent1);
  transition: transform var(--duration-base) var(--ease);
  display: inline-flex;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(5deg) translateY(-4px);
}

.service-icon svg {
  width: 56px;
  height: 56px;
  color: var(--accent1);
  opacity: 0.95;
}

.service-card h3 {
  margin: 0.8rem 0;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}

html[data-theme="light"] .service-card {
  background: rgba(2, 11, 31, 0.02);
  border-color: rgba(2, 11, 31, 0.08);
}

html[data-theme="light"] .service-card:hover {
  background: rgba(2, 11, 31, 0.04);
  border-color: rgba(75, 43, 255, 0.18);
}

/* ============================================================
   Portfolio Section
   ============================================================ */

.portfolio { padding: 4rem 0; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.portfolio-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease);
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.portfolio-card:nth-child(1) { animation-delay: 100ms; }
.portfolio-card:nth-child(2) { animation-delay: 200ms; }
.portfolio-card:nth-child(3) { animation-delay: 300ms; }
.portfolio-card:nth-child(4) { animation-delay: 400ms; }
.portfolio-card:nth-child(5) { animation-delay: 500ms; }
.portfolio-card:nth-child(6) { animation-delay: 600ms; }

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 212, 255, 0.06));
  box-shadow: 0 35px 90px rgba(124, 92, 255, 0.2), inset 0 0 20px rgba(124, 92, 255, 0.08);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  height: 160px;
  background: var(--glass);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--duration-base) var(--ease);
  will-change: transform;
}

.portfolio-card:hover .portfolio-image img { transform: scale(1.08); }

/* Image loading optimization */
img[loading="lazy"] {
  background-color: var(--glass);
}

/* Prevent layout shift for images */
img {
  max-width: 100%;
  height: auto;
}

.portfolio-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent1);
  color: #071024;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.portfolio-content p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-grow: 1;
  line-height: 1.5;
}

.tech-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp var(--duration-slow) var(--ease) 500ms forwards;
  opacity: 0;
}

/* ============================================================
   Testimonials Section
   ============================================================ */

.testimonials { padding: 4rem 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  transition: all var(--duration-base) var(--ease);
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.testimonial-card:nth-child(1) { animation-delay: 100ms; }
.testimonial-card:nth-child(2) { animation-delay: 200ms; }
.testimonial-card:nth-child(3) { animation-delay: 300ms; }

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 212, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 92, 255, 0.06));
  box-shadow: 0 25px 70px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.08);
}

.rating {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.star {
  color: #FDB022;
  text-shadow: 0 0 10px rgba(253, 176, 34, 0.3);
}

.testimonial-card blockquote {
  margin: 0 0 1.5rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  font-size: 0.98rem;
  border-left: 3px solid var(--accent1);
  padding-left: 1rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.testimonial-author strong {
  color: var(--text-strong);
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.8rem;
}

html[data-theme="light"] .testimonial-card {
  background: rgba(2, 11, 31, 0.02);
  border-color: rgba(2, 11, 31, 0.08);
}

html[data-theme="light"] .testimonial-card:hover {
  background: rgba(2, 11, 31, 0.04);
  border-color: rgba(0, 126, 169, 0.18);
}

/* ============================================================
   Case Studies Section
   ============================================================ */

.case-studies { padding: 4rem 0; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: all var(--duration-base) var(--ease);
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
  perspective: 1000px;
}

.case-card:nth-child(1) { animation-delay: 100ms; }
.case-card:nth-child(2) { animation-delay: 200ms; }
.case-card:nth-child(3) { animation-delay: 300ms; }

.case-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 212, 255, 0.06));
  box-shadow: 0 25px 70px rgba(124, 92, 255, 0.2), inset 0 0 20px rgba(124, 92, 255, 0.08);
}

.case-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.case-card h3 {
  margin: 0;
  font-size: 1.15rem;
  flex-grow: 1;
}

.case-tag {
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent1);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-card p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.case-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.case-metrics strong {
  color: var(--accent1);
  font-weight: 800;
  font-size: 1.15rem;
}

html[data-theme="light"] .case-card {
  background: rgba(2, 11, 31, 0.02);
  border-color: rgba(2, 11, 31, 0.08);
}

html[data-theme="light"] .case-card:hover {
  background: rgba(2, 11, 31, 0.04);
  border-color: rgba(75, 43, 255, 0.18);
}

/* ============================================================
   Why Us Section
   ============================================================ */

.why-us { padding: 4rem 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.why-item {
  text-align: center;
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
}

.why-item:nth-child(1) { animation-delay: 100ms; }
.why-item:nth-child(2) { animation-delay: 200ms; }
.why-item:nth-child(3) { animation-delay: 300ms; }
.why-item:nth-child(4) { animation-delay: 400ms; }
.why-item:nth-child(5) { animation-delay: 500ms; }
.why-item:nth-child(6) { animation-delay: 600ms; }

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent1);
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.1);
  border-radius: 12px;
  transition: transform var(--duration-base) var(--ease);
}

.why-item:hover .why-icon {
  transform: translateY(-4px) scale(1.1);
  background: rgba(124, 92, 255, 0.15);
}

.why-icon svg {
  width: 32px;
  height: 32px;
}

.why-item h3 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Careers Section
   ============================================================ */
.careers { padding: 4rem 0; }

.careers-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Coming Soon Badge */
.coming-soon-badge {
  text-align: center;
  margin-bottom: 2rem;
}

.coming-soon-badge .badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(0, 212, 255, 0.2));
  border: 1px solid var(--accent1);
  border-radius: 50px;
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Positions Preview */
.positions-preview {
  margin-bottom: 3rem;
}

.positions-preview h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.position-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--duration-base) var(--ease);
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease) forwards;
}

.position-card:nth-child(1) { animation-delay: 100ms; }
.position-card:nth-child(2) { animation-delay: 200ms; }
.position-card:nth-child(3) { animation-delay: 300ms; }
.position-card:nth-child(4) { animation-delay: 400ms; }

.position-card:hover {
  border-color: var(--accent1);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.15);
}

.position-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.position-card h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.position-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Why Join Us */
.why-join {
  margin-bottom: 3rem;
}

.why-join h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease) forwards;
}

.benefit-item:nth-child(1) { animation-delay: 500ms; }
.benefit-item:nth-child(2) { animation-delay: 600ms; }
.benefit-item:nth-child(3) { animation-delay: 700ms; }
.benefit-item:nth-child(4) { animation-delay: 800ms; }

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.benefit-item h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Expression of Interest */
.express-interest {
  text-align: center;
}

.interest-box {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(0, 212, 255, 0.05));
  border: 1px solid var(--accent1);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.interest-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.interest-box > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.interest-box .btn {
  margin-bottom: 1rem;
}

.interest-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Light Theme Support */
html[data-theme="light"] .position-card,
html[data-theme="light"] .benefit-item {
  background: rgba(2, 11, 31, 0.02);
  border-color: rgba(2, 11, 31, 0.08);
}

html[data-theme="light"] .position-card:hover {
  border-color: rgba(75, 43, 255, 0.4);
  box-shadow: 0 10px 30px rgba(75, 43, 255, 0.1);
}

html[data-theme="light"] .interest-box {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 212, 255, 0.03));
  border-color: rgba(75, 43, 255, 0.3);
}

/* Tablet Responsive */
@media (max-width: 1023px) {
  .positions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .careers { padding: 2.5rem 0; }
  
  .positions-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .position-card,
  .benefit-item {
    padding: 1.2rem;
  }
  
  .interest-box {
    padding: 1.5rem;
  }
}

/* ============================================================
   FAQ Section
   ============================================================ */

.faq { padding: 4rem 0; }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 0;
  transition: all var(--duration-base) var(--ease);
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 100ms; }
.faq-item:nth-child(2) { animation-delay: 150ms; }
.faq-item:nth-child(3) { animation-delay: 200ms; }
.faq-item:nth-child(4) { animation-delay: 250ms; }
.faq-item:nth-child(5) { animation-delay: 300ms; }
.faq-item:nth-child(6) { animation-delay: 350ms; }

.faq-item[open] {
  border-color: var(--accent1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 40px rgba(124, 92, 255, 0.1);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.95rem;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--duration-fast) ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  color: var(--accent1);
  font-size: 1.3rem;
  transition: transform var(--duration-base) var(--ease);
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { color: var(--accent1); }

.faq-body {
  padding: 0 1.2rem 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  animation: slideDown var(--duration-base) var(--ease);
}

.faq-body p { margin: 0; }

html[data-theme="light"] .faq-item {
  background: rgba(2, 11, 31, 0.02);
  border-color: rgba(2, 11, 31, 0.08);
}

html[data-theme="light"] .faq-item[open] {
  border-color: rgba(75, 43, 255, 0.4);
  background: rgba(2, 11, 31, 0.04);
  box-shadow: 0 10px 40px rgba(75, 43, 255, 0.08);
}

/* ============================================================
   Contact Section
   ============================================================ */

.contact { padding: 4rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
  opacity: 0;
}

.contact-info h3 {
  margin-bottom: 1.8rem;
  font-size: 1.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-item strong {
  color: var(--accent2);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.detail-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-link {
  color: var(--accent1);
  transition: color var(--duration-base) ease;
}

.contact-link:hover { color: var(--accent2); }

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all var(--duration-base) ease;
  font-size: 0.85rem;
  font-weight: 600;
}

.social-links a:hover {
  background: var(--glass);
  border-color: var(--accent1);
  color: var(--accent1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
  animation: fadeInUp var(--duration-slow) var(--ease) 100ms forwards;
  opacity: 0;
}

.contact-form h3 {
  margin: 0;
  font-size: 1.15rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form label span {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border);
  color: inherit;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--duration-base) ease;
  line-height: 1.5;
  width: 100%;
  box-shadow: inset 0 0 0 0 rgba(124, 92, 255, 0);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(124, 92, 255, 0.3);
  box-shadow: inset 0 0 10px rgba(124, 92, 255, 0.05), 0 0 20px rgba(124, 92, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form select {
  color: var(--text);
  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='%239aa6b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-form select option {
  background: var(--bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent1);
  box-shadow: inset 0 0 15px rgba(124, 92, 255, 0.1), 0 0 30px rgba(124, 92, 255, 0.25), 0 0 60px rgba(124, 92, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea,
html[data-theme="light"] .contact-form select {
  background: rgba(2, 11, 31, 0.03);
  border-color: rgba(2, 11, 31, 0.12);
}

html[data-theme="light"] .contact-form input:hover,
html[data-theme="light"] .contact-form textarea:hover,
html[data-theme="light"] .contact-form select:hover {
  background: rgba(2, 11, 31, 0.05);
  border-color: rgba(75, 43, 255, 0.3);
  box-shadow: inset 0 0 10px rgba(75, 43, 255, 0.05), 0 0 20px rgba(75, 43, 255, 0.1);
}

html[data-theme="light"] .contact-form input:focus,
html[data-theme="light"] .contact-form textarea:focus,
html[data-theme="light"] .contact-form select:focus {
  background: rgba(2, 11, 31, 0.04);
  border-color: rgba(75, 43, 255, 0.6);
  box-shadow: inset 0 0 15px rgba(75, 43, 255, 0.1), 0 0 30px rgba(75, 43, 255, 0.2), 0 0 60px rgba(75, 43, 255, 0.08);
  transform: translateY(-1px);
}

html[data-theme="light"] .contact-info,
html[data-theme="light"] .contact-form {
  background: rgba(2, 11, 31, 0.02);
  border-color: rgba(2, 11, 31, 0.08);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-actions button {
  flex: 1;
  min-width: 140px;
}

.form-msg {
  padding: 0.8rem;
  border-radius: 8px;
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  animation: slideDown var(--duration-base) var(--ease);
  display: none;
}

.form-msg:not(:empty) { display: block; }

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Final CTA Section
   ============================================================ */

.final-cta {
  padding: 5rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.15), transparent 60%);
  margin: 2rem 0;
}

.cta-content {
  text-align: center;
  animation: fadeInUp var(--duration-slow) var(--ease) forwards;
}

.cta-content h2 {
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-content p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ============================================================
   Pills
   ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  color: var(--text-strong);
  font-size: 0.8rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.05), rgba(0, 212, 255, 0.02));
  font-weight: 600;
  transition: all var(--duration-base) ease;
  cursor: default;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.08);
}

.pill:hover {
  border-color: var(--accent1);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 255, 0.1));
  color: var(--accent1);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.2);
  transform: translateY(-1px);
}

html[data-theme="light"] .pill {
  border-color: rgba(2, 11, 31, 0.10);
  background: rgba(2, 11, 31, 0.02);
}

html[data-theme="light"] .pill:hover {
  border-color: rgba(75, 43, 255, 0.4);
  background: rgba(75, 43, 255, 0.08);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  color: var(--text-muted);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-brand strong {
  display: block;
  color: var(--text-strong);
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col h4 {
  color: var(--text-strong);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--duration-base) ease;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.footer-col a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: width var(--duration-base) ease;
}

.footer-col a:hover {
  color: var(--accent1);
  transform: translateX(4px);
}

.footer-col a:hover::before {
  width: 100%;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.6;
}

.location {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.7;
}

html[data-theme="light"] .site-footer {
  border-top-color: rgba(2, 11, 31, 0.06);
  background: linear-gradient(180deg, rgba(2, 11, 31, 0.02), transparent);
}

/* ============================================================
   Back to Top Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border: none;
  color: #071024;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px) scale(0.95);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Light theme support */
html[data-theme="light"] .back-to-top {
  box-shadow: 0 4px 15px rgba(124, 92, 255, 0.25);
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* Tablets (1024px and down) */
@media (max-width: 1023px) {
  .container { 
    padding: clamp(1rem, 2.5vw, 1.5rem); 
  }
  
  /* Header & Navigation */
  .site-header { 
    padding: 0.85rem 0; 
  }
  
  .header-inner { 
    padding: 0 1.5rem; 
  }
  
  .brand-text { 
    font-size: 0.95rem; 
  }
  
  .brand-logo { 
    height: 45px; 
    width: 45px; 
  }
  
  /* Hero Section */
  .hero { 
    padding: 3rem 0; 
  }
  
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }
  
  .hero-title { 
    font-size: clamp(1.8rem, 6vw, 2.8rem); 
  }
  
  .trust-signals { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
    margin-top: 2rem; 
  }
  
  /* Services Section */
  .services-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
  }
  
  .service-card { 
    padding: 1.8rem; 
  }
  
  .service-icon svg { 
    width: 48px; 
    height: 48px; 
  }
  
  /* About Section */
  .about-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.2rem; 
  }
  
  .about-card { 
    padding: 1.8rem; 
  }
  
  /* Portfolio Section */
  .portfolio-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.8rem; 
  }
  
  .portfolio-image { 
    height: 140px; 
  }
  
  .portfolio-content { 
    padding: 0.9rem; 
  }
  
  .portfolio-content h3 { 
    font-size: 0.95rem; 
    margin-bottom: 0.3rem; 
  }
  
  .portfolio-content p { 
    font-size: 0.8rem; 
    margin-bottom: 0.6rem; 
  }
  
  .portfolio-tag { 
    font-size: 0.65rem; 
    padding: 0.25rem 0.5rem; 
    top: 0.5rem; 
    right: 0.5rem; 
  }
  
  /* Testimonials Section */
  .testimonials-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem; 
  }
  
  /* Case Studies Section */
  .case-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.2rem; 
  }
  
  /* Why Us Section */
  .why-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem; 
  }
  
  /* Contact Section */
  .contact-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }
  
  /* FAQ Section */
  .faq-list { 
    max-width: 100%; 
  }
  
  /* Footer */
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }
  
  .footer-nav { 
    grid-template-columns: repeat(3, 1fr); 
  }
  
  /* General Spacing */
  .about, 
  .services, 
  .why-us, 
  .contact, 
  .portfolio, 
  .testimonials, 
  .case-studies, 
  .faq,
  .careers { 
    padding: 2.5rem 0; 
  }
  
  .section-head { 
    margin-bottom: 2rem; 
  }
  
  h1 { 
    font-size: clamp(1.8rem, 6vw, 2.8rem); 
  }
  
  h2 { 
    font-size: clamp(1.5rem, 5vw, 2.2rem); 
  }
}

/* Small Tablets/Large Mobile (768px - 1023px) */
@media (max-width: 895px) {
  .services-grid { 
    grid-template-columns: 1fr; 
  }
  
  .why-grid { 
    grid-template-columns: 1fr; 
  }
  
  .case-grid { 
    grid-template-columns: 1fr; 
  }
}

/* Mobile (767px and down) */
@media (max-width: 767px) {
  .container { 
    padding: 1rem; 
  }
  
  /* Header Optimization */
  .site-header { 
    padding: 0.7rem 0; 
  }
  
  .header-inner { 
    padding: 0 1rem; 
    gap: 0.5rem; 
  }
  
  .brand { 
    gap: 0.6rem; 
  }
  
  .brand-text { 
    font-size: 0.85rem; 
  }
  
  .brand-logo { 
    height: 38px; 
    width: 38px; 
  }
  
  /* Navigation */
  .nav { 
    display: none; 
    margin-left: 0; 
    padding: 0; 
  }
  
  .nav.open {
    position: fixed;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: auto;
    width: min(85vw, 280px);
    min-width: 200px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  .nav.open .nav-link { 
    width: 100%; 
    text-align: left; 
    padding: 0.65rem 0.8rem; 
  }
  
  .mobile-toggle { 
    display: flex; 
  }
  
  /* Hero Section */
  .hero { 
    padding: 2rem 0 2.5rem; 
  }
  
  .hero::before {
    opacity: 0.5;
  }
  
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
  }
  
  .hero-title { 
    font-size: clamp(1.5rem, 6vw, 2.2rem); 
    margin-bottom: 1rem; 
  }
  
  .hero-subtitle { 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
  }
  
  .hero-cta { 
    gap: 0.75rem; 
    margin-bottom: 1.8rem; 
    flex-wrap: wrap; 
  }
  
  .hero-cta .btn { 
    flex: 1; 
    min-width: 140px; 
  }
  
  .hero-features { 
    font-size: 0.9rem; 
  }
  
  .trust-signals { 
    grid-template-columns: 1fr; 
    gap: 0.8rem; 
    margin-top: 1.5rem; 
    padding-top: 1.5rem; 
  }
  
  /* Buttons */
  .btn { 
    padding: 0.75rem 1.1rem; 
    font-size: 0.9rem; 
    gap: 0.5rem; 
  }
  
  .btn-primary {
    width: 100%;
  }
  
  .btn-lg { 
    padding: 0.85rem 1.2rem; 
    font-size: 0.95rem; 
  }
  
  /* Section Spacing */
  .section { 
    padding: 2rem 0; 
  }
  
  .section:first-of-type { 
    padding-top: 3rem; 
  }
  
  .section-head { 
    margin-bottom: 1.5rem; 
  }
  
  .section-head h2 { 
    font-size: clamp(1.3rem, 6vw, 1.9rem); 
  }
  
  .section-head .lead { 
    font-size: 0.9rem; 
  }
  
  /* Services Grid */
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 0.8rem; 
  }
  
  .service-card { 
    padding: 1.4rem 1.2rem; 
  }
  
  .service-card h3 { 
    font-size: 1rem; 
  }
  
  .service-card p { 
    font-size: 0.85rem; 
  }
  
  .service-icon { 
    margin-bottom: 0.8rem; 
  }
  
  .service-icon svg { 
    width: 40px; 
    height: 40px; 
  }
  
  /* About Grid */
  .about-grid { 
    grid-template-columns: 1fr; 
    gap: 0.8rem; 
  }
  
  .about-card { 
    padding: 1.3rem; 
  }
  
  .about-card h3 { 
    font-size: 1.05rem; 
    margin-bottom: 0.8rem; 
  }
  
  /* Why Grid */
  .why-grid { 
    grid-template-columns: 1fr; 
    gap: 0.8rem; 
  }
  
  .why-item { 
    text-align: center; 
  }
  
  .why-icon { 
    width: 50px; 
    height: 50px; 
  }
  
  .why-item h3 { 
    font-size: 1rem; 
  }
  
  .why-item p { 
    font-size: 0.85rem; 
  }
  
  /* Testimonials Grid */
  .testimonials-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem; 
  }
  
  .testimonial-card { 
    padding: 1.3rem; 
  }
  
  .rating { 
    margin-bottom: 1rem; 
  }
  
  .testimonial-card blockquote { 
    font-size: 0.9rem; 
    line-height: 1.6; 
  }
  
  /* Case Studies Grid */
  .case-grid { 
    grid-template-columns: 1fr; 
    gap: 0.8rem; 
  }
  
  .case-card { 
    padding: 1.3rem; 
  }
  
  .case-card h3 { 
    font-size: 1.05rem; 
  }
  
  .case-card p { 
    font-size: 0.9rem; 
  }
  
  /* Portfolio Grid */
  .portfolio-grid { 
    grid-template-columns: 1fr; 
    gap: 0.6rem; 
  }
  
  .portfolio-card { 
    overflow: hidden; 
  }
  
  .portfolio-image { 
    height: 120px; 
  }
  
  .portfolio-content { 
    padding: 0.8rem; 
  }
  
  .portfolio-content h3 { 
    font-size: 0.95rem; 
    margin-bottom: 0.25rem; 
  }
  
  .portfolio-content p { 
    font-size: 0.75rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.4; 
  }
  
  .portfolio-tag { 
    font-size: 0.6rem; 
    padding: 0.2rem 0.4rem; 
    top: 0.4rem; 
    right: 0.4rem; 
  }
  
  .tech-stack { 
    gap: 0.3rem; 
  }
  
  .pill { 
    font-size: 0.75rem; 
    padding: 0.35rem 0.6rem; 
  }
  
  /* Contact Form */
  .contact-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
  }
  
  .contact-info, 
  .contact-form { 
    padding: 1.3rem; 
  }
  
  .contact-info h3, 
  .contact-form h3 { 
    font-size: 1.05rem; 
    margin-bottom: 1rem; 
  }
  
  .contact-details { 
    gap: 1.2rem; 
  }
  
  .detail-item strong { 
    font-size: 0.8rem; 
  }
  
  .contact-form input,
  .contact-form textarea { 
    padding: 0.8rem; 
    font-size: 0.9rem; 
  }
  
  .contact-form label span { 
    font-size: 0.85rem; 
  }
  
  .form-actions { 
    flex-direction: column; 
    gap: 0.6rem; 
  }
  
  .form-actions button { 
    width: 100%; 
    padding: 0.8rem; 
  }
  
  /* FAQ */
  .faq-list { 
    max-width: 100%; 
    gap: 0.75rem; 
  }
  
  .faq-item { 
    border-radius: 10px; 
  }
  
  .faq-item summary { 
    padding: 0.95rem; 
    font-size: 0.9rem; 
  }
  
  .faq-body { 
    padding: 0 0.95rem 0.95rem; 
    font-size: 0.9rem; 
  }
  
  /* Careers Section */
  .positions-grid { 
    grid-template-columns: 1fr; 
  }
  
  .benefits-grid { 
    grid-template-columns: 1fr; 
  }
  
  .position-card,
  .benefit-item { 
    padding: 1.2rem; 
  }
  
  .interest-box { 
    padding: 1.3rem; 
  }
  
  /* Footer */
  .site-footer { 
    padding: 2rem 0 1.5rem; 
    margin-top: 2rem; 
  }
  
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
  }
  
  .footer-nav { 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
  }
  
  .footer-col { 
    margin-bottom: 0.5rem; 
  }
  
  .footer-col h4 { 
    font-size: 0.95rem; 
    margin-bottom: 0.8rem; 
  }
  
  .footer-col a { 
    font-size: 0.85rem; 
  }
  
  .footer-bottom { 
    align-items: flex-start; 
    text-align: left; 
  }
  
  .copyright { 
    font-size: 0.75rem; 
  }
  
  /* Back to Top Button */
  .back-to-top {
    left: 1.5rem;
    bottom: 1.5rem;
  }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container { 
    padding: 0.75rem; 
  }
  
  h1 { 
    font-size: clamp(1.3rem, 5vw, 1.8rem); 
  }
  
  h2 { 
    font-size: clamp(1.1rem, 4.5vw, 1.5rem); 
  }
  
  h3 { 
    font-size: 1rem; 
  }
  
  /* Header Extra Small */
  .brand-text { 
    font-size: 0.75rem; 
  }
  
  .brand-logo { 
    height: 35px; 
    width: 35px; 
  }
  
  /* Hero */
  .hero { 
    padding: 1.5rem 0 2rem; 
  }
  
  .hero-title { 
    font-size: clamp(1.3rem, 5vw, 1.8rem); 
  }
  
  .hero-subtitle { 
    font-size: 0.85rem; 
  }
  
  .hero-cta { 
    gap: 0.6rem; 
  }
  
  .hero-cta .btn { 
    padding: 0.65rem 1rem; 
    font-size: 0.85rem; 
  }
  
  .trust-signals { 
    gap: 0.5rem; 
  }
  
  .trust-item strong { 
    font-size: 1.1rem; 
  }
  
  .trust-item span { 
    font-size: 0.75rem; 
  }
  
  /* Cards */
  .service-card { 
    padding: 1rem 0.8rem; 
  }
  
  .about-card { 
    padding: 1rem; 
  }
  
  .portfolio-image { 
    height: 100px; 
  }
  
  /* Forms */
  .contact-form input,
  .contact-form textarea { 
    padding: 0.7rem; 
    font-size: 0.85rem; 
  }
  
  .form-actions button { 
    padding: 0.7rem; 
    font-size: 0.85rem; 
  }
  
  /* Footer */
  .footer-brand strong { 
    font-size: 1rem; 
  }
  
  .footer-col h4 { 
    font-size: 0.9rem; 
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .section { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .mobile-toggle, .header-actions, .contact-form, .final-cta { display: none; }
  body { background: white; color: black; }
  a { color: blue; }
}
