/* --- Global Theme --- */
body {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 18px;
  color: #eaeaea;
  background-color: #0e1525;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3 {
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

h4 {
  font-weight: 600;
  color: #00bfa6;
  margin-bottom: 1rem;
}

a {
  color: #00bfa6;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  background: rgba(10, 15, 25, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  font-size: 16px;
}
.navbar a {
  color: #ccc;
  font-weight: 500;
}
.navbar a:hover {
  color: #00bfa6;
}

/* Hero Section */
#home {
  background: linear-gradient(135deg, #0f1724 0%, #071429 100%);
  padding: 100px 20px;
  text-align: center;
}
#home h1 {
  font-size: 2.2em;
  margin-bottom: 1rem;
}

#home p {
  font-size: 1.2em;
  color: white;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* Light mode adjustment */
body.light #home p {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8),
               0 0 6px rgba(0, 0, 0, 0.1);
}


#home .btn-primary {
  background-color: #00bfa6;
  border-color: #00bfa6;
  color: #fff;
  font-size: 1.1em;
  padding: 10px 28px;
  border-radius: 6px;
}
#home .btn-primary:hover {
  background-color: #009f8b;
}

/* Section Layout */
.section {
  padding: 60px 0;
}
.section h2 {
  font-size: 2em;
  border-left: 4px solid #00bfa6;
  padding-left: 10px;
  margin-bottom: 1.5rem;
}

/* Cards */
.card {
  background: #151c2f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s;
  text-align: center;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.card .icon {
  font-size: 2em;
  margin-bottom: 10px;
}

/* Contact Form */
form input, form textarea {
  background: #121a2d;
  border: 1px solid rgba(255,255,255,0.1);
  color: #eaeaea;
  border-radius: 6px;
  margin-bottom: 12px;
}
form input:focus, form textarea:focus {
  border-color: #00bfa6;
  outline: none;
}
form button {
  background-color: #00bfa6;
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
}
form button:hover {
  background-color: #009f8b;
}

/* Footer */
.footer {
  background: #0c111f;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.light-note {
  color: #aaa;
}

/* --- Light Mode --- */
body.light {
  background: #fafafa;
  color: #222;
}
body.light .navbar { background: #ffffff; }
body.light h1, body.light h2, body.light h3 { color: #111; }
body.light a { color: #007bff; }
body.light .card { background: #ffffff; color: #222; }
body.light form input, body.light form textarea {
  background: #ffffff;
  color: #222;
  border: 1px solid #ccc;
}
body.light .footer {
  background: #f5f5f5;
  color: #444;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #00bfa6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.theme-toggle:hover {
  background: #009f8b;
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

body.light .theme-toggle {
  background: #007bff;
  color: #fff;
}
body.light .theme-toggle:hover {
  background: #0056b3;
}

body.dark .logo svg {
  color: #fff;
}
body.light .logo svg {
  color: #222;
}

.stats {
  padding: 60px 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.stat-item {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  width: 220px;
  transition: all 0.3s ease;
  text-align: center;
}

.stat-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.stat-item h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #00bfa6;
}

.stat-item p {
  color: #ccc;
  font-size: 15px;
}

/* Light mode overrides */
body.light .stat-item {
  background: #f8f9fa;
}
body.light .stat-item:hover {
  background: #e9ecef;
}
body.light .stat-item h3 {
  color: #007bff;
}
body.light .stat-item p {
  color: #333;
}

.solutions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.solution-card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  width: 300px;
  transition: all 0.3s ease;
}

.solution-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
}

.solution-card .icon {
  font-size: 40px;
}

.solution-card h4 {
  margin-bottom: 12px;
  color: #00bfa6;
}

.solution-card p {
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
}

/* Light mode overrides */
body.light .solution-card {
  background: #f8f9fa;
}
body.light .solution-card:hover {
  background: #e9ecef;
}
body.light .solution-card h4 {
  color: #007bff;
}
body.light .solution-card p {
  color: #333;
}

/* Section layout */
.howitworks-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Image styling */
.how-it-works-image {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Step cards */
.howitworks-steps {
  margin-top: 40px;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 25px;
  text-align: left;
  transition: all 0.3s ease;
}

.how-step:hover {
  background: rgba(0, 191, 166, 0.15);
  transform: translateY(-4px);
  border-color: rgba(0, 191, 166, 0.4);
  box-shadow: 0 0 15px rgba(0, 191, 166, 0.4);
}

/* Headings and text */
.how-step h4 {
  margin-bottom: 8px;
  color: #00bfa6;
  font-size: 1.2rem;
}

.how-step p {
  color: #ccc;
  line-height: 1.6;
  font-size: 1rem;
}

/* Light mode */
body.light .how-step {
  background: #f8f9fa;
  border-color: #ddd;
}
body.light .how-step:hover {
  background: #e9f7ff;
  border-color: #007bff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}
body.light .how-step h4 {
  color: #007bff;
}
body.light .how-step p {
  color: #333;
}

/* Enhanced zoom effect on image hover */
.how-it-works-image {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  cursor: pointer;
  transform-origin: center center;
}

.how-it-works-image:hover {
  transform: scale(1.15);
  box-shadow: 0 0 60px rgba(0, 191, 166, 0.6);
  z-index: 2;
}

body.light .how-it-works-image {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}
body.light .how-it-works-image:hover {
  box-shadow: 0 0 40px rgba(0, 123, 255, 0.4);
}

/* Contact Section */

#contact h2 {
  font-weight: 700;
  margin-bottom: 20px;
}

/* Contact Cards */
.contact-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body.light-mode .contact-card {
  background: linear-gradient(145deg, rgba(240,240,240,0.9), rgba(255,255,255,0.8));
  border: 1px solid rgba(200,200,200,0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 25px rgba(0,191,166,0.4);
  background: linear-gradient(145deg, rgba(0,191,166,0.15), rgba(0,191,166,0.05));
}

.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  height: 100%;
}

body.light-mode .contact-form-wrapper {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,240,240,0.9));
}

/* Inputs & Button */
.contact-form input,
.contact-form textarea {
  border-radius: 8px;
  box-shadow: none;
  background-color: rgba(0,0,0,0.2);
  color: #fff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background-color: rgba(255,255,255,0.9);
  color: #000;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00bfa6;
  box-shadow: 0 0 8px rgba(0,191,166,0.3);
}

.contact-form button {
  background-color: #00bfa6;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #009c8a;
}

/* Responsive fix */
@media (max-width: 767px) {
  .contact-card {
    margin-bottom: 20px;
  }
  .contact-form-wrapper {
    margin-top: 30px;
  }
}

/* Equal column height fix */
#contact .row {
  display: flex;
  align-items: stretch;
}

/* Ensure both sides stretch equally */
#contact .col-md-6 {
  display: flex;
  flex-direction: column;
}

/* Fix contact form height */
.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Contact Section Layout Fix */
#contact .contact-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
}

