/* ==========================================================================
   AMRITA EMBEDDED SYSTEMS PRIVATE LIMITED (AES)
   Design System & Custom CSS - Futuristic Dark Tech Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #080c14;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-border: rgba(59, 130, 246, 0.2);
  --bg-card-hover: rgba(24, 34, 53, 0.95);
  --primary-blue: #0252a5;
  --primary-blue-glow: rgba(2, 82, 165, 0.4);
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.25);
  --accent-orange: #f26522;
  --accent-orange-glow: rgba(242, 101, 34, 0.3);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-heading: #ffffff;
  --nav-bg: rgba(8, 12, 20, 0.85);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(2, 82, 165, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(242, 101, 34, 0.1) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(8, 12, 20, 0.95), var(--bg-dark));
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080c14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Notification Bar */
.top-bar {
  background: linear-gradient(90deg, #091224 0%, #111e38 50%, #091224 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.top-bar-item svg {
  color: var(--accent-cyan);
}
.top-bar-highlight {
  color: var(--accent-orange);
  font-weight: 600;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(0, 242, 254, 0.2);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo img {
  height: 54px;
  width: auto;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(2, 82, 165, 0.3);
  transition: transform 0.3s ease;
}
.brand-logo img:hover {
  transform: scale(1.03);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent-orange);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-orange));
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Navigation Menu */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.dropdown-toggle svg {
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .dropdown-toggle svg,
.nav-dropdown.active .dropdown-toggle svg,
.nav-dropdown.open .dropdown-toggle svg {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 190px;
  background: rgba(11, 18, 33, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  list-style: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(11, 18, 33, 0.95);
  border-top: 1px solid rgba(0, 242, 254, 0.25);
  border-left: 1px solid rgba(0, 242, 254, 0.25);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-item:hover, .dropdown-item.active {
  color: #ffffff;
  background: rgba(0, 242, 254, 0.12);
  padding-left: 1.5rem;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-blue-glow);
  border-color: rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-orange-glow);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 6px 25px rgba(242, 101, 34, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

/* Badge & Section Tag */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  margin-bottom: 1rem;
}
.badge-orange {
  background: rgba(242, 101, 34, 0.1);
  color: var(--accent-orange);
  border-color: rgba(242, 101, 34, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 6rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(2, 82, 165, 0.25) 0%, transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-content h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-card {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Media Display */
.hero-media-wrap {
  position: relative;
}
.hero-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-cyan-glow);
}
.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-image-box:hover img {
  transform: scale(1.03);
}

/* Floating Tech Chip Card */
.tech-chip-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 101, 34, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-orange-glow);
}
.tech-chip-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.15);
}
.glass-card:hover::before {
  opacity: 1;
}

/* Section Common Styles */
.section {
  padding: 5rem 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Specialities Grid */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(2, 82, 165, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}
.specialty-card:hover .icon-box {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  transform: scale(1.1);
}
.specialty-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.specialty-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
}
.specialty-desc + .specialty-desc {
  margin-top: 0.65rem;
}

/* Interactive Process Stepper (Concept -> PCB -> Testing) */
.process-section {
  background: rgba(15, 23, 42, 0.4);
  border-y: 1px solid rgba(255, 255, 255, 0.05);
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 2rem;
}
@media (max-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}
.process-step {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}
.process-step:hover {
  border-color: var(--accent-orange);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-orange-glow);
}
.step-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-orange);
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Tech Matrix Showcase Tabs & Grid */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.tab-btn.active, .tab-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-blue-glow);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tech-item-card {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.tech-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tech-item-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.tech-item-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Interactive Feasibility Estimator Box */
.estimator-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.form-control, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}
textarea.form-control {
  resize: vertical;
  min-height: 110px;
}
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input {
  accent-color: var(--accent-cyan);
}

/* Footer */
.footer {
  background: #04070d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin: 1.25rem 0 1.5rem 0;
  max-width: 340px;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-orange);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.925rem;
}
.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-contact-item svg {
  color: var(--accent-orange);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #0d1322;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover {
  color: #ffffff;
}

/* Media Queries for Mobile Responsive Alignment */
@media (max-width: 992px) {
  .nav-container {
    height: 70px;
    padding: 0 1rem;
  }
  .brand-logo img {
    height: 44px;
    padding: 3px 6px;
  }
  .brand-title {
    font-size: 1rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .hero-grid,
  .board-detail-grid,
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #090e18;
    flex-direction: column;
    padding: 1.75rem 1.25rem 2.5rem 1.25rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
    transform: translateY(-150%);
    transition: transform 0.35s ease-in-out;
    z-index: 1040;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .nav-link {
    display: block;
    font-size: 1.05rem;
    padding: 0.65rem 1rem;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(0, 242, 254, 0.1);
  }
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }
  .dropdown-toggle {
    justify-content: center;
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    box-shadow: none;
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: rgba(15, 23, 42, 0.95);
    margin-top: 0.5rem;
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
  }
  .dropdown-menu::before {
    display: none;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown-item {
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .top-bar-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
  }
  .top-bar-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.78rem;
  }
  .top-bar-highlight {
    font-size: 0.78rem;
  }
  .hero-content h1,
  .page-hero h1 {
    font-size: 2.05rem;
    line-height: 1.25;
  }
  .section-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  .hero-desc,
  .section-subtitle {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  .stat-card {
    flex: 1 1 45%;
    padding: 0.75rem 0.5rem;
  }
  .estimator-card {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-md);
  }
  .estimator-card h2 {
    font-size: 1.65rem !important;
  }
  .specialties-grid,
  .tech-grid,
  .tech-group-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .glass-card {
    padding: 1.5rem 1.15rem;
    grid-column: span 1 !important;
  }
  .tech-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .tech-tabs .tab-btn {
    flex-shrink: 0;
  }
  .board-thumb-card img {
    height: 90px;
  }
  .specs-table th,
  .specs-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    display: block;
    width: 100%;
  }
  .specs-table tr {
    display: block;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  }
  .specs-table th {
    background: transparent;
    padding-bottom: 0.2rem;
  }
  .specs-table td {
    border-bottom: none;
    padding-top: 0.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1,
  .page-hero h1 {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .nav-cta-group .btn-primary {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  .nav-cta-group .btn-primary svg {
    display: none;
  }
  .stat-card {
    flex: 1 1 100%;
  }
  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .modal-card {
    padding: 1.5rem 1rem;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-overlay {
    padding: 0.75rem;
  }
}

/* Form Feedback & Loader Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-loader {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.form-feedback-msg {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-feedback-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.form-feedback-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.form-feedback-msg.info {
  display: block;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
}

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

