/* ============================================
   BTech Innovations - Premium Corporate Website
   Main Stylesheet
   ============================================ */

/* CSS Variables - Color System */
:root {
  /* Brand Colors — BTech: Goldenrod, Black, White
     (Legacy variable names kept as aliases so all existing rules keep working.) */
  --color-navy: #0d0d0f;          /* base black */
  --color-navy-light: #16161a;    /* elevated black */
  --color-navy-lighter: #22222a;  /* raised surface */
  --color-electric-blue: #daa627; /* brand goldenrod (primary accent) */
  --color-electric-blue-dark: #b8871c; /* deep gold */
  --color-white: #ffffff;
  --color-charcoal: #141418;      /* near-black (used for light-mode text) */
  --color-charcoal-light: #2d2d33;

  /* Goldenrod family (legacy "purple/cyan" names repurposed to gold) */
  --color-gold: #daa627;
  --color-gold-light: #f0c24b;
  --color-gold-dark: #b8871c;
  --color-cyan: #f0c24b;          /* light gold */
  --color-purple: #f0c24b;        /* light gold (gradient partner) */
  --color-purple-light: #f5d06e;
  --color-purple-dark: #b8871c;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-electric-blue) 0%, var(--color-gold-light) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-hero: linear-gradient(135deg, #0d0d0f 0%, #16161a 50%, #2a2110 100%);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --text-dark: #1a1a2e;
  --text-dark-secondary: #4a5568;
  
  /* Background Colors */
  --bg-primary: var(--color-navy);
  --bg-secondary: var(--color-navy-light);
  --bg-tertiary: var(--color-navy-lighter);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.1);
  
  /* Border Colors */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-light: rgba(255, 255, 255, 0.2);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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;
  --text-6xl: 3.75rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(218, 166, 39, 0.35);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Light Mode Variables */
[data-theme="light"] {
  --text-primary: var(--color-charcoal);
  --text-secondary: var(--color-charcoal-light);
  --text-muted: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-light: rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #f8fafc 0%, #f1ece0 100%);
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #faf6ec 50%, #f3e9cf 100%);
  --shadow-glow: 0 0 20px rgba(218, 166, 39, 0.25);
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Focus States for Accessibility */
:focus-visible {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
}

/* Links */
a {
  color: var(--color-electric-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-purple-light);
}

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

/* Lists */
ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */

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

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-2xl);
  }
}

/* ============================================
   Layout Components
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-lg);
}

.container-sm {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-md {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-lg {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

.section-sm {
  padding: var(--spacing-xl) 0;
}

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

/* ============================================
   Glassmorphism Effects
   ============================================ */

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-secondary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

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

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: var(--spacing-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-fast);
}

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

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: var(--z-modal);
  padding: var(--spacing-xl);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-link {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-nav-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-close svg {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-list {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-color-light);
}

.btn-outline {
  background: transparent;
  color: var(--color-electric-blue);
  border: 2px solid var(--color-electric-blue);
}

.btn-outline:hover {
  background: var(--color-electric-blue);
  color: var(--color-white);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--text-xs);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(218, 166, 39,0.1)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
  opacity: 0.5;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-electric-blue);
  margin-bottom: var(--spacing-lg);
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 7s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-electric-blue), transparent 70%);
  top: 20%;
  left: 10%;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-purple), transparent 70%);
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  33%       { transform: translate(20px, -30px) scale(1.12); opacity: 0.5; }
  66%       { transform: translate(-15px, 20px) scale(0.94); opacity: 0.4; }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

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

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

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    padding-top: 70px;
  }

  .hero-content {
    padding: var(--spacing-md);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-orb {
    display: none;
  }

  /* Header: tighter horizontal padding on small screens */
  .header-container {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* Featured product image: natural aspect ratio, Samsung-safe (no object-fit) */
  .glass-card img {
    width: 100%;
    height: auto;
  }
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-color-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

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

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-electric-blue);
  font-weight: 500;
  font-size: var(--text-sm);
  margin-top: var(--spacing-md);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--spacing-sm);
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

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

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Statistics Section
   ============================================ */

.stats {
  background: var(--bg-secondary);
  padding: var(--spacing-3xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-lg);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

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

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

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

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

.testimonials {
  padding: var(--spacing-3xl) 0;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-content {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-white);
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
}

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

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

.faq {
  padding: var(--spacing-3xl) 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--spacing-lg) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-electric-blue);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-question.active svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: var(--spacing-lg);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   Newsletter
   ============================================ */

.newsletter {
  background: var(--gradient-accent);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  background: var(--color-white);
  color: var(--color-charcoal);
}

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

.newsletter-input:focus {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
}

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

.footer {
  background: var(--bg-secondary);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

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

.footer-brand {
  margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
  margin-bottom: var(--spacing-md);
}

.footer-description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

.footer-link:hover {
  color: var(--color-electric-blue);
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-legal-link {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--color-electric-blue);
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-electric-blue);
  box-shadow: 0 0 0 3px rgba(218, 166, 39, 0.1);
}

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

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  background-size: 20px;
  padding-right: var(--spacing-2xl);
}

/* Dark mode dropdown arrow */
[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300d4ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* ============================================
   Blog category pill visibility fix
   (prevents text becoming effectively invisible in dark mode)
   ============================================ */
#blogPostsContainer span {
  color: var(--text-primary);
}

#blogPostsContainer span[style*="color"] {
  color: initial !important;
}

#blogPostsContainer span[style*="background: var(--bg-tertiary)"] {
  color: var(--color-electric-blue) !important;
}