/* Equal height columns */
#contact .left-info,
#contact .right-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Each card fills evenly */
#contact .contact-card {
  background: var(--card-bg, rgba(255,255,255,0.05));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  flex: 1;
}

/* Ensure both sides stretch equally */
#contact .contact-card,
#contact .right-form .contact-card {
  height: 100%;
}

/* Responsive alignment */
@media (max-width: 768px) {
  #contact .contact-flex {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Left Info Cards */
#contact .left-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem; /* Added spacing between cards */
}

/* Increased message box height */
#contact textarea.form-control {
  min-height: 300px; /* Adjusted to visually balance left side */
  resize: none;
}

/* Container padding adjustment for smaller screens */
@media (max-width: 768px) {
  .container.section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}


/* Navbar link styles */
/* Navigation Links Styling */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links .nav-link {
  color: var(--nav-color, #ddd);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover effect with underline animation */
.nav-links .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #00bcd4; /* Accent color */
  transition: width 0.3s ease;
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  width: 100%;
}

.nav-links .nav-link:hover {
  color: #00bcd4;
}

/* Active section highlight */
.nav-links .nav-link.active {
  color: #00bcd4;
  font-weight: 600;
}

/* Dark Mode Support */
body.dark-mode .nav-links .nav-link {
  color: #ccc;
}

body.dark-mode .nav-links .nav-link:hover {
  color: #4dd0e1;
}

body.dark-mode .nav-links .nav-link::after {
  background-color: #4dd0e1;
}
body.dark-mode .nav-links .nav-link.active {
  color: #4dd0e1;
}

.nav-links a {
  position: relative;
  color: #bfc9d9;
  margin-right: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #00e6b8;
  transform: scale(1.05);
}

.nav-links a.active {
  color: #00ffc6;
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: #00ffc6;
  border-radius: 3px;
  box-shadow: 0 0 10px #00ffc6;
}
/* Dark mode adjustments */
body.dark-mode .nav-links a {
  color: #ccc;
} 

body.dark-mode .nav-links a:hover {
  color: #4dd0e1;
}

/* Light mode adjustments */
body.light-mode .nav-links a {
  color: #555;
} 
body.light-mode .nav-links a:hover {
  color: #007bff;
}
body.light-mode .nav-links a.active {
  color: #007bff;
}
body.light-mode .nav-links a.active::after {
  background-color: #007bff;            
  box-shadow: 0 0 10px #007bff;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
} 
/* End of Navigation Links Styling */

/* Footer light note */
.footer .light-note {
  color: #888;
  font-size: 0.9rem;
} 

/* Dark mode footer note */
body.dark-mode .footer .light-note {
  color: #aaa;
}   

/* Light mode footer note */
body.light-mode .footer .light-note {
  color: #666;
}

/* End of Footer light note */

/* Hero Section Styling */
.hero-section {
  background: linear-gradient(135deg, #0f1724 0%, #071429 100%);
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section h1 {
  color: #f8f9fa;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-section p {
  color: #cfd8e3;
  max-width: 700px;
  margin: 0 auto 20px auto;
  font-size: 1.2rem;
}

.hero-section .btn-primary {
  background-color: #007bff;
  border: none;
  transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
  background-color: #0056d2;
  transform: scale(1.05);
}

.hero-section h1, .hero-section p, .hero-section .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-section p { animation-delay: 0.3s; }
.hero-section .btn { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.light .hero-section {
  background: linear-gradient(135deg, #f9fafc 0%, #e8eef6 100%);
  color: #222;
}

body.light .hero-section p {
  color: #444;
}

body.light .hero-section .btn-primary {
  background-color: #0d6efd;
}
body.light .hero-section .btn-primary:hover {
  background-color: #0a58ca;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f1724 0%, #071429 100%);
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Animated Gradient Overlay */
.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 183, 255, 0.15), transparent 70%),
              radial-gradient(circle at 70% 50%, rgba(255, 0, 150, 0.15), transparent 70%);
  background-size: 200% 200%;
  animation: moveGradient 10s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

/* Subtle Gradient Animation */
@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Hero Content */
.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: #f8f9fa;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-section p {
  color: #cfd8e3;
  max-width: 700px;
  margin: 0 auto 20px auto;
  font-size: 1.2rem;
}

.hero-section .btn-primary {
  background-color: #007bff;
  border: none;
  transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
  background-color: #0056d2;
  transform: scale(1.05);
}

/* Fade-up animation */
.hero-section h1, .hero-section p, .hero-section .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-section p { animation-delay: 0.3s; }
.hero-section .btn { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light mode adaptation */
body.light .hero-section {
  background: linear-gradient(135deg, #f9fafc 0%, #e8eef6 100%);
  color: #222;
}

body.light .hero-section p {
  color: #444;
}

body.light .hero-section .overlay {
  background: radial-gradient(circle at 30% 50%, rgba(0, 136, 255, 0.1), transparent 70%),
              radial-gradient(circle at 70% 50%, rgba(255, 80, 150, 0.1), transparent 70%);
}

body.light .hero-section .btn-primary {
  background-color: #0d6efd;
}
body.light .hero-section .btn-primary:hover {
  background-color: #0a58ca;
}

/* Base Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f1724 0%, #071429 100%);
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Gradient Overlay */
.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 183, 255, 0.15), transparent 70%),
              radial-gradient(circle at 70% 50%, rgba(255, 0, 150, 0.15), transparent 70%);
  background-size: 200% 200%;
  animation: moveGradient 10s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Floating Particles */
.hero-section .particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-section .particles span {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: floatParticles 15s linear infinite;
}

/* Randomize particle positions & speeds */
.hero-section .particles span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; animation-duration: 12s; }
.hero-section .particles span:nth-child(2) { top: 40%; left: 70%; animation-delay: 2s; animation-duration: 18s; }
.hero-section .particles span:nth-child(3) { top: 80%; left: 30%; animation-delay: 4s; animation-duration: 14s; }
.hero-section .particles span:nth-child(4) { top: 20%; left: 50%; animation-delay: 6s; animation-duration: 16s; }
.hero-section .particles span:nth-child(5) { top: 60%; left: 10%; animation-delay: 1s; animation-duration: 13s; }
.hero-section .particles span:nth-child(6) { top: 75%; left: 80%; animation-delay: 3s; animation-duration: 17s; }
.hero-section .particles span:nth-child(7) { top: 50%; left: 40%; animation-delay: 5s; animation-duration: 20s; }
.hero-section .particles span:nth-child(8) { top: 30%; left: 90%; animation-delay: 7s; animation-duration: 15s; }
.hero-section .particles span:nth-child(9) { top: 90%; left: 60%; animation-delay: 9s; animation-duration: 19s; }
.hero-section .particles span:nth-child(10){ top: 15%; left: 75%; animation-delay: 11s; animation-duration: 21s; }

@keyframes floatParticles {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50px) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
}

/* Hero Content */
.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-section h1 {
  color: #f8f9fa;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-section p {
  color: #cfd8e3;
  max-width: 700px;
  margin: 0 auto 20px auto;
  font-size: 1.2rem;
}

.hero-section .btn-primary {
  background-color: #007bff;
  border: none;
  transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
  background-color: #0056d2;
  transform: scale(1.05);
}

/* Fade-in animation for content */
.hero-section h1, .hero-section p, .hero-section .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}
.hero-section p { animation-delay: 0.3s; }
.hero-section .btn { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Light Mode */
body.light .hero-section {
  background: linear-gradient(135deg, #f9fafc 0%, #e8eef6 100%);
  color: #222;
}

body.light .hero-section p { color: #444; }

body.light .hero-section .overlay {
  background: radial-gradient(circle at 30% 50%, rgba(0, 136, 255, 0.1), transparent 70%),
              radial-gradient(circle at 70% 50%, rgba(255, 80, 150, 0.1), transparent 70%);
}

body.light .hero-section .btn-primary { background-color: #0d6efd; }


/* End of Hero Section Styling */


/* --- HERO THEME STYLES --- */
#home {
  transition: background 0.5s ease, color 0.5s ease;
}

body:not(.light) #home {
  background: linear-gradient(135deg, #0f1724 0%, #071429 100%);
  color: #fff;
}

body.light #home {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3e9f0 100%);
  color: #111;
}

/* --- NAV LINKS --- */
.nav-links a {
  transition: color 0.3s ease, border-color 0.3s ease;
}

body:not(.light) .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

body:not(.light) .nav-links a.active {
  color: #00c6ff;
  border-bottom: 2px solid #00c6ff;
}

body.light .nav-links a {
  color: rgba(0, 0, 0, 0.7);
}

body.light .nav-links a.active {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

#home, .navbar { transition: background 0.6s ease, color 0.6s ease; }
/* --- END OF CUSTOM STYLES --- */

/* --- HERO SUBHEADLINE --- */
/* Hero Subtitle Styling */
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  margin: 20px auto 40px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.4s ease, transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(20px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Light mode – improve visibility */
body.light .hero-subtitle {
  color: hsla(265, 91%, 38%, 0.18);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6),
               0 0 6px rgba(196, 15, 15, 0.1);
}

/* Highlight emphasis */
.highlight {
  color: #2ec8ff;
  font-weight: 600;
}

body.light .highlight {
  color: #0056d2;
  text-shadow: none;
}

/* Smooth fade-in on load */
body.loaded .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}


/* Fade-in animation */
body.loaded .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}


body.light .hero-subtitle {
  color: rgba(0, 0, 0, 0.8);
}

/* --- END OF HERO SUBHEADLINE --- */

/* --- why-we-are-here SECTION --- */

#why {
  margin-top: 60px;
  background: linear-gradient(145deg, #0f1724 0%, #071429 100%);
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

body.light #why {
  background: linear-gradient(145deg, #f5f8ff 0%, #e8edf7 100%);
  color: #1a1a1a;
}

#why h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
}

#why h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #00b4ff;
  margin: 16px auto 0;
  border-radius: 4px;
}

