/* ============================================
   EDIFY INSTITUTE OF ENGLISH - MAIN STYLESHEET
   Design System: Warm Academic
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Primary Colors - Warm Academic Palette */
  --brand-primary: #1a5f5f;
  --brand-primary-dark: #134545;
  --brand-primary-light: #2a7a7a;
  --brand-secondary: #d4a03c;
  --brand-secondary-light: #e8bc5a;
  --brand-accent: #c94b4b;
  --brand-accent-light: #e06565;

  /* Backgrounds */
  --bg-primary: #fdfbf7;
  --bg-secondary: #f5f2eb;
  --bg-dark: #1a1a2e;
  --bg-dark-secondary: #252540;
  --bg-card: #ffffff;

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-light: #ffffff;
  --text-muted: #8888aa;

  /* Functional */
  --whatsapp: #25d366;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.16);
  --shadow-hover: 0 12px 48px rgba(26, 26, 46, 0.2);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px 0;
  --card-radius: 16px;
  --btn-radius: 50px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--brand-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

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: 1.25rem; }

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  display: inline-block;
  color: var(--brand-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
  border-radius: 2px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--btn-radius);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--brand-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--brand-secondary-light);
  transform: translateY(-3px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--text-light);
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-3px);
}

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

.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--text-light);
}

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

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.navbar.transparent {
  background: transparent;
}

.navbar.solid {
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

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

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-secondary);
  transition: width var(--transition-medium);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--brand-primary);
}

.nav-phone i {
  color: var(--brand-secondary);
}

.nav-call-btn {
  background: var(--brand-secondary);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-call-btn:hover {
  background: var(--brand-secondary-light);
  transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  padding: 80px 40px 40px;
  transition: right var(--transition-medium);
  z-index: 1001;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu-links a {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-secondary);
}

.mobile-menu-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-secondary);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title .highlight {
  color: var(--brand-primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.trust-stars {
  color: var(--brand-secondary);
  font-size: 1.25rem;
  letter-spacing: 4px;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-text strong {
  color: var(--text-primary);
}

.hero-visual {
  position: relative;
  height: 600px;
}

.hero-image-main {
  position: absolute;
  right: 0;
  top: 60px;
  width: 85%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-fallback {
  position: absolute;
  right: 0;
  top: 60px;
  width: 85%;
  height: 500px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-card {
  position: absolute;
  bottom: 0;
  left: -20px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: float 4s ease-in-out infinite;
}

.hero-card-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.hero-card-content h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}

.hero-card-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ---------- LIVE TICKER ---------- */
.ticker-section {
  background: var(--brand-primary);
  padding: 16px 0;
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  white-space: nowrap;
  color: var(--text-light);
  font-weight: 500;
}

.ticker-item i {
  color: var(--brand-secondary);
}

.ticker-separator {
  width: 6px;
  height: 6px;
  background: var(--brand-secondary);
  border-radius: 50%;
}

/* ---------- STATS SECTION ---------- */
.stats-section {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--brand-secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  font-size: 2.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.service-card {
  perspective: 1000px;
  height: 400px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.service-card-front {
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

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

.service-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.service-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand-secondary);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.service-card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--bg-secondary);
}

.service-card-price {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.service-card-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-card-flip-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--brand-secondary);
  font-weight: 500;
}

.service-card-back {
  background: var(--brand-primary);
  color: var(--text-light);
  transform: rotateY(180deg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.service-card-back h3 {
  color: var(--text-light);
  margin-bottom: 16px;
}

.service-card-back p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card-back .outcomes {
  margin-bottom: 24px;
}

.service-card-back .outcomes li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.service-card-back .outcomes li i {
  color: var(--brand-secondary);
}

.service-card-back .btn {
  margin-top: auto;
  background: var(--brand-secondary);
  color: var(--text-primary);
  width: 100%;
}

/* ---------- INTERACTIVE PROOF SECTION ---------- */
.proof-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Syllabus Accordion */
.syllabus-accordion {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border-bottom: 1px solid var(--bg-secondary);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-secondary);
}

.accordion-header i {
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 24px 20px;
}

.accordion-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-body li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.accordion-body li i {
  color: var(--brand-primary);
}

/* Result Stats Graph */
.result-stats {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.result-stats h3 {
  margin-bottom: 32px;
  font-size: 1.5rem;
}

.progress-item {
  margin-bottom: 24px;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label {
  font-weight: 500;
}

.progress-value {
  color: var(--brand-primary);
  font-weight: 700;
}

.progress-bar {
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 6px;
  width: 0;
  transition: width 1.5s ease-out;
}

/* ---------- REVIEWS SECTION ---------- */
.reviews-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  overflow: hidden;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 400px;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.review-quote {
  color: var(--brand-secondary);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.3;
}

.review-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--brand-secondary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-top: 4px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--brand-primary);
  color: white;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--brand-primary);
  width: 30px;
  border-radius: 5px;
}

/* ---------- WHY CHOOSE US ---------- */
.why-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}

.why-statement {
  position: sticky;
  top: 120px;
}

.why-statement h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.why-statement h2 span {
  color: var(--brand-primary);
}

.why-statement p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.why-feature {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  transition: all var(--transition-medium);
}

.why-feature:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.why-feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.why-feature h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
}

.why-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- ABOUT PREVIEW ---------- */
.about-preview {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-frame {
  position: relative;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--brand-secondary);
  border-radius: 24px;
  z-index: 0;
}

.about-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content h2 span {
  color: var(--brand-secondary);
}

.about-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.highlight-badge i {
  color: var(--brand-primary);
}

.about-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 600;
}

