:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --secondary: #3498db;
  --dark: #2c3e50;
  --dark-light: #34495e;
  --light: #ecf0f1;
  --white: #ffffff;
  --gray: #7f8c8d;
  --text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Georgia, serif;
  line-height: 1.6;
  color: var(--text);
  background-color: #fafafa;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

@keyframes logoGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(44, 62, 80, 0.98);
  padding: 1rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.mobile-nav a:hover {
  background: rgba(231, 76, 60, 0.1);
  padding-left: 2.5rem;
}

.hero {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(52, 152, 219, 0.9)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f4f4f4" width="1200" height="800"/><path fill="%23e0e0e0" d="M0 400l50-16.7c50-16.6 150-50 250-50s200 33.4 250 50l50 16.7v350H0z"/></svg>');
  color: white;
  text-align: center;
  padding: 180px 0 120px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 25s linear infinite;
}

@keyframes moveGrid {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 50px) rotate(10deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  margin: 10px;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 120px 0 80px;
}

.page-header h1 {
  color: var(--dark);
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.page-header p {
  color: var(--gray);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  background: white;
  padding: 3rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.credentials {
  background: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.credentials h2 {
  color: var(--dark);
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

.credentials h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.testimonials-preview {
  background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-preview::before {
  content: '"';
  position: absolute;
  top: -50px;
  left: 50px;
  font-size: 200px;
  color: rgba(255,255,255,0.1);
  font-family: Georgia, serif;
}

.testimonials-preview h2 {
  text-align: center;
  color: var(--dark);
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: bold;
  color: var(--dark);
}

.testimonial-role {
  color: var(--gray);
  font-size: 0.9rem;
}

.blog-preview {
  background: white;
  padding: 80px 0;
}

.blog-preview h2 {
  text-align: center;
  color: var(--dark);
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-card-content {
  padding: 2rem;
}

.blog-title {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.blog-excerpt {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.blog-date {
  color: var(--gray);
  font-size: 0.9rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.book-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.book-cover {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.book-cover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: moveGrid 20s linear infinite;
}

.book-cover > div,
.book-cover > img {
  position: relative;
  z-index: 1;
}

.book-info {
  padding: 2rem;
}

.book-title {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.book-description {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.book-price {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.1);
}

.speaking-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.topic-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.topic-card:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.topic-title {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.topic-description {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.topic-duration {
  color: var(--primary);
  font-weight: bold;
}

.blog-sidebar {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.category-list {
  list-style: none;
}

.category-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light);
}

.category-list a {
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}

.category-list a:hover {
  color: var(--primary);
  padding-left: 10px;
}

.success-message {
  display: none;
  background: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 1rem;
}

.error-message {
  display: none;
  background: #f44336;
  color: white;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 1rem;
}

.loading {
  display: none;
  text-align: center;
  color: var(--primary);
  margin-top: 1rem;
}

footer {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  text-align: left;
}

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.footer-section a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.main-content {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.blog-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.blog-layout .content-section article {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .blog-layout,
  .contact-grid,
  .blog-sidebar {
    grid-template-columns: 1fr !important;
  }
  
  .blog-sidebar {
    position: static !important;
  }
  
  .stats,
  .testimonial-grid,
  .blog-grid,
  .book-grid,
  .speaking-topics {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .contact-form {
    margin-bottom: 2rem;
  }
  
  .content-section {
    padding: 2rem 1.5rem;
  }
}