/* ============================================
   AMBIKA GLASS HOUSE - Modern Website Styles
   Complete Redesign with Proper Theming
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables - Light Theme (Default)
   ============================================ */
:root {
  /* Primary Colors - Deeper, More Sophisticated Teal */
  --primary: #0a6b70;
  --primary-light: #0d8f94;
  --primary-dark: #074f53;
  --primary-rgb: 10, 107, 112;

  /* Accent Colors - Warmer, More Luxurious Gold */
  --accent: #c4933a;
  --accent-light: #d9aa5a;
  --accent-dark: #a67c2e;
  --accent-rgb: 196, 147, 58;

  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
  --gradient-premium: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

  /* Premium Shadows */
  --shadow-premium: 0 20px 60px rgba(10, 107, 112, 0.1);
  --shadow-accent-glow: 0 10px 40px rgba(196, 147, 58, 0.15);
  --shadow-glow: 0 0 40px rgba(10, 107, 112, 0.2);

  /* Background Colors - Light Theme */
  --bg-body: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #ebeef2;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(245, 250, 252, 0.8) 50%, rgba(230, 245, 246, 0.75) 100%);

  /* Hero Text Colors - Light Theme */
  --hero-title: var(--text-heading);
  --hero-text: var(--text-body);
  --hero-muted: var(--text-muted);
  --hero-stat-border: var(--border-color);

  /* Text Colors - Light Theme */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-on-primary: #ffffff;
  --text-on-accent: #1a1a2e;

  /* Border Colors */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;

  /* Input Colors */
  --input-bg: #ffffff;
  --input-border: #e2e8f0;
  --input-focus: var(--primary);

  /* Shadow - Light Theme */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --section-padding-y: 60px;
  --container-max: 1200px;
  --container-padding: 24px;
  --header-height: 70px;

  /* Font Families */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

/* ============================================
   Dark Theme - Refined Premium Feel
   ============================================ */
[data-theme="dark"] {
  /* Primary Colors - Vibrant Cyan */
  --primary: #12c4ca;
  --primary-light: #22e0e6;
  --primary-dark: #0d9da2;
  --primary-rgb: 18, 196, 202;

  /* Accent Colors - Warmer Gold */
  --accent: #e8b85c;
  --accent-light: #f5cc7a;
  --accent-dark: #d4a548;
  --accent-rgb: 232, 184, 92;

  /* Dark Premium Backgrounds */
  --bg-body: #080810;
  --bg-primary: #0c0c18;
  --bg-secondary: #12122a;
  --bg-tertiary: #1a1a3a;
  --bg-card: #16163c;
  --bg-glass: rgba(12, 12, 24, 0.95);
  --bg-hero-overlay: linear-gradient(135deg, rgba(8, 8, 16, 0.95) 0%, rgba(10, 80, 85, 0.7) 100%);

  /* Enhanced Dark Shadows */
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(18, 196, 202, 0.2);

  /* Hero Text Colors - Dark Theme */
  --hero-title: #ffffff;
  --hero-text: rgba(255, 255, 255, 0.9);
  --hero-muted: rgba(255, 255, 255, 0.7);
  --hero-stat-border: rgba(255, 255, 255, 0.2);

  /* Text Colors - Dark Theme */
  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  --text-on-primary: #0f172a;
  --text-on-accent: #0f172a;

  /* Border Colors */
  --border-color: #2d2d4a;
  --border-light: #252542;
  --border-dark: #3d3d5c;

  /* Input Colors */
  --input-bg: #1a1a2e;
  --input-border: #2d2d4a;
  --input-focus: var(--primary);

  /* Shadow - Dark Theme */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: var(--input-bg);
  color: var(--text-body);
  border: 1px solid var(--input-border);
}

::selection {
  background: var(--primary);
  color: var(--text-on-primary);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--text-body);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

/* ============================================
   Container & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--section-padding-y) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-on-accent);
  border: 2px solid var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid #ffffff;
}

.btn-white:hover {
  background: transparent;
  color: #ffffff;
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn-sm,
.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-block {
  width: 100%;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-5) 0;
  transition: all var(--transition-normal);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin: 0;
}

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: var(--text-lg);
  color: var(--text-body);
}

.theme-toggle:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

/* Theme Toggle Icons */
.icon-sun,
.icon-moon {
  display: inline;
  line-height: 1;
}

/* Show moon by default (light theme), sun when dark theme */
.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: inline;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.lang-toggle {
  width: 50px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-body);
  padding: 0;
}

.lang-toggle:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.lang-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  overflow: hidden;
}

.language-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-body);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  display: block;
}

.lang-option:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.lang-option.active {
  background: var(--primary);
  color: var(--text-on-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img,
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.8);
}

[data-theme="dark"] .hero-background img,
[data-theme="dark"] .hero-image {
  opacity: 1;
  filter: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-hero-overlay);
}

