@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- OFFICIAL BRAND COLORS & LIGHT-THEME SYSTEM --- */
:root {
  /* Official Brand Identity (From Logos) */
  --color-navy: #1B365D;      /* Primary Navy Blue */
  --color-crimson: #D94452;   /* Secondary Crimson/Coral Red */
  
  /* Core Base Colors (Light/Bright Aesthetics) */
  --bg-deep: #f5f7fb;
  --bg-primary: #ffffff;
  --bg-secondary: #fdfefe;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0f172a;    /* Very dark slate */
  --text-secondary: #475569;  /* Muted dark slate */
  --text-muted: #64748b;      /* Slate grey */
  
  /* Primary Theme (Corporate Group) */
  --accent-hue: 216;
  --accent-sat: 55%;
  --accent-light: 24%;
  --accent-color: var(--color-navy);
  --accent-glow: rgba(27, 54, 93, 0.08);
  --accent-gradient: linear-gradient(135deg, var(--color-navy) 0%, var(--color-crimson) 100%);
  --accent-gradient-alt: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-navy) 100%);
  
  /* Glassmorphism Specs for Bright Background */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(27, 54, 93, 0.08);
  --glass-border-hover: rgba(27, 54, 93, 0.15);
  --glass-shadow: 0 12px 40px 0 rgba(27, 54, 93, 0.06);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subsidiary Theme Overrides (Light Theme Adaptive Accents) */
body.theme-research {
  --accent-hue: 354;
  --accent-sat: 67%;
  --accent-light: 56%;
  --accent-color: var(--color-crimson);
  --accent-glow: rgba(217, 68, 82, 0.08);
  --accent-gradient: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-navy) 100%);
  --accent-gradient-alt: linear-gradient(135deg, var(--color-navy) 0%, var(--color-crimson) 100%);
}

body.theme-chemtech {
  /* Acute Chem Tech custom corporate palette, using brand navy mixed with a bright chem blue */
  --accent-hue: 199;
  --accent-sat: 89%;
  --accent-light: 48%;
  --accent-color: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.08);
  --accent-gradient: linear-gradient(135deg, var(--color-navy) 0%, #0ea5e9 100%);
  --accent-gradient-alt: linear-gradient(135deg, #0ea5e9 0%, var(--color-navy) 100%);
}

body.theme-molecules {
  --accent-hue: 263;
  --accent-sat: 90%;
  --accent-light: 66%;
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.08);
  --accent-gradient: linear-gradient(135deg, var(--color-navy) 0%, #8b5cf6 100%);
  --accent-gradient-alt: linear-gradient(135deg, #8b5cf6 0%, var(--color-navy) 100%);
}

/* --- RESET & BASIC STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: var(--transition-smooth);
}

/* Background Glow Effects (Elegant Light Shadows) */
.bg-ambient-glows {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  transition: var(--transition-smooth);
  animation: floatGlow 25s infinite alternate ease-in-out;
}

.ambient-glow-1 {
  top: -10%;
  right: -10%;
  background: var(--accent-color);
}

.ambient-glow-2 {
  bottom: -15%;
  left: -10%;
  background: var(--accent-color);
  animation-delay: -10s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 8%) scale(1.1); }
  100% { transform: translate(-3%, -5%) scale(0.9); }
}

/* Custom Interactive Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: all;
  opacity: 0.55;
  transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(27, 54, 93, 0.15);
  border-radius: 4px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Selection */
::selection {
  background: var(--color-navy);
  color: #ffffff;
}

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

/* --- HEADER & FLOATING NAVIGATION --- */
header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.logo-wrapper img {
  max-height: 3rem !important;
  height: auto !important;
  width: auto;
  display: block;
}

/* Reduce vertical padding in nav container */
.nav-container {
  padding: 0.5rem 1.5rem;
}


.main-logo-img {
  height: 2.5rem !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.footer-logo-img {
  height: 3rem !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.logo-wrapper img {
  max-height: 3rem !important;
  height: auto !important;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  transition: var(--transition-quick);
  display: inline-block;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-navy);
  background: rgba(27, 54, 93, 0.05);
}

.nav-links li a.active {
  box-shadow: 0 2px 10px rgba(27, 54, 93, 0.03) inset;
  border: 1px solid var(--glass-border);
  font-weight: 600;
}

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

.btn-premium-nav {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition-quick);
  border: none;
  cursor: pointer;
}

.btn-premium-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 54, 93, 0.15);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-navy);
}

/* --- BUTTONS --- */
.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-quick);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(27, 54, 93, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(27, 54, 93, 0.25);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-navy);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(27, 54, 93, 0.04);
  animation: pulseGlow 3s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px var(--accent-glow); }
  100% { box-shadow: 0 0 20px rgba(27, 54, 93, 0.12); }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-navy);
}

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

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Hero Molecule / Scientific Graphic (Right Side) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-sphere {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-color) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.25;
  filter: blur(40px);
  transition: var(--transition-smooth);
  animation: pulseSphere 8s infinite alternate ease-in-out;
}

@keyframes pulseSphere {
  0% { transform: scale(0.9); opacity: 0.2; }
  100% { transform: scale(1.1); opacity: 0.35; }
}