#why h3 {
  color: #00b4ff;
  margin-bottom: 1rem;
}

#why p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}

body.light #why p strong {
  color: #0056b3;
}

.why-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .why-content {
    grid-template-columns: 1fr;
  }
}

/* ✨ Fade-up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- END OF why-we-are-here SECTION --- */

/* --- About Section --- */

#about {
  margin-top: 60px;
  background: linear-gradient(145deg, #0c1322 0%, #101d3a 100%);
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

body.light #about {
  background: linear-gradient(145deg, #f6f9ff 0%, #edf2fb 100%);
  color: #1a1a1a;
}

/* Headings */
#about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

#about h2 span {
  color: #00b4ff;
}

#about .intro {
  font-size: 1.15rem;
  text-align: center;
  max-width: 850px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* Subsections */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 3rem;
}

.about-text h3 {
  color: #00b4ff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Stats Section */
.stats {
  text-align: center;
}

.stats h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #00b4ff;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 160px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(0, 180, 255, 0.1);
  border-color: #00b4ff;
}

body.light .stat-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d0d7e2;
}

body.light .stat-item:hover {
  background: rgba(0, 180, 255, 0.1);
  border-color: #00b4ff;
}

/* Fade-up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* --- END OF About Section --- */

/* Section Divider Styling */
.section-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  height: 120px;
  color: #0c1322; /* Default color for wave */
  background: none;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Light Mode Adaptation */
