/* =========================================================
   CYBER DRIFT - VINTAGE RETRO STYLE CSS
   Brand: Cyber Drift
   Style: Vintage Retro (retro colors, vintage fonts, nostalgic elements, classic patterns)
   Layout: FLEXBOX ONLY (NO GRID/COLUMNS)
   ========================================================= */

/* =====================
   FONT IMPORTS
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Montserrat:wght@400;700&family=Pacifico&display=swap');

:root {
  /* Brand Colors */
  --primary: #14213D;
  --secondary: #FCA311;
  --accent: #E5E5E5;
  /* Vintage Retro Palette */
  --retro-bg: #FFF8F0;
  --retro-card: #F5E6C8;
  --retro-brown: #7C5E3C;
  --retro-red: #D7263D;
  --retro-green: #3A9679;
  --retro-blue: #3B5D76;
  --retro-yellow: #F9C846;
  --retro-orange: #FCA311;
  --retro-shadow: rgba(124, 94, 60, 0.12);
  /* Typography */
  --font-display: 'Orbitron', 'Pacifico', cursive;
  --font-body: 'Montserrat', Arial, sans-serif;
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --section-px: 20px;
  --card-gap: 24px;
  --card-mb: 20px;
  --flex-gap: 20px;
  --testimonial-gap: 20px;
  --feature-gap: 15px;
  /* Border radius */
  --radius: 14px;
  --radius-lg: 24px;
  /* Shadows */
  --shadow: 0 4px 24px var(--retro-shadow);
  --shadow-card: 0 2px 8px var(--retro-shadow);
  /* Transitions */
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* =====================
   RESET & BASE
   ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  background: var(--retro-bg);
}
body {
  font-family: var(--font-body);
  background: var(--retro-bg);
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--retro-red);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--retro-brown);
  text-decoration: underline;
}

/* =====================
   CONTAINER & LAYOUT
   ===================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  background: var(--retro-yellow);
  border-bottom: 4px solid var(--retro-brown);
  box-shadow: 0 2px 8px var(--retro-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 18px 0;
}
.logo img {
  height: 48px;
  width: auto;
  filter: sepia(0.3) contrast(1.1) brightness(0.95);
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--retro-red);
  transition: width 0.2s;
  margin-top: 2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-red);
}

.btn {
  font-family: var(--font-display);
  font-size: 1.08rem;
  background: var(--retro-brown);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  margin-left: 18px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: linear-gradient(90deg, var(--retro-orange) 60%, var(--retro-yellow) 100%);
  color: var(--primary);
  font-weight: bold;
  border: 2px solid var(--retro-brown);
  box-shadow: 0 4px 16px var(--retro-shadow);
}
.btn:hover, .btn:focus {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 0 6px 24px var(--retro-shadow);
  transform: translateY(-2px) scale(1.03);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--retro-red) 60%, var(--retro-orange) 100%);
  color: #fff;
}

/* =====================
   MOBILE NAVIGATION
   ===================== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-brown);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 12px;
  z-index: 30;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-red);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-yellow) 70%, var(--retro-orange) 100%);
  box-shadow: 0 8px 32px var(--retro-shadow);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,0,.3,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-brown);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 48px 0 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  border-bottom: 2px solid var(--retro-red);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
  .btn {
    padding: 10px 22px;
    font-size: 1rem;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* =====================
   SECTIONS & FLEX LAYOUTS
   ===================== */
section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: none;
  position: relative;
}
section:nth-child(even) {
  background: var(--retro-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flex-gap);
  justify-content: space-between;
  margin-top: 18px;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-yellow);
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-3px) scale(1.03);
  border-color: var(--retro-red);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}
