/* ===================================
   Theme Name: Modern Blog Pro - Cleaned CSS
   =================================== */

/* CSS Variables & Reset */
:root {
  --primary-color: #1a202c;
  --heading-color: #1a202c;
  --text-color: #333333;
  --bg-color: #ffffff;
  --light-gray: #f7f7f7;
  --border-color: #e5e5e5;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===================================
   Header - Sticky Navigation
   =================================== */
.site-header {
  background: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img,
.site-branding img,
.custom-logo-link img {
  width: 100px !important;
  height: auto !important;
  max-width: 100px !important;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--primary-color);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* ===================================
   Hero Section (Full width slider)
   =================================== */
/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.5), transparent);
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 32, 44, 0.6), transparent, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 0 2rem;
	  max-width: 800px;
  }
}

.hero-category {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: #1a202c;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.5s ease;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  transition: all 0.5s ease;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-excerpt {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  transition: all 0.5s ease;
}

@media (min-width: 768px) {
  .hero-excerpt {
    font-size: 1.25rem;
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.5s ease;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #1a202c;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: rgba(26, 32, 44, 0.9);
}

.hero-btn .arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.hero-btn:hover .arrow {
  transform: translateX(4px);
}

.hero-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Navigation Arrows */
.hero-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-arrow {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Slide Indicators */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  width: 2rem;
  background: #ffffff;
}

/* Animation for slide content */
.hero-slide.active .hero-category,
.hero-slide.active .hero-title,
.hero-slide.active .hero-excerpt,
.hero-slide.active .hero-meta {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-slide.active .hero-category { animation-delay: 0.1s; }
.hero-slide.active .hero-title { animation-delay: 0.2s; }
.hero-slide.active .hero-excerpt { animation-delay: 0.3s; }
.hero-slide.active .hero-meta { animation-delay: 0.4s; }

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






/* ===================================
   Blog Title Slider
   =================================== */
.blog-title-slider {
  background: var(--light-gray);
  padding: 3rem 0;
  overflow: hidden;
}

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 2rem;
  font-weight: 700;
}

.title-slider {
  position: relative;
}

.title-slide {
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.title-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.title-slide h3 {
  color: var(--heading-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.title-slide .meta {
  color: #666;
  font-size: 0.9rem;
}

/* ===================================
   Blog Listing - Card Layout
   =================================== */
.blog-listing {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

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

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

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

.blog-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #666;
}

.blog-card-title {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card-title:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 1rem;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 1rem;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-menu a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .main-navigation.active {
    max-height: 500px;
  }

  .main-navigation ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }

  .main-navigation li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  .main-navigation a {
    display: block;
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ===================================
   Slider Navigation (Slick or custom)
   =================================== */
.slick-prev,
.slick-next {
  width: 50px;
  height: 50px;
  background: rgba(26, 32, 44, 0.7);
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
}

.slick-prev:hover,
.slick-next:hover {
  background: var(--primary-color);
}

.slick-prev { left: 25px; }
.slick-next { right: 25px; }

.slick-dots { bottom: 25px; }

.slick-dots li button:before {
  font-size: 12px;
  color: white;
}

.slick-dots li.slick-active button:before {
  color: white;
}

/* ===================================
   Animated Hero Elements (separate, non-conflicting names)
   =================================== */
.hero-animated {
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 50%, #f0f4f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.ai-element {
  position: absolute;
  animation: float 20s infinite ease-in-out;
}

.neural-network {
  width: 400px;
  height: 400px;
  top: 5%;
  left: 8%;
  animation-delay: 0s;
}

.chip {
  width: 250px;
  height: 250px;
  top: 55%;
  right: 10%;
  animation-delay: 4s;
}

.brain {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 15%;
  animation-delay: 8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(30px, -30px) scale(1.05) rotate(5deg); }
  50% { transform: translate(-20px, 20px) scale(0.95) rotate(-5deg); }
  75% { transform: translate(20px, 10px) scale(1.02) rotate(3deg); }
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(102, 126, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 126, 234, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Animated hero content (unique name to avoid collision) */
.hero-animated-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #1a202c;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 30px;
  animation: fadeInDown 1s ease-out;
  color: #2d3748;
}

.hero-badge span {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero-animated-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.gradient-text {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: white;
  backdrop-filter: blur(10px);
  color: #667eea;
  border: 2px solid #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.btn-secondary:hover {
  background: #f7fafc;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s backwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: #718096;
  margin-top: 5px;
}

/* Keyframes (single definitions) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Responsive tweaks for animated hero */
@media (max-width: 768px) {
  .stats { gap: 40px; }
  .stat-number { font-size: 2rem; }
}
