:root {
  /* Primary Colors */
  --primary: #ff7d05; /* Vibrant Orange */
  --primary-foreground: #ffffff;
  --secondary: #2ec4b6; /* Bright Cyan */
  --secondary-foreground: #ffffff;
  --accent: #ffbf69; /* Soft Yellow/Orange */
  --accent-foreground: #333333;

  /* Backgrounds & Text */
  --background: #ffffff;
  --foreground: #2d3748;
  --muted: #f7fafc;
  --muted-foreground: #718096;
  --border: #e2e8f0;

  /* Additional Variables from bottom block (merged) */
  --input: #edf2f7;
  --success: #e6fff2;
  --success-foreground: #0b7a52;
  --destructive: #ff4d4f;
  --destructive-foreground: #ffffff;
  --warning: #fff3d6;
  --warning-foreground: #7a4b00;
  --card: #ffffff;
  --card-foreground: #2e2e2e;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 50px;

  /* Typography */
  --font-body: "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-body: var(--font-body);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  padding-top: 40px; /* Compensate for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  color: #1a202c;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px 0 rgba(255, 125, 5, 0.39);
}

.btn-primary:hover {
  background-color: #ff8e25;
  box-shadow: 0 6px 20px rgba(255, 125, 5, 0.23);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 4px 14px 0 rgba(46, 196, 182, 0.39);
}

.btn-secondary:hover {
  background-color: #3adacb;
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.23);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--foreground);
  background-color: var(--foreground);
  color: white;
}

/* Shine Effect Configuration */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.section-spacing {
  padding: 80px 0;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed; /* Make navbar fixed */
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Add subtle shadow for separation */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.navbar .btn {
  padding: 10px 24px;
  font-size: 15px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-links {
  display: flex;
  gap: 40px;
  font-weight: 600;
  color: #4a5568;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
}

/* Footer */
.footer {
  background: #e6fffa;
  padding: 80px 0 40px;
  color: #2d3748;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand p {
  margin-top: 0;
  color: #4a5568;
  line-height: 1.6;
}

.footer-nav-group {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: #1a202c;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #4a5568;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 16px;
  padding-top: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
  background: var(--secondary);
  color: white;
}

.footer-copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 32px;
  text-align: center;
  color: #718096;
  font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE TO 4K
   ============================================ */

/* 4K and Ultra-Wide Screens (3840px+) */
@media (min-width: 3840px) {
  .container {
    max-width: 2400px;
  }

  h1 {
    font-size: 80px;
  }

  h2 {
    font-size: 60px;
  }

  h3 {
    font-size: 40px;
  }

  p {
    font-size: 24px;
  }
}

/* Large Desktop (1920px - 3839px) */
@media (min-width: 1920px) and (max-width: 3839px) {
  .container {
    max-width: 1600px;
  }
}

/* Standard Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .container {
    max-width: 1280px;
  }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container {
    max-width: 960px;
    padding: 0 20px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .navbar {
    height: 70px;
  }

  .nav-links {
    display: none;
  }

  .navbar .btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile Landscape & Small Tablet (640px - 767px) */
@media (max-width: 767px) {
  html,
  body {
    padding-top: 10px !important;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 15px;
  }

  .navbar {
    height: 64px;
  }

  .navbar .btn {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer {
    padding: 60px 0 32px;
  }
}

/* Mobile Portrait (320px - 639px) */
@media (max-width: 639px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 16px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
  }

  .logo {
    font-size: 18px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .navbar {
    height: 60px;
  }

  .section-spacing {
    padding: 60px 0;
  }
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 8px;
  margin-left: auto;
  z-index: 1001;
}

/* Enforce consistent size for hamburger icon */
.mobile-toggle iconify-icon {
  font-size: 32px !important;
}

.close-menu {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 8px;
}

/* Enforce consistent size for close icon */
.close-menu iconify-icon {
  font-size: 32px !important;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  text-align: left;
}

.mobile-nav-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: var(--foreground);
  text-decoration: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 40px;
  padding: 16px;
  font-size: 16px;
}

/* Logo Image Styles */
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 1023px) {
  html,
  body {
    padding-top: 10px !important;
  }

  .mobile-toggle {
    display: block;
  }

  /* Hide navbar links on tablet/mobile */
  .nav-links {
    display: none;
  }

  /* Hide the desktop CTA button on tablet/mobile to prevent overlap */
  .navbar .btn {
    display: none;
  }

  /* Tablet Footer Layout */
  .footer-grid {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav-group {
    width: 100%;
    justify-content: flex-start;
    gap: 60px;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .logo-img {
    height: 48px; /* Slightly smaller on mobile */
  }

  .footer-grid {
    gap: 48px;
  }

  .footer-nav-group {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-brand p {
    margin: 16px auto 0;
  }

  /* Center social links */
  .footer-brand .social-links {
    justify-content: center;
    margin-top: 24px;
  }

  .footer-col h4 {
    margin-bottom: 24px;
  }

  .footer-links {
    align-items: center;
  }
}

.disabled-link {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Keyframes */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes waveFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Utility Classes for JS Observer */
.animate-on-scroll {
  opacity: 0; /* Hidden initially */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

/* When visible, animation triggers */
.animate-visible {
  opacity: 1;
}

.animate-visible[data-animate="left"] {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-visible[data-animate="right"] {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-visible[data-animate="up"] {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Wave Animation */
.header-wave path {
  animation: waveFlow 20s linear infinite;
}

/* Blob Animation */
.hero-blob,
.blob-decoration,
.cta-bg-shape,
.newsletter-bg-circle,
.newsletter-bg-circle-2,
.decoration-circle {
  animation: float 6s ease-in-out infinite;
}
