/* Premium CSS for The Dotcom Entrepreneur - Kalungwe Mwenshi */
/* Color Palette: Gold (#FFD700), Black (#000000), White (#FFFFFF) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  overflow-x: hidden;
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #000000 0%, #FFA500 50%, #201200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #000;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #000;
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: #000;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
}

.lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: #555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.small {
  font-size: 0.675rem;
  color: #ffffff;
}

.small2 {
  font-size: 0.75rem;
}

.small3 {
  font-size: 0.8rem;
  color: #ccc;
}

.muted {
  color: #666;
  font-size: 0.95rem;
}

/* Header & Navigation */
header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid #FFD700;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFD700;
  font-weight: 700;
  font-size: clamp(0.875rem, 2.2vw, 1.0rem);
  font-family: 'Playfair Display', serif;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #FFD700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #FFD700;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFD700;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

.hamburger {
  display: block;
  font-size: 1.5rem;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    border-top: 2px solid #FFD700;
  }
  
  .nav-links.nav-active {
    transform: translateY(0);
  }
  
  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #333;
    width: 100%;
  }
  
  .nav-toggle.active .hamburger {
    transform: rotate(45deg);
  }
}

/* Main Content Spacing */
main {
  margin-top: 90px;
}

/* Marquee Banner */
.marquee-banner {
  background: gold;
  border-bottom: 2px solid #FFD700;
  overflow: hidden;
  padding: 0.5rem 0;
}

.marquee {
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
  color: #1a0000;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.marquee-content span {
  margin-right: 3rem;
  position: relative;
}

.marquee-content span::after {
  content: '•';
  margin-left: 3rem;
  color: #FFA500;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23FFD700" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23FFD700" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="%23FFD700" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.pill {
  display: inline-block;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #FFD700;
  color: #000000;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-ghost {
  background: transparent;
  color: #000000;
  border: 2px solid #FFD700;
}

.btn-ghost:hover {
  background: #FFD700;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #FFD700;
}

/* Sections */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Trusted By Section */
.trusted-section {
  background: #000;
  color: #fff;
  padding: 3rem 0;
}

.trusted-section h2 {
  color: #FFD700;
  margin-bottom: 2rem;
}

.logo-slider {
  overflow: hidden;
  margin: 2rem 0;
}

.logo-track {
  display: flex;
  animation: slide 5s linear infinite;
  gap: 3rem;
}

.logo-track img {
  height: 60px;
  width: auto;
  filter: grayscale(10%) brightness(0.8);
  transition: all 0.3s ease;
}

.logo-track img:hover {
  filter: none;
  transform: scale(1.1);
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Media & Books */
.media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video:hover {
  transform: scale(1.02);
}

.video iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* Books Catalog */
.catalog-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  color: #fff;
}

.catalog-section h2 {
  color: #FFD700;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: #FFD700;
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.book-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.book-card:hover img {
  transform: scale(1.05);
}

.book-card h3 {
  color: #1d1900;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 2rem;
  border-radius: 15px;
  font-style: italic;
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-3px);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.2);
  line-height: 1;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.aboutcard {
  text-align: center;
  margin-bottom: 2rem;
}

.aboutcard img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 5px solid #FFD700;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hire Section */
.hire-section {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
}

.hire-section h2 {
  color: #FFD700;
}

.hero-subtitle {
  color: #FFD700;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.hero-tagline {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.value-proposition {
  margin-top: 4rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.lead-text, .highlight-text {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.highlight-text {
  color: #FFD700;
}

.quote-section {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 215, 0, 0.1);
  border-left: 4px solid #FFD700;
  border-radius: 0 10px 10px 0;
}

blockquote {
  font-style: italic;
  font-size: 1.3rem;
  color: #2b2502;
  margin-bottom: 1rem;
}

cite {
  color: #b1b0b0;
  font-size: 1rem;
}

.stats-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 15px;
  padding: 2rem;
}

.stats-card h3 {
  color: #110f00;
  text-align: center;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #796700;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.5rem;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  color: #000;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-container {
  display: flex;
  align-items: center;
  background: #000000;
  color: white;
  padding: 0.2rem 1.0rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.whatsapp-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.whatsapp-icon {
  position: relative;
  display: inline-block;
}

.whatsapp-icon img {
  width: 29px;
  height: 29px;
  z-index: 2;
  position: relative;
}

/* Waves animation effect */
.whatsapp-icon::before,
.whatsapp-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4); /* WhatsApp green with transparency */
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 1;
  animation: wave 2s infinite ease-out;
}

.whatsapp-icon::after {
  animation-delay: 1s; /* second ripple delay */
}

@keyframes wave {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  padding: 3rem 0 2rem;
  border-top: 2px solid #FFD700;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-logo2 {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(0.7);
  transition: all 0.3s ease;
}

.footer-logo2:hover {
  filter: none;
  transform: scale(1.1);
}

footer .container > div {
  text-align: center;
  margin-bottom: 1rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #FFD700;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .media {
    grid-template-columns: 1fr;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
  }
  
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .aboutcard img {
    width: 250px;
    height: 250px;
  }
  
  .whatsapp-text {
    display: none;
  }
  
  .whatsapp-container {
    border-radius: 50%;
    padding: 1rem;
  }
  
  .logos {
    gap: 1rem;
  }
  
  .logo-track img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .pill {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .btn-xl {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {
  header, .whatsapp-widget, .modal-backdrop {
    display: none !important;
  }
  
  main {
    margin-top: 0 !important;
  }
  
  .hero {
    background: #fff !important;
    color: #000 !important;
  }
  
  h1 {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .marquee-content {
    animation: none;
  }
  
  .logo-track {
    animation: none;
  }
}

/* Focus States for Keyboard Navigation */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn-ghost {
    border-width: 3px;
  }
}
