/* Batchmate Connect - Professional Home Page CSS */

/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #6b46c1;
  --primary-dark: #5b21b6;
  --primary-light: #7c3aed;
  --secondary-color: #3b82f6;
  --secondary-dark: #1e40af;
  --accent-color: #10b981;
  --accent-dark: #059669;
  --error-color: #ef4444;
  --warning-color: #f59e0b;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #6b46c1 0%, #5b21b6 100%);
  --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --hero-gradient: linear-gradient(
    180deg,
    rgba(107, 70, 193, 0.05) 0%,
    rgba(107, 70, 193, 0) 100%
  );

  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #111827;

  /* Border Colors */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07),
    0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  position: relative;
  width: 60px;
  height: 60px;
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

.loader-circle:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: var(--secondary-color);
  animation-duration: 0.8s;
}

.loader-circle:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-top-color: var(--accent-color);
  animation-duration: 0.6s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.nav-brand:hover {
  transform: translateY(-2px);
}

.nav-logo {
  width: 40px;
  height: 40px;
}

.nav-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.nav-btn-outline {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.nav-btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.nav-btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.nav-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem; /* Increased top padding for header space */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-gradient);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(107, 70, 193, 0.1);
  border: 1px solid rgba(107, 70, 193, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: "Poppins", sans-serif;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-color: rgba(107, 70, 193, 0.2);
  color: var(--primary-color);
}

.btn-glass:hover {
  background: rgba(107, 70, 193, 0.1);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary-color);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
  border-color: white;
  color: white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease;
}

.hero-animation {
  position: relative;
  width: 100%;
  height: 100%;
}

#networkAnimation {
  width: 100%;
  height: auto;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  position: relative;
  cursor: pointer;
}

.scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(107, 70, 193, 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Mobile Section Headers */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.3;
    color: var(--text-primary);
  }

  .section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
  }

  .section-label {
    color: var(--primary-color);
    font-weight: 600;
  }

  /* Better text contrast for mobile */
  .hero-badge span {
    color: var(--text-secondary);
  }

  .hero-badge a {
    color: var(--primary-color);
  }
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: translateX(0);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(107, 70, 193, 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.about-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(107, 70, 193, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.about-feature h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.about-feature p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.about-stat-icon {
  font-size: 2rem;
}

.about-stat-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.125rem;
}

.about-stat-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.about-visual {
  position: relative;
}

.about-image {
  position: relative;
  padding: 2rem;
}

#aboutAnimation {
  width: 100%;
  height: auto;
}

.shield-outline {
  animation: pulse 3s ease infinite;
}

.orbit-node {
  animation: float 4s ease infinite;
}

.orbit-node:nth-child(2) {
  animation-delay: 1s;
}
.orbit-node:nth-child(3) {
  animation-delay: 2s;
}
.orbit-node:nth-child(4) {
  animation-delay: 3s;
}

