/* Custom Properties & Tokens */
:root {
  /* Colors */
  --bg-dark: #070913;
  --bg-surface: #0f1629;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --primary: #1d4ed8;
  --primary-hover: #2563eb;
  --primary-glow: rgba(29, 78, 216, 0.4);
  --secondary: #3b82f6;
  --accent: #60a5fa;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  /* Base text for light mode */
  --text-dark: #1e293b;
  --text-muted-light: #475569;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-light-surface: #f8fafc;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Utilities */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 16px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

/* Background Blobs for Visual Effect */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  animation: float 25s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px;
  left: -200px;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: 0;
  right: -150px;
  animation-delay: -5s;
}

.blob-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  top: 40%;
  left: 20%;
  opacity: 0.2;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(150px, 80px) scale(1.1);
  }
  100% {
    transform: translate(-80px, 150px) scale(0.9);
  }
}

/* Typography Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

span {
  color: var(--secondary);
  background: linear-gradient(to right, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text; /* standard property */
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section {
  padding: 8rem 0;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 50px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff; /* Override global span transparent style */
  background-clip: border-box; /* Override global span background-clip */
  -webkit-background-clip: border-box;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.badge-dark {
  background: rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.4);
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  box-shadow: none;
}

/* Light Section Theme */
.section-light {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--text-dark);
}

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

.section-light .stat-number {
  background: linear-gradient(
    to bottom right,
    var(--text-dark),
    var(--primary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.6);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 4rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo img {
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links .btn {
  color: white;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 1.5rem auto 3rem auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  background: linear-gradient(to bottom right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text; /* standard property */
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
}

.image-composition {
  position: relative;
  width: 100%;
}

.main-img {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.image-composition:hover .main-img {
  transform: scale(1.02);
}

.floating-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  max-width: 250px;
  padding: 1.5rem;
  background: rgba(15, 22, 41, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  animation: floatCard 6s ease-in-out infinite;
  z-index: 10;
}

@media (max-width: 768px) {
  .floating-card {
    right: 0;
    bottom: -20px;
    max-width: 200px;
  }
}

.light-theme-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.light-theme-card h3 {
  color: var(--text-dark);
}

.light-theme-card p {
  color: var(--text-muted-light);
}

.light-shadow {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.floating-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.main-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(29, 78, 216, 0.2),
    rgba(59, 130, 246, 0.05)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px var(--primary-glow);
}

.service-card p {
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* Methodology Scroller (Horizontal Slider) */
.methodology-scroller {
  margin-top: 4rem;
  width: 100%;
  overflow: hidden; /* Hide outer scrollbar */
  position: relative;
}

.scroller-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 1rem 3rem 1rem; /* Space for shadow and scrollbar */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(0, 0, 0, 0.05);
}

.scroller-track::-webkit-scrollbar {
  height: 8px;
}

.scroller-track::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.scroller-track::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.method-slide {
  flex: 0 0 calc(100% - 2rem);
  max-width: 400px;
  scroll-snap-align: center;
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .method-slide {
    flex: 0 0 calc(50% - 2rem);
  }
}

@media (min-width: 1024px) {
  .method-slide {
    flex: 0 0 calc(33.333% - 2rem);
  }
}

.method-slide:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.method-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.1);
  transition: var(--transition-smooth);
  margin-bottom: 1rem;
}

.method-slide:hover .method-number {
  color: rgba(59, 130, 246, 0.3);
}

.method-slide h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.method-icon {
  color: var(--primary);
  opacity: 0.8;
  font-size: 1.1rem;
}

.method-slide p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted-light);
  margin: 0;
  flex-grow: 1;
}

.method-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
}

.method-highlight h4,
.method-highlight p {
  color: white;
}

.method-highlight .method-number {
  color: rgba(255, 255, 255, 0.2);
}

.method-highlight .method-icon {
  color: #fff;
}

.method-highlight:hover .method-number {
  color: rgba(255, 255, 255, 0.4);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  font-size: 1.15rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3.5rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
}

.contact-link i {
  color: var(--secondary);
  font-size: 1.6rem;
}

.social-links p {
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 1.3rem;
  margin-right: 1.2rem;
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.contact-form-wrapper {
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f8fafc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
}

.form-group select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: rgba(0, 0, 0, 0.5);
}

.form-message {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 12px;
  display: none;
  font-weight: 500;
  text-align: center;
  animation: fadein 0.3s ease-in;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Footer */
footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.footer-logo img {
  height: 70px;
  margin-top: -2.5rem;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* AI Core Section (Futuristic) */
.ai-core {
  position: relative;
  background: linear-gradient(
    to bottom,
    #1e293b,
    #0f172a
  ); /* Lightened slate gradient */
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
}

.ai-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
  z-index: 1;
}

.relative {
  position: relative;
  z-index: 2;
}

.ai-engine-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.ai-brain-visual {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 22, 41, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
}

#neural-network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.brain-center {
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  z-index: 3;
  box-shadow: 0 0 50px var(--primary-glow);
  position: relative;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulseScale 3s infinite;
  opacity: 0;
}

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

.ai-features-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ai-feature-box {
  padding: 2rem;
  transition: var(--transition-smooth);
}

.ai-feature-box:hover {
  transform: translateX(10px) translateY(-5px);
  border-color: var(--secondary);
  background: rgba(59, 130, 246, 0.05);
}

.box-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.15) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.ai-feature-box:hover .box-glow {
  opacity: 1;
}

.ai-feature-box i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.data-stream-container {
  margin-top: 5rem;
  height: 40px;
  overflow: hidden;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
}

.data-stream {
  white-space: nowrap;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--primary);
  opacity: 0.5;
  letter-spacing: 4px;
}

@media (max-width: 992px) {
  .ai-engine-display {
    grid-template-columns: 1fr;
  }
  .ai-brain-visual {
    height: 400px;
  }
}

/* Animations Base (For JS Intersection Observer) */
.animate-up,
.fade-in {
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up {
  transform: translateY(40px);
}
.fade-in.up {
  transform: translateY(50px);
}
.fade-in.right {
  transform: translateX(-50px);
}
.fade-in.left {
  transform: translateX(50px);
}
.fade-in.scale {
  transform: scale(0.92);
}

.visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1200px) {
  .navbar {
    padding: 1.5rem 2rem;
  }
  .navbar.scrolled {
    padding: 1rem 2rem;
  }
}

@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-image {
    order: -1;
  }
  h1 {
    font-size: 2.8rem;
  }

  .stats {
    justify-content: space-between;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: rgba(7, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 4rem;
    gap: 2.5rem;
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-links.active {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .btn-large {
    width: 100%;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }
  h2 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-info {
    overflow-wrap: break-word;
    word-break: break-word; /* Ensure URLs or emails wrap */
  }

  .contact-info h2 {
    font-size: clamp(
      2rem,
      8vw,
      2.5rem
    ); /* Smaller min-size for super small devices */
  }

  .contact-link {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    width: 100%;
    justify-content: center;
  }

  .social-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-links p {
    width: 100%;
    text-align: center;
  }

  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    margin: 0.5rem;
  }

  .scroller-track {
    padding: 1rem 0.5rem 3rem 0.5rem;
  }

  .method-slide {
    padding: 2rem 1.5rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(7, 9, 19, 0.9);
  backdrop-filter: blur(10px);
  padding-top: 50px;
  animation: fadeInModal 0.4s ease-out;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  margin: auto;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  position: relative;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--text-muted);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-modal:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-body {
  margin-top: 2rem;
  text-align: left;
}

.modal-body h4 {
  margin: 1.5rem 0 0.5rem 0;
  color: var(--accent);
}

.modal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
