/* Firmitas - Premium Global Styles */

:root {
  /* Core Color Palette */
  --c-offwhite: #FAFAFB;
  --c-lavender-light: #F1F0F7;
  --c-teal-light: #DDF0EF;
  --c-blue-soft: #E6EAF2;
  --c-primary: #3B5B7E; /* Trusting deep soft blue */
  --c-secondary: #5C8E9A; /* Calming sage/teal */
  --c-text-main: #2C3539;
  --c-text-muted: #6B7280;
  
  /* Dark Mode Variables */
  --c-navy-dark: #0F172A;
  --c-navy-surface: #1E293B;
  --c-navy-border: rgba(255, 255, 255, 0.1);
  --c-white: #FFFFFF;
  
  /* Glassmorphism Configuration */
  --glass-blur: blur(14px);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --c-teal-light: #F0F7F7;
  --c-lavender-light: #F3F2FA;
  --c-offwhite: #F9FAFB;
  --c-text: #1F2937;
  --c-text-muted: #6B7280;
  
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  /* Layout */
  --spacing-base: 1.25rem;
  --spacing-section: 6rem;
  --spacing-section-mobile: 4rem;
  --container-width: 1400px;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-offwhite); }
::-webkit-scrollbar-thumb { 
  background: var(--c-blue-soft); 
  border-radius: 10px;
  border: 3px solid var(--c-offwhite);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-secondary); }

/* Core Reset & Typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--c-text);
  line-height: 1.7; /* Increased for better legibility */
  background-color: var(--c-offwhite);
  font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, .logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}


/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(92, 142, 154, 0.2); }
  70% { box-shadow: 0 0 0 15px rgba(92, 142, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 142, 154, 0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}


.reveal.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Base UI Improvements */
section { overflow: hidden; }

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-desc {
  font-size: 1.15rem; /* Increased from 1.1rem */
  color: var(--c-text-muted);
  max-width: 750px;
  margin-bottom: 3.5rem;
  line-height: 1.6;
}

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

/* Enhanced Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-panel:hover {
  transform: translateY(-8px);
  border-color: var(--c-secondary);
  box-shadow: 0 20px 80px rgba(59, 91, 126, 0.12);
}

/* Premium Buttons */
.btn {
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--c-primary);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(59, 91, 126, 0.25);
}