/* How It Works */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.process-line {
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.process-step {
  position: relative;
  text-align: center;
  z-index: 1;
}

.process-number {
  width: 80px;
  height: 80px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 auto 1.5rem;
  transition: all var(--transition-base);
}

.process-step:hover .process-number {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

.process-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Initiatives Section */
.initiatives {
  padding: 5rem 0;
  background: white;
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.initiative-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.initiative-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.initiative-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.initiative-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.initiative-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.initiative-url {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.initiative-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.initiative-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.initiative-stats .stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.initiative-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.initiative-link:hover {
  gap: 0.75rem;
  color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 20s ease-in-out infinite;
}

.cta-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-text h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(107, 70, 193, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.contact-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-social h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-links a:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.social-links a:hover svg {
  color: white;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-base);
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
}

.footer-brand h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-bottom a:hover {
  color: white;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(107, 70, 193, 0.3);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
  z-index: var(--z-fixed);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default, show only on mobile */
}

.mobile-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border-radius: var(--radius-md);
  min-width: 50px;
}

.mobile-nav-item.active {
  color: var(--primary-color);
  background: rgba(107, 70, 193, 0.1);
}

.mobile-nav-item:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.mobile-nav-item.active svg {
  transform: scale(1.1);
}

.mobile-nav-item span {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Responsive Design - Mobile First Approach */

/* Mobile Base Styles (320px and up) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  /* Show mobile bottom navigation */
  .mobile-bottom-nav {
    display: block !important;
  }

  /* Add bottom padding to body when mobile nav is present */
  body {
    padding-bottom: 80px;
  }

  /* Mobile Navigation - Simplified Top Bar */
  .nav-container {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    width: 32px;
    height: 32px;
  }

  .nav-title {
    font-size: 1.125rem;
  }

  /* Hide desktop menu completely on mobile */
  .nav-menu {
    display: none !important;
  }

  /* Hide hamburger toggle */
  .nav-toggle {
    display: none !important;
  }

  /* Mobile top nav actions - only icons */
  .nav-actions {
    gap: 0.5rem;
    display: flex;
    align-items: center;
  }

  .nav-btn {
    padding: 0.5rem;
    font-size: 0;
    min-height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid transparent; /* Default transparent border */
  }

  .nav-btn-outline {
    border: 2px solid var(--primary-color) !important;
    background: transparent !important;
    color: var(--primary-color) !important;
  }

  .nav-btn-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: 2px solid transparent !important;
  }

  .nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .nav-btn span {
    display: none; /* Hide text, show only icons */
  }
  /* Mobile Hero Section */
  .hero {
    padding: 6rem 0 3rem; /* Proper spacing below header */
    min-height: 100vh;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.2;
    color: var(--text-primary);
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
  }

  .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
  }

  .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
  }

  /* Mobile Buttons */
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
  }

  .btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.3);
  }

  .btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
  }

  .btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }

  /* Section Titles */
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.3;
    color: var(--text-primary);
  }

  .section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
  }
  /* Mobile Features Grid - Professional Widget Style */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  /* Mobile Initiatives Section */
  .initiatives {
    padding: 3rem 0;
  }

  .initiatives .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .initiatives .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 1rem;
  }

  .initiatives .section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }

  .initiatives-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0; /* Remove horizontal padding */
  }

  /* Mobile Initiative Cards - Keep Original Professional Style */
  .initiative-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  .initiative-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
  }

  .initiative-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .initiative-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .initiative-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
  }

  .initiative-url {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .initiative-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
  }

  .initiative-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .initiative-stats .stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
  }

  .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .initiative-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
  }

  .initiative-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
  }

  .feature-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  .feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(107, 70, 193, 0.15);
  }

  .feature-card:hover::before {
    transform: scaleX(1);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }

  .feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: none; /* Hide on mobile for cleaner look */
  }

  .feature-footer {
    margin-top: 0.75rem;
  }

  .feature-tag {
    font-size: 0.6875rem;
    background: rgba(107, 70, 193, 0.1);
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1px solid rgba(107, 70, 193, 0.2);
  }

  /* Mobile Initiative Cards - Compact Professional Style */
  .initiative-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .initiative-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .initiative-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(107, 70, 193, 0.15);
  }

  .initiative-card:hover::before {
    transform: scaleX(1);
  }

  .initiative-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .initiative-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
  }

  .initiative-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
  }

  .initiative-url {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
  }

  .initiative-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }

  .initiative-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .initiative-stats .stat {
    text-align: center;
    padding: 0.75rem;
    background: rgba(107, 70, 193, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(107, 70, 193, 0.1);
  }

  .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
  }

  .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
  }

  .initiative-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 0.875rem;
  }

  .initiative-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
  }
}

