/*
 * Motion Corporation - Static Design System
 * Built with premium Vanilla CSS, custom HSL color systems, and modern visual patterns.
 */

/* Import Google Font Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Reset and Custom Scrollbar */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', sans-serif;
  color: var(--color-text-primary);
  background-color: #0f172a;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
  border: 2px solid #0f172a;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* --- Theme Variables --- */
:root {
  /* Colors */
  --color-bg-dark: #0f172a;
  --color-bg-light: #ffffff;
  --color-bg-alt: #f8fafc;
  
  --color-text-primary: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #f8fafc;
  
  /* Section Color Accents */
  --accent-main: #cf7a1d;       /* Warm Orange */
  --accent-main-glow: rgba(207, 122, 29, 0.15);
  
  --accent-possibilities: #1f4f9b;  /* Royal Blue */
  --accent-possibilities-glow: rgba(31, 79, 155, 0.12);
  
  --accent-service: #8a7b70;    /* Deepened sand/taupe for readability */
  --accent-service-glow: rgba(138, 123, 112, 0.15);
  
  /* Layout */
  --header-height: 80px;
  --max-content-width: 1100px;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  
  /* Shadows & Glass */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 40px -10px rgba(31, 79, 155, 0.15);
  
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ================= HEADER & NAVIGATION ================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

#header.scrolled {
  background-color: rgba(10, 16, 30, 0.85);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

.logo-link {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.9;
}

.logo-accent {
  color: var(--accent-main);
  background: linear-gradient(135deg, var(--accent-main), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-stripe-container {
  width: 100%;
  height: 2px;
  overflow: hidden;
  position: relative;
  margin-top: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.logo-stripe {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-main), transparent);
  position: absolute;
  left: -100%;
}

/* Navigation Links */
.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

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

.nav-link:hover {
  color: var(--color-text-light);
}

.nav-link.active {
  color: var(--color-text-light);
  font-weight: 600;
}

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

.nav-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-main), #d97706);
  color: var(--color-text-light);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(207, 122, 29, 0.3);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 122, 29, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-text-light);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #090d16;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 30px;
  text-align: center;
}

.mobile-link {
  color: #94a3b8;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: var(--color-text-light);
}

/* ================= PARALLAX DOT NAVIGATION ================= */
#parallax-nav {
  position: fixed;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.parallax-nav-item {
  width: 14px;
  height: 14px;
  position: relative;
  text-decoration: none;
  display: block;
}

.parallax-nav-item .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.parallax-nav-item:hover .dot {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.3);
}

.parallax-nav-item.active .dot {
  background-color: var(--color-text-light);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.dot-label {
  display: none;
}

/* Custom Tooltips for Navigation Dots */
.parallax-nav-item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: rgba(15, 23, 42, 0.95);
  color: var(--color-text-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.parallax-nav-item:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ================= PARALLAX LAYOUT SECTIONS ================= */
.parallax-section {
  position: relative;
  width: 100%;
}

/* Section Hero Panel (Parallax Image Layer) */
.section-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-text-light);
  padding: 0 20px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  color: #cbd5e1;
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards;
}

/* Animated Scroll Down Arrow */
.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards;
  transition: color 0.3s ease;
}

.scroll-arrow:hover {
  color: var(--color-text-light);
}

.arrow-icon {
  margin-top: 8px;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

/* ================= WHITE CONTENT CARDS ================= */
.section-content {
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  padding: 120px 20px;
  position: relative;
  z-index: 5;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.content-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 40px;
}

.brand-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

#main .brand-badge {
  color: var(--accent-main);
}

#stuff-to-do .brand-badge {
  color: var(--accent-possibilities);
}

#new-page-2 .brand-badge {
  color: var(--accent-service);
}

.section-heading {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 45px;
  line-height: 1.2;
}

.content-rich-text {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--color-text-muted);
}

.highlight-paragraph {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: 30px;
}

.content-rich-text p {
  margin-bottom: 25px;
}

/* Highlight Box (W3C proposed standard) */
.callout-box {
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--accent-main);
  padding: 25px 30px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin-top: 40px;
  box-shadow: var(--shadow-sm);
}