.card {
  background: var(--retro-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--card-mb);
  padding: 24px 18px;
  position: relative;
  flex: 1 1 300px;
  min-width: 220px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-2px) scale(1.02);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flex-gap);
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > div {
  flex: 1 1 320px;
  min-width: 220px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--testimonial-gap);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 20px;
  border-left: 6px solid var(--retro-red);
  font-size: 1.08rem;
  color: var(--primary);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-left: 6px solid var(--retro-brown);
}
.testimonial-card p {
  font-style: italic;
  font-family: var(--font-body);
  color: var(--primary);
}
.testimonial-card span {
  font-family: var(--font-display);
  color: var(--retro-brown);
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--feature-gap);
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--retro-brown);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-shadow: 0 1px 0 #fff8f0, 0 2px 8px var(--retro-shadow);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-family: var(--font-body);
  color: var(--primary);
  margin-bottom: 8px;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 12px;
}
li {
  margin-bottom: 6px;
}
strong {
  color: var(--retro-red);
  font-weight: bold;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--retro-brown);
  color: #fff;
  padding: 40px 0 24px 0;
  border-top: 6px double var(--retro-yellow);
  font-size: 1rem;
}
footer .container {
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-red);
}
.contact-footer {
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--font-body);
}
.contact-footer a {
  color: var(--retro-yellow);
  text-decoration: underline;
}
footer p {
  color: #fff;
  opacity: 0.85;
  font-size: 0.98rem;
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 -2px 16px var(--retro-shadow);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 200;
  font-family: var(--font-body);
  animation: cookie-slide-in 0.6s cubic-bezier(.7,0,.3,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--retro-brown);
  background: #fff;
  color: var(--retro-brown);
  padding: 8px 22px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: #fff;
  border-color: var(--retro-green);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
  border-color: var(--retro-red);
}
.cookie-btn.settings {
  background: var(--retro-yellow);
  color: var(--primary);
  border-color: var(--retro-brown);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.95) contrast(1.1);
  transform: translateY(-2px) scale(1.04);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,33,61,0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-pop 0.4s cubic-bezier(.7,0,.3,1);
}
@keyframes modal-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--retro-brown);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--retro-yellow);
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid var(--retro-brown);
}
.cookie-toggle:checked {
  background: var(--retro-green);
  border-color: var(--retro-green);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 4px var(--retro-shadow);
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal .cookie-actions {
  justify-content: flex-end;
  gap: 14px;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1024px) {
  .feature-grid > div, .card {
    min-width: 180px;
    padding: 20px 12px;
  }
  .testimonial-card {
    padding: 16px 12px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .content-grid {
    gap: 14px;
  }
  .feature-grid > div, .card {
    min-width: 140px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    padding: 18px 10px;
  }
  .testimonial-card {
    padding: 14px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 8px 12px 0;
  }
  .logo img {
    height: 38px;
  }
  .footer-nav {
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 18px 6px 14px 6px;
    min-width: 0;
    width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .btn, .btn-primary {
    font-size: 0.98rem;
    padding: 8px 12px;
  }
  .cookie-banner {
    padding: 14px 4px 10px 4px;
    font-size: 0.98rem;
  }
}

/* =====================
   VINTAGE RETRO DECORATIVE ELEMENTS
   ===================== */
section {
  position: relative;
  overflow: visible;
}
section::before {
  content: '';
  display: block;
  position: absolute;
  left: -32px; top: -32px;
  width: 64px; height: 64px;
  background: repeating-linear-gradient(135deg, var(--retro-yellow), var(--retro-yellow) 8px, var(--retro-orange) 8px, var(--retro-orange) 16px);
  opacity: 0.08;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
section:nth-child(even)::after {
  content: '';
  display: block;
  position: absolute;
  right: -32px; bottom: -32px;
  width: 64px; height: 64px;
  background: repeating-linear-gradient(45deg, var(--retro-red), var(--retro-red) 8px, var(--retro-yellow) 8px, var(--retro-yellow) 16px);
  opacity: 0.08;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* =====================
   MICRO-INTERACTIONS
   ===================== */
.feature-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.btn, .btn-primary, .cookie-btn {
  transition: var(--transition);
}
.main-nav a, .footer-nav a, .mobile-nav a {
  transition: color 0.18s, border-bottom 0.18s;
}

/* =====================
   ACCESSIBILITY
   ===================== */
:focus {
  outline: 2px dashed var(--retro-red);
  outline-offset: 2px;
}

/* =====================
   MISC
   ===================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-card);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-yellow);
  border-radius: 8px;
}

/* =====================
   END OF CSS
   ===================== */
