/* ============================================
   EXOTRIO DESIGN SYSTEM - TECH THEME
   ============================================ */

/* ============================================
   CSS RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

/* Smooth theme transitions (Fallback for non-view-transitions) */
body,
.card,
.navbar,
.btn {
  transition:
    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
  /* DEFAULT TO DARK THEME VARS (Fallback) */
  --color-primary: #d4af37;
  --color-primary-light: #f1d592;
  --color-primary-dark: #b8860b;
  --color-primary-glow: rgba(212, 175, 55, 0.5);

  --color-accent: #10b981;
  --color-accent-glow: rgba(16, 185, 129, 0.4);

  --color-bg-primary: #0f1115;
  --color-bg-secondary: #181b21;
  --color-bg-tertiary: #22262e;
  --color-bg-elevated: rgba(15, 17, 21, 0.85);

  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-inverse: #0f1115;

  --gradient-primary: linear-gradient(135deg, #d4af37 0%, #f1d592 100%);
  --gradient-hero: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);

  /* Golden Shadow Variables */
  --shadow-golden: rgba(212, 175, 55, 0.4);
  --shadow-golden-intense: rgba(212, 175, 55, 0.6);
  --shadow-golden-subtle: rgba(212, 175, 55, 0.2);
  --shadow-golden-solid: rgba(212, 175, 55, 1);

  --border-color: rgba(255, 255, 255, 0.1);

  /* Default Dark Mode Vars for fallback */
  --navbar-bg: rgba(15, 17, 21, 0.6);
  --navbar-bg-scrolled: rgba(15, 17, 21, 0.85);
  --navbar-border: rgba(255, 255, 255, 0.15);
  --gradient-text: linear-gradient(to right, #ffffff, #94a3b8);
  --logo-filter: none;

  --navbar-link-active-bg: rgba(255, 255, 255, 0.1);

  /* Compact Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.825rem;
  --space-md: 1.25rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Fluid Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: clamp(1.125rem, 1.5vw, 1.25rem);
  --font-size-xl: clamp(1.5rem, 2vw, 2rem);
  --font-size-2xl: clamp(2rem, 3vw, 2.5rem);
  --font-size-3xl: clamp(2.5rem, 4vw, 4rem);
  --font-size-4xl: clamp(3.5rem, 6vw, 6rem);

  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--color-primary-glow);

  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-Index */
  --z-cursor: 9999;
}

/* LIGHT THEME */
/* LIGHT THEME */
[data-theme="light"] {
  /* High Contrast Gold/Black/White Palette */
  --color-primary: #b8860b;
  /* Darker Gold for readability on white */
  --color-primary-light: #d4af37;
  --color-primary-dark: #8b6508;
  --color-primary-glow: rgba(184, 134, 11, 0.15);

  --color-accent: #27ae60;
  --color-accent-glow: rgba(39, 174, 96, 0.3);

  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #e9ecef;
  --color-bg-elevated: rgba(255, 255, 255, 0.95);

  --color-text-primary: #000000;
  --color-text-secondary: #333333;
  --color-text-muted: #666666;
  --color-text-inverse: #ffffff;

  /* Subtle gradients */
  --gradient-primary: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  --gradient-hero: radial-gradient(circle at 60% -20%, rgba(184, 134, 11, 0.05) 0%, transparent 60%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);

  --border-color: rgba(0, 0, 0, 0.1);

  /* Golden Shadow Variables */
  --shadow-golden: rgba(184, 134, 11, 0.2);
  --shadow-golden-intense: rgba(184, 134, 11, 0.4);
  --shadow-golden-subtle: rgba(184, 134, 11, 0.1);
  --shadow-golden-solid: rgba(184, 134, 11, 1);

  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
  --navbar-border: rgba(0, 0, 0, 0.15);
  --gradient-text: linear-gradient(to right, #000000, #333333);
  --logo-filter: invert(1);

  --navbar-link-active-bg: rgba(184, 134, 11, 0.1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* View Transition Styles */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  max-width: 65ch;
  line-height: 1.7;
  font-weight: 400;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 1000px;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg-primary);
  overflow: hidden;
}

/* Background Grids & Patterns */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 20%,
      black 80%,
      transparent 100%);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999 !important;
  width: 90%;
  max-width: 1200px;
  padding: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  width: 80%;
  max-width: 1000px;
  top: var(--space-sm);
  background: var(--navbar-bg-scrolled);
  box-shadow: var(--shadow-xl);
  border-color: var(--navbar-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 var(--space-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 30px;
  width: auto;
  filter: var(--logo-filter);
  transition: filter var(--transition-base);
}

/* ... existing styles ... */

.hero-title {
  font-size: var(--font-size-4xl);
  /* Massive text */
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.navbar-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--color-text-primary);
  background: var(--navbar-link-active-bg);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Theme toggle is less relevant in a forced dark tech theme, hiding or simplifying */
/* Main Theme Toggle Switch */
.theme-switch {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  transition: all var(--transition-base);
}

.theme-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
}

.theme-switch svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  /* Specific transitions for instant shadow response */
  transition: transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), opacity var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* Primary Button - Glowy Blue */
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;

  /* Dynamic shadow properties (controlled by JS) */
  --shadow-x: 0px;
  --shadow-y: 0px;
  --shadow-blur: 25px;
  --shadow-spread: 2px;
  /* Small spread for glow effect */
  box-shadow: var(--shadow-x) var(--shadow-y) var(--shadow-blur) var(--shadow-spread) var(--shadow-golden);

  border-color: var(--color-primary-light);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
      var(--color-primary),
      var(--color-primary-light));
  z-index: -1;
  transition: opacity var(--transition-base);
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-x) var(--shadow-y) calc(var(--shadow-blur) * 1.2) var(--shadow-spread) var(--shadow-golden-intense);
}