body.light .section-divider {
  color: #f6f9ff;
}

.section-divider.reverse {
  transform: rotate(180deg);
  color: #101d3a;
}
body.light .section-divider.reverse {
  color: #edf2fb;
}

/* Social links - footer */
.site-footer {
  background: var(--footer-bg, #0d1220);
  color: #f8f9fb;
  padding: 3rem 0;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light .site-footer {
  background: #f2f4f8;
  color: #1b1b1b;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  max-width: 500px;
  font-size: 0.95rem;
  opacity: 0.8;
}

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

.social-links a {
  color: inherit;
  font-size: 1.6rem;
  transition: transform 0.2s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #4da3ff;
}
body.light .social-links a:hover {
  color: #007bff;
}


/* Fade-in upward animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Contact Section Alternate Styling */

.contact-alt {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  margin-top: 2rem;
  color: #e5e5e5;
  transition: color 0.3s ease, border-color 0.3s ease;
}

body.light .contact-alt {
  border-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

body.light .contact-alt a {
  color: #09e40b;
  text-decoration: none;
}

body.light .contact-alt a:hover {
  text-decoration: underline;
}

/* End of Contact Section Alternate Styling */

/* fade devider animation */
.fade-divider {
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
}
body.light .fade-divider {
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
}
/* End of fade devider animation */

/* email format */
.email-highlight {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.5rem; /* increased font size */
  text-decoration: none !important; /* remove underline */
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
}

.email-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.6);
  background: linear-gradient(135deg, #00c6ff, #007bff);
  text-decoration: none !important;
}

body.light .email-highlight {
  background: linear-gradient(135deg, #0066cc, #00a2ff);
  color: #b21054; /* force white for visibility in light mode */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light .email-highlight:hover {
  box-shadow: 0 8px 20px rgba(0, 162, 255, 0.3);
  text-decoration: none !important;
}


/* end of email format */

/* Result Box Styling - Start */

#result {
    margin-top: 15px;
    padding: 12px 16px;
    border-left: 4px solid transparent;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
    animation: fadeIn 0.25s ease;
}

#result.success {
    border-color: #28a745;
    color: #0f5132;
    background: #d1e7dd;
}

#result.error {
    border-color: #dc3545;
    color: #842029;
    background: #f8d7da;
}

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


