/* -------------------------------------------------------------
   NeuroMatematyka.pl - CSS Stylesheet
   Theme: Premium educational landing page (Logic Navy & Synaptic accent)
   Layout: Responsive, Mobile-First
   ------------------------------------------------------------- */

/* Custom CSS Custom Properties */
:root {
  --color-navy: #0A192F;
  --color-navy-light: #172A45;
  --color-navy-dark: #020C1B;
  --color-navy-accent: #30475E;
  
  --color-accent: #0A9396;
  --color-accent-hover: #005F73;
  --color-accent-light: #ECFEFF;
  --color-accent-glow: rgba(10, 147, 150, 0.4);
  
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F8FAFC;
  --color-card-bg: #FFFFFF;
  
  --color-text: #0F172A;
  --color-text-muted: #475569;
  
  --color-border: #E2E8F0;
  --color-border-focus: #CBD5E1;
  
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(10, 25, 47, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(10, 25, 47, 0.08), 0 8px 16px -6px rgba(10, 25, 47, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(10, 25, 47, 0.12), 0 15px 25px -10px rgba(10, 25, 47, 0.06);
  --shadow-accent: 0 10px 25px -5px rgba(10, 147, 150, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & General Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

strong {
  color: var(--color-navy);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Section Common Styles */
section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  section {
    padding: 100px 0;
  }
}

.section-header {
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0 auto 20px auto;
  border-radius: var(--border-radius-full);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.glow-1 {
  background-color: var(--color-accent);
  top: 10%;
  right: -100px;
}

.glow-2 {
  background-color: var(--color-navy);
  bottom: 20%;
  left: -150px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background-color: var(--color-navy);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-tertiary {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-navy);
}

.btn-tertiary:hover {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.accent-badge {
  background-color: rgba(10, 147, 150, 0.1);
  color: var(--color-accent);
}

@keyframes pulse-dot {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.5; }
}

/* Header & Floating Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 100;
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  color: var(--color-navy);
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.03em;
}

.logo-accent {
  color: var(--color-accent);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-navy);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  display: none;
  align-items: center;
  gap: 4px;
  color: var(--color-navy);
  font-weight: 600;
  font-family: var(--font-headings);
}

.phone-link:hover {
  color: var(--color-accent);
}

.social-header-icon {
  display: none;
  color: var(--color-text-muted);
}

.social-header-icon:hover {
  color: var(--color-accent);
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
  .phone-link, .social-header-icon, .header-cta {
    display: inline-flex;
  }
}

/* Hamburger Menu button */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.burger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  transition: all var(--transition-normal);
  transform-origin: left center;
}

.burger-menu.open .burger-bar:nth-child(1) {
  transform: rotate(45deg) translateY(-2px);
  background-color: var(--color-accent);
}

.burger-menu.open .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.burger-menu.open .burger-bar:nth-child(3) {
  transform: rotate(-45deg) translateY(2px);
  background-color: var(--color-accent);
}

@media (min-width: 1024px) {
  .burger-menu {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(2, 12, 27, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  width: 100%;
  max-width: 400px;
  padding: 40px 24px;
  text-align: center;
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

.mobile-nav-overlay.open .mobile-nav {
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
  margin-bottom: 40px;
}

.mobile-nav ul li {
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.mobile-nav-link:hover {
  color: var(--color-accent);
}

.mobile-nav-footer {
  margin-top: 40px;
}

.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.mobile-socials .social-icon {
  color: rgba(255, 255, 255, 0.6);
}

.mobile-socials .social-icon:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero-section {
  padding-top: 140px;
  padding-bottom: 60px;
  background-color: var(--color-bg-secondary);
  overflow: hidden;
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1rem;
  margin-bottom: 36px;
}

.hero-actions-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

@media (min-width: 480px) {
  .hero-actions-container {
    flex-direction: row;
  }
}

.hero-stats {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

.stat-item {
  flex: 1;
}

.stat-num {
  display: block;
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Hero Graphic / SVG */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .hero-visual {
    margin-top: 0;
  }
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.hero-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(10, 25, 47, 0.08));
}

/* Floating UI Cards in Hero */
.floating-card {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.card-left {
  top: 10%;
  left: -45px;
  animation: float-left 6s ease-in-out infinite;
}

.card-right {
  bottom: 12%;
  right: -35px;
  animation: float-right 7s ease-in-out infinite;
}

.card-icon {
  font-size: 1.5rem;
}

.card-text-container {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.card-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Hero Animations */
@keyframes float-left {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-right {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* SVG Brain animations */
.pulse-ring {
  animation: ring-glow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: center;
}

.node-center circle {
  animation: pulse-center 3s ease-in-out infinite;
  transform-origin: center;
}

.pulse-line-1 {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-line 8s linear infinite;
}

.pulse-line-2 {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 6s linear infinite reverse;
}

@keyframes ring-glow {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.6); opacity: 0.35; }
}

@keyframes pulse-center {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--color-accent)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--color-accent)); }
}

@keyframes draw-line {
  0% { stroke-dashoffset: 400; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -400; }
}

/* About & Methodology Section */
.about-section {
  background-color: var(--color-bg);
}

.about-grid {
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-svg-container {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.methodology-svg {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.tech-badge {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background-color: var(--color-navy);
  color: white;
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-headings);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.tech-badge-icon {
  background-color: var(--color-accent);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  margin-top: 32px;
}

.about-text h3:first-of-type {
  margin-top: 0;
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.about-philosophy {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.philosophy-item {
  display: flex;
  gap: 16px;
}

.ph-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.ph-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* Core Offer Section (3 pillars) */
.offer-section {
  background-color: var(--color-bg-secondary);
}

.offer-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-glow);
}

.card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-accent);
}

.offer-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-accent-light);
  border-radius: var(--border-radius-md);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.offer-card:not(.premium-card) .offer-icon {
  background-color: rgba(10, 25, 47, 0.05);
  color: var(--color-navy);
}

.offer-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.offer-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.offer-badge.neutral {
  background-color: #E2E8F0;
  color: var(--color-text-muted);
}

.offer-badge.secondary {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.offer-badge:not(.neutral):not(.secondary) {
  background-color: var(--color-navy);
  color: white;
}

.offer-description {
  margin-bottom: 24px;
}

.offer-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.offer-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.offer-card:not(.premium-card) .offer-features li::before {
  color: var(--color-navy-light);
}

.offer-footer {
  margin-top: auto;
}

/* Warning/Important Box Banner */
.note-box {
  margin-top: 56px;
  background-color: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  display: flex;
  gap: 18px;
}

.note-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.note-content h4 {
  font-size: 1.125rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.note-content p {
  font-size: 0.95rem;
  color: var(--color-navy-accent);
}

/* Summer Offer Section */
.summer-section {
  background-color: var(--color-bg);
}

.summer-card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.summer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-focus);
}

.summer-img-container {
  position: relative;
  background-color: var(--color-navy-dark);
  height: auto;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.summer-img-container svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summer-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.summer-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.summer-content p {
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.summer-list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summer-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.summer-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.summer-cta-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Location Section */
.location-section {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.location-grid {
  align-items: center;
}

.location-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.location-features {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loc-feat-item {
  display: flex;
  gap: 16px;
}

.loc-feat-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.loc-feat-item h3 {
  font-size: 1.1rem;
}

.loc-feat-item p {
  font-size: 0.875rem;
}

/* Styled Map Mockup */
.location-visual {
  display: flex;
  justify-content: center;
}

.map-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background-color: var(--color-navy-light);
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-label {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 12px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-navy);
  font-weight: 600;
  font-family: var(--font-headings);
}

.location-pulse-building {
  animation: pulse-building 3s infinite;
  transform-origin: center;
}

@keyframes pulse-building {
  0%, 100% { filter: drop-shadow(0 0 0px var(--color-accent-glow)); }
  50% { filter: drop-shadow(0 0 10px var(--color-accent)); }
}

/* Contact Section & Form */
.contact-section {
  background-color: var(--color-bg);
}

.contact-grid {
  align-items: flex-start;
}

.contact-lead {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-sm);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.contact-detail-item:hover .detail-icon {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.detail-text {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.detail-val {
  font-family: var(--font-headings);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.social-community h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-navy);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: var(--color-bg-secondary);
}

/* Contact Form container card */
.contact-form-container {
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

@media (min-width: 480px) {
  .contact-form-container {
    padding: 40px;
  }
}

.form-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 12px 16px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

textarea.form-control {
  resize: vertical;
}

/* Consent Checkbox */
.form-consent {
  margin-bottom: 28px;
  position: relative;
}

.form-consent input[type="checkbox"] {
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-consent label {
  display: block;
  padding-left: 28px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.form-consent strong {
  font-size: inherit;
}

/* Custom error states */
.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #DC2626;
  margin-top: 4px;
  font-weight: 500;
}

.form-control.invalid {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.form-control.invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Submit state and spinner */
.submit-btn {
  position: relative;
  overflow: hidden;
}

.submit-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn-spinner {
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

/* Success Form Overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  z-index: 10;
  animation: fade-in 0.3s ease-out forwards;
}

.success-box {
  max-width: 320px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: #D1FAE5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0 auto 24px auto;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15);
}

.success-box h3 {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.success-box p {
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.stored-data-preview {
  background-color: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 0.75rem;
}

.stored-data-preview h5 {
  font-family: var(--font-headings);
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
}

.stored-data-preview p {
  margin-bottom: 4px;
  font-size: 0.75rem;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sticky Mobile CTA Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  z-index: 80;
  box-shadow: 0 -4px 15px rgba(10, 25, 47, 0.05);
}

.sticky-action-btn {
  flex: 1;
  text-align: center;
  padding: 16px 0;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-action-btn.cta {
  background-color: var(--color-accent);
  color: white;
}

.sticky-action-btn.cta:hover {
  background-color: var(--color-accent-hover);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
  body {
    padding-bottom: 0; /* Clear space for sticky bar on mobile */
  }
}

/* Space for sticky bar on mobile */
@media (max-width: 767px) {
  body {
    padding-bottom: 50px;
  }
}

/* Footer styling */
.main-footer {
  background-color: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
    gap: 60px;
  }
}

.footer-brand .footer-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: white;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.social-icon-footer {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon-footer:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-legal h4 {
  font-family: var(--font-headings);
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 4px;
}

.funding-notice {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.author-credits {
  font-family: var(--font-headings);
  font-weight: 500;
}

/* Scroll Trigger Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Micro-animations and hover effects */
@keyframes pulse-btn-glow {
  0% { box-shadow: 0 0 0 0 rgba(10, 147, 150, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(10, 147, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 147, 150, 0); }
}

.pulse-hover-trigger:hover {
  animation: pulse-btn-glow 1.5s infinite;
}

/* Profile Image Styles */
.profile-image-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.profile-frame {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-navy-light);
  line-height: 0;
}

.profile-photo {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.profile-image-container:hover .profile-photo {
  transform: scale(1.04);
}

.profile-glow-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: inset 0 0 0 0px var(--color-accent-glow);
  pointer-events: none;
  transition: box-shadow var(--transition-normal);
}

.profile-image-container:hover .profile-glow-ring {
  box-shadow: inset 0 0 0 4px var(--color-accent);
}

/* Responsive Horizontal Contact Header Layout */
.contact-header-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 48px auto;
}

.contact-header-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  display: block;
}

.contact-header-text-wrapper .section-title {
  margin-bottom: 8px;
}

.contact-header-text-wrapper .section-divider {
  margin: 0 auto 16px auto;
}

.contact-header-text-wrapper .section-subtitle {
  margin: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .contact-header-flex {
    flex-direction: row;
    text-align: center;
    gap: 32px;
  }
  
  .contact-header-text-wrapper .section-divider {
    margin: 0 auto 16px auto;
  }
}

/* Position of new floating cards in Hero */
.card-left-bottom {
  bottom: 8%;
  left: -105px;
  animation: float-left 6.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

.card-right-top {
  top: -5%;
  right: -95px;
  animation: float-right 7.5s ease-in-out infinite;
  animation-delay: 0.6s;
}
