/* -------------------------------------------------
   Root & Theme Variables
------------------------------------------------- */
:root {
  /* Colors */
  --primary: #00c896;
  --primary-dark: #009f77;
  --secondary: #ff6b6b;
  --secondary-dark: #e45656;
  --accent: #ffd93b;
  --accent-dark: #e1be29;
  --bg: #f0f4f8;
  --surface: #e8ecf1;
  --text-dark: #222222;
  --text-light: #ffffff;
  --gradient-dark: linear-gradient(145deg, #c5cad1, #ffffff);
  --gradient-bright: linear-gradient(145deg, #00d8a6, #1be7ff);

  /* Neomorphism */
  --shadow-light: rgba(255, 255, 255, 0.7);
  --shadow-dark: rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-heading: "Oswald", "Cairo", sans-serif;
  --font-body: "Nunito", "Cairo", sans-serif;

  /* Other */
  --radius: 20px;
  --transition-fast: 0.25s ease-out;
  --transition-slow: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Elastic */
}

.header-inner {
  padding: 0 10px !important;
}

ul {
  list-style: none;
}

/* -------------------------------------------------
   Base & Utility
------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.7;
  background: var(--bg);
  color: var(--text-dark);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover,
a:focus {
  color: var(--secondary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.is-two-thirds {
  width: 66.666%;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------
   Layout Sections
------------------------------------------------- */
.neo-section {
  padding: 4rem 0;
  background: var(--bg);
}
.neo-section.alt-bg {
  background: var(--surface);
}

/* Hero */
#hero {
  position: relative;
  color: var(--text-light);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  text-align: center;
  padding: 6rem 0 8rem;
}
#hero .container {
  position: relative;
  z-index: 2;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------
   Header & Navigation
------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg);
  box-shadow: -6px -6px 12px var(--shadow-light),
    6px 6px 12px var(--shadow-dark);
  z-index: 500;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}
.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}
.main-nav ul,
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  font-weight: 700;
}
#burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
#burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  padding: 1rem 5%;
  box-shadow: -6px -6px 12px var(--shadow-light),
    6px 6px 12px var(--shadow-dark);
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  #burger {
    display: flex;
  }
  .mobile-nav.show {
    display: flex;
  }
}

/* -------------------------------------------------
   Cards
------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: -8px -8px 16px var(--shadow-light),
    8px 8px 16px var(--shadow-dark);
  transition: transform var(--transition-slow);
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
}
.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}
.card-content h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------
   Buttons & Links
------------------------------------------------- */
.btn,
button,
input[type="submit"],
.cta-btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  background: var(--primary);
  color: var(--text-light);
  border: none;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background var(--transition-fast),
    transform var(--transition-slow);
  box-shadow: -6px -6px 12px var(--shadow-light),
    6px 6px 12px var(--shadow-dark);
}
.btn:hover,
button:hover,
.cta-btn:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  animation: elastic 0.8s ease-in-out;
}
@keyframes elastic {
  0% {
    transform: scale(0.95);
  }
  40% {
    transform: scale(1.05);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

/* Read More Links */
.read-more {
  font-weight: 700;
  color: var(--secondary);
  position: relative;
}
.read-more::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  right: 0;
  background: var(--secondary);
  transition: width var(--transition-fast);
}
.read-more:hover::after {
  width: 100%;
}

/* -------------------------------------------------
   Forms
------------------------------------------------- */
form label {
  display: block;
  margin: 0 0 0.5rem;
  font-weight: 700;
}
form input,
form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #d0d7de;
  margin-bottom: 1.25rem;
  background: var(--surface);
  box-shadow: inset -4px -4px 8px var(--shadow-light),
    inset 4px 4px 8px var(--shadow-dark);
  transition: box-shadow var(--transition-fast);
}
form input:focus,
form textarea:focus {
  outline: none;
  box-shadow: inset -4px -4px 8px var(--shadow-light),
    inset 4px 4px 8px var(--primary-dark);
}

/* -------------------------------------------------
   Slider / Customer Stories
------------------------------------------------- */
.slider {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding-bottom: 1rem;
}

@media (min-width: 1200px) {
  .slider {
    flex-direction: row;
  }
}

.slide {
  min-width: 300px;
  scroll-snap-align: center;
}

/* -------------------------------------------------
   Modal
------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
}
.modal-content {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: -8px -8px 16px var(--shadow-light),
    8px 8px 16px var(--shadow-dark);
}
.close-modal {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.footer {
  background: var(--gradient-dark);
  color: var(--text-dark);
  padding: 3rem 0 2rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  font-weight: 700;
}
.social-links {
  text-align: center;
  margin-bottom: 1rem;
}
.social-links a {
  font-weight: 700;
  color: var(--accent-dark);
}
.social-links a:hover {
  color: var(--secondary);
}
.footer-contact {
  text-align: center;
  margin-bottom: 1rem;
}
footer p {
  text-align: center;
  font-size: 0.875rem;
}

/* -------------------------------------------------
   Parallax Utility
------------------------------------------------- */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* -------------------------------------------------
   Success Page
------------------------------------------------- */
body.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body.success-page h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* -------------------------------------------------
   Privacy & Terms Pages
------------------------------------------------- */
body.privacy-page,
body.terms-page {
  padding-top: 100px;
}

/* -------------------------------------------------
   Animations
------------------------------------------------- */
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------
   Media Queries
------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
