/* 
   Hágale como Quiera - Main Styles
   Theme: Premium Dark / Gold / Cyan
*/

:root {
    /* Colors - Rebranded based on Book Cover */
    --bg-dark: #021a44; /* Deep Royal Blue */
    --bg-darker: #000f29; /* Darker Navy */
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    
    --primary: #4ade80; /* Neon/Lime Green (Sound waves) */
    --primary-hover: #22c55e;
    --primary-glow: rgba(74, 222, 128, 0.4);
    
    --accent: #3b82f6; /* "QUIERA" Blue */
    --accent-glow: rgba(59, 130, 246, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dark: #0f172a;
    
    --border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-main: "Outfit", sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;

  /* Animation */
  --transition: all 0.3s ease;
}

/* Animation Utilities */
.opacity-0 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.animate-up {
    opacity: 1;
    transform: translateY(0);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback */
}

.center-btn {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-amazon {
  background: #FF9900;
  color: #0f172a; /* Dark text for contrast */
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-amazon:hover {
  background: #e68a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

/* Sections */
.section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-header .divider {
  height: 4px;
  width: 60px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

/* Navbar - Floating Island Style */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: var(--container-width);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.6); /* More transparent for glass effect */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 70px; /* Slightly more compact */
  display: flex;
  align-items: center;
  border-radius: 50px; /* Pill shape */
  box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 10px;
}

.navbar.scrolled {
  top: 10px;
  width: 98%;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px; /* Internal padding */
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none; /* Remove underline */
  font-size: 1.8rem; /* Make it logo-sized */
  font-weight: 800; /* Extra bold */
  color: var(--text-main);
  gap: 5px;
  letter-spacing: -0.5px; /* Tighter tracking for modern look */
}

.logo .text-gradient {
  /* Red Gradient as requested */
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  font-weight: 800; /* Ensure gradient text is also bold */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 900px; /* Increased height for better proportions */
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: 20px;
  background: radial-gradient(circle at top right, #1e3a8a, var(--bg-dark)); /* Dark blue radial gradient */
  overflow: hidden;
}

/* Remove overlay since we are using a clean gradient */
.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Align image to right */
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 140%; /* significantly larger */
    width: 850px; /* Increased base width */
    height: auto;
    border-radius: 30px; /* Modern rounded corners */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)); /* Deep depth shadow */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); /* Subtle stroke */
    margin-right: -50px; /* Pull it slightly back into view */
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.02) rotate(-1deg); /* Subtle interaction */
}

/* Existing Hero Styles Adjusted */
.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
}

.social-proof p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.platform-icons {
  display: flex;
  gap: 20px;
  font-size: 1.5rem;
}

.platform-icons a {
  color: #ffffff; /* Explicitly white */
  transition: var(--transition);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.platform-icons i {
  transition: var(--transition);
}

.platform-icons i:hover {
  color: var(--text-main);
  transform: scale(1.1);
}

/* Hosts Section */
.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.host-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.host-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.host-image-wrapper {
  height: 350px;
  width: 100%;
  background: #000;
  position: relative;
}

.host-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 1.5rem;
}

.host-info {
  padding: 25px;
}

.host-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.host-info .role {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.host-info p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.host-socials {
  display: flex;
  gap: 15px;
}

.host-socials a {
  color: var(--text-main);
  font-size: 1.2rem;
  opacity: 0.7;
  transition: var(--transition);
}

.host-socials a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Episodes Section */
.filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text-main);
  color: var(--bg-darker);
  border-color: var(--text-main);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
}

.episode-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none; /* For when it becomes an anchor */
  color: inherit; /* Inherit text color */
}

.episode-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.episode-thumbnail {
  aspect-ratio: 16 / 9;
  background: #2d3748;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: var(--text-main);
  opacity: 0.7;
  transition: var(--transition);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.episode-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.episode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.tag-finance {
  color: #f59e0b;
}
.tag-legal {
  color: #e11d48;
}
.tag-tech {
  color: #38bdf8;
}

.episode-content h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.episode-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex: 1;
}