/* Mobile Process Timeline */
.process-timeline {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-line {
  display: none;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.process-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Mobile About Section */
.about-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-text {
  text-align: center; /* Center align text on mobile */
}

.about-text .section-label {
  display: block;
  margin-bottom: 1rem;
}

.about-text .section-title {
  margin-bottom: 1.5rem;
}

.about-text .about-lead {
  margin-bottom: 2rem;
  text-align: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-feature {
  text-align: left; /* Features left aligned for readability */
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.about-stats-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-stat {
  padding: 1.5rem;
  text-align: center;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Mobile CTA Section */
.cta-content {
  text-align: center;
}

.cta-buttons {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-white,
.btn-outline-white {
  width: 100%;
  max-width: 280px;
}

/* Mobile Footer */
.footer {
  padding: 2rem 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Back to Top Button - Mobile Optimized */
.back-to-top {
  right: 1rem;
  bottom: 5rem; /* Move above mobile bottom nav */
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
  transition: all 0.3s ease;
  z-index: var(--z-floating);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

/* Small Mobile Devices (up to 375px) */
@media (max-width: 375px) {
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .btn {
    max-width: 260px;
    font-size: 0.9375rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}

/* Tablet Portrait (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* Show mobile bottom navigation for tablets too */
  .mobile-bottom-nav {
    display: block !important;
  }

  /* Add bottom padding to body when mobile nav is present */
  body {
    padding-bottom: 80px;
  }

  /* Hide desktop menu completely on tablets */
  .nav-menu {
    display: none !important;
  }

  /* Hide hamburger toggle */
  .nav-toggle {
    display: none !important;
  }

  /* Mobile top nav actions - only icons */
  .nav-actions {
    gap: 0.5rem;
    display: flex;
    align-items: center;
  }

  .nav-btn {
    padding: 0.5rem;
    font-size: 0;
    min-height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .nav-btn span {
    display: none; /* Hide text, show only icons */
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .btn {
    max-width: 200px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Tablet Landscape and Small Desktop (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .initiatives-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-line {
    display: none;
  }
}

/* Large Screens (1025px and up) */
@media (min-width: 1025px) {
  /* Hide mobile bottom navigation on desktop */
  .mobile-bottom-nav {
    display: none !important;
  }

  /* Remove mobile body padding */
  body {
    padding-bottom: 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    flex-direction: row !important;
    gap: 2rem;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center;
    box-shadow: none !important;
  }

  .nav-link {
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    background: none !important;
    color: var(--text-primary) !important;
    text-align: left !important;
    display: inline !important;
    width: auto !important;
  }

  .nav-actions .nav-btn span {
    display: inline !important; /* Show text on desktop */
  }

  .nav-actions .nav-btn {
    width: auto !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1.5rem !important;
  }

  /* Hide mobile nav buttons on desktop */
  .mobile-nav-buttons {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Desktop initiatives styling */
  .initiatives .section-header {
    text-align: center;
  }

  .initiatives-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-line {
    display: block;
  }
}

/* Mobile App-like Enhancements */

/* Add iOS-style safe area support */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .nav-menu {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

/* Touch-friendly improvements */
.nav-btn:active,
.btn:active {
  transform: scale(0.98);
}

/* Mobile menu overlay */
.nav-menu.active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
  /* Remove problematic backdrop-filter */
  /* backdrop-filter: blur(5px); */
  /* -webkit-backdrop-filter: blur(5px); */
}

/* Improved mobile buttons in navigation */
@media (max-width: 480px) {
  /* .nav-actions .nav-btn:first-child {
    display: none; Hide login button on very small screens 
  } */

  .nav-actions {
    position: relative;
    z-index: calc(var(--z-modal) + 20);
  }

  /* Add mobile-specific nav buttons to menu */
  .nav-menu.active::after {
    content: "";
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Mobile menu buttons */
  .mobile-nav-buttons {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu.active .mobile-nav-buttons {
    display: flex;
  }

  .mobile-nav-btn {
    padding: 1rem;
    background: var(--primary-gradient);
    color: white !important; /* Force white text */
    text-decoration: none;
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    transition: all 0.3s ease;
    border: none;
  }

  .mobile-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.3);
    color: white !important;
  }

  .mobile-nav-btn.outline {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
  }

  .mobile-nav-btn.outline:hover {
    background: var(--primary-color) !important;
    color: white !important;
  }
}

/* Enhanced mobile visual feedback */
@media (hover: none) and (pointer: coarse) {
  .nav-btn:active,
  .btn:active,
  .feature-card:active,
  .initiative-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Remove hover effects on touch devices */
  .nav-btn:hover,
  .btn:hover,
  .feature-card:hover,
  .initiative-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Better mobile scrolling */
@media (max-width: 768px) {
  body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Prevent horizontal scroll */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Mobile-optimized sections */
  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 4rem 0 2rem;
  }

  /* Better mobile spacing */
  .container {
    max-width: 100%;
  }
}

/* Very small mobile devices */
@media (max-width: 320px) {
  .nav-container {
    padding: 0.5rem 0.75rem;
  }

  .nav-logo {
    width: 28px;
    height: 28px;
  }

  .nav-title {
    font-size: 1rem;
  }

  .nav-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .nav-btn span {
    display: none; /* Hide text, show only icons */
  }
}

/* Mobile screen size adjustments */
@media (min-width: 375px) and (max-width: 480px) {
  .feature-card p {
    display: block; /* Show description on slightly larger mobile screens */
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .feature-card {
    min-height: 160px;
  }
}

/* Very small screens */
@media (max-width: 374px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    min-height: 120px;
  }

  .feature-card p {
    display: none;
  }
}

/* Additional Mobile App-like Features */

/* Pull-to-refresh indicator (visual only) */
.pull-refresh-indicator {
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: top 0.3s ease;
  z-index: var(--z-fixed);
}

/* Mobile splash screen effect */
@media (max-width: 768px) {
  #preloader {
    background: var(--primary-gradient);
  }

  #preloader .loader {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
  }
}

/* Mobile-optimized animations */
@media (prefers-reduced-motion: no-preference) and (max-width: 768px) {
  .feature-card,
  .initiative-card,
  .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .feature-card:active,
  .initiative-card:active {
    transform: translateY(2px) scale(0.98);
  }
}

/* Mobile status bar styling */
@media (max-width: 768px) {
  body {
    padding-top: env(safe-area-inset-top);
  }

  .navbar {
    top: env(safe-area-inset-top);
  }
}

/* Better mobile form styling */
@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.875rem;
    border-radius: var(--radius-lg);
  }
}

/* Mobile floating action button style for back-to-top */
@media (max-width: 768px) {
  .back-to-top {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.4);
    transition: all 0.3s ease;
    z-index: var(--z-fixed);
  }

  .back-to-top:hover,
  .back-to-top:active {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(107, 70, 193, 0.5);
  }
}

/* Remove dark mode for mobile - keep light theme */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  :root {
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
  }

  .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-primary);
  }

  .navbar {
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0;
    min-height: 100vh;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }

  .nav-menu {
    padding: 3rem 2rem 1rem;
  }

  .nav-link {
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }
}

/* Touch feedback styling */
.touching {
  transform: scale(0.98) !important;
  transition: transform 0.1s ease !important;
}

/* Mobile-specific button improvements */
@media (max-width: 768px) {
  .btn,
  .nav-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Larger touch targets */
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Better mobile button spacing */
  .hero-buttons .btn {
    margin: 0.5rem 0;
  }

  .cta-buttons .btn {
    margin: 0.5rem 0;
  }
}

/* Orientation-specific adjustments */
body[data-orientation="landscape"] {
  .hero {
    padding: 1rem 0;
  }

  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
}

body[data-orientation="portrait"] {
  .hero {
    padding: 4rem 0 2rem;
  }
}

/* Mobile loading states */
@media (max-width: 768px) {
  .btn:disabled,
  .nav-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
  }

  .btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Improved mobile menu transitions */
@media (max-width: 768px) {
  .nav-menu {
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .nav-menu.active {
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Mobile menu backdrop blur */
  .nav-menu.active::before {
    animation: fadeIn 0.3s ease;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Better mobile scroll indicators */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 0;
    background: transparent;
  }

  /* Add scroll progress indicator */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gradient);
    z-index: calc(var(--z-fixed) + 1);
    transition: width 0.1s ease;
  }
}