/* Result Box Styling - End */

/* button padding fix */
button#sendBtn,
button#clearBtn {
    margin-top: 12px;
}

/* button padding fix end */

/* text remove options for all inputs */
.input-wrapper {
  position: relative;
  width: 100%;
}

.clear-icon {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-30%);
  cursor: pointer;
  color: #6c757d;
  display: none;
  padding: 3px;
  align-content: end;
}

.clear-icon:hover {
  color: #dc3545;
}

/* Applies only to <input> fields */
input.clearable-input {
  font-size: larger;
  padding-right: 0px !important;
}

/* Applies only to <textarea> */
textarea.clearable-input {
  padding-right: 0px !important;
  font-size: normal; /* keeps default Bootstrap size */
}

/* Override icon position for textarea (top right instead of centered) */
textarea + .clear-icon {
  top: 18px;               /* moves icon near top */
  transform: none;        /* remove centering */
}
/* text remove options for all inputs end */

/* Left info cards */
.left-info {
  min-width: 300px;
  max-width: 380px; /* stays smaller */
  flex: 1;
}

/* Right form (wider) */
.right-form {
  min-width: 360px;
  flex: 2; /* ✅ makes form column naturally wider than left */
  max-width: none;
  width: 100%;
}

/* Optional: If you want full stretch form on large screens */
@media (min-width: 1200px) {
  .right-form {
    max-width: 800px;
  }
}