.btn-primary:hover::before {
  opacity: 1;
}

/* Secondary Button - Outlined */
.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);

  /* Dynamic shadow on hover */
  --shadow-x: 0px;
  --shadow-y: 0px;
  --shadow-blur: 15px;
  box-shadow: var(--shadow-x) var(--shadow-y) var(--shadow-blur) 0px var(--shadow-golden-subtle);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  /* Specific transitions for instant shadow response */
  transition: transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  /* Dynamic shadow properties (controlled by JS) */
  --shadow-x: 0px;
  --shadow-y: 0px;
  --shadow-blur: 20px;
  --shadow-spread: 2px;
  /* Small spread for glow effect */
  box-shadow: var(--shadow-x) var(--shadow-y) var(--shadow-blur) var(--shadow-spread) var(--shadow-golden);
}

/* Glass effect on hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.06),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 2;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-x) var(--shadow-y) calc(var(--shadow-blur) * 1.5) var(--shadow-spread) var(--shadow-golden-intense);
}

.card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
  color: var(--color-primary);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

/* ============================================
   FLIP CARDS & HORIZONTAL SCROLL
   ============================================ */
/* ============================================
   CAROUSEL
   ============================================ */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  /* Changed from visible to allow clipping outside the track context, but track needs care */
  padding: var(--space-xl) 0;
}

.carousel-track-container {
  overflow: visible;
  /* CRITICAL: Allow cards to scale outside this container if needed */
  width: 100%;
  /* Use a mask if we strictly want to hide edges, but usually visible is safer for scaling effects */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  padding: var(--space-xl) 0;
  /* Add vertical padding so scaled cards don't clip top/bottom */
}

.carousel-card {
  flex: 0 0 33.333%;
  /* Strictly 1/3 viewport width */
  max-width: 33.333%;
  padding: 0 var(--space-md);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  opacity: 0.5;
  transform: scale(0.9);
  filter: blur(2px);
  /* Ensure consistent height */
  display: flex;
  align-items: stretch;
}

/* Ensure the inner card takes full height and has consistent size */
.carousel-card .card {
  width: 100%;
  height: 100%;
  min-height: 350px;
  /* Enforce a minimum height for uniformity */
  display: flex;
  flex-direction: column;
}

.carousel-card.active {
  opacity: 1;
  transform: scale(1.1);
  /* Slightly larger center */
  z-index: 2;
  filter: blur(0);
}

