/* ==========================================================================
   Zibuke Africa ENHANCED Stylesheet
   Luxury Tech Aesthetics with Strict 3-Color Palette
   Colors: #000000 (Black), #ffffff (White), #cfff04 (Electric Lime)
   
   IMPORTANT: This file enhances the base styles.css
   Import Google Fonts for premium typography
   ========================================================================== */

/* ==========================================================================
   1. TYPOGRAPHY UPGRADE (Luxury Tech Aesthetics)
   ========================================================================== */

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

:root {
  /* Color Palette - NEVER VIOLATED */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-lime: #cfff04;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography */
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings - Luxury Tech Style */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
}

h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Lead Paragraph */
.lead {
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Eyebrow Labels - Premium Badge Style */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 8px 18px;
  border: 1.5px solid var(--color-lime);
  color: var(--color-lime);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.eyebrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-lime);
  transition: left var(--transition-medium);
  z-index: -1;
}

.eyebrow:hover {
  color: var(--color-black);
}

.eyebrow:hover::before {
  left: 0;
}

/* ==========================================================================
   2. HIGH-CONTRAST CARDS (Neo-Brutalist / Luxury Borders)
   ========================================================================== */

/* Base Card Styling */
.card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

/* Dark Cards (Black Sections) */
.section-black .card {
  background-color: var(--color-black);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-black .card:hover {
  border-color: var(--color-lime);
  box-shadow: 4px 4px 0px var(--color-lime);
  transform: translateY(-4px);
}

.section-black .card h3 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.section-black .card p {
  color: rgba(255, 255, 255, 0.85);
}

/* White Cards (White Sections) */
.section-white .card {
  background-color: var(--color-white);
  border-color: var(--color-black);
  border-width: 1px;
}

.section-white .card:hover {
  box-shadow: 4px 4px 0px var(--color-black);
  transform: translateY(-4px);
}

.section-white .card h3 {
  color: var(--color-black);
  margin-bottom: 12px;
}

.section-white .card p {
  color: rgba(0, 0, 0, 0.8);
}

/* Lime Cards (Lime Sections) */
.section-lime .card {
  background-color: var(--color-lime);
  border-color: var(--color-black);
}

.section-lime .card:hover {
  box-shadow: 4px 4px 0px var(--color-black);
  transform: translateY(-4px);
}

/* Featured Card with Lime Border */
.card-featured {
  border: 2px solid var(--color-lime) !important;
}

.section-white .card-featured {
  border-color: var(--color-lime) !important;
}

/* Card Grid - Bento Style */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* ==========================================================================
   3. INTERACTIVE BUTTONS & BADGE MICRO-ANIMATIONS
   ========================================================================== */

/* Primary Button (Lime Background, Black Text) */
.btn-primary,
.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: var(--color-lime);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--color-lime);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-black);
  transition: left var(--transition-medium);
  z-index: 0;
}

.btn-primary:hover {
  color: var(--color-lime);
  border-color: var(--color-lime);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(207, 255, 4, 0.3);
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary span,
.btn-primary a {
  position: relative;
  z-index: 1;
}

/* Secondary Button (Outline Style) */
.btn-secondary,
.btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: transparent;
  color: var(--color-lime);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--color-lime);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--color-lime);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(207, 255, 4, 0.3);
}

/* Black Button (for Lime Sections) */
.btn-black,
.btn.btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background-color: var(--color-black);
  color: var(--color-lime);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--color-black);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-black:hover {
  background-color: transparent;
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CTA Button in Navigation */
.nav-cta {
  background-color: var(--color-lime) !important;
  color: var(--color-black) !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  background-color: var(--color-black) !important;
  color: var(--color-lime) !important;
  box-shadow: 0 0 0 2px var(--color-lime);
  transform: translateY(-1px);
}

/* Badge / Eyebrow Hover Animation */
.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid var(--color-lime);
  color: var(--color-lime);
  transition: all var(--transition-fast);
  cursor: default;
}

.badge:hover {
  background-color: var(--color-lime);
  color: var(--color-black);
  transform: scale(1.05);
}

/* Step Number Badge */
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-lime);
  color: var(--color-black);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.step:hover .step-num {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 4px 4px 0px var(--color-black);
}

/* ==========================================================================
   4. EDITORIAL HIGH-CONTRAST PHOTOGRAPHY STYLING
   ========================================================================== */

/* Photo Container with Lime Frame */
.photo-frame {
  position: relative;
  display: inline-block;
  padding: 8px;
  border: 2px solid var(--color-lime);
  overflow: hidden;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.2);
  transition: filter var(--transition-medium);
}

.photo-frame:hover img {
  filter: grayscale(0%) contrast(1.1);
}

/* Editorial Photo with Caption */
.figure {
  margin: 48px 0;
}

.figure img {
  width: 100%;
  height: auto;
  filter: grayscale(80%) contrast(1.3);
  border: 1px solid var(--color-lime);
  transition: filter var(--transition-slow);
}

.figure:hover img {
  filter: grayscale(40%) contrast(1.2);
}

.figure figcaption {
  margin-top: 16px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-lime);
}

