/*
Variant 2 Settings:
Theme: dark
Colors: #8E44AD (Primary), #3498DB (Secondary), #E74C3C (Accent/Highlight), #ECF0F1 (Light)
Font-Heading: Merriweather
Font-Text: Lato
*/

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Lato:wght@400;700&display=swap');

:root {
  /* Variant 2: Dark Theme (Purple/Blue/Red) */
  --primary-color: #8E44AD;
  --secondary-color: #3498DB;
  --accent-color: #E74C3C;
  --light-color: #ECF0F1;
  --dark-color: #2C3E50;
  --gradient-primary: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  --hover-color: #7D3C98;
  --background-color: #2C3E50; /* Dark Background */
  --text-color: #ECF0F1; /* Light Text */
  --border-color: rgba(142, 68, 173, 0.3);
  --divider-color: rgba(236, 240, 241, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3); /* Dark shadow for dark mode */
  --highlight-color: #E74C3C;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Lato', sans-serif;
}

/* --- Global Styles --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  color: var(--light-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

a {
  color: var(--secondary-color); /* Using secondary blue for links on dark bg */
  transition: color 0.3s ease;
}

a:hover {
  color: #5DADE2; /* Lighter blue */
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section {
  padding-top: 10dvh;
  padding-bottom: 10dvh;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--divider-color);
}

/* Neuromorphism (Dark Mode) */
.neu-element {
  background-color: var(--background-color);
  border-radius: 20px;
  box-shadow: 
    8px 8px 16px rgba(0,0,0,0.3), /* Darker shadow */
    -8px -8px 16px rgba(255,255,255,0.05); /* Light edge */
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.neu-element-inset {
  background-color: var(--background-color);
  border-radius: 12px;
  box-shadow: 
    inset 6px 6px 12px rgba(0,0,0,0.3),
    inset -6px -6px 12px rgba(255,255,255,0.05);
}

.neu-element:hover {
  transform: translateY(-5px);
  box-shadow: 
    12px 12px 24px rgba(0,0,0,0.4),
    -12px -12px 24px rgba(255,255,255,0.05);
}

.neu-button {
  display: inline-block;
  font-family: var(--main-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 
    4px 4px 10px rgba(0,0,0,0.3),
    -4px -4px 10px rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.neu-button:hover {
  color: #ffffff;
  text-decoration: none;
  background: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 
    8px 8px 16px rgba(0,0,0,0.4),
    -8px -8px 16px rgba(255,255,255,0.05);
}

/* --- Header & Navigation (CSS Hamburger) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--divider-color);
}

header .logo img {
  max-height: 40px;
}

footer img[alt="logo"], 
header img[alt="logo"] {
  filter: brightness(0) invert(1);
}

.navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation li {
  margin-left: 1.5rem;
}

.navigation a {
  color: var(--light-color);
  text-decoration: none;
  font-family: var(--main-font);
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.navigation a:hover {
  color: var(--highlight-color);
  border-bottom-color: var(--highlight-color);
  text-decoration: none;
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  user-select: none;
  z-index: 1002;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--light-color);
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--light-color);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

#menu-checkbox {
  display: none;
}

@media (max-width: 768px) {
  header {
    justify-content: center;
    position: relative;
  }

  header .logo {
    z-index: 1001;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    border-bottom: 1px solid var(--divider-color);
  }

  .navigation ul {
    flex-direction: column;
    padding: 1rem;
    align-items: center;
  }

  .navigation li {
    margin: 0.5rem 0;
  }

  #menu-checkbox:checked ~ .navigation {
    max-height: 500px; /* Show menu */
  }

  #menu-checkbox:checked + .menu-toggle .hamburger {
    background: transparent;
  }

  #menu-checkbox:checked + .menu-toggle .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  #menu-checkbox:checked + .menu-toggle .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
}

/* --- Hero Section --- */
.hero {
  height: 65vh; /* Randomized */
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero .container {
  max-width: 800px;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.hero h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* --- Content Sections --- */
.content-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.content-section img {
  border-radius: 15px;
  box-shadow: 
    8px 8px 16px rgba(0,0,0,0.3),
    -8px -8px 16px rgba(255,255,255,0.05);
}

/* --- Section Divider --- */
.section-divider {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  border-bottom: none;
}

.section-divider-line {
  width: 100px;
  height: 2px;
  background-color: var(--divider-color);
  margin: 0 auto 1.5rem;
}

.section-divider h2 {
  font-size: 1.5rem;
  color: var(--light-color);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- CTA Sections --- */
.cta-section {
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  padding-top: 15dvh;
  padding-bottom: 15dvh;
}

.cta-section h2 {
  color: #ffffff;
  font-size: 2.5rem;
}

.cta-section p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 1rem auto 0;
}

/* --- Features Section (Timeline) --- */
#features {
  background-color: #263849; /* Slightly lighter dark */
}
.features-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.features-timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--divider-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--background-color);
  border: 4px solid var(--primary-color);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left::after {
  right: -10px;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 
    6px 6px 12px rgba(0,0,0,0.3),
    -6px -6px 12px rgba(255,255,255,0.05);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.03);
  border-left: 3px solid var(--primary-color);
}

.timeline-content i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .features-timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 10px;
    left: 0 !important;
  }
  .timeline-item::after {
    left: 10px;
  }
}

/* --- Testimonials Section --- */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}
.testimonial-card {
  background-color: #34495E; /* Slightly lighter dark */
  border: 1px solid var(--divider-color);
  border-left: 5px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-card h4 {
  color: var(--secondary-color);
  font-family: var(--alt-font);
  font-weight: 700;
}

/* --- Form & Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.contact-info i {
  color: var(--secondary-color);
  width: 25px;
  text-align: center;
  margin-right: 0.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-family: var(--main-font);
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--light-color);
}

.contact-form .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--divider-color);
  font-family: var(--alt-font);
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--background-color);
  border-radius: 12px;
  box-shadow: 
    inset 6px 6px 12px rgba(0,0,0,0.3),
    inset -6px -6px 12px rgba(255,255,255,0.05);
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ Section --- */
#faq {
  background-color: #263849; /* Slightly lighter dark */
}
.faq-item {
  background: var(--background-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 
    6px 6px 12px rgba(0,0,0,0.3),
    -6px -6px 12px rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-left: 3px solid var(--primary-color);
}
.faq-item h3 {
  color: var(--secondary-color);
  font-size: 1.25rem;
}
.faq-item p {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--divider-color);
  margin-top: 1rem;
  opacity: 0.9;
}

/* --- Footer --- */
footer {
  background-color: #1F2C3A; /* Even darker */
  color: var(--light-color);
  padding: 2.5rem 0;
  border-top: 5px solid var(--primary-color);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .logo img {
  max-height: 35px;
}

footer nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

footer nav li {
  margin-left: 1.5rem;
}

footer nav a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}

footer nav a:hover {
  color: var(--highlight-color);
  text-decoration: underline;
  opacity: 1;
}

footer .footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider-color);
  font-size: 0.85rem;
  opacity: 0.7;
}

footer .footer-bottom a {
  color: var(--light-color);
  font-weight: 700;
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    text-align: center;
  }
  footer .logo {
    margin-bottom: 1.5rem;
  }
  footer nav ul {
    flex-direction: column;
    align-items: center;
  }
  footer nav li {
    margin: 0.25rem 0;
    margin-left: 0;
  }
}