.carousel-nav button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-nav button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--color-bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* Dots navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-lg);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-primary);
}


/* ============================================
   CONTACT SECTION (New Grid Layout)
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: stretch;
  /* Stretch to fill height */
}

.contact-form-container,
.contact-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-container {
  padding: var(--space-xl);
  justify-content: center;
  /* Center form vertically */
}

.contact-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-social-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex-grow: 1;
  margin-top: var(--space-md);
}

.contact-social-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-md);
  background: var(--color-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  flex-grow: 1;
  min-height: 45px;
  position: relative;
  z-index: 10;
}

.contact-social-item:hover {
  transform: translateX(8px);
  border-color: var(--color-primary);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: var(--shadow-sm);
}

.contact-social-item i {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.contact-social-item:hover i {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.contact-social-item .social-label {
  font-weight: 500;
  font-size: var(--font-size-sm);
  flex-grow: 1;
}

.contact-social-item .social-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(100, 116, 139, 0.1);
  color: var(--color-text-muted);
}

.contact-social-item .social-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.contact-social-item.coming-soon {
  opacity: 0.7;
  cursor: default;
}

/* Allow coming-soon to share the standard hover effect */
.contact-social-item.coming-soon:hover {
  opacity: 1;
}


.contact-social-item.coming-soon .social-status {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
  background: rgba(255, 255, 255, 0.05);
}

/* Small Social List */
.small-social-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.social-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all 0.3s ease;
}

.social-item:hover {
  transform: translateX(5px);
  border-color: var(--color-primary);
  background: rgba(212, 175, 55, 0.05);
}

.social-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-item:hover .social-item-icon {
  background: var(--color-primary);
  color: #fff;
}

.social-item span {
  font-weight: 500;
  font-size: var(--font-size-base);
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .carousel-card {
    flex: 0 0 100%;
    /* Show 1 card on mobile */
    max-width: 100%;
    padding: 0 var(--space-sm);
    opacity: 1;
    /* Fully visible on mobile */
    filter: none;
    /* No blur on mobile */
    transform: scale(1);
  }

  .carousel-card.active {
    transform: scale(1);
    /* No extra scaling on small screens to prevent clipping */
    filter: none;
  }

  .carousel-wrapper {
    padding: var(--space-md) 0;
  }

  /* Hide navigation buttons on mobile/tablet */
  .carousel-prev,
  .carousel-next {
    display: none;
  }

  /* Less aggressive border blur on mobile */
  .carousel-track-container {
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  }
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* Reveal specific transitions: exclude box-shadow/filter for responsiveness */
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Text Scramble Placeholder Class */
.scramble-text {
  display: inline-block;
  position: relative;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
  backdrop-filter: blur(2px);
  mix-blend-mode: difference;
}

.custom-cursor.hovered {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-color: transparent;
}

/* Cursor Trail Shapes */
.cursor-shape {
  position: fixed;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  animation: fadeOutShape 0.8s forwards;
  opacity: 0.8;
}

.shape-circle {
  border-radius: 50%;
  border: 1px solid var(--color-primary);
}

.shape-square {
  border: 1px solid var(--color-accent);
}

.shape-triangle {
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--color-text-primary);
  background: transparent !important;
}

.shape-cross {
  background: var(--color-text-secondary);
  clip-path: polygon(20% 0%,
      0% 20%,
      30% 50%,
      0% 80%,
      20% 100%,
      50% 70%,
      80% 100%,
      100% 80%,
      70% 50%,
      100% 20%,
      80% 0%,
      50% 30%);
}