.section-white .figure figcaption {
  color: rgba(0, 0, 0, 0.6);
}

/* Hero Image Styling */
.hero-img {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-lime);
}

.hero-img img {
  width: 100%;
  height: auto;
  filter: grayscale(60%) contrast(1.2);
  transition: all var(--transition-slow);
}

.hero-img:hover img {
  filter: grayscale(20%) contrast(1.1);
  transform: scale(1.02);
}

/* Image Overlay with Lime Tint */
.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(207, 255, 4, 0.1) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.img-overlay:hover::after {
  opacity: 0;
}

/* ==========================================================================
   5. SCROLL-DRIVEN REVEAL ANIMATIONS
   ========================================================================== */

/* Base Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation for Cards */
.reveal-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Fade In from Left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In from Right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale Up Animation */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   6. ENHANCED SECTION STYLING
   ========================================================================== */

/* Section Headers */
.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-head .lead {
  max-width: 720px;
}

/* Divider - Lime Accent Line */
.divider-lime {
  width: 60px;
  height: 3px;
  background-color: var(--color-lime);
  margin: 20px 0;
  transition: width var(--transition-medium);
}

.section-head:hover .divider-lime {
  width: 100px;
}

/* Callout Box (Lime Background) */
.callout {
  background-color: var(--color-lime);
  color: var(--color-black);
  padding: 32px 36px;
  margin: 40px 0;
  border: none;
  position: relative;
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-black);
}

.callout h3 {
  color: var(--color-black);
  margin-bottom: 12px;
}

.callout p {
  color: var(--color-black);
  margin-bottom: 0;
}

/* Dark Callout Box */
.callout-dark {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 32px 36px;
  margin: 40px 0;
  border: 1px solid var(--color-lime);
  position: relative;
}

.callout-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-lime);
}

.callout-dark h3 {
  color: var(--color-lime);
  margin-bottom: 12px;
}

.callout-dark p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ==========================================================================
   7. ENHANCED HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  background-color: var(--color-black);
  border-bottom: 2px solid var(--color-lime);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Navigation Links */
.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  padding: 8px 12px;
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-lime);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--color-lime);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Logo Styling */
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  gap: 4px;
}

.logo-mark {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-lime);
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   8. ENHANCED FORM ELEMENTS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  background-color: var(--color-black);
  border: 2px solid rgba(255, 255, 255, 0.2);
  outline: none;
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(207, 255, 4, 0.2);
}

/* White Section Inputs */
.section-white input,
.section-white textarea,
.section-white select {
  color: var(--color-black);
  background-color: var(--color-white);
  border-color: var(--color-black);
}

.section-white input:focus,
.section-white textarea:focus,
.section-white select:focus {
  border-color: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(207, 255, 4, 0.3);
}

/* ==========================================================================
   9. TIMELINE ENHANCEMENT
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-lime), rgba(207, 255, 4, 0.3));
}

.timeline-node {
  position: relative;
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 28px;
  width: 12px;
  height: 12px;
  background-color: var(--color-lime);
  border: 2px solid var(--color-black);
}

.timeline-node:hover {
  border-color: var(--color-lime);
  transform: translateX(4px);
}

/* ==========================================================================
   10. RESPONSIVE ENHANCEMENTS
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 64px 0;
  }
  
  .cards-3 {
    grid-template-columns: 1fr;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-black {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .card {
    padding: 24px;
  }
}

/* ==========================================================================
   11. UTILITY CLASSES
   ========================================================================== */

.text-lime { color: var(--color-lime); }
.text-white { color: var(--color-white); }
.text-black { color: var(--color-black); }

.bg-black { background-color: var(--color-black); }
.bg-white { background-color: var(--color-white); }
.bg-lime { background-color: var(--color-lime); }

.border-lime { border-color: var(--color-lime); }
.border-black { border-color: var(--color-black); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Selection Color */
::selection {
  background-color: var(--color-lime);
  color: var(--color-black);
}

::-moz-selection {
  background-color: var(--color-lime);
  color: var(--color-black);
}

/* ==========================================================================
   12. SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--color-lime);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   13. BUTTON RIPPLE EFFECT
   ========================================================================== */

.btn-primary,
.btn-secondary,
.btn-black,
.nav-cta {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  from {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ==========================================================================
   14. HEADER SCROLLED STATE
   ========================================================================== */

.site-header.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.site-header.scrolled .site-header-inner {
  padding: 12px 24px;
}

/* Header hidden on scroll down (optional) */
.site-header.header-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

/* ==========================================================================
   15. IMAGE LAZY LOADING
   ========================================================================== */

img[data-src] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[data-src].loaded {
  opacity: 1;
}

/* ==========================================================================
   16. FOCUS STYLES FOR ACCESSIBILITY
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
}

/* ==========================================================================
   17. PRINT STYLES
   ========================================================================== */

@media print {
  .site-header,
  .topbar,
  .country-switcher,
  .scroll-progress,
  .nav-cta {
    display: none !important;
  }
  
  body {
    color: #000000 !important;
    background: #ffffff !important;
  }
  
  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}