.btn-primary:hover {
  background: var(--c-secondary);
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(92, 142, 154, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--c-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}


/* Improved Header & Navigation */
.glass-header {
  height: 90px;
  display: flex;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-header.scrolled {
  height: 75px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  max-width: 100%;
}

.logo {
  margin-left: 0;
  gap: 0.75rem;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.desktop-nav {
  margin-left: 2rem;
}

.desktop-nav a {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-nav a.active {
  background: rgba(59, 91, 126, 0.08);
  color: var(--c-primary);
  font-weight: 700;
}

/* Mobile Menu Improvements */
@media (max-width: 992px) {
  .desktop-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-offwhite);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    padding: 2rem;
    margin: 0;
  }

  .desktop-nav.active {
    transform: translateX(0);
  }

  .desktop-nav a {
    font-size: 1.8rem;
    margin: 1rem 0;
    font-weight: 600;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-contact-btn {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: var(--c-primary) !important;
    color: white !important;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(59, 91, 126, 0.3);
    font-size: 1.6rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .mobile-toggle:active { transform: scale(0.9); }

  .desktop-nav a {
    padding: 1.2rem 2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
}


/* Dark Theme Overrides */
body.dark-theme {
    --c-offwhite: var(--c-navy-dark);
    --c-lavender-light: #2D2D44;
    --c-teal-light: #1E3A3A;
    --c-blue-soft: #1E293B;
    --c-text-main: #E2E8F0;
    --c-text-muted: #94A3B8;
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    background: var(--c-navy-dark);
}

body.dark-theme .glass-header {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4 {
    color: var(--c-white);
}

body.dark-theme .bg-offwhite { background: var(--c-navy-dark); }
body.dark-theme footer { background: var(--c-navy-surface); border-top-color: var(--c-navy-border); }
body.dark-theme .footer-note { background: var(--c-navy-dark); }
body.dark-theme .btn-secondary { background: var(--c-navy-surface); color: var(--c-white); }
body.dark-theme .form-control { background: var(--c-navy-surface); border-color: var(--c-navy-border); color: var(--c-white); }


html {
    scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text-main);
  background: var(--c-offwhite);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0;
  color: var(--c-primary);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; } /* Slightly bolder and larger */
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.65rem; }

a {
  text-decoration: none;
  color: var(--c-primary);
  transition: all 0.3s ease;
}

ul { list-style: none; padding: 0; }

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

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

.section-spacing {
  padding: var(--spacing-section) 0;
  position: relative;
  z-index: 2;
}

.bg-offwhite { background: var(--c-offwhite); }
.bg-teal-light { background: var(--c-teal-light); }
.bg-lavender-light { background: var(--c-lavender-light); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-italic { font-style: italic; }
.small-text { font-size: 0.95rem; line-height: 1.6; color: var(--c-text-muted); } /* Increased from 0.9rem */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.border-top { border-top: 1px solid rgba(0,0,0,0.05); }

/* Dynamic Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-blur {
  filter: blur(100px);
}

.bg-circle {
  animation: drift 20s infinite alternate ease-in-out;
  transform-origin: center;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: translate(10%, 5%) scale(1.1) rotate(10deg); opacity: 0.6; }
  100% { transform: translate(-5%, 8%) scale(1) rotate(-5deg); opacity: 0.4; }
}

.bg-circle-1 { fill: var(--c-lavender-light); animation-duration: 25s; }
.bg-circle-2 { fill: var(--c-teal-light); animation-duration: 30s; animation-delay: -7s; }
.bg-circle-3 { fill: var(--c-blue-soft); animation-duration: 22s; animation-delay: -12s; }


/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: var(--c-text-main);
  position: relative;
  z-index: 1;
}

.glass-panel h1, .glass-panel h2, .glass-panel h3, .glass-panel h4 {
  color: var(--c-primary);
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.glass-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(31, 38, 135, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Header */
.glass-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}
.glass-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.65rem; /* Slightly larger */
  font-weight: 700;
  color: var(--c-primary);
  margin-left: -60px;
}
.logo i { font-size: 2rem; color: var(--c-secondary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.desktop-nav a {
  margin: 0 0.75rem;
  font-size: 0.95rem; /* Increased from 0.9rem */
  font-weight: 600; /* Bolder for better visibility */
  color: var(--c-text-main);
  white-space: nowrap;
}
.desktop-nav a:not(.btn):hover { color: var(--c-secondary); }

/* --- MASTER OVERRIDES FOR ECOSYSTEM NAVIGATION --- */
.nav-actions .btn-primary {
    background-color: var(--c-primary) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-actions .btn-outline {
    background-color: transparent !important;
    color: var(--c-primary) !important;
    border: 2px solid var(--c-primary) !important;
}

.nav-actions .btn-outline:hover {
    background-color: var(--c-primary) !important;
    color: #ffffff !important;
}

.nav-actions .btn i {
    color: inherit !important;
}

.mobile-toggle { 
  display: none; 
  background: none; 
  border: none; 
  font-size: 1.8rem; 
  cursor: pointer; 
  color: var(--c-primary);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-only-link {
    display: none;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    margin: 0 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-main);
    white-space: nowrap;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 1rem 0;
    z-index: 2000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-main);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(59, 91, 126, 0.08);
    color: var(--c-secondary);
    padding-left: 1.8rem;
}

.dropdown-item i {
    margin-right: 8px;
    font-size: 1.1rem;
    vertical-align: middle;
    pointer-events: none; /* Prevents icons from blocking clicks */
}

/* Navigation styles moved to mobile media query below */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 91, 126, 0.2);
}
.btn-primary:hover { background: #2f4a66; transform: translateY(-2px); color: #fff; }

.btn-secondary {
  background: var(--c-teal-light);
  color: var(--c-primary);
}
.btn-secondary:hover { background: #c8e4e3; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

.icon-button {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--c-primary);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.icon-button:hover { transform: scale(1.05); background: var(--c-offwhite); }

/* Ambient Controls */
.ambient-controls {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
  transition: all 0.3s ease;
}

.launcher-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 101;
    background: var(--c-primary) !important;
    color: #fff !important;
    border-color: var(--c-primary) !important;
    box-shadow: 0 8px 32px rgba(59, 91, 126, 0.3) !important;
}

.launcher-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--c-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: ping 2s infinite;
    opacity: 0.5;
}

@keyframes ping {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.launcher-btn:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    right: 0;
    background: var(--c-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.launcher-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(59, 91, 126, 0.4) !important;
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--c-navy-surface);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    animation: slideUpToast 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transition: all 0.5s ease;
    border: 1px solid var(--c-navy-border);
}

.toast.success i { color: #22c55e; }
.toast.error i { color: #ef4444; }

@keyframes slideUpToast {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
  padding-top: 15vh;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  transition: all 0.5s ease;
}
.hero-content { flex: 1.2; z-index: 2; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(92, 142, 154, 0.1);
  color: var(--c-secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-weight: 500;
  border: 1px solid rgba(92, 142, 154, 0.2);
}
.hero-badge {
    align-items: flex-start;
    border-radius: var(--radius-md);
    max-width: 550px;
    text-align: left;
}
.hero-badge i { margin-top: 3px; }
.badge i { font-size: 1.1rem; }
.hero-subtitle {
  font-size: 1.3rem; /* Increased from 1.2rem */
  color: var(--c-text-muted);
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.hero-note { font-size: 0.9rem; color: var(--c-text-muted); font-style: italic; }

.hero-art {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.neural-pattern svg { width: 100%; height: auto; max-width: 400px; animation: pulse 6s ease-in-out infinite alternate; }

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

.trust-card {
  position: absolute;
  padding: 1.1rem 1.8rem; /* Slightly more padding */
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600; /* Bolder */
  font-size: 1rem; /* Increased from 0.95rem */
  white-space: nowrap;
}
.trust-card i { font-size: 1.5rem; color: var(--c-secondary); }
.stat-1 { top: 20%; left: -20px; animation: float 5s infinite alternate ease-in-out; }
.stat-2 { bottom: 20%; right: -20px; animation: float 7s infinite alternate-reverse ease-in-out; }

/* Grids */
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.content-grid.reverse .content-left { order: 2; }
.content-grid.reverse .content-right { order: 1; }

.challenge-card { padding: 2.5rem 2rem; text-align: left; }
.challenge-card i { font-size: 2.5rem; color: var(--c-secondary); margin-bottom: 1.5rem; }
.challenge-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.challenge-card p { color: var(--c-text-muted); font-size: 1.05rem; line-height: 1.6; } /* Increased from 0.95rem */

/* Personality Icons Styling */
.custom-icon-box {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.personality-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}

.glass-panel:hover .custom-icon-box {
  transform: scale(1.1) rotate(5deg);
}

/* Sections */
.section-header { max-width: 800px; margin-bottom: 2.5rem; }
.section-badge {
  display: inline-block;
  background: var(--c-lavender-light);
  color: var(--c-primary);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.subtitle { font-size: 1.25rem; font-weight: 400; color: var(--c-secondary); margin-bottom: 1.5rem; }
.feature-list { margin: 2rem 0; }
.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.feature-list i { color: var(--c-secondary); font-size: 1.2rem; margin-top: 4px; }
.feature-list.structured p { margin: 0.25rem 0 0 0; color: var(--c-text-muted); font-size: 1.05rem; line-height: 1.6; } /* Increased from 0.95rem */
.feature-list.structured strong { font-size: 1.05rem; color: var(--c-primary); }

/* Abstract Boxes / Trees */
.abstract-box {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--glass-bg), rgba(255,255,255,0.2));
}
.node {
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: inset 0 0 0 1px var(--c-teal-light), 0 4px 15px rgba(0,0,0,0.05);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-primary);
  width: 200px;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.node-line { width: 2px; height: 40px; background: var(--c-teal-light); }

/* Tabs */
.module-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--c-teal-light);
  background: var(--glass-bg);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-primary);
  transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,91,126,0.2);
}

.module-tabs-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.tab-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 3px;
    background: var(--c-secondary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-content { 
    display: none; 
    max-width: 800px; 
    margin: 0 auto; 
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.tab-content.active { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
}

.module-card { padding: 3rem; text-align: center; }
.module-card p { font-size: 1.1rem; color: var(--c-text-muted); margin-bottom: 2rem; }
.tag-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.tag {
  background: rgba(92,142,154,0.1);
  color: var(--c-secondary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(92,142,154,0.2);
}

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

/* Post Admission */
.highlight-mentor {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--c-lavender-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: var(--c-primary);
}
.highlight-mentor i { font-size: 1.5rem; color: #F5A623; }

.image-abstract {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.circle-layer { position: absolute; border-radius: 50%; border: 20px solid rgba(255,255,255,0.4); }
.c1 { width: 300px; height: 300px; animation: spin 20s linear infinite; border-top-color: transparent; border-bottom-color: transparent; }
.c2 { width: 400px; height: 400px; animation: spin 30s linear infinite reverse; border-left-color: transparent; border-right-color: transparent; }
.text-overlay p { font-size: 1.5rem; font-family: var(--font-heading); color: var(--c-primary); z-index: 2; position: relative; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Highlights */
.highlight-icon { font-size: 3rem; color: var(--c-secondary); margin-bottom: 1rem; }

/* Audio Platform */
.audio-container { display: flex; align-items: center; justify-content: space-between; padding: 4rem; gap: 4rem; z-index: 2;}
.audio-content { flex: 1; }
.audio-visual { flex: 1; display: flex; justify-content: center; }
.breathing-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-teal-light) 0%, rgba(255,255,255,0) 70%);
  animation: breathe 19s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(165,198,205,0.5);
}
@keyframes breathe {
  0% { transform: scale(1); opacity: 0.4; }
  21% { transform: scale(1.6); opacity: 0.8; } /* 4s inhale (4/19 = 21%) */
  58% { transform: scale(1.6); opacity: 0.8; } /* 7s hold (11/19 = 58%) */
  100% { transform: scale(1); opacity: 0.4; }  /* 8s exhale */
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.5);
  padding: 1rem;
  border-radius: 50px;
}
.play-btn {
  background: none; border: none; font-size: 3rem; color: var(--c-primary); cursor: pointer; transition: transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.play-btn:hover { transform: scale(1.1); }
.progress-container { flex: 1; display: flex; align-items: center; gap: 1rem; }
.waveform { display: flex; gap: 3px; align-items: center; height: 30px; flex: 1; }
.waveform .bar { width: 4px; background: var(--c-secondary); border-radius: 2px; transition: height 0.2s; }
.time-display { font-size: 0.9rem; font-family: monospace; color: var(--c-text-muted); }

/* Mentor Card */
.mentor-card { padding: 3rem; }
.mentor-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.mentor-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--c-lavender-light); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--c-primary); }
.designation { color: var(--c-secondary); font-weight: 500; font-size: 1.1rem; margin-top: 0.2rem; }
.mentor-body p { margin-bottom: 1.2rem; color: var(--c-text-muted); font-size: 1.05rem; line-height: 1.7; } /* Increased from 0.95rem */

/* Booking Form */
.form-container { max-width: 600px; margin: 0 auto; padding: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--c-primary); }
.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(92,142,154,0.1); }
.small-text { font-size: 0.95rem; color: var(--c-text-muted); line-height: 1.5; } /* Increased from 0.85rem */

/* Footer */
footer { background: #fff; padding-top: 4rem; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { margin-bottom: 0.5rem; font-size: 1.8rem; }
.contact-email { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; color: var(--c-text-muted); }
.footer-links h4 { margin-bottom: 1.5rem; }
.footer-links a { display: block; margin-bottom: 0.8rem; color: var(--c-text-muted); font-size: 1rem; } /* Explicit font size */
.footer-links a:hover { color: var(--c-primary); }
.footer-note { background: var(--c-offwhite); padding: 1.5rem; border-radius: var(--radius-md); }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { max-width: 500px; width: 90%; padding: 3rem; position: relative; }
.close-modal { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; cursor: pointer; color: var(--c-text-muted); line-height: 1; }

/* --- Firmitas AI Counselor Chat Window Styles --- */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 400px;
    height: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    z-index: 2100;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Custom Scrollbar for Chat Body */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-track {
    background: transparent;
}
.chat-body::-webkit-scrollbar-thumb {
    background-color: var(--c-secondary);
    border-radius: 20px;
}


.launcher-stack {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: row-reverse; /* Horizontal layout to save vertical space */
    gap: 20px;
    z-index: 2200;
}

.launcher-btn-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.launcher-btn {
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.launcher-label {
    display: none; /* Hide labels for a cleaner horizontal look */
}


.mentor-laun { background: linear-gradient(135deg, #6366f1, #a855f7); }
.admissions-laun { background: linear-gradient(135deg, #0ea5e9, #6366f1); }

.launcher-btn::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.5;
    animation: pinger 2s infinite;
}

@keyframes pinger {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

.launcher-btn:hover { transform: scale(1.15) translateY(-5px); }

/* Persona-based Header Themes */
.mentorship-active .chat-header { 
    background: linear-gradient(135deg, #6366f1, #a855f7); 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admissions-active .chat-header { 
    background: linear-gradient(135deg, #0ea5e9, #6366f1); 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}



@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chat-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255,255,255,0.3);
}

.msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-msg {
    align-self: flex-start;
    background: white;
    color: var(--c-text-main);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding-left: 52px;
}

.ai-msg::before {
    content: '\ebcb'; /* default brain */
    font-family: "phosphor";
    position: absolute;
    left: 12px;
    top: 14px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Specific Avatars for Personas */
.admissions-active .ai-msg::before {
    content: '\e1fa'; /* graduation cap icon */
}

.mentorship-active .ai-msg::before {
    content: '\e498'; /* sparkle icon */
}

.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(59, 91, 126, 0.2);
    padding-right: 52px;
}

.user-msg::after {
    content: '\e4bc'; /* user icon */
    font-family: "phosphor";
    position: absolute;
    right: 12px;
    top: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

body.dark-theme .ai-msg {
    background: var(--c-navy-surface);
    color: var(--c-white);
}

.chat-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: white;
    display: flex;
    gap: 10px;
}

#counsel-chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#counsel-chat-input:focus {
    border-color: var(--c-secondary);
    box-shadow: 0 0 0 3px rgba(92,142,154,0.1);
}

#send-counsel-chat {
    background: var(--c-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 8px #10b981;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border-radius: 12px;
    width: fit-content;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Ready Questions / Chips */
.chip-btn {
    padding: 8px 14px;
    border-radius: 18px;
    border: 1.5px solid var(--c-secondary);
    background: white;
    color: var(--c-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.chip-btn:hover {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 91, 126, 0.15);
}

.admissions-active .chip-btn { border-color: #0ea5e9; color: #0369a1; }
.admissions-active .chip-btn:hover { background: #0ea5e9; color: white; border-color: #0ea5e9; }

.mentorship-active .chip-btn { border-color: #6366f1; color: #4338ca; }
.mentorship-active .chip-btn:hover { background: #6366f1; color: white; border-color: #6366f1; }

.ready-questions {
    animation: fadeIn 0.5s ease-out 0.3s both;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
/* Mobile Responsive Enhancements */
@media (max-width: 1024px) {
  .hero-container, .content-grid, .audio-container {
      gap: 3rem;
  }
}

@media (max-width: 900px) {
  :root {
      --spacing-section: var(--spacing-section-mobile);
  }

  .container {
      padding: 0 1.5rem;
  }

  .logo {
      margin-left: -10px;
  }

  .hero-container, .content-grid, .audio-container, .footer-inner { 
      grid-template-columns: 1fr; 
      flex-direction: column; 
      gap: 3rem; 
      text-align: center;
  }

  .content-grid.reverse .content-left { order: 1; }
  .content-grid.reverse .content-right { order: 2; }
  
  /* Navigation */
  .desktop-nav { 
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 0;
      background: var(--c-offwhite);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      z-index: 1100;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .desktop-nav.active {
      height: 100vh;
      padding: 2rem 0;
  }

  .desktop-nav a, .dropdown-toggle {
      margin: 1rem 0;
      font-size: 1.2rem;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s ease;
      width: 100%;
      text-align: center;
  }

  .desktop-nav.active a, .desktop-nav.active .dropdown-toggle {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.2s;
  }

  .dropdown-menu {
      position: static;
      display: block;
      opacity: 1;
      transform: none;
      box-shadow: none;
      background: transparent;
      border: none;
      padding: 0;
      margin-top: 0;
      width: 100%;
  }

  .dropdown-item {
      font-size: 1.1rem;
      padding: 0.5rem 0;
      text-align: center;
  }

  .mobile-only-link {
      display: block;
      border-top: 1px solid var(--glass-border);
      margin-top: 1.5rem !important;
      padding-top: 1rem;
      color: var(--c-secondary);
      font-weight: 700;
      width: 100%;
  }

  .mobile-toggle {
      z-index: 1200; /* Always above menu */
      position: relative;
  }

  .mobile-toggle { 
      display: flex; 
      background: rgba(59, 91, 126, 0.05);
      border: 1px solid rgba(59, 91, 126, 0.1);
      border-radius: 10px;
  }

  .hub-return-btn {
      display: none !important;
  }

  .nav-contact-btn {
      display: none !important;
  }

  /* Ensure enough space for logo and buttons */
  .header-inner {
      padding: 0 1rem;
  }

  .logo {
      margin-left: 0 !important;
      font-size: 1.1rem;
      gap: 0.25rem;
  }
  
  .logo i {
      font-size: 1.5rem;
  }

  .nav-actions {
      gap: 12px;
      display: flex;
      align-items: center;
  }

  /* Hero Section */
  .hero { 
      padding-top: 120px; 
      min-height: auto;
      padding-bottom: 4rem;
  }
  
  .hero-content { 
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .hero-title { 
      font-size: 2.8rem; 
  }

  .hero-actions { 
      justify-content: center; 
      width: 100%;
  }

  .hero-actions .btn {
      width: 100%;
      max-width: 320px;
  }

  .hero-art { 
      display: none; 
  }

  /* Mentor Section */
  .content-right {
      padding-left: 0 !important;
  }
  .mentor-text {
      text-align: center;
  }

  /* Grids */
  .grid-4, .grid-3 {
      grid-template-columns: 1fr;
      padding: 0 1rem;
      gap: 3rem;
  }
  
  @media (min-width: 769px) and (max-width: 900px) {
      .grid-4, .grid-3 {
          grid-template-columns: repeat(2, 1fr);
      }
  }
  
  .hero-title {
      font-size: clamp(2rem, 8vw, 3.2rem);
      line-height: 1.1;
  }

  .section-header.center {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
  }

  /* Audio */
  .audio-container { 
      padding: 2.5rem 1.5rem; 
  }
  
  .audio-visual {
      order: -1; /* Place breathing circle above text on mobile */
  }

  .breathing-circle {
      width: 150px;
      height: 150px;
  }

  .audio-player {
      flex-direction: column;
      border-radius: 24px;
      padding: 1.5rem;
  }

  .play-btn {
      font-size: 4rem;
  }

  /* Feature Lists */
  .feature-list li {
      text-align: left;
      justify-content: flex-start;
  }

  /* Footer */
  .footer-inner {
      text-align: left;
      gap: 2rem;
  }

  .footer-note {
      margin-top: 1rem;
  }

  .ambient-controls {
      bottom: 1.5rem;
      left: 1.5rem; /* Move to bottom-left on mobile to avoid overlapping with chat trigger usually at bottom-right */
      right: auto;
      gap: 0.8rem;
  }
  .launcher-btn {
      bottom: 1.5rem;
      right: 1.5rem;
  }

  .icon-button {
      width: 44px;
      height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-title {
      font-size: 2.2rem;
  }

  h2 {
      font-size: 1.8rem;
  }

  .section-spacing {
      padding: 3.5rem 0;
  }

  .glass-panel {
      padding: 1.5rem !important;
  }

  .mentor-card {
      padding: 1.5rem !important;
  }

  .chat-window {
      width: 100%;
      height: 100%;
      bottom: 0;
      right: 0;
      border-radius: 0;
      z-index: 3000;
  }

  .chat-header {
      padding: 15px 20px;
  }

  .chat-footer {
      padding: 10px 15px 30px 15px; /* Extra padding for bottom spacing on some mobile browsers */
  }
}

/* Animations for Mobile Menu */
.desktop-nav a:nth-child(2) { transition-delay: 0.25s; }
.desktop-nav a:nth-child(3) { transition-delay: 0.3s; }
.desktop-nav a:nth-child(4) { transition-delay: 0.35s; }
.desktop-nav a:nth-child(5) { transition-delay: 0.4s; }
.desktop-nav a:nth-child(6) { transition-delay: 0.45s; }