@keyframes fadeOutShape {
  0% {
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
    opacity: 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-content {
  text-align: center;
  max-width: 1000px;
  /* Wider for large tech typography */
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  z-index: 1;
}

.hero-title {
  font-size: var(--font-size-4xl);
  /* Massive text */
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  letter-spacing: -0.04em;
  padding: 10px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  /* Dynamic shadow properties (controlled by JS) */
  --shadow-x: 0px;
  --shadow-y: 0px;
  --shadow-blur: 15px;
  filter: drop-shadow(var(--shadow-x) var(--shadow-y) var(--shadow-blur) var(--shadow-golden-solid));
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.hero-cta {
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1400px;
  margin: var(--space-2xl) auto;
}

@media (max-width: 1024px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-info {
    display: none;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* Social Card Styles */
.social-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-decoration: none;
  /* Specific transitions for instant shadow response */
  transition: transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), opacity var(--transition-base);
  overflow: visible;
  min-height: 160px;

  /* Dynamic shadow properties (controlled by JS) */
  --shadow-x: 0px;
  --shadow-y: 0px;
  --shadow-blur: 30px;
  --shadow-spread: 3px;
  /* Slightly larger spread for social cards */
  box-shadow: var(--shadow-x) var(--shadow-y) var(--shadow-blur) var(--shadow-spread) var(--shadow-golden);
}

/* Glow effect on hover */
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(212, 175, 55, 0.08),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.social-card:hover::before {
  opacity: 1;
}

.social-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-x) var(--shadow-y) calc(var(--shadow-blur) * 1.5) var(--shadow-spread) var(--shadow-golden-intense),
    0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Social Card Icon */
.social-card-icon {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  font-size: 2.5rem;
  color: var(--color-primary);
  transition: all var(--transition-base);
  z-index: 2;
}

.social-card:hover .social-card-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Social Card Content */
.social-card-content {
  position: relative;
  text-align: left;
  z-index: 2;
}

.social-card-content h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs) 0;
  letter-spacing: 0;
  transition: color var(--transition-base);
}

.social-card-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: none;
  transition: color var(--transition-base);
}

.social-card:hover .social-card-content h4 {
  color: var(--color-primary);
}

.social-card:hover .social-card-content p {
  color: var(--color-text-primary);
}

/* Coming Soon Badge */
.coming-soon-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #ffc107;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 3;
}

/* Coming Soon Card State */
.social-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.social-card.coming-soon:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 193, 7, 0.3);
}

.social-card.coming-soon .social-card-icon {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
  color: var(--color-text-muted);
}

.social-card.coming-soon:hover .social-card-icon {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

/* Profile Preview Popup */
.profile-preview {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(10px);
  margin-top: var(--space-sm);
}

/* Arrow pointer */
.profile-preview::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-primary);
  border-left: 1px solid var(--color-primary);
}

.social-card:hover .profile-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Preview Header */
.preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.preview-header i {
  font-size: 1.25rem;
  color: var(--color-primary);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-sm);
}

.preview-header span {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  font-weight: 600;
  font-family: monospace;
}