.callout-box p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-primary);
}

/* ================= SECTION 2 SPECIFICS: POSSIBILITIES GRID ================= */
.possibilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
  margin-bottom: 80px;
}

.grid-card {
  background-color: var(--color-bg-alt);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.grid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-possibilities);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-card:hover {
  transform: translateY(-8px);
  background-color: var(--color-bg-light);
  border-color: rgba(31, 79, 155, 0.1);
  box-shadow: var(--shadow-card-hover);
}

.grid-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 25px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.grid-card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text-primary);
}

.card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Nested section: Experience is King */
.nested-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 70px;
  margin-top: 60px;
}

.nested-heading {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 30px;
  text-align: center;
}

.nested-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto;
}

.nested-body p {
  margin-bottom: 25px;
}

.highlight-quote {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-possibilities);
  border-left: 3px solid var(--accent-possibilities);
  padding-left: 25px;
  margin: 40px 0;
  line-height: 1.7;
  font-style: italic;
}

.conclusion-text {
  text-align: center;
  font-size: 1.15rem;
  margin-top: 35px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* ================= SECTION 3 SPECIFICS: FREE SERVICE ================= */
.free-service-split {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.split-info {
  flex: 1.2;
}

.tier-features {
  list-style: none;
  margin: 30px 0;
}

.tier-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-service);
  font-weight: 700;
  font-size: 1.2rem;
}

.tier-features li strong {
  color: var(--color-text-primary);
}

.action-buttons {
  margin-top: 35px;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-text-primary);
  color: var(--color-text-light);
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  background-color: #1e293b;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Split Card Panel */
.split-card {
  flex: 0.8;
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-md);
  position: relative;
}

.split-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-service);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.contact-details h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text-primary);
}

.contact-details p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

.email-link {
  display: inline-block;
  color: var(--accent-service);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  margin-bottom: 35px;
  transition: all 0.3s ease;
}

.email-link:hover {
  border-color: var(--accent-service);
}

.vat-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Join the Revolution sub-section */
.join-revolution {
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  border: 1px dashed #cbd5e1;
}

.join-revolution .nested-heading {
  color: var(--color-text-primary);
}

.cta-revolution-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-top: 30px !important;
  background-color: var(--color-bg-light);
  padding: 25px;
  border-radius: var(--border-radius-md);
  border: 1px solid #e2e8f0;
}

.cta-revolution-text a {
  color: var(--accent-service);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s ease;
}

.cta-revolution-text a:hover {
  border-color: var(--accent-service);
}

/* ================= FOOTER SECTION ================= */
#footer {
  background-color: #090d16;
  color: var(--color-text-light);
  padding: 80px 20px 40px;
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  text-align: center;
  margin-bottom: 60px;
}

.back-to-top {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  color: var(--color-text-light);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.back-arrow {
  transition: transform 0.3s ease;
}

.back-to-top:hover .back-arrow {
  transform: translateY(-3px);
}

.footer-middle {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 50px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: #64748b;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  color: #cbd5e1;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links ul a:hover {
  color: var(--color-text-light);
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-icon {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.social-icon:hover {
  color: var(--color-text-light);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

/* ================= ANIMATIONS ================= */
@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* ================= RESPONSIVE LAYOUT MEDIA QUERIES ================= */

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-heading {
    font-size: 2.2rem;
  }
  
  .content-container {
    padding: 0 20px;
  }
  
  .footer-middle {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  /* Header Nav Toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar {
    display: none;
  }
  
  /* Sections */
  .section-hero {
    background-attachment: scroll; /* Parallax fixed-bg doesn't perform well on older mobile rendering engines */
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-content {
    padding: 80px 10px;
  }
  
  .possibilities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .free-service-split {
    flex-direction: column;
    gap: 40px;
  }
  
  .split-card {
    width: 100%;
  }
  
  .join-revolution {
    padding: 30px 20px;
  }
  
  #parallax-nav {
    display: none; /* Hide floating dots on small devices to declutter screen space */
  }
  
  .footer-middle {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

/* Hamburger animations */
.mobile-menu-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