.about-cta a:hover {
  gap: 12px;
}

/* ---------- LEAD POPUP ---------- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
}

.popup-modal {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: popupSlideUp 0.5s ease forwards;
}

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

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.popup-close:hover {
  background: var(--brand-accent);
  color: white;
}

.popup-badge {
  display: inline-block;
  background: var(--brand-secondary);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.popup-modal h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.popup-modal p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--bg-secondary);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.form-group .error-message {
  color: var(--brand-accent);
  font-size: 0.8rem;
  display: none;
}

.form-group.error input,
.form-group.error select {
  border-color: var(--brand-accent);
}

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

.popup-submit {
  background: var(--brand-primary);
  color: white;
  padding: 16px 32px;
  border-radius: var(--btn-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.popup-submit:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
}

.popup-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.popup-success.active {
  display: block;
}

.popup-success i {
  font-size: 4rem;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.popup-success h3 {
  margin-bottom: 12px;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
  opacity: 0.2;
}

.final-cta .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.final-cta h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 75, 75, 0.2);
  color: var(--brand-accent-light);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 24px;
}

.urgency-badge i {
  animation: pulse 1.5s infinite;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark-secondary);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

.footer-social a:hover {
  background: var(--brand-secondary);
  color: var(--text-primary);
}

.footer-title {
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--brand-secondary);
  padding-left: 8px;
}

.footer-contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--brand-secondary);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-contact-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- FLOATING ACTION BUTTONS ---------- */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.fab-whatsapp {
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: var(--shadow-md);
  animation: fabPulse 3s infinite;
  transition: all var(--transition-fast);
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

@keyframes fabPulse {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: var(--shadow-md), 0 0 0 15px rgba(37, 211, 102, 0); }
}

.fab-chatbot {
  width: 60px;
  height: 60px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-fast);
}

.fab-chatbot:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.fab-chatbot .unread-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: var(--brand-accent);
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  display: none;
}

.fab-chatbot .unread-dot.active {
  display: block;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 160px;
  right: 24px;
  width: 320px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  z-index: 998;
}

.chat-widget.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: var(--brand-primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h4 {
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
}

.chat-header span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chat-close {
  cursor: pointer;
  font-size: 1.25rem;
}

.chat-body {
  padding: 20px;
}

.chat-greeting {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.chat-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.chat-btn:hover {
  background: var(--whatsapp);
  color: white;
}

.chat-btn i {
  font-size: 1.1rem;
}

/* ---------- MOBILE STICKY BAR ---------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-card);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
}

.mobile-sticky-bar .container {
  display: flex;
  height: 100%;
}

.mobile-sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.mobile-sticky-btn:first-child {
  border-right: 1px solid var(--bg-secondary);
  color: var(--brand-primary);
}

.mobile-sticky-btn:last-child {
  color: var(--whatsapp);
}

/* ---------- PAGE SPECIFIC ---------- */

/* About Page Hero */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About Content */
.about-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.about-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.about-editorial.reverse {
  direction: rtl;
}

.about-editorial.reverse > * {
  direction: ltr;
}

/* ---------- NEW INTERACTIVE TIMELINE SECTION ---------- */
.timeline-section {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212, 160, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 75, 75, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.timeline-section .section-title span,
.timeline-section .section-title h2 {
  color: var(--text-light);
}

.timeline-section .section-title h2::after {
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
}

/* Timeline Progress Bar */
.timeline-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin: 40px auto 30px;
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
  border-radius: 3px;
  width: 10%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.timeline-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--brand-secondary);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(212, 160, 60, 0.5);
}

/* Timeline Navigation */
.timeline-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.timeline-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-nav-btn:hover {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--text-primary);
  transform: scale(1.1);
}

.timeline-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.timeline-nav-dots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 600px;
}

.timeline-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.timeline-nav-dot:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.2);
}

.timeline-nav-dot.active {
  background: var(--brand-secondary);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(212, 160, 60, 0.5);
}