/* Preview Stats */
.preview-stats {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item strong {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-item span {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
}

/* Preview Bio */
.preview-bio {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
}

/* Coming Soon Preview Styling */
.social-card.coming-soon .profile-preview {
  border-color: rgba(255, 193, 7, 0.5);
}

.social-card.coming-soon .preview-header i {
  color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}

.social-card.coming-soon .stat-item span {
  color: #ffc107;
}

/* Dynamic Profile Preview Styles */
.dynamic-preview {
  padding: var(--space-lg);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  min-width: 320px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.preview-loading {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  color: var(--color-text-muted);
}

.preview-loading i {
  font-size: 1.5rem;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.preview-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  object-fit: cover;
}

.preview-info {
  display: flex;
  flex-direction: column;
}

.preview-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.preview-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.preview-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

.preview-stats {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  font-weight: 600;
}

.preview-link-btn {
  font-size: var(--font-size-xs);
  color: var(--color-text-primary);
  text-decoration: none;
  background: rgba(212, 175, 55, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.preview-link-btn:hover {
  background: var(--color-primary);
}

/* Old icon styles for footer */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all var(--transition-base);
  margin: 0 auto;
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: var(--color-bg-primary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
}

.footer-link:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-social .social-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* 1. TV / Large Screens (4K & Ultrawide) */
@media (min-width: 1921px) {
  html {
    font-size: 20px;
    /* Scale up base size */
  }

  .container {
    max-width: 1800px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .hero-title {
    font-size: 6rem;
    /* Massive impact */
  }

  .grid-2 {
    gap: var(--space-3xl);
  }

  .grid-3 {
    gap: var(--space-3xl);
  }
}

/* 2. Tablet / Laptop (Standard Landscape) */
@media (max-width: 1200px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 1024px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    /* Stack grids early for cleaner reading */
  }

  .section-hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: var(--space-3xl);
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .carousel-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 3. Mobile Landscape & Tablets (Portrait & Landscape) */
/* Changed from 768px to 1024px to prevent Navbar Overflow on Tablets */
@media (max-width: 1024px) {

  /* Hide Desktop Socials on Mobile/Tablet to reduce clutter if requested, 
     but user said "laptop ya tab par... side me dikhna". 
     So we might want to keep them on Tablet (768-1024) but hide on Mobile (<768).
     Let's define that below. */

  .navbar {
    width: 100%;
    top: 0;
    bottom: auto;
    left: 0;
    transform: none;
    border-radius: 0;
    padding: var(--space-sm) 0;
    height: auto;
    background: var(--color-bg-elevated);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    border-bottom: 1px solid var(--color-bg-tertiary);
  }

  /* Reset scrolled state override */
  .navbar.scrolled {
    width: 100% !important;
    top: 0 !important;
    bottom: auto !important;
    transform: none;
    background: var(--color-bg-elevated) !important;
    box-shadow: var(--shadow-xl);
  }

  .navbar .container {
    padding: 0 var(--space-md);
    justify-content: space-between;
    height: 60px;
    max-width: 100%;
  }

  .navbar-brand {
    /* Logo Top Left - Standard Flow */
    display: block;
    position: static;
    z-index: auto;
  }

  .navbar-logo {
    height: 32px;
    width: auto;
  }

  .navbar-toggle {
    display: block;
    /* Show Hamburger */
    font-size: 1.5rem;
    color: var(--color-text-primary);
    cursor: pointer;
    z-index: 10002;
  }

  .navbar-menu {
    position: fixed;
    top: 60px;
    /* Below navbar */
    left: 0;
    width: 100%;
    height: auto;
    background: var(--color-bg-elevated);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-bg-tertiary);

    /* Toggle state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .navbar-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-bg-tertiary);
    text-align: left;
  }

  .navbar-link {
    font-size: 1rem;
    padding: 1rem 0;
    display: block;
    text-transform: capitalize;
    letter-spacing: normal;
    color: var(--color-text-primary);
  }

  .navbar-link.active {
    color: var(--color-primary);
    background: transparent;
    padding-left: 10px;
    /* Indent active */
  }

  .theme-switch {
    width: 35px;
    height: 35px;
    padding: 0;
  }

  /* Prevent massive background blobs on mobile */
  .floating {
    width: 200px !important;
    height: 200px !important;
    opacity: 0.5;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-content {
    padding: var(--space-xl) 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-social {
    justify-content: center;
  }
}

/* 4. Mobile Portrait (Smartphones) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .section {
    padding: var(--space-lg) 0;
    /* Reduced padding */
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }

  .btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    /* Smaller buttons */
  }

  /* COMPACT MOBILE CARDS - GOLDEN RETURN */
  .card,
  .social-card {
    padding: var(--space-sm);
    background: rgba(24, 27, 33, 0.85);
    /* Slightly more solid for contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* Restore GOLDEN Effect */
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);

    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
  }

  /* LIGHT MODE OVERRIDES FOR MOBILE CARDS */
  [data-theme="light"] .card,
  [data-theme="light"] .social-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: #333 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15) !important;
  }

  [data-theme="light"] .card-title,
  [data-theme="light"] .social-card-content h4 {
    color: #000 !important;
  }

  [data-theme="light"] .card-description,
  [data-theme="light"] .social-card-content p {
    color: #555 !important;
  }

  .card-title {
    font-size: 1.1rem;
    /* Smaller headings */
    margin-bottom: 0.25rem;
  }

  .card-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Micro UI Visuals - Tiny Profile */
  .micro-ui-visual {
    height: 100px;
    perspective: 150px;
    transform: scale(0.75);
    margin-bottom: var(--space-sm);
  }

  /* Hide Desktop Socials on Phone to avoid duplicates/clutter */
  .desktop-socials {
    display: none;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    /* Tighter gap */
  }

  .social-card {
    min-height: auto;
    flex-direction: row;
    padding: 0.75rem;
    /* Specific tight padding */
    gap: 1rem;
    grid-template-columns: 40px 1fr;
  }

  .social-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .social-card-content h4 {
    font-size: 0.95rem;
    margin: 0;
  }

  .contact-grid {
    gap: var(--space-md);
  }

  /* Carousel Optimization */
  .carousel-wrapper {
    padding: var(--space-md) 0;
  }

  .carousel-card {
    padding: 0 5px;
    /* Tighter spacing */
    opacity: 1;
    filter: none;
    transform: scale(1);
  }

  .carousel-card .card {
    min-height: 250px;
    /* Reduced minimum height */
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

/* ============================================
   MICRO-UI COMPONENTS (WHAT WE BELIEVE)
   ============================================ */
.micro-ui-visual {
  height: 150px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: visible;
  /* CRITICAL: overflow: hidden flattens 3D context */
  perspective: 500px;
  /* Restores 3D depth for child elements */
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-lg);
}

/* 1. Network Flow Animation */
.network-flow {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(212, 175, 55, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

.network-flow::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: flow-down 4s linear infinite;
}

@keyframes flow-down {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(200%);
  }
}

.ping {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--shadow-golden-solid);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--shadow-golden-solid);
  animation: ping-move 3s ease-in-out infinite;
}

@keyframes ping-move {
  0% {
    left: 20%;
    top: 20%;
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  50% {
    left: 80%;
    top: 50%;
  }

  75% {
    opacity: 1;
  }

  100% {
    left: 50%;
    top: 80%;
    opacity: 0;
  }
}

/* 2. Metric Ring Animation */
.metric-ring {
  position: relative;
  width: 100px;
  height: 100px;
}

.metric-ring svg {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(212, 175, 55, 0.1);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--shadow-golden-solid);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 2s ease-out;
}

.reveal.active .ring-progress {
  stroke-dashoffset: 25;
  /* 90% progress */
}

.metric-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 1.25rem;
}