/* ============================================
   Contact form category dropdown visibility fix (dark mode)
   ============================================ */
/* Ensures the selected option text remains readable when dark mode is active */
[data-theme="dark"] .form-select {
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
}

[data-theme="dark"] .form-select option {
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
}

/* Also ensure select text wrapper remains readable (some browsers render differently) */
[data-theme="dark"] select.form-select {
  text-shadow: none;
}

/* Dropdown options styling */
.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: var(--spacing-sm);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-electric-blue);
}

.form-checkbox label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.form-error {
  color: #ef4444;
  font-size: var(--text-xs);
  margin-top: var(--spacing-xs);
}

.form-success {
  color: #10b981;
  font-size: var(--text-sm);
  padding: var(--spacing-md);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-electric-blue);
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

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

/* ============================================
   Utility Classes
   ============================================ */

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

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

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

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

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

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

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

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

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

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

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

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

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Loading States
   ============================================ */

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--color-electric-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .header,
  .footer,
  .btn,
  .newsletter {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ============================================
   Legal Modals
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  max-height: calc(100vh - 80px);
  overflow: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.modal-close {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-tertiary);
}

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

.modal-text {
  margin-bottom: var(--spacing-md);
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--spacing-lg) 0;
}


/* ============================================
   Static Tech Background
   ============================================ */

/* Pure black dark / clean white light — BTech brand */
:root {
  --bg-primary: #0b0b0d;
}
[data-theme="light"] {
  --bg-primary: #ffffff;
}

/* Tech dot-grid pattern — pure CSS, no animation, no canvas */
body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(218, 166, 39, 0.07) 0%, transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(240, 194, 75, 0.07) 0%, transparent 35%),
    radial-gradient(rgba(218, 166, 39, 0.10) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(218, 166, 39, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(184, 135, 28, 0.05) 0%, transparent 35%),
    radial-gradient(rgba(184, 135, 28, 0.14) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
}

/* Hero: transparent so body dot-grid shows through */
.hero {
  background: transparent !important;
  /* Use svh on browsers that support it (excludes Android URL bar from calculation) */
  min-height: 100svh;
}

.hero::before {
  display: none;
}

/* All sections transparent — body background shows through */
section {
  background: transparent !important;
}

.stats {
  background: transparent !important;
}

.footer {
  background: transparent !important;
  border-top: none !important;
}

/* Page content stacks above background */
section,
.footer {
  position: relative;
  z-index: 1;
}

/* -- Hero Title Ambient Glow ------------------- */
.hero-title {
  filter: drop-shadow(0 0 30px rgba(218, 166, 39, 0.2));
}

/* -- Card Neon Hover --------------------------- */
.card {
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(218, 166, 39, 0.25),
    0 12px 40px rgba(218, 166, 39, 0.15),
    0 0 80px rgba(218, 166, 39, 0.06);
  border-color: rgba(218, 166, 39, 0.3);
}

.card:hover .card-icon {
  box-shadow: 0 0 24px rgba(218, 166, 39, 0.45);
  border-color: rgba(218, 166, 39, 0.5);
}

/* -- Stats Number Neon Glow -------------------- */
.stat-number {
  text-shadow: 0 0 24px rgba(218, 166, 39, 0.5);
}

/* -- Button Glow Boost ------------------------- */
.btn-primary:hover {
  box-shadow: var(--shadow-lg), 0 0 28px rgba(218, 166, 39, 0.4);
}

.btn-outline:hover {
  box-shadow: 0 0 20px rgba(218, 166, 39, 0.3);
}

/* -- Long text / email overflow fix (prevents page zoom on narrow phones) -- */
.footer-link,
.glass-card p,
.glass-card a {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   Mobile Polish — touch targets & spacing rhythm
   ============================================ */

/* Thumb-friendly hit areas on touch / small screens */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
  }

  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu-toggle {
    display: block;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }

  .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
  }

  .footer-link {
    display: inline-block;
    padding: 8px 0;
  }

  .footer-social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-link {
    padding: 10px 20px;
  }

  /* Tighter section rhythm on tablets/phones (was 6rem) */
  .section,
  .section-lg,
  .stats,
  .testimonials {
    padding: var(--spacing-2xl) 0;
  }
}

/* Phones: reclaim vertical space, keep type comfortable */
@media (max-width: 480px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-fluid {
    padding: 0 var(--spacing-md);
  }

  .section,
  .section-lg,
  .stats,
  .testimonials {
    padding: var(--spacing-xl) 0;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

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

  .btn-lg {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--text-base);
  }

  .card,
  .glass-card {
    padding: var(--spacing-lg);
  }
}

/* ============================================
   Samsung / touch glass fix
   Transparent glass over the gold particle background renders a hard
   gold fringe in Samsung Internet, and :hover glows stick after a tap.
   On touch/small screens: solid cards, no backdrop-filter, no sticky glow.
   ============================================ */
@media (max-width: 768px) {
  .glass,
  .glass-card,
  .card,
  .testimonial-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #16161a;            /* solid dark card, no gold bleed-through */
  }

  .glass-card:hover,
  .card:hover,
  .glass:hover {
    transform: none;
    box-shadow: var(--shadow-lg);  /* neutral shadow, no gold halo */
    border-color: var(--border-color);
  }

  .card:hover .card-icon {
    box-shadow: none;
    border-color: transparent;
  }
}

/* Light theme: solid white cards on mobile */
@media (max-width: 768px) {
  [data-theme="light"] .glass,
  [data-theme="light"] .glass-card,
  [data-theme="light"] .card,
  [data-theme="light"] .testimonial-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
  }
}
