/* ============================================
   Jorge Muro - Modern Academic Landing Page
   Design System & Core Styles
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Color Palette - Navy / Gold / Cream */
  --navy-900: #0a1628;
  --navy-800: #0f2140;
  --navy-700: #1a3158;
  --navy-600: #1d3557;
  --navy-500: #264d73;
  --navy-400: #457b9d;
  --navy-300: #6b9dbd;
  
  --gold-500: #c9a84c;
  --gold-400: #d4b86a;
  --gold-300: #e0c988;
  --gold-200: #f0dfa8;
  
  --cream-100: #faf8f5;
  --cream-200: #f5f0e8;
  --cream-300: #ede5d5;
  
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-body: #3d3d5c;
  --text-muted: #6b6b8a;
  --text-light: #a3a3c2;
  
  --accent-red: #e63946;
  --accent-teal: #2ec4b6;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.16);
  --shadow-xl: 0 24px 64px rgba(10, 22, 40, 0.2);
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.15);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream-100);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-out);
}

ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.8;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold-500);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy-600);
  border: 2px solid var(--navy-600);
}

.btn-outline:hover {
  background: var(--navy-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-svg {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}

.nav-logo-icon-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}

.nav-logo-svg:hover {
  opacity: 0.85;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-900);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.nav-lang:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-900);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgba(10, 22, 40, 0.95) 0%, 
    rgba(10, 22, 40, 0.7) 50%,
    rgba(26, 49, 88, 0.8) 100%
  );
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite;
}

@keyframes float-particle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-text {
  animation: fadeSlideUp 1s var(--ease-out) 0.3s both;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-500);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-subtitle::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--gold-500);
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image {
  position: relative;
  animation: fadeSlideUp 1s var(--ease-out) 0.6s both;
  max-width: 420px;
  margin-left: auto;
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-image-wrapper::before {
  display: none;
}

.hero-image-wrapper::after {
  display: none;
}

.hero-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: lighten;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeSlideUp 1s var(--ease-out) 1s both;
}

.hero-badge-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.hero-badge-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---- About Section ---- */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #1a1a2e;
}

.about-carousel-track {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 square ratio using padding hack */
}

.about-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
  pointer-events: none;
}

.about-carousel-slide.active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
  pointer-events: auto;
}

.about-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel Navigation Buttons */
.about-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.about-carousel:hover .about-carousel-btn {
  opacity: 1;
}

.about-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.about-carousel-prev { left: 12px; }
.about-carousel-next { right: 12px; }

/* Carousel Dots */
.about-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.about-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.about-carousel-dot.active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: scale(1.2);
}

.about-carousel-dot:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.2);
}

.about-image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  border-radius: var(--radius-md);
  opacity: 0.15;
  z-index: -1;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 2rem;
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  transition: all 0.3s var(--ease-out);
}

.credential:hover {
  background: var(--cream-200);
  transform: translateX(8px);
}

.credential-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.credential-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.credential-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Expertise Section ---- */
.expertise {
  padding: var(--section-pad) 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.expertise::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.expertise .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.expertise h2 { color: var(--white); }
.expertise .section-desc {
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 1rem auto 0;
}

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

.expertise-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  opacity: 0;
  transition: opacity 0.5s;
}

.expertise-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.expertise-card:hover::before { opacity: 1; }

.expertise-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.expertise-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.expertise-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Publications Section ---- */
.publications {
  padding: var(--section-pad) 0;
  background: var(--cream-100);
}

.publications .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pub-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}

.pub-card-image {
  width: 140px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.pub-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pub-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-500);
  margin-bottom: 6px;
}

.pub-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pub-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Publications Filter Tabs */
.pub-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInCard 0.8s var(--ease-out) both;
}

.pub-tab {
  background: var(--white);
  border: 1px solid rgba(10, 22, 40, 0.1);
  color: var(--navy-800);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
}

.pub-tab:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
  transform: translateY(-1px);
}

.pub-tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-400);
  box-shadow: var(--shadow-sm);
}

/* Dynamic article cards fade-in animation */
.pub-card {
  animation: fadeInCard 0.6s var(--ease-out) forwards;
}

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

/* ---- Books Section ---- */
.books {
  padding: var(--section-pad) 0;
  background: var(--navy-900);
  position: relative;
}

.books h2 {
  color: var(--white);
}

.books-header {
  margin-bottom: 2.5rem;
}

.book-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.book-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(196, 167, 103, 0.15);
}

.book-row-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.book-row-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.book-row-cover:hover img {
  transform: scale(1.04);
}

.book-row-info {
  padding-top: 0.25rem;
}

.book-row-info h4 {
  margin-bottom: 12px;
  color: var(--gold-400);
  font-size: 1.3rem;
}

.book-row-info p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- Contact Section ---- */
.contact {
  padding: var(--section-pad) 0;
  background: var(--cream-100);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-detail-text p {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.3s;
  background: var(--cream-100);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-900);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .nav-logo-svg {
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-about p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--gold-400);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-whatsapp:hover {
  color: #25D366;
  transform: scale(1.15);
}



/* ---- Animations ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Counter animation ---- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle { justify-content: center; }
  .hero-description { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { max-width: 400px; margin: 0 auto; }
  .hero-badge { right: 0; }
  
  .about-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-grid { grid-template-columns: 1fr; }
  .book-row { grid-template-columns: 1fr; }
  .book-row-cover { max-width: 280px; }
  .webinars-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }
  
  .nav-links.active { display: flex; }
  
  .nav-links a {
    font-size: 1.5rem;
    color: var(--white);
  }
  
  .nav-lang {
    font-size: 1rem;
    padding: 10px 24px;
  }
  
  .hamburger { display: flex; }
  
  .expertise-grid { grid-template-columns: 1fr; }
  .webinars-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .pub-card {
    flex-direction: column;
  }
  
  .pub-card-image {
    width: 100%;
    height: 160px;
  }
  
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .hero-badge { display: none; }
}

/* ============================================
   Publications Modal & Video Player Styles
   ============================================ */
.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.pub-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.pub-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pub-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3rem);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-spring);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.pub-modal.active .pub-modal-container {
  transform: scale(1);
}

.pub-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s;
  z-index: 10;
  line-height: 1;
}

.pub-modal-close:hover {
  color: var(--gold-500);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-tag-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gold-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.modal-date {
  color: var(--text-light);
}

.modal-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy-900);
  line-height: 1.2;
}

.modal-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.modal-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.modal-text p {
  margin-bottom: 1.25rem;
}

.modal-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