/* 3. Pulse Core Animation */
.pulse-core {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  position: relative;
}

.pulse-core::before,
.pulse-core::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--shadow-golden-solid);
  border-radius: 50%;
  animation: core-pulse 2s linear infinite;
  opacity: 0;
}

.pulse-core::after {
  animation-delay: 1s;
}

@keyframes core-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.oscillator {
  width: 80%;
  height: 30px;
  position: absolute;
  bottom: 20px;
}

.oscillator path {
  fill: none;
  stroke: var(--shadow-golden-solid);
  stroke-width: 2;
  stroke-dasharray: 100;
  animation: wave-move 2s linear infinite;
}

@keyframes wave-move {
  0% {
    stroke-dashoffset: 200;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* Utility Stagger Classes */
.reveal.stagger-1 {
  transition-delay: 0.1s;
}

.reveal.stagger-2 {
  transition-delay: 0.2s;
}

.reveal.stagger-3 {
  transition-delay: 0.3s;
}

.reveal.stagger-4 {
  transition-delay: 0.4s;
}

/* ============================================
   MICRO-UI COMPONENTS (CURRENT STATUS)
   ============================================ */
/* 1. Interactive Canvases (Matrix & Pulse) */
.interactive-canvas {
  width: 100%;
  height: 100%;
  display: block;
  /* Ensure canvas renders sharply */
  image-rendering: pixelated;
}

/* Ensure container handles canvas properly */
.micro-ui-visual {
  position: relative;
  overflow: hidden;
  /* Canvas should stay within bounds */
  background: var(--color-bg-tertiary);
  /* Fallback/Base background */
  border-radius: var(--radius-lg);
}

/* Specific background adjustments for the canvases if needed */
#matrix-canvas {
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

#pulse-canvas {
  background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   MICRO-UI COMPONENTS (WHY CHOOSE US)
   ============================================ */
/* 1. Neural Node (AI-Driven) */
.neural-center {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px var(--color-primary-glow);
  z-index: 2;
  /* Magnetic tracking variables */
  transform: translate(var(--neural-x, 0px), var(--neural-y, 0px));
  transition: transform 0.1s ease-out;
}

.neural-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), transparent);
  transform-origin: left center;
  animation: ray-pulse 2s infinite ease-in-out;
}