/* Timeline Container */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.timeline-track {
  position: relative;
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline Item */
.timeline-item {
  flex: 0 0 calc(100% - 40px);
  max-width: calc(100% - 40px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.timeline-item.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.timeline-item.prev,
.timeline-item.next {
  display: block;
}

/* Timeline Marker */
.timeline-marker {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--brand-secondary);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 6px rgba(212, 160, 60, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(212, 160, 60, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(212, 160, 60, 0.1); }
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-secondary);
  text-shadow: 0 0 30px rgba(212, 160, 60, 0.3);
}

/* Timeline Card */
.timeline-card {
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
}

.timeline-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.timeline-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(212, 160, 60, 0.3);
}

.timeline-badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-card h3 {
  color: var(--text-light);
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.timeline-card p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.timeline-stats {
  display: flex;
  gap: 24px;
}

.timeline-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  min-width: 100px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

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

/* Timeline Info Display */
.timeline-info {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.timeline-current-year {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-light);
  opacity: 0.1;
  line-height: 1;
}

.timeline-current-label {
  font-size: 1.1rem;
  color: var(--brand-secondary);
  font-weight: 500;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Touch/Swipe Support for Mobile */
.timeline-container {
  touch-action: pan-x;
}

/* Values Section */
.values-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.value-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--card-radius);
  text-align: center;
  transition: all var(--transition-medium);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.value-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Philosophy Pull Quote */
.philosophy-section {
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}

.philosophy-quote {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.philosophy-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 12rem;
  color: var(--brand-secondary);
  opacity: 0.2;
  position: absolute;
  top: -80px;
  left: -40px;
  line-height: 1;
}

.philosophy-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.philosophy-quote cite {
  color: var(--text-muted);
  font-style: normal;
  font-size: 1rem;
}

/* Services Page */
.services-page {
  padding-top: 120px;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--brand-primary);
  color: white;
}

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-item {
  opacity: 1;
  transform: translateY(0);
  transition: all var(--transition-medium);
}

.service-item.hidden {
  display: none;
}

/* Gallery Page */
.gallery-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.gallery-grid {
  columns: 3;
  column-gap: 24px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(26,26,46,0.9));
  color: white;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  transition: opacity var(--transition-fast);
}

.lightbox-nav:hover {
  opacity: 0.7;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
}

/* Contact Page */
.contact-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-form {
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  margin-bottom: 32px;
}

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

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

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

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--brand-primary);
  font-weight: 500;
}

.map-container {
  margin-top: 24px;
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Success State */
.form-success {
  text-align: center;
  padding: 60px 0;
  display: none;
}

.form-success.active {
  display: block;
}

.form-success i {
  font-size: 5rem;
  color: var(--brand-primary);
  margin-bottom: 24px;
}

.form-success h3 {
  margin-bottom: 12px;
}

/* 404 Page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-primary);
  padding: 40px;
}

.error-content h1 {
  font-size: 8rem;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.error-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    height: 400px;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

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

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

  .services-grid,
  .services-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-preview-grid {
    grid-template-columns: 1fr;
  }

  .about-image-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .why-statement {
    position: static;
    text-align: center;
  }

  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .services-grid,
  .services-full-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-visual {
    height: 300px;
  }

  .hero-image-main {
    width: 100%;
    height: 280px;
  }

  .hero-image-card {
    left: 0;
    right: 0;
    bottom: -40px;
    margin: 0 auto;
    width: fit-content;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-number span {
    font-size: 1.5rem;
  }

  .why-features {
    grid-template-columns: 1fr;
  }

  .about-editorial {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-editorial.reverse {
    direction: ltr;
  }

  .about-image {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .gallery-grid {
    columns: 1;
  }

  .popup-modal {
    padding: 32px 24px;
    border-radius: 20px 20px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    animation: none;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 56px;
  }

  .fab-container {
    bottom: 90px;
  }

  .chat-widget {
    bottom: 150px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  /* New Interactive Timeline Mobile */
  .timeline-section {
    padding: 60px 0 60px;
  }

  .timeline-track {
    padding: 0 10px;
  }

  .timeline-item {
    flex: 0 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .timeline-marker {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .timeline-year {
    font-size: 2rem;
  }

  .timeline-card {
    padding: 24px 20px;
  }

  .timeline-card h3 {
    font-size: 1.4rem;
  }

  .timeline-card p {
    font-size: 0.95rem;
  }

  .timeline-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .timeline-stat {
    padding: 12px 20px;
    min-width: 80px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .timeline-nav {
    gap: 12px;
  }

  .timeline-nav-dot {
    width: 10px;
    height: 10px;
  }

  .timeline-progress-bar {
    margin: 30px 20px 20px;
  }

  .timeline-current-year {
    font-size: 3rem;
  }

  .timeline-info {
    margin-top: 30px;
  }

  .timeline-container {
    touch-action: pan-y;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-tab {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}