/* Light theme hero background */
.hero {
  background: transparent;
}

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

.hero-content {
  max-width: 700px;
  padding: var(--space-12) var(--space-8);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-2xl);
  margin-left: calc(-1 * var(--space-8));
}

[data-theme="dark"] .hero-content {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-tagline {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--hero-title);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--hero-text);
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--hero-stat-border);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

[data-theme="dark"] .stat-number {
  color: var(--accent);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--hero-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Services Section
   ============================================ */
.services {
  background: var(--bg-secondary);
  padding: var(--section-padding-y) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

/* Add white overlay on gradient for better text contrast */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

[data-theme="dark"] .service-card::after {
  background: linear-gradient(to bottom, rgba(20, 25, 35, 0.92) 0%, rgba(20, 25, 35, 0.88) 100%);
}

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

/* Ensure content is above overlay */
.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--text-heading);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.service-description {
  color: var(--text-body);
  margin-bottom: var(--space-5);
  line-height: 1.7;
  font-weight: 500;
}

.service-card:hover .service-description {
  color: var(--text-heading);
}

.service-link {
  color: var(--primary-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.1);
}

.service-link:hover {
  gap: var(--space-3);
  background: var(--primary);
  color: var(--text-on-primary);
  transform: translateX(4px);
}

[data-theme="dark"] .service-link {
  color: var(--primary-light);
  background: rgba(var(--primary-rgb), 0.2);
}

/* ============================================
   About Section
   ============================================ */
.about-preview {
  background: var(--bg-primary);
  padding: var(--section-padding-y) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.badge-text {
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.9;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: var(--space-6);
}

.about-text {
  color: var(--text-body);
  margin-bottom: var(--space-5);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.feature-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.feature-text {
  font-weight: 500;
  color: var(--text-heading);
  font-size: var(--text-base);
}

/* ============================================
   Products Section
   ============================================ */
.products-preview {
  background: var(--bg-secondary);
  padding: var(--section-padding-y) 0;
}

.product-filters {
  padding: var(--space-8) 0;
  background: var(--bg-primary);
}

.filters {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: 0;
}

.filter-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--primary-dark-rgb, 13, 92, 99), 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* Overlay button styling for better contrast */
.product-overlay .btn,
.product-overlay a {
  background: #ffffff;
  color: var(--primary-dark);
  border: 2px solid #ffffff;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-overlay .btn:hover,
.product-overlay a:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--primary);
  color: var(--text-on-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.product-info {
  padding: var(--space-6);
}

.product-title {
  font-size: var(--text-lg);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.product-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.products-cta {
  text-align: center;
  margin-top: var(--space-12);
}

.products-cta p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.cta-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
  background: var(--bg-primary);
  padding: var(--section-padding-y) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: #ffffff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-10);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--primary);
  color: #ffffff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--primary);
  color: #ffffff;
}

.lightbox-prev { left: var(--space-5); }
.lightbox-next { right: var(--space-5); }

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  background: var(--bg-secondary);
  padding: var(--section-padding-y) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-16);
}

.contact-info h3 {
  color: var(--text-heading);
  margin-bottom: var(--space-4);
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: var(--space-10);
}

.contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

[data-theme="dark"] .contact-icon {
  background: rgba(var(--primary-rgb), 0.15);
}

.contact-details h5,
.contact-details h4 {
  color: var(--text-heading);
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-details p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

.contact-details a {
  color: var(--primary);
}

.contact-details a:hover {
  color: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font-size: var(--text-lg);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.contact-form h4 {
  color: var(--text-heading);
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-heading);
  font-size: var(--text-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-4);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
  height: 400px;
  background: var(--bg-tertiary);
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%);
}

[data-theme="dark"] .map-section iframe {
  filter: grayscale(30%) invert(90%) hue-rotate(180deg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding: var(--space-16) 0 var(--space-12);
}

.footer-col {
  padding: 0;
}

.footer-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-5);
}

.footer-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: var(--space-2);
}

.footer-contact li {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  align-items: flex-start;
}

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

.footer-contact a:hover {
  color: var(--primary);
}

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
}

[data-theme="dark"] .page-header::before {
  opacity: 0.02;
}

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

.page-header h1 {
  color: var(--text-heading);
  margin-bottom: var(--space-4);
}

.page-header p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

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