@keyframes ray-pulse {

  0%,
  100% {
    transform: rotate(var(--angle)) scaleX(0.5);
    opacity: 0.2;
  }

  50% {
    transform: rotate(var(--angle)) scaleX(1.2);
    opacity: 0.8;
  }
}

/* 2. Sync Engine (Automation) */
.sync-engine {
  position: relative;
  width: 80px;
  height: 80px;
  /* Scrubbable rotation variable */
  transform: rotate(var(--sync-rotate, 0deg));
  transition: transform 0.1s ease-out;
  /* Immediate scrub response */
}

.sync-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  animation: rotate-sync 8s linear infinite;
}

.sync-orbit:nth-child(2) {
  inset: 15px;
  animation-duration: 5s;
  animation-direction: reverse;
}

.sync-bit {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--shadow-golden-solid);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--shadow-golden-solid);
}

@keyframes rotate-sync {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 3. Infinite Expansion (Scalable) */
.expansion-grid {
  position: relative;
  width: 60px;
  height: 60px;
  transform-style: preserve-3d;
  /* 3D tilt variables */
  transform: rotateX(var(--exp-rotate-x, 0deg)) rotateY(var(--exp-rotate-y, 0deg));
  transition: transform 0.1s ease-out;
}

.expansion-box {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-primary);
  animation: expand-fade 3s ease-out infinite;
  opacity: 0;
}

.expansion-box:nth-child(2) {
  animation-delay: 1s;
}

.expansion-box:nth-child(3) {
  animation-delay: 2s;
}

@keyframes expand-fade {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ============================================
   MICRO-UI COMPONENTS (WHAT WE DO)
   ============================================ */
/* 1. Product Wireframe (Rotating Cube) */
.product-wireframe {
  width: 80px;
  height: 80px;
  perspective: 400px;
}

.cube-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--cube-rotate-x, 0deg)) rotateY(var(--cube-rotate-y, 0deg));
  transition: transform 0.1s ease-out;
}

/* Polyhedron Morphing System */
.polyhedron {
  position: relative;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  /* Sharper transition for real-time tracking */
}

.polyhedron.auto-rotate {
  animation: rotate-wireframe 15s linear infinite;
}

.poly-face {
  position: absolute;
  border: 1.5px solid var(--color-primary);
  background: rgba(59, 130, 246, 0.03);
  box-shadow: inset 0 0 15px var(--color-primary-glow);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* Cube Morph */
.shape-cube .poly-face {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
}

.shape-cube .face-1 {
  transform: translateZ(30px);
}

.shape-cube .face-2 {
  transform: rotateY(180deg) translateZ(30px);
}

.shape-cube .face-3 {
  transform: rotateY(90deg) translateZ(30px);
}

.shape-cube .face-4 {
  transform: rotateY(-90deg) translateZ(30px);
}

.shape-cube .face-5 {
  transform: rotateX(90deg) translateZ(30px);
}

.shape-cube .face-6 {
  transform: rotateX(-90deg) translateZ(30px);
}

/* Hexagon Morph (Approximated 3D) */
.shape-hexagon .poly-face {
  width: 40px;
  height: 60px;
  top: 10px;
  left: 20px;
  border-radius: 0;
}

.shape-hexagon .face-1 {
  transform: rotateY(0deg) translateZ(35px);
}

.shape-hexagon .face-2 {
  transform: rotateY(60deg) translateZ(35px);
}

.shape-hexagon .face-3 {
  transform: rotateY(120deg) translateZ(35px);
}

.shape-hexagon .face-4 {
  transform: rotateY(180deg) translateZ(35px);
}

.shape-hexagon .face-5 {
  transform: rotateY(240deg) translateZ(35px);
}

.shape-hexagon .face-6 {
  transform: rotateY(300deg) translateZ(35px);
}

/* Octahedron Morph */
.shape-octahedron .poly-face {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid rgba(59, 130, 246, 0.1);
  border-top: 0;
  border-left-width: 30px;
  border-right-width: 30px;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 5px var(--color-primary));
}

