/* ==========================================================================
   HYDERABAD AMMONIA & CHEMICALS PRIVATE LIMITED (HACPL)
   Enterprise Design System & Stylesheet
   Established 1990 | ISO 9001:2015, ISO 14001:2015, cGMP & PESO Certified
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary-dark: #070e1e;
  --color-primary-navy: #0b1736;
  --color-primary-blue: #0f275e;
  --color-accent-cyan: #00b4d8;
  --color-accent-teal: #06d6a0;
  --color-accent-blue: #0077b6;
  --color-accent-hover: #0096c7;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1ebd5a;
  
  /* Neutral Palette */
  --color-bg-light: #f8fafc;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-dark: #1e293b;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-white: #ffffff;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* 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 -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

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

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-padding-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 180, 216, 0.1);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--color-text-white);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-desc.light {
  color: var(--color-text-light);
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

@media (max-width: 992px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.875rem;
  }
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-blue) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, #005f94 100%);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-navy);
  border: 1.5px solid var(--color-primary-navy);
}

.btn-outline:hover {
  background: var(--color-primary-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-bar-link:hover {
  color: var(--color-accent-cyan);
}

.top-bar-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-badge {
  color: var(--color-accent-teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Main Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 23, 54, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: rgba(7, 14, 30, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 180, 216, 0.3));
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-cyan);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.4rem 0.2rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent-cyan);
  border-radius: var(--radius-full);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 380px;
    height: 100vh;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.25rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right var(--transition-smooth);
    z-index: 1001;
  }
  
  .nav-menu.open {
    right: 0;
  }

  .nav-toggle {
    display: block;
    z-index: 1002;
  }

  .nav-actions {
    display: none;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 75% 30%, #112554 0%, var(--color-primary-navy) 40%, var(--color-primary-dark) 100%);
  color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-molecule-canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.35);
  color: var(--color-accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #00b4d8 0%, #06d6a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.hero-feature-item svg {
  color: var(--color-accent-teal);
  flex-shrink: 0;
}

/* Hero Visual / Card Showcase */
.hero-card-display {
  position: relative;
  z-index: 2;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-media-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(11, 23, 54, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-badge-text h4 {
  font-size: 0.9375rem;
  color: #ffffff;
  font-weight: 700;
}

.floating-badge-text p {
  font-size: 0.75rem;
  color: var(--color-accent-cyan);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-molecule-canvas {
    display: none;
  }
}

/* ==========================================================================
   KPI Stats Bar
   ========================================================================== */
.stats-strip {
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--color-border);
  padding: 1.75rem 2rem;
}

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

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--color-border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-number span.unit {
  color: var(--color-accent-cyan);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

/* ==========================================================================
   Product Showcase Section
   ========================================================================== */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 180, 216, 0.4);
}

.product-card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--color-primary-navy);
}

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

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge.nh3 {
  background: rgba(0, 180, 216, 0.9);
  color: #ffffff;
}

.product-badge.nh4oh {
  background: rgba(6, 214, 160, 0.9);
  color: var(--color-primary-dark);
}

.product-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-formula {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.75rem;
}

.product-description {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.spec-pill {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--color-primary-navy);
  font-weight: 500;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Interactive RFQ / Quote Calculator Component
   ========================================================================== */
.rfq-section {
  background: linear-gradient(135deg, #070e1e 0%, #0b1736 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.rfq-wrapper {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.rfq-form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
}

.form-control option {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.rfq-summary-box {
  background: rgba(0, 180, 216, 0.08);
  border: 1px dashed rgba(0, 180, 216, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.rfq-summary-title {
  color: var(--color-accent-cyan);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.rfq-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* ==========================================================================
   Industries Served Section
   ========================================================================== */
.industry-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-cyan);
}

.industry-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 180, 216, 0.1);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.industry-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.5rem;
}

.industry-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Infrastructure & Logistics
   ========================================================================== */
.infra-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary-navy);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.infra-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.infra-card:hover img {
  transform: scale(1.05);
}

.infra-card-body {
  padding: 1.5rem;
  background: #ffffff;
}

.infra-card-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.35rem;
}

.infra-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Clients & Certifications Grid
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.client-logo-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.client-logo-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-cyan);
  box-shadow: var(--shadow-md);
}

.client-logo-item img {
  max-height: 55px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.client-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 992px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* Certificate Gallery */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-cyan);
}

.cert-thumbnail {
  height: 240px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.cert-card:hover .cert-thumbnail img {
  transform: scale(1.04);
}

.cert-info {
  padding: 1.25rem;
}

.cert-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.25rem;
}

.cert-validity {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

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

/* ==========================================================================
   Leadership & Team Section
   ========================================================================== */
.leader-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.leader-img-wrap {
  height: 280px;
  background: var(--color-primary-navy);
  overflow: hidden;
  position: relative;
}

.leader-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.leader-body {
  padding: 1.75rem;
}

.leader-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.25rem;
}

.leader-role {
  color: var(--color-accent-blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.leader-bio {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.founder-tribute-banner {
  background: linear-gradient(135deg, #0b1736 0%, #070e1e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3rem;
  margin-bottom: 3rem;
}

.founder-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.founder-avatar {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.founder-avatar img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.founder-content h3 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.founder-epithet {
  color: var(--color-accent-cyan);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

/* ==========================================================================
   Specifications Table & Technical Hub
   ========================================================================== */
.specs-table-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th {
  background: var(--color-primary-navy);
  color: #ffffff;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.specs-table td {
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-main);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:nth-child(even) td {
  background: var(--color-bg-light);
}

/* Document Download Cards */
.doc-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.doc-card:hover {
  border-color: var(--color-accent-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.25rem;
}

.doc-info p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-accent-cyan);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-cyan);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--color-accent-cyan);
  margin-top: 0.25rem;
}

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

.footer-bottom a {
  color: var(--color-accent-cyan);
}

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

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

/* ==========================================================================
   Modals & Lightbox
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: #000000;
}

.lightbox-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: #0b1736;
}

.lightbox-image-container img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

/* Video Player Modal */
.video-modal-content {
  background: #000000;
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  overflow: hidden;
}

.video-modal-content video {
  width: 100%;
  height: auto;
  display: block;
}