.breadcrumb .current {
  color: var(--primary);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

/* ============================================
   About Page Specific Styles
   ============================================ */

/* Story Section Grid */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.story-content {
  padding-right: var(--space-8);
}

.story-content .section-title {
  margin-bottom: var(--space-6);
}

.story-text p {
  margin-bottom: var(--space-4);
  color: var(--text-body);
  line-height: 1.8;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Mission & Vision Grid */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.mission-card,
.vision-card {
  background: var(--bg-card);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.mission-card .card-icon,
.vision-card .card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.mission-card h3,
.vision-card h3 {
  margin-bottom: var(--space-4);
  color: var(--text-heading);
}

.mission-card p,
.vision-card p {
  color: var(--text-body);
  line-height: 1.7;
}

/* Team Values Grid */
.team-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.values-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.values-content .section-title {
  margin-bottom: var(--space-8);
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.value-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.value-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.value-text h4 {
  margin-bottom: var(--space-1);
  color: var(--text-heading);
}

.value-text p {
  color: var(--text-body);
  font-size: var(--text-sm);
}

/* Quality Commitment Grid */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.quality-content .section-title {
  margin-bottom: var(--space-4);
}

.quality-content > p {
  margin-bottom: var(--space-6);
  color: var(--text-body);
  line-height: 1.7;
}

.quality-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quality-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-body);
}

.quality-feature .feature-icon {
  color: var(--primary);
  font-weight: bold;
}

.quality-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Feature Cards (About Page)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  background: var(--bg-card);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

/* Add overlay for better text contrast on feature cards */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

[data-theme="dark"] .feature-card::after {
  background: linear-gradient(to bottom, rgba(20, 25, 35, 0.92) 0%, rgba(20, 25, 35, 0.88) 100%);
}

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

/* Ensure content is above overlay */
.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--text-on-primary);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.feature-card h4 {
  color: var(--text-heading);
  margin-bottom: var(--space-3);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-card p {
  color: var(--text-body);
  font-size: var(--text-sm);
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.feature-card:hover p {
  color: var(--text-heading);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding-y: 50px;
    --container-padding: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-badge {
    bottom: var(--space-5);
    right: var(--space-5);
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

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

  /* About page grids */
  .story-grid,
  .team-values-grid,
  .quality-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .story-content {
    padding-right: 0;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: 40px;
    --header-height: 60px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 101;
  }

  .hero-content {
    padding: var(--space-8) var(--space-6);
    margin-left: calc(-1 * var(--space-6));
    margin-right: calc(-1 * var(--space-6));
    border-radius: var(--radius-xl);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .stat-item {
    flex: 1;
    min-width: 100px;
  }

  .stat-number {
    font-size: var(--text-3xl);
  }

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

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

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    padding: 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .whatsapp-float,
  .back-to-top {
    bottom: var(--space-5);
  }

  .whatsapp-float {
    left: var(--space-5);
    width: 50px;
    height: 50px;
    font-size: var(--text-xl);
  }

  .back-to-top {
    right: var(--space-5);
    width: 44px;
    height: 44px;
  }

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

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .products-filter {
    gap: var(--space-2);
  }

  .filter-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .stat-item {
    min-width: 80px;
  }

  /* About page mobile styles */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .values-list {
    gap: var(--space-4);
  }

  .value-item {
    gap: var(--space-3);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Ensure smooth theme transitions on all elements */
*,
*::before,
*::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: var(--transition-normal);
  transition-timing-function: ease;
}

/* Disable transitions for animations */
.animate-fadeInUp,
.animate-fadeIn {
  transition: none;
}

/* ============================================
   GSAP Animation Styles & Micro-interactions
   ============================================ */

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-progress {
  width: 0;
  height: 100%;
  background: var(--gradient-premium);
}

/* Custom Cursor */
.custom-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* Hide default cursor on desktop */
@media (min-width: 1024px) {
  body.custom-cursor-enabled {
    cursor: none;
  }

  body.custom-cursor-enabled a,
  body.custom-cursor-enabled button {
    cursor: none;
  }
}

/* Button Shine Effect */
.btn-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  pointer-events: none;
}

/* Premium Button Styles */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Nav Underline Animation */
.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-premium);
}

/* Premium Card Styles */
.service-card,
.product-card,
.feature-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card::before,
.product-card::before,
.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-premium);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover::before,
.product-card:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

/* Premium Section Headers */
.section-title {
  position: relative;
  display: inline-block;
}

.section-header .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-premium);
  border-radius: var(--radius-full);
}

/* Hero Title Gradient Animation */
.hero-title.text-gradient {
  background: linear-gradient(
    90deg,
    var(--text-heading) 0%,
    var(--primary) 50%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text Effects */
.text-gradient {
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--text-heading) 0%,
    var(--accent) 50%,
    var(--text-heading) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

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

/* Premium CTA Section Enhancement */
.cta-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: ctaGlow 10s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

/* Filter Button Ripple */
.filter-btn {
  position: relative;
  overflow: hidden;
}

.filter-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

/* Input Underline Animation */
.input-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
}

.form-group {
  position: relative;
}

/* Submit Button Loading */
.submit-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  pointer-events: none;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  margin-right: 8px;
}

/* Floating Shapes for Hero */
.floating-shape {
  pointer-events: none;
}

/* Smooth transitions for GSAP animated elements */
.gsap-animated {
  will-change: transform, opacity;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .custom-cursor {
    display: none !important;
  }

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