/* ==========================================================================
   SKETCH QUARTZ - LUXURY WEB APPLICATION STYLESHEET
   Design System: White & Sapphire Blue Theme
   ========================================================================== */

@import url('fonts.css');

:root {
  /* Color Palette - Premium White & Sapphire Blue Theme (Default) */
  --bg-dark: #faf9f6;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfcfa;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #f3f2ed;
  --bg-section-alt: rgba(243, 242, 237, 0.5);
  --bg-contact: linear-gradient(180deg, #faf9f6 0%, #eef3fb 100%);
  --modal-overlay-bg: rgba(15, 45, 89, 0.5);

  --accent-color: #0f2d59;
  --accent-color-light: #2563eb;
  --accent-color-glow: rgba(15, 45, 89, 0.08);
  
  --text-main: #1c1b18;
  --text-muted: #57534e;
  --text-dim: #78716c;
  
  --border-light: rgba(28, 27, 24, 0.06);
  --border-accent: rgba(15, 45, 89, 0.15);

  --shadow-sm: 0 2px 12px rgba(28, 27, 24, 0.03);
  --shadow-lg: 0 20px 48px rgba(28, 27, 24, 0.06), 0 0 24px rgba(15, 45, 89, 0.02);
  --shadow-glow: 0 0 30px rgba(15, 45, 89, 0.15);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --footer-bg: #1c1b18;
  --hero-bg-gradient: radial-gradient(circle at 50% 25%, rgba(15, 45, 89, 0.05) 0%, transparent 70%);
  --overlay-bg: linear-gradient(to top, rgba(255, 255, 255, 0.98) 20%, rgba(255, 255, 255, 0.7) 70%, transparent 100%);
  --accent-gradient: linear-gradient(135deg, #07152a 0%, var(--accent-color) 60%, #1d4ed8 100%);
}

.dark-theme {
  /* Color Palette - Obsidian & Cobalt Blue Quartz Luxury Dark Theme */
  --bg-dark: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(19, 27, 46, 0.75);
  --bg-input: #1e293b;
  --bg-section-alt: rgba(19, 27, 46, 0.4);
  --bg-contact: linear-gradient(180deg, #0b0f19 0%, #080c14 100%);
  --modal-overlay-bg: rgba(0, 0, 0, 0.85);

  --accent-color: #3b82f6;
  --accent-color-light: #93c5fd;
  --accent-color-glow: rgba(59, 130, 246, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(59, 130, 246, 0.35);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.3);
  
  --footer-bg: #080c14;
  --hero-bg-gradient: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  --overlay-bg: linear-gradient(to top, rgba(11, 15, 25, 0.95) 20%, rgba(11, 15, 25, 0.6) 70%, transparent 100%);
  --accent-gradient: linear-gradient(135deg, #fff 0%, #93c5fd 40%, var(--accent-color) 100%);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.accent-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #1e3a8a 100%);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, #3b82f6 0%, var(--accent-color) 100%);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 95px;
  transition: height 0.3s ease;
}

.navbar.scrolled .container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  max-height: 45px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  padding: 0;
  outline: none;
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--bg-card-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.theme-toggle svg {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Icon transitions based on active theme */
.dark-theme .theme-toggle .sun-icon {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

.dark-theme .theme-toggle .moon-icon {
  transform: translateY(30px) rotate(90deg);
  opacity: 0;
}

html:not(.dark-theme) .theme-toggle .sun-icon {
  transform: translateY(-30px) rotate(-90deg);
  opacity: 0;
}

html:not(.dark-theme) .theme-toggle .moon-icon {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

/* Logo filtering in light theme */
html:not(.dark-theme) .logo-img {
  filter: brightness(0) invert(0.15);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Showcase Card */
.hero-showcase {
  position: relative;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.showcase-card:hover {
  border-color: var(--border-accent);
}

.showcase-img-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-img {
  transform: scale(1.04);
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: var(--overlay-bg);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.showcase-info h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.showcase-info p {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header .subtitle {
  margin: 0 auto;
}

/* Section Wrapper */
.section {
  padding: 100px 0;
  position: relative;
}

/* Interactive Room Visualizer */
.visualizer-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0e1219 100%);
}

.visualizer-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.visualizer-viewport {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  min-height: 480px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis-room-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: opacity 0.4s ease;
}

.vis-overlay-info {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.vis-view-toggle {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid var(--border-accent);
  z-index: 10;
}

.vis-toggle-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.vis-toggle-btn.active {
  background: var(--accent-color);
  color: #000;
}

.vis-specs-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.visualizer-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-group h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visualizer-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vis-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.vis-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vis-swatch:hover, .vis-swatch.active {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.vis-swatch-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabinet-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cab-btn {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.cab-btn.active, .cab-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Filterable Catalog Section */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.search-box {
  position: relative;
  width: 280px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.product-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-details-link {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay-bg);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);

  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent-color);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.modal-media-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.media-tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.media-tab.active {
  background: var(--accent-color);
  color: #000;
  font-weight: 600;
}

.modal-image-display {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.modal-image-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Edge Profile Selector */
.edge-selector-container {
  margin-top: 24px;
}

.edge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.edge-card {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.edge-card:hover, .edge-card.active {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(212, 175, 55, 0.1);
}

.edge-icon {
  height: 36px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edge-name {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Estimator Calculator */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow);
}

.calc-result-card {
  background: linear-gradient(135deg, var(--accent-color-glow) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* Ecosystem Section */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0;
  transition: var(--transition);
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-logo-badge {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;

  color: var(--accent-color);
}

.brand-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Footer */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-color);
  font-size: 1.4rem;
}

/* Section specific backgrounds for theming */
.calculator-section {
  background: var(--bg-section-alt) !important;
}

.contact-section {
  background: var(--bg-contact) !important;
}

/* Scroll Reveal Animations */
.reveal-element {
  opacity: 0;
  transform: translateY(35px);
  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);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .visualizer-container, .calculator-container, .modal-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 70px);
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 30px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow-sm);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid rgba(28, 27, 24, 0.04);
  }

  .dark-theme .nav-link {
    border-bottom-color: rgba(255, 255, 255, 0.04);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