.episode-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.link-arrow {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.link-arrow:hover {
  gap: 12px;
  color: var(--primary);
}

/* Blog Section */
.blog-section {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 3rem;
  margin: 20px 0 15px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar {
    width: 92%;
    top: 15px;
    height: 60px;
    padding: 0 5px;
  }
  
  .navbar.scrolled {
    width: 95%;
    top: 10px;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0; /* Full screen menu */
    right: 0;
    height: 100vh;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    padding-top: 60px;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.category-legal {
  background: rgba(225, 29, 72, 0.9);
  color: white;
}

.category-finanzas {
  background: rgba(245, 158, 11, 0.9);
  color: #0f172a;
}

.category-tech {
  background: rgba(56, 189, 248, 0.9);
  color: #0f172a;
}

.blog-card-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  color: var(--text-main);
  font-weight: 600;
}

.blog-date {
  color: var(--text-muted);
  margin-left: auto;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
}

.blog-card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.read-more:hover {
  gap: 12px;
}

/* Blog Hero */
.blog-hero {
  padding: 130px 0 20px;
  background: radial-gradient(circle at top right, #1e3a8a, var(--bg-dark));
  text-align: center;
}

.blog-hero h1 {
  font-size: 3rem;
  margin: 0 0 12px;
}

.blog-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.blog-listing-section {
  padding-top: 30px;
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--bg-darker);
  border-color: var(--primary);
}

.blog-grid-full {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.page {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: var(--bg-darker);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.page:hover,
.page.active {
  background: var(--primary);
  color: var(--bg-darker);
  border-color: var(--primary);
}

/* Article Hero */
.article-hero {
  padding: 180px 0 60px;
  background: radial-gradient(circle at top right, #1e3a8a, var(--bg-dark));
}

/* Side-by-Side Hero Layout */
.article-hero-split {
  padding: 140px 0 60px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.article-hero-text {
  display: flex;
  flex-direction: column;
}

.article-hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.lead-hero {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 25px;
}

.article-hero-image-split {
  display: flex;
  justify-content: center;
}

.article-hero-image-split img {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .article-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .article-hero-image-split {
    order: -1;
    margin-bottom: 30px;
  }
  
  .article-hero-image-split img {
    max-width: 300px;
  }
  
  .article-hero-text h1 {
    font-size: 2rem;
  }
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

.article-hero .blog-category {
  position: static;
  margin-bottom: 15px;
  display: inline-block;
  width: fit-content;
}

.article-hero h1 {
  font-size: 3rem;
  max-width: 800px;
  line-height: 1.2;
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-text {
  display: flex;
  flex-direction: column;
}

.meta-text .author-name {
  font-weight: 700;
}

.article-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Article Hero Image */
.article-hero-image {
  margin: -40px auto 0;
  max-width: 900px;
  padding: 0 20px;
}

.article-hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Article Content */
.article-container {
  max-width: 800px;
}

.article-body {
  padding: 60px 0;
}

.article-body .lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 40px;
}

.article-body h2 {
  font-size: 2rem;
  margin: 50px 0 20px;
}

.article-body h3 {
  font-size: 1.5rem;
  margin: 40px 0 15px;
}

.article-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 20px 0 30px 30px;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 30px;
  margin: 30px 0;
  background: var(--bg-card);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--bg-card), rgba(74, 222, 128, 0.1));
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 50px 0;
}

.cta-box h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 30px;
  padding: 40px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 60px;
}

.author-bio-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-content h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.author-bio-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.author-socials {
  display: flex;
  gap: 15px;
}

.author-socials a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.author-socials a:hover {
  color: var(--primary);
}

/* Related Posts */
.related-posts {
  background: var(--bg-darker);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Book Section */
.book-section {
  background: linear-gradient(to right, var(--bg-darker), var(--bg-dark));
}

.book-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.book-content {
  flex: 1;
}

.book-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.badge-gold {
  background: var(--primary);
  color: var(--bg-darker);
  border: none;
  font-weight: 800;
}

.book-content h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.book-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.book-features {
  list-style: none;
  margin-bottom: 30px;
}

.book-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.book-features li i {
  color: var(--primary);
}

.book-mockup {
  width: 300px;
  height: 450px;
  background: #fff;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-5deg);
  border-radius: 4px;
  overflow: hidden;
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #fbbf24;
}

/* About Section */
.about-section {
    background: var(--bg-dark);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02) rotate(2deg);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

/* About Section Styling */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 550px; /* Bigger as requested */
    height: auto;
    /* Drop shadow follows the PNG shape instead of a box */
    filter: drop-shadow(0 0 40px rgba(74, 222, 128, 0.15)); 
    transition: transform 0.4s ease;
    animation: floatLogo 6s ease-in-out infinite;
}

.about-image img:hover {
    filter: drop-shadow(0 0 60px rgba(74, 222, 128, 0.3));
    transform: scale(1.02);
}

.about-content {
    flex: 1;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer structure adjustments */
.footer {
  background: var(--bg-darker);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  text-align: center;
  flex: 1; /* Allow it to take up available space */
}

.footer ul {
  list-style: none;
  display: flex; /* Horizontal alignment */
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin-top: 10px;
}

.footer ul li {
  margin-bottom: 0;
}

.footer ul a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer ul a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--bg-darker);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .book-container, .about-container { flex-direction: column; text-align: center; }
    .book-features li { justify-content: center; }
    .about-image { margin-bottom: 30px; }
    .stats-grid { margin-top: 30px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu needed */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    text-align: center;
    justify-content: center;
    padding-top: 100px;
    height: auto;
    min-height: 100vh;
    padding-bottom: 60px;
  }

  .hero-container {
      flex-direction: column;
      gap: 30px;
  }

  .hero-text {
      max-width: 100%;
  }

  .hero-image {
      justify-content: center;
      width: 100%;
  }
  
  .hero-image img {
      width: 100%;
      max-width: 350px;
      margin-right: 0;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .platform-icons {
    justify-content: center;
  }
}

/* 
   ----------------------------------------
   Large Screen Optimization (Dynamic Scaling)
   ----------------------------------------
*/

/* 2K / Large Desktop Screens */
@media (min-width: 1600px) {
    :root {
        /* Scale up base size */
        font-size: 18px; 
        --container-width: 1500px;
        --header-height: 100px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .section {
        padding: 140px 0;
    }
    
    .host-image-wrapper {
        height: 400px;
    }
    
    .book-mockup {
        width: 360px;
        height: 540px;
    }
}

/* 4K / Ultra-Wide Screens */
@media (min-width: 2200px) {
    :root {
        /* Further scale up */
        font-size: 22px; 
        --container-width: 1900px;
    }
    
    .hero h1 {
        font-size: 6.5rem;
    }
    
    .container {
        max-width: 90vw; /* Take up more horizontal space on ultrawide */
    }
}

/* Mobile Optimization (Max 768px) */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative; /* Ensure containment */
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.8rem; /* Reduced from 4rem+ */
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 30px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn {
        width: 100%; /* Full width buttons on mobile */
        justify-content: center;
    }

    /* Stats/History Section */
    .stats-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 40px;
        padding: 0 20px;
    }

    /* Filter Buttons */
    .filters {
        flex-wrap: wrap; /* Allow wrapping */
        gap: 10px;
        padding: 0 10px;
    }
    
    .filter-btn {
        flex: 1 1 auto; /* Grow to fill space */
        min-width: 100px; /* Ensure clickability */
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-links, .social-links {
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 40px 0; /* Tighten up generic section padding */
    }
}

/* Contact Page Styles */

/* Contact Hero */
.contact-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(circle at top, #1e3a8a 0%, var(--bg-dark) 70%);
}

.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info */
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(30, 58, 138, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-textarea {
    height: 150px;
    resize: none;
}

.form-label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

/* Floating Label Logic */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label,
.form-select:focus ~ .form-label,
.form-select:valid ~ .form-label,
.active-label {
    top: -24px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--primary);
    background: transparent; /* Removed background as it's now above the border */
    padding: 0 5px;
    z-index: 10;
}

/* Fix Select Options Visibility */
.form-select option {
    background-color: var(--bg-dark); /* Dark background for options */
    color: #fff; /* White text */
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Validation Styles */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #ef4444;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

.form-group.has-error .error-message {
    display: block;
}

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

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Responsive Contact */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
}