.shape-octahedron .face-1 {
  transform: rotateX(35deg) translateZ(15px);
}

.shape-octahedron .face-2 {
  transform: rotateX(35deg) rotateY(90deg) translateZ(15px);
}

.shape-octahedron .face-3 {
  transform: rotateX(35deg) rotateY(180deg) translateZ(15px);
}

.shape-octahedron .face-4 {
  transform: rotateX(35deg) rotateY(270deg) translateZ(15px);
}

.shape-octahedron .face-5 {
  transform: rotateX(-35deg) translateZ(15px);
}

.shape-octahedron .face-6 {
  transform: rotateX(-35deg) rotateY(90deg) translateZ(15px);
}

.cube-container.auto-rotate {
  animation: rotate-wireframe 12s linear infinite;
  transition: none;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: inset 0 0 10px var(--color-primary-glow);
}

.cube-face.front {
  transform: translateZ(40px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(40px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(40px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(40px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(40px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(40px);
}

@keyframes rotate-wireframe {
  from {
    transform: scale3d(1.4, 1.4, 1.4) rotateX(0deg) rotateY(0deg);
  }

  to {
    transform: scale3d(1.4, 1.4, 1.4) rotateX(360deg) rotateY(360deg);
  }
}

/* 2. Assembly Flow (Tailored Solutions) */
.assembly-flow {
  width: 120px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: scale(1.4);
}

.module {
  width: 30px;
  height: 30px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--shadow-golden-solid);
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
  /* Use CSS variables for independent transform control */
  transform: translate(var(--move-x, 0px), var(--move-y, 0px)) scale(var(--scale, 1));
  transition: transform 0.1s ease-out, box-shadow 0.2s, border-color 0.2s;
  z-index: 5;
}

.module:hover {
  --scale: 1.1;
  border-color: #ffffff;
}

.module:active,
.module.pulse {
  --scale: 0.9;
  box-shadow: 0 0 20px var(--shadow-golden-solid);
}

.module::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--shadow-golden-solid), transparent);
  transform: translateY(-50%);
  opacity: 0;
  animation: connection-flash 2.5s infinite;
}

.module:last-child::after {
  display: none;
}

@keyframes connection-flash {
  0% {
    width: 0;
    opacity: 1;
  }

  50% {
    width: 60px;
    opacity: 1;
  }

  100% {
    width: 60px;
    opacity: 0;
  }
}

.assembly-flow .module:nth-child(2) {
  animation-delay: 0.5s;
}

.assembly-flow .module:nth-child(3) {
  animation-delay: 1.0s;
}

/* Pulse Blast for Manual Triggers */
.module.pulse::after {
  animation: connection-blast 0.8s ease-out forwards;
}

@keyframes connection-blast {
  0% {
    width: 0;
    opacity: 1;
    background: #ffffff;
    height: 4px;
  }

  100% {
    width: 120px;
    opacity: 0;
    background: var(--shadow-golden-solid);
    height: 2px;
  }
}

/* ============================================
   PREMIUM SUCCESS MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Glass effect background for content */
.modal-content::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.modal-icon {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
  display: inline-flex;
  animation: modal-check-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.modal-icon::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--color-primary-glow);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
  opacity: 0.5;
}

.modal-content .card-title {
  position: relative;
  z-index: 1;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.modal-content p {
  position: relative;
  z-index: 1;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  font-size: 1rem;
}

.modal-content .btn {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
}

@keyframes modal-check-bounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: var(--space-xl);
  }
}

/* ============================================
   MINIMAL FEEDBACK MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: var(--space-md);
}

.modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition-base);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 70px;
  height: 70px;
  background: var(--color-bg-tertiary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.modal-content .card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.modal-content p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.modal-content .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .modal-content {
    padding: var(--space-lg);
  }
}