.visual-ring {
  position: absolute;
  border: 1.5px dashed rgba(27, 54, 93, 0.12);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.ring-1 {
  width: 320px;
  height: 320px;
  animation: spinClockwise 25s infinite linear;
  border-color: var(--accent-color);
  opacity: 0.4;
}

.ring-2 {
  width: 240px;
  height: 240px;
  animation: spinCounterClockwise 18s infinite linear;
}

.ring-3 {
  width: 160px;
  height: 160px;
  animation: spinClockwise 12s infinite linear;
  border-color: var(--accent-color);
  opacity: 0.6;
}

/* Floating floating atoms */
.floating-atom {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px var(--accent-glow);
  animation: floatAtom 6s infinite ease-in-out;
}

.atom-1 { top: 15%; left: 20%; animation-delay: 0s; }
.atom-2 { bottom: 20%; right: 15%; animation-delay: -1.5s; }
.atom-3 { top: 60%; left: 80%; animation-delay: -3s; }

@keyframes floatAtom {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.2); }
}

/* --- SECTION DEFAULTS --- */
section {
  padding: 8rem 0;
  position: relative;
  z-index: 3;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: inline-block;
  transition: var(--transition-smooth);
}

.section-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--color-navy);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* --- THE PILLARS (INTERACTIVE DECK) --- */
.pillars {
  position: relative;
}

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

.pillar-card {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(27, 54, 93, 0.04);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-quick);
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(27, 54, 93, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27, 54, 93, 0.08);
}

.pillar-card:hover::before {
  opacity: 1;
}

/* Pillar Specific Card Accents on Hover */
.pillar-card.research-card:hover {
  box-shadow: 0 10px 40px -10px rgba(217, 68, 82, 0.12);
  border-color: rgba(217, 68, 82, 0.2);
}
.pillar-card.chemtech-card:hover {
  box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.2);
}
.pillar-card.molecules-card:hover {
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.2);
}

a.pillar-card {
  text-decoration: none;
  color: inherit;
}

.pillar-logo-container {
  width: auto;
  height: 5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transition: var(--transition-quick);
}

.pillar-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--transition-quick);
}

.pillar-card:hover .pillar-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(27, 54, 93, 0.1));
}

.pillar-domain {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Bullet Features in Cards */
.pillar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.pillar-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pillar-features li svg {
  color: var(--accent-color);
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  transition: var(--transition-quick);
}

.pillar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.85rem 1.8rem;
  font-size: 0.9rem;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-quick);
  box-shadow: 0 2px 10px rgba(27, 54, 93, 0.02);
}

.pillar-card:hover .pillar-btn {
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Individual card hover colors for buttons */
.research-card:hover .pillar-btn {
  background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-navy) 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(217, 68, 82, 0.2);
}

.chemtech-card:hover .pillar-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, var(--color-navy) 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.molecules-card:hover .pillar-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, var(--color-navy) 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* --- UNIFIED ADAPTIVE CONTACT PORTAL --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-header h2 {
  font-size: 2.8rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  background: rgba(27, 54, 93, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-text h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-text p {
  font-size: 1.05rem;
  color: var(--color-navy);
  font-weight: 500;
}

.contact-form-container {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  position: relative;
  transition: var(--transition-smooth);
}

.contact-form-container:hover {
  border-color: rgba(27, 54, 93, 0.15);
}

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

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

.form-group.last {
  margin-bottom: 2rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-deep);
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-quick);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.form-group select option {
  background: #ffffff;
  color: var(--text-primary);
}

.btn-form-submit {
  width: 100%;
  border: none;
  font-family: var(--font-body);
  padding: 1rem;
}

/* Success Modal / State */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.success-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* --- FOOTER --- */
footer {
  background: #ffffff;
  border-top: 1px solid var(--glass-border);
  padding: 6rem 0 3rem;
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo-wrapper {
  pointer-events: auto;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 1.8rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-col ul li a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-quick);
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-newsletter p {
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  background: var(--bg-deep);
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  flex-grow: 1;
  transition: var(--transition-quick);
}

.newsletter-form input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.newsletter-form button {
  background: var(--accent-gradient);
  border: none;
  border-radius: 8px;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-quick);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 54, 93, 0.15);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal li a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-quick);
}

.footer-legal li a:hover {
  color: var(--accent-color);
}

/* --- RESPONSIBILITY & ADAPTABILITY --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-tag {
    justify-content: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .hero-visual {
    height: 350px;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  

  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  header {
    top: 0;
  }
  
  .nav-container {
    border-radius: 0;
    width: 100%;
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
  }
  
  .nav-links.mobile-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links li a {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-actions {
    display: none;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --- EXTRA SMALL SCREEN ADJUSTMENTS (≤480px) */
@media (max-width: 480px) {
  /* Reduce overall container padding */
  .container {
    padding: 0 0.5rem;
  }

  /* Navigation tweaks */
  .nav-container {
    padding: 0.8rem 1rem;
  }
  .nav-links li a {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  /* Logo scaling for tiny screens */
  .logo-wrapper img {
    max-height: 2.5rem !important;
    max-width: 120px !important;
  }

  /* Hero section adjustments */
  .hero {
    padding: 4rem 0 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-visual {
    height: 200px;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }
  .hero-ctas .btn-premium {
    width: 100%;
    text-align: center;
  }

  /* Pillar cards padding */
  .pillar-card {
    padding: 2rem 1rem;
  }

  /* Footer tweaks */
  .footer-grid {
    gap: 2rem;
  }
}
