/* =================================================================
   TABLE OF CONTENTS
   -----------------------------------------------------------------
   1.  Root Variables & Global Styles
   2.  Layout & Helpers (Container, Sections)
   3.  Header & Navigation
   4.  Hero Section
   5.  Global Component Styles (Buttons, Cards)
   6.  Section: Customer Stories (Timeline)
   7.  Section: Team & Pricing
   8.  Section: Media (Resources)
   9.  Section: Contact
   10. Footer
   11. Specific Page Styles (About, Success, etc.)
   12. Animations & Effects
   13. Responsive Media Queries
================================================================= */

/* =================================================================
   1. Root Variables & Global Styles
================================================================= */
:root {
  /* Bright Color Palette */
  --color-primary: #00A9FF;
  --color-primary-dark: #008DDB;
  --color-secondary: #FF6B6B;
  --color-accent: #FFD700;
  --color-bg-light: #F8F9FA;
  --color-bg-dark: #1a1a2e;
  --color-text-light: #FFFFFF;
  --color-text-dark: #222222;
  --color-text-muted: #adb5bd;

  /* Glassmorphism Palette */
  --color-glass-bg: rgba(255, 255, 255, 0.05);
  --color-glass-border: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Sizing & Spacing */
  --header-height: 80px;
  --container-width: 1200px;
  --border-radius: 16px;
  --section-padding-y: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-light);
  line-height: 1.7;
  overflow-x: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460, #e94560);
  background-size: 400% 400%;
  animation: gradient-animation 20s ease infinite;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

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


/* =================================================================
   2. Layout & Helpers
================================================================= */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.section-padding {
  padding: var(--section-padding-y) 0;
}

.section-padding-dark {
  padding: var(--section-padding-y) 0;
  background-color: rgba(0, 0, 0, 0.15);
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}


/* =================================================================
   3. Header & Navigation
================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-text-light);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--color-text-light);
  border-radius: 2px;
}


/* =================================================================
   4. Hero Section
================================================================= */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  color: #FFFFFF;
}


/* =================================================================
   5. Global Component Styles (Buttons, Cards)
================================================================= */
/* --- Buttons --- */
.btn, button, input[type='submit'] {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 1rem;
  -webkit-appearance: none;
}

.btn-primary,
button[type='submit'] {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-light);
  box-shadow: 0 4px 15px rgba(0, 169, 255, 0.2);
}

.btn-primary:hover,
button[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 169, 255, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-block {
    width: 100%;
}

/* --- Cards --- */
.card, .glass-card {
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
}

.card {
    background-color: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover, .glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card .card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* =================================================================
   6. Section: Customer Stories (Timeline)
================================================================= */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-image: linear-gradient(var(--color-secondary), var(--color-primary));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -14px;
  background-color: var(--color-bg-dark);
  border: 4px solid var(--color-primary);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -12px; }

.timeline-content { text-align: left; }
.timeline-content .card-image {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}
.timeline-content .card-image img {
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.progress-bar-container { margin-top: 1rem; }
.progress-bar-container span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.progress-bar {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  overflow: hidden;
}
.progress {
  height: 20px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}


/* =================================================================
   7. Section: Team & Pricing
================================================================= */
.team-grid, .pricing-grid, .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}
.team-grid .card .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border: 4px solid var(--color-primary);
    object-fit: cover;
}

.card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.team-title { color: var(--color-text-muted); font-weight: 700; margin-bottom: 1rem; }

/* Pricing Card Specifics */
.pricing-card { border: 2px solid transparent; }
.pricing-card.featured {
    border-color: var(--color-primary);
    transform: scale(1.05);
    position: relative;
    z-index: 2;
}
.pricing-card.featured:hover { transform: scale(1.08) translateY(-8px); }
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}
.price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-accent);
    margin: 1rem 0;
}
.price span { font-size: 1rem; color: var(--color-text-muted); font-weight: 400; }
.features-list { list-style: none; margin: 1.5rem 0; text-align: left; flex-grow: 1; }
.features-list li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
.features-list li::before {
    content: '✔';
    color: var(--color-primary);
    position: absolute;
    left: 0;
}
.pricing-card .btn { margin-top: auto; }


/* =================================================================
   8. Section: Media (Resources)
================================================================= */
.resource-card {
    text-align: left;
    display: flex; /* For alignment */
}
.resource-card h3 a { color: var(--color-primary); }
.resource-card h3 a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.resource-card p { color: var(--color-text-muted); }


/* =================================================================
   9. Section: Contact
================================================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.contact-info h2 { text-align: left !important; text-shadow: none; }
.form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-glass-border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--color-text-muted); }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 169, 255, 0.3);
}


/* =================================================================
   10. Footer
================================================================= */
.site-footer {
    background-color: var(--color-bg-dark);
    padding: 5rem 0 2rem 0;
    color: var(--color-text-muted);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--color-text-light); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a { color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-primary); }
.social-links a { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; }


/* =================================================================
   11. Specific Page Styles
================================================================= */
.page-header-section {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
}
.page-title { font-size: clamp(2.5rem, 5vw, 4rem); color: #FFFFFF; }
.page-subtitle { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); }

.content-container {
    max-width: 800px;
    background-color: rgba(0,0,0,0.15);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--border-radius);
}
/* Padding top for privacy/terms to not overlap with header */
body[data-barba-namespace="privacy"] .section-padding,
body[data-barba-namespace="terms"] .section-padding {
    padding-top: calc(var(--section-padding-y) + var(--header-height));
}

.content-container h2 { color: var(--color-primary); margin-top: 2rem; margin-bottom: 1rem; font-size: 2rem; }
.content-container p { margin-bottom: 1.5rem; color: var(--color-text-muted); }
.content-container img { margin: 2rem 0; border-radius: var(--border-radius); }

/* Success Page Centering */
body[data-barba-namespace="success"] { display: flex; flex-direction: column; min-height: 100vh; }
body[data-barba-namespace="success"] main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-container { max-width: 600px; text-align: center; }
.success-container img { margin: 0 auto 2rem auto; }


/* =================================================================
   12. Animations & Effects
================================================================= */
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =================================================================
   13. Responsive Media Queries
================================================================= */
@media (max-width: 992px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding-y: 4rem; }
  .section-title { font-size: 2.2rem; }

  /* Mobile Nav */
  .hamburger { display: block; z-index: 1001; }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--color-bg-dark);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    gap: 2rem;
  }
  .nav-menu.active { left: 0; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  /* Timeline Mobile */
  .timeline::after { left: 30px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item:nth-child(even) { left: 0; }
  .timeline-item::after { left: 18px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links a { display: inline-block; margin: 0 10px; }
}