@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Nunito:wght@400;600;700;800&family=Fredoka:wght@500;600;700&family=Varela+Round&display=swap');

@font-face {
  font-family: 'Courgette';
  src: url('../images/redesign/Courgette%20Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Colors */
  --sky-light: #D6EAF8;
  --sky-mid: #AED6F1;
  --sky-deep: #85C1E9;
  --white: #FFFFFF;
  --off-white: #F7FBFF;
  --surface: #D6EAF8; /* Clearly distinct light blue */
  --surface-card: #DCF0FF;
  --pink-cta: #FF0066;
  --pink-cta-hover: #D60055;
  --black-cta: #1F1A1C;
  --text-dark: #0D1B2A;
  --text-body: #2C3E50;
  --text-muted: #5D7A8A;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 12px rgba(0, 80, 160, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 80, 160, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 80, 160, 0.16);

  /* Spacing */
  --max-w: 1200px;
  --section-pad: 100px;
  --section-pad-sm: 60px;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  /* Saturated Colors */
  --price-orange: #FF8C00;
  --price-orange-hover: #FF7F00;
  --price-grey: #94A3B8;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: 'Varela Round', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

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

/* ===================================
   TYPOGRAPHY
   =================================== */
/* Universal Open Round Font (Excluding Brand) */
body, h1:not(.nav-logo span):not(.hero-content h1), h2, h3, h4, p, a:not(.nav-logo):not(.btn-pink), button:not(.btn-pink), span:not(.nav-logo span), strong, li {
  font-family: 'Varela Round', sans-serif !important;
}

.nav-logo, .nav-logo span {
  font-family: 'Courgette', cursive !important;
  color: #7356a0 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.btn-pink {
  font-family: 'Fredoka', 'Varela Round', sans-serif !important;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-dark);
}

h1 {
  font-size: 40px !important;
  color: #0C455C !important;
}

h2 {
  font-size: 40px !important;
  color: #0C455C !important;
  font-weight: 900 !important; /* Bold headers for all blocks */
  word-spacing: -0.08em !important; /* Tight word spacing for all block headers */
  text-transform: uppercase !important;
  margin-bottom: 24px !important; /* Forced spacing from text */
}

/* Consistent Large Body Text for Main Blocks */
h1 + p,
h2 + p,
.hero-content p,
.record-text p,
.record-content-side p,
.record-hero-block p,
.about-text p,
.globe-text p,
p[data-i18n="hero.sub"],
p[data-i18n="record.page.heroSub1"],
p[data-i18n="record.page.heroSub2"] {
  font-size: 20px !important; /* Universal smaller body text for main blocks */
  color: #0C455C !important;
  font-weight: 500 !important;
  word-spacing: -0.06em !important; /* Tighter word spacing for all blocks */
  line-height: 1.6 !important;
}

h3 {
  font-size: 25px !important;
  font-family: 'Varela Round', sans-serif !important;
  font-weight: 500 !important;
  color: #0C455C !important;
}

p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ===================================
   UTILITY
   =================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0C455C;
  color: #fff;
  font-family: 'Varela Round', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--text-dark);
  font-family: 'Varela Round', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s var(--ease);
}

.btn-black.btn-fixed {
  width: 130px;
  height: 56px;
  padding: 0;
}

.btn-black:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-pink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-cta);
  color: #fff;
  font-family: 'Varela Round', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  text-transform: none; /* Changed from uppercase per user request */
  transition: all 0.3s var(--ease-bounce);
  box-shadow: 0 4px 20px rgba(255, 45, 139, 0.35);
  letter-spacing: 0.01em;
}

.btn-pink:hover {
  background: var(--pink-cta-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 45, 139, 0.45);
}

.tag {
  display: inline-block;
  background: var(--surface-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(1deg);
  }

  66% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-pink {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(255, 45, 139, 0.35);
  }

  50% {
    box-shadow: 0 8px 40px rgba(255, 45, 139, 0.6);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: all 0.4s var(--ease);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: all 0.4s var(--ease);
  flex-wrap: nowrap;
}

.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'Courgette', cursive;
  font-weight: normal;
  font-size: 1.2rem;
  color: #7356a0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo img,
.nav-logo svg {
  height: 60px;
  width: auto;
  display: block;
}

.nav-logo span {
  font-family: 'Courgette', cursive !important;
  font-size: 1.5rem;
  font-weight: 400 !important;
  letter-spacing: -0.2px;
  color: #7356a0 !important;
  white-space: nowrap;
}

/* --- Footer Branding --- */
.footer-brand h3 {
  font-family: 'Courgette', cursive !important;
  color: #7356a0 !important;
  font-weight: 400 !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.82rem;
  color: #21333f !important;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface);
}

.nav-links a.active-link {
  color: #21333f !important;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.55);
  border-radius: 20px;
  padding: 5px 12px;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(115, 86, 160, 0.3); /* Brand purple with low opacity */
  font-family: 'Varela Round', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #7356a0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px; /* Slightly larger gap for flag */
}

.lang-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-btn:hover {
  background: rgba(115, 86, 160, 0.1);
  border-color: rgba(115, 86, 160, 0.6);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  padding: 8px;
}

/* ===================================
   FLOATING CTA
   =================================== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  animation: pulse-pink 3s ease-in-out infinite;
}

.floating-cta .btn-pink {
  font-size: 1rem;
  padding: 14px 28px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  background: linear-gradient(180deg, #B8D9F0 0%, #D6EAF8 40%, #EEF7FF 70%, #FFFFFF 100%); /* Ends in pure white for seamless transition */
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  padding: 140px 0 0; /* Increased to push text and initial photo down */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(214, 234, 248, 0.8), transparent 60%),
    radial-gradient(circle at bottom left, rgba(238, 247, 255, 0.9), transparent 60%);
  animation: pulseBg 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* Dynamic Clouds */
.hero-clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 200px;
  opacity: 0.65;
  animation: moveCloud linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.cloud::before {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 10px;
}

.cloud::after {
  width: 70px;
  height: 70px;
  top: -30px;
  right: 15px;
}

.cloud-1 {
  width: 120px;
  height: 40px;
  top: 15%;
  left: -150px;
  animation-duration: 35s;
  transform: scale(1.5);
}

.cloud-2 {
  width: 100px;
  height: 35px;
  top: 40%;
  left: -150px;
  animation-duration: 45s;
  transform: scale(3);
  opacity: 0.5;
  animation-delay: -10s;
}

.cloud-3 {
  width: 150px;
  height: 50px;
  top: 65%;
  left: -200px;
  animation-duration: 55s;
  transform: scale(1.6);
  opacity: 0.7;
  animation-delay: -20s;
}

@keyframes moveCloud {
  0% {
    left: -200px;
  }

  100% {
    left: 110vw;
  }
}



@keyframes pulseBg {
  0% {
    opacity: 0.8;
  }

  100% {
    opacity: 1;
  }
}



@keyframes blurRevealLeftToRight {
  0% {
    filter: blur(10px);
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1250px;
  padding: 40px 24px 20px;
}

.hero-content h1 {
  font-size: 64px !important;
  color: #4690db !important; /* Specific sky blue only for hero title */
  font-family: 'Fredoka', sans-serif !important; /* Specific font for hero title */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  text-transform: none !important;
  will-change: opacity, transform, filter;
}

.hero-content p {
  font-size: 25px !important;
  color: #0C455C !important;
  max-width: 1100px;
  margin: 0 auto 40px;
  font-weight: 500;
  line-height: 1.6;
  will-change: opacity, transform, filter;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  margin-top: -80px; /* Reduced from -180px to avoid text overlap */
  width: 100%;
  max-width: 100%; /* Full screen width */
  margin-left: auto;
  margin-right: auto;
  perspective: 1500px; /* Enable 3D */
  perspective-origin: bottom center;
  overflow: visible; /* Prevent clipping partners */
}

.hero-text-animate {
  animation: heroTextFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes heroTextFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-sub {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.6;
  will-change: opacity, transform, filter;
}

.hero-monitor-float {
  /* This wrapper handles entrance and floating dynamics */
  animation: heroImageEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both,
             gentleFloat 4s ease-in-out infinite alternate 1.2s; /* Start after entrance */
  will-change: transform, opacity;
}

@keyframes heroImageEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gentleFloat {
  0% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(-6px);
  }
}

.hero-main-img {
  width: 100%;
  max-width: 1100px; /* Narrower width for cinematic look */
  margin: 0 auto; /* Keep centered */
  height: 550px; /* Taller height as requested */
  object-fit: cover; /* Cinematic wide crop */
  object-position: center 35%; /* Adjust focus for new height */
  border-radius: var(--radius-lg);
  display: block;
  transform-origin: center bottom;
  will-change: transform;
  box-shadow: var(--shadow-lg);
}

/* ===================================
   HERO PARTNERS (Moved from bottom)
   =================================== */
/* ===== PARTNERS SECTION (New) ===== */
.hero-partners-new {
  position: relative;
  z-index: 2; /* Always above hero bg but below section-about (10) */
  width: 100%;
  margin: 0;
  padding: 15px 0 40px; /* Added 40px bottom padding for perfect 100px gap to about section */
  background: transparent;
  text-align: center;
}

.partners-text {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 25px; /* Premium spacing */
  padding: 0 10px;
}

.partners-marquee {
  overflow: hidden;
  max-width: 90%; /* Significantly wider to reach near edges */
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.partners-marquee-track {
  display: flex;
  gap: 40px; /* Increased gap */
  align-items: center;
  width: max-content;
  animation: marqueeScroll 40s linear infinite; /* Slower for infinite feel */
  padding: 0 10px;
}

.partner-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px; /* Increased from 112px */
  height: 70px;  /* Increased from 56px */
  flex-shrink: 0;
  padding: 0 10px;
}
 
.partner-logo-img {
  width: auto;
  height: 48px; /* Standardize height for premium alignment */
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.3s ease;
  display: block;
}
 
.logo-rectangular {
  max-width: 120px;
  max-height: 28px; /* Increased slightly to balance with larger squares */
}
 
.logo-square {
  max-width: 100px;
  max-height: 50px; /* Increased significantly to make them more visible */
}
 
/* Specific compensation for logos with massive internal padding */
img[src*="eep_new.png"] {
  transform: scale(2.0); /* Increased from 1.6 */
  filter: brightness(0.4) contrast(1.5);
}
 
img[src*="wcc_europe_new.png"] {
  transform: scale(1.6); /* Increased from 1.3 */
  filter: brightness(0.5) contrast(1.4);
}
 
img[src*="creative_first_new.png"] {
  transform: scale(1.5); /* Increased from 1.2 */
}

.partner-logo-img:hover {
  transform: scale(1.1); /* This might conflict with the base scale, better to use wrapper or adjust */
}

/* Recognition Section Styles */
.recognition-block {
  margin-top: 60px;
  padding-top: 20px;
  text-align: center; /* centered content */
}

.recognition-block h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #0C455C;
  margin-bottom: 12px;
  text-transform: none;
}

.award-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px; /* Narrow slots for small gaps */
  height: 60px;  /* Normalized height */
  flex-shrink: 0;
  padding: 0;
}

.award-marquee-track {
  display: flex;
  gap: 15px; /* Small gaps as requested */
  align-items: center;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
}

/* Unified award logo constraints for consistency */
.award-slot .logo-rectangular,
.award-slot .logo-square {
  max-height: 45px !important;
  max-width: 85px !important;
  width: auto;
  height: auto;
  object-fit: contain;
}

.recognition-block p {
  font-weight: 500;
  color: #0C455C;
  margin-bottom: 30px;
}

.recognition-marquee {
  overflow: hidden;
  max-width: 90%; /* Significantly wider to reach near edges */
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

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

/* ===================================
   ABOUT SECTION
   =================================== */
.section-about {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
  background: #ffffff; /* Explicit opaque white */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

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

.about-image-frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 450px;
  min-width: 450px;
  height: 450px;
  margin: 0 auto;
}

.about-image-frame img {
  width: 100%;
  border-radius: var(--radius-md);
  height: 280px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 130px;
}

.about-image-badge strong {
  display: block;
  
  font-size: 2rem;
  font-weight: 800;
  color: var(--pink-cta);
}

.about-image-badge span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}

.stats-row {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.stat-item strong {
  display: block;
  
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===================================
   PROJECT SCALE
   =================================== */
.section-scale {
  padding: var(--section-pad) 0;
  background: var(--surface); /* Blue - follows White About */
}

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

.scale-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease);
  position: relative;
  cursor: default;
}

.scale-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-deep), var(--pink-cta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.scale-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 80, 160, 0.18);
}

.scale-card:hover::after {
  transform: scaleX(1);
}

.scale-card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.scale-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.scale-card:hover .scale-card-img img {
  transform: scale(1.12);
  filter: brightness(1.05) saturate(1.15);
}

.scale-card-body {
  padding: 20px 16px;
  text-align: center;
  position: relative;
}

.scale-number {
  display: block;
  
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease-bounce);
}

.scale-card:hover .scale-number {
  color: var(--pink-cta);
  transform: scale(1.1);
}

.scale-card-body span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* ===================================
   WORLD RECORD
   =================================== */
.section-record {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
  background: #ffffff;
}

/* Remove previous tight gap override from record */
.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.record-text h2 {
  
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
}

.record-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.record-image-wrap {
  position: relative;
}

.record-image-frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease);
  width: 450px;
  min-width: 450px;
  height: 450px;
  margin: 0 auto;
}

.record-image-frame:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ===================================
   INTERACTIVE GLOBE PREVIEW
   =================================== */
.section-globe {
  padding: var(--section-pad) 0;
  background: var(--white); /* White - follows Blue How */
  position: relative;
}

.globe-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Lopsided grid: text is wider, globe is narrower */
  gap: 80px;
  align-items: center;
}

.globe-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.globe-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.globe-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 480px; /* Restrict maximum size */
  margin: 0 auto;
  aspect-ratio: 1;
}

.globe-visual-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #f8fafc; /* Light stylized background */
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

#globePreviewEl {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 
    inset 0 0 40px rgba(0, 80, 160, 0.05),
    0 8px 24px rgba(0, 80, 160, 0.08); /* Subtle sphere depth */
}

/* The spinning map layer */
.globe-spin-layer {
  width: 200%; /* Wider to allow seamless scrolling */
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('../images/redesign/stylized_world_map.png');
  background-size: 50% 100%; /* Maps to original width */
  background-repeat: repeat-x;
  animation: globe-spin-linear 40s linear infinite;
  opacity: 0.85;
}

/* Glossy highlight to make it look like a sphere */
.globe-gloss {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 2;
}

/* Subtle atmosphere edge */
.globe-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(72, 219, 251, 0.2);
  pointer-events: none;
  z-index: 1;
}

@keyframes globe-spin-linear {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#globePreviewEl:active {
  cursor: grabbing;
}

/* ===================================
   WHO CAN TAKE PART
   =================================== */
.section-who {
  padding: var(--section-pad) 0;
  background: var(--surface); /* Blue - follows White Globe */
}

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

.who-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease);
  position: relative;
  text-align: center;
}

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

.who-card-img {
  width: 100%;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.who-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

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

.who-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  padding: 24px 20px;
  margin: 0;
}

/* ===================================
   BECOME PART OF SOMETHING GLOBAL
   =================================== */
.section-join {
  padding: 80px 0;
  background: var(--white); /* White - follows Blue Who */
  position: relative;
}

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

.join-title-col h2 {
  font-family: var(--font-brand);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  text-transform: uppercase;
  margin: 0;
}

.join-text-col p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 24px;
}

.join-text-col p:last-child {
  margin-bottom: 0;
}

.join-action {
  text-align: center;
}

.btn-large {
  display: inline-flex;
  padding: 20px 60px;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 50px;
}

@media (max-width: 991px) {
  .join-grid {
    gap: 32px;
  }
  .join-title-col h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .section-join {
    padding: 60px 0;
  }
  .join-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .join-title-col h2 {
    font-size: 1.8rem;
  }
  .join-text-col p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .btn-large {
    width: 100%;
    padding: 18px 32px;
  }

  /* Who Grid Mobile Fix */
  .who-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* ===================================
   HOW IT WORKS (Adjusted)
   =================================== */
.section-how {
  padding: var(--section-pad) 0;
  background: var(--surface); /* Blue - follows White Scale */
}

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

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
}

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

.how-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease);
  position: relative;
  cursor: default;
}

.how-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-deep), var(--pink-cta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.how-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 80, 160, 0.18);
}

.how-card:hover::after {
  transform: scaleX(1);
}

.how-card-img {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--surface);
  overflow: hidden;
  position: relative;
}

.how-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.how-card:hover .how-card-img img {
  transform: scale(1.12);
  filter: brightness(1.05) saturate(1.15);
}

.how-card-body {
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.how-card-body h3 {
  
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}

.how-card:hover .how-card-body h3 {
  color: var(--pink-cta);
}

.how-card-body p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===================================
   GALLERY PREVIEW (Rising Cards)
   =================================== */
.section-gallery {
  padding: var(--section-pad) 0;
  background: var(--white);
  overflow: hidden;
}

.gallery-scroll-container {
  display: flex;
  gap: 20px;
  padding: 40px 24px 20px;
  align-items: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: nowrap;
}

.gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 auto;
  width: 180px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  /* Start tilted/flat — will animate on scroll */
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 60px)) scaleY(0.8);
  opacity: 0;
}

.gallery-card.risen {
  transform: rotate(0deg) translateY(0px) scaleY(1);
  opacity: 1;
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card-info {
  padding: 12px;
}

.gallery-card-info p {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.gallery-card-info span {
  font-size: 0.7rem;
  color: var(--sky-deep);
  font-weight: 600;
}

/* ===================================
   PARTNERS MARQUEE
   =================================== */
.section-partners {
  padding: 40px 0;
  background: var(--surface);
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.partners-track img,
.partner-logo {
  height: 36px;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
  font-size: 0;
  flex-shrink: 0;
}

.partner-logo {
  height: 36px;
  display: flex;
  align-items: center;
  
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ===================================
   CTA SECTION
   =================================== */
.section-cta {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B3A5C 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 45, 139, 0.12), transparent 70%);
  pointer-events: none;
}

.section-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(133, 193, 233, 0.12), transparent 70%);
  pointer-events: none;
}

.section-cta h2 {
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.section-cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===================================
   FOOTER (Redesigned)
   =================================== */
.footer {
  background: #DCEAF4; /* light blue */
  padding: 60px 0 40px;
  color: var(--text-dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-left {
  max-width: 400px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.footer-tagline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.social-fb {
  background: #1877F2;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.footer-right {
  min-width: 200px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-body);
}

.footer-links li:first-child {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.footer-links a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pink-cta);
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* ===================================
   HERO MOCKUP (Laptop-like display)
   =================================== */
.hero-mockup {
  background: #222;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 12px 12px 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-mockup-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  min-height: 320px;
}

.mockup-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.mockup-cell span {
  font-size: 2.2rem;
}

.mockup-cell:hover {
  transform: scale(1.08);
  z-index: 2;
}

/* ===================================
   ABOUT ART GRID
   =================================== */
.about-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 380px;
}

.art-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: transform 0.3s var(--ease);
}

.art-cell span {
  font-size: 2.5rem;
}

.art-cell:hover {
  transform: scale(1.1) rotate(-3deg);
}



/* ===================================
   MOBILE MENU
   =================================== */
.nav-mobile-menu {
  display: none;
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 8px 24px;
  box-shadow: var(--shadow-md);
}

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

.mobile-nav-link {
  display: block;
  padding: 12px;
  font-weight: 700;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.mobile-nav-link:hover {
  background: var(--surface);
}

.mobile-nav-link.active-link {
  color: var(--pink-cta);
}

/* ===================================
   BTN GHOST / PARTNERS LABEL
   =================================== */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  font-family: 'Varela Round', sans-serif;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.partners-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.step-number--pink {
  background: linear-gradient(135deg, var(--pink-cta), #ff6eb4) !important;
}

/* ===================================
   PARTICIPATE PAGES
   =================================== */
.page-wrapper {
  min-height: 100vh;
  padding-top: 100px;
  background: linear-gradient(180deg, #EEF7FF 0%, #fff 50%);
}

.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.page-container.wide-flow {
  max-width: 1200px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.page-back:hover {
  color: var(--text-dark);
}

.page-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Country grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}

.country-card:hover {
  border-color: var(--sky-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.country-card.selected {
  border-color: var(--pink-cta);
  background: #FFF0F5;
}

.country-flag {
  font-size: 1.5rem;
}

/* Search input */
.search-wrap {
  position: relative;
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Varela Round', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.search-input:focus {
  border-color: var(--sky-deep);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Form layout */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Varela Round', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--sky-deep);
}

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

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--sky-mid);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--pink-cta);
  background: #FFF5FA;
}

.upload-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.upload-zone p {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.upload-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.upload-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--sky-mid);
}

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  accent-color: var(--pink-cta);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-wrap label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  cursor: pointer;
}

/* Terms box */
.terms-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 24px;
  line-height: 1.8;
}

.terms-box h3 {
  margin: 20px 0 8px;
  font-size: 1.1rem;
}

.terms-box p,
.terms-box li {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 8px;
}

.terms-box ul {
  padding-left: 20px;
}

/* Success page */
.success-wrap {
  text-align: center;
  padding: 60px 0;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 24px;
}

.success-wrap h1 {
  margin-bottom: 16px;
}

.success-wrap p {
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ===================================
   RESPONSIVE — TABLET (<=1024px)
   =================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .about-grid,
  .record-grid {
    gap: 48px;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .about-image-wrap,
  .record-img-side {
    order: -1 !important;
  }

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

  .globe-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 48px;
  }
  
  .globe-visual-wrap {
    order: -1 !important;
    max-width: 500px;
    margin: 0 auto;
  }

  .how-grid::before {
    display: none;
  }

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

  .hero-mockup-inner {
    min-height: 260px;
  }

  .section-cta {
    padding: 80px 0;
  }
}

/* ===================================
   RESPONSIVE — MOBILE (<=768px)
   =================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: 56px;
  }

  .scale-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* --- Nav --- */
  .nav {
    padding: 10px 12px;
  }

  .nav-inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .nav-links {
    display: none;
  }

  .nav-lang {
    display: none;
  }

  .nav-lang-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
  }

  .nav-lang-mobile .lang-btn {
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 8px;
  }

  .nav-lang-mobile .lang-btn.active {
    color: var(--pink-cta);
  }

  .nav-inner .btn-black {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .nav-logo span {
    font-size: 1rem;
  }

  .nav-lang .lang-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .btn-black {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  /* --- Hero --- */
  .hero {
    padding-top: 90px;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-content {
    padding: 30px 16px 24px;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 25px !important;
    color: #0C455C !important;
    margin-bottom: 24px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn-pink {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hero-actions .btn-black {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .hero-image-wrap {
    padding: 0 12px;
  }

  .hero-mockup {
    padding: 8px 8px 0;
    border-radius: 12px 12px 0 0;
  }

  .hero-mockup-inner {
    min-height: 180px;
    gap: 4px;
  }

  .mockup-cell span {
    font-size: 1.6rem;
  }

  .cloud-1 {
    width: 120px;
    height: 35px;
    top: 8%;
  }

  .cloud-1::before {
    width: 60px;
    height: 45px;
    top: -20px;
  }

  .cloud-1::after {
    width: 40px;
    height: 32px;
    top: -14px;
  }

  .cloud-2 {
    width: 150px;
    height: 40px;
  }

  .cloud-2::before {
    width: 70px;
    height: 50px;
    top: -22px;
  }

  .cloud-2::after {
    width: 50px;
    height: 38px;
    top: -16px;
  }

  .cloud-3,
  .cloud-4 {
    display: none;
  }

  /* --- About --- */
  .about-grid,
  .record-grid,
  .globe-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px;
  }
  
  .about-image-wrap,
  .record-img-side,
  .globe-visual-wrap {
    order: -1 !important;
  }
  
  .record-text h2 {
    font-size: 2.2rem;
  }

  .about-image-badge {
    right: 10px;
    bottom: 16px;
    padding: 12px 16px;
  }

  .about-image-badge strong {
    font-size: 1.6rem;
  }

  .about-art-grid {
    min-height: 280px;
  }

  .art-cell span {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .btn-pink {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .stats-row {
    gap: 20px;
    margin-top: 28px;
  }

  .stat-item strong {
    font-size: 1.5rem;
  }

  .stat-item span {
    font-size: 0.8rem;
  }

  /* --- How It Works --- */
  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .globe-text p {
    font-size: 0.95rem;
  }

  .globe-grid {
    gap: 32px;
  }

  .step-card {
    padding: 24px 16px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .step-emoji {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .step-card h3 {
    font-size: 0.9rem;
  }

  .step-card p {
    font-size: 0.8rem;
  }

  /* --- Gallery Rising Cards --- */
  .gallery-scroll-container {
    justify-content: flex-start;
    padding: 20px 12px 12px;
    gap: 12px;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-card {
    width: 150px;
  }

  .gallery-card img,
  .gallery-card>div:first-child {
    height: 180px !important;
    width: 150px !important;
  }

  .gallery-card-info {
    padding: 10px;
  }

  .gallery-card-info p {
    font-size: 0.72rem;
  }

  /* --- Diploma --- */
  .section-diploma .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .diploma-card {
    padding: 28px;
  }

  /* --- Partners --- */
  .partners-label {
    font-size: 0.7rem;
  }

  .partner-logo {
    font-size: 0.9rem;
    height: 28px;
  }

  .partners-track {
    gap: 40px;
  }

  /* --- CTA --- */
  .section-cta {
    padding: 56px 0;
  }

  .section-cta h2 {
    font-size: 1.6rem;
  }

  .section-cta p {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-actions .btn-pink,
  .cta-actions .btn-ghost {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* --- Footer --- */
  .footer {
    padding: 40px 0 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* --- Floating CTA --- */
  .floating-cta {
    bottom: 16px;
    right: 12px;
  }

  .floating-cta .btn-pink {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  /* --- Tag --- */
  .tag {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  /* --- Participate Pages --- */
  .page-wrapper {
    padding-top: 80px;
  }

  .page-container {
    padding: 0 16px 60px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  .country-card {
    padding: 12px;
    font-size: 0.85rem;
    gap: 8px;
  }

  .country-flag {
    font-size: 1.3rem;
  }

  .search-input {
    padding: 12px 16px 12px 40px;
    font-size: 0.9rem;
  }

  /* Form */
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .upload-zone {
    padding: 28px 16px;
  }

  .upload-zone-icon {
    font-size: 2rem;
  }

  /* Terms */
  .terms-box {
    padding: 20px;
    max-height: 400px;
  }

  .terms-box h3 {
    font-size: 1rem;
  }

  .terms-box p,
  .terms-box li {
    font-size: 0.88rem;
  }

  /* Touch targets — min 44px height */
  .checkbox-wrap input[type="checkbox"] {
    min-width: 24px;
    min-height: 24px;
  }

  .checkbox-wrap label {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
    .record-img-side img {
        height: auto;
        max-height: 350px;
    }
}
/* ===================================
   RESPONSIVE — SMALL PHONE (<=480px)
   =================================== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .hero-content p {
    font-size: 25px !important;
    color: #0C455C !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-pink,
  .hero-actions .btn-black {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .hero-mockup-inner {
    grid-template-columns: repeat(3, 1fr);
    min-height: 140px;
  }

  .about-art-grid {
    grid-template-columns: repeat(3, 1fr);
    min-height: 240px;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .globe-title {
    font-size: 1.5rem;
  }

  .globe-visual-wrap {
    max-width: 100%;
  }

  .step-card {
    padding: 20px 14px;
  }

  .about-text h2 {
    font-size: 1.4rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .gallery-card {
    width: 130px;
  }

  .gallery-card img,
  .gallery-card>div:first-child {
    height: 150px !important;
    width: 130px !important;
  }

  .country-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .country-card {
    padding: 10px;
    font-size: 0.8rem;
  }

  .diploma-card {
    padding: 20px;
  }

  .page-title {
    font-size: 1.3rem;
  }

  /* Full-width buttons */
  .btn-pink,
  .btn-black,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .section-cta h2 {
    font-size: 1.3rem;
  }
}

/* ===================================
   SAFE AREA — Notched phones (iPhone X+)
   =================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floating-cta {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .page-wrapper {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Ensure touch targets everywhere */
@media (pointer: coarse) {
  .nav-links a {
    padding: 10px 16px;
  }

  .lang-btn {
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .country-card {
    min-height: 48px;
  }

  .step-card {
    cursor: default;
  }

  .checkbox-wrap {
    padding: 8px 0;
  }

  .checkbox-wrap input[type="checkbox"] {
    min-width: 28px;
    min-height: 28px;
  }
}
/* ===================================
   WORLD RECORD PAGE BLOCKS
   =================================== */
.record-section {
    padding: 100px 24px; /* Slightly more padding for blocks */
    overflow: hidden;
}

.record-section:first-child,
main.fade-in > .record-section:first-of-type {
    padding-top: 180px; /* Even more room for navigation */
}

.record-section.bg-surface {
    background-color: var(--surface);
}

.record-section.bg-white {
    background-color: var(--white);
}

.record-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.record-grid.reverse .record-content-side {
    order: 2;
}

.record-img-side {
    max-width: 400px; /* Shrunk from 500px to perfectly match the main page imagery */
    margin: 0 auto;
}

.record-img-side img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Forces a perfect, identical square layout regardless of original image proportions */
    object-fit: cover; /* Fills the square without distorting the picture */
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1); /* Standardized main-page shadow since the frame is gone */
    transition: transform 0.5s var(--ease);
}

.record-section:hover .record-img-side img {
    transform: translateY(-10px);
}

.record-content-side {
    position: relative;
}

.record-content-side h1,
.record-content-side h2 {
    font-size: 40px !important;
    color: #0C455C !important;
    font-weight: 900 !important;
    word-spacing: -0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 24px !important;
    line-height: 1.15;
    font-family: 'Varela Round', sans-serif !important;
}

.record-content-side p {
  font-size: 20px !important;
  color: #0C455C !important;
  font-weight: 500 !important;
  word-spacing: -0.06em !important;
  line-height: 1.6 !important;
  margin-bottom: 16px;
}



.record-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.record-list li {
    font-size: 1.15rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-body);
}

.record-list li span.icon {
    font-size: 1.5rem;
}

.record-hero-block {
    padding: 180px 24px 100px;
    background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%);
    text-align: center;
}

.record-hero-block .container {
    max-width: 900px;
}

.record-hero-block h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
}

.record-hero-block .hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 32px;
}

.record-hero-block .hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 0, 102, 0.08);
    color: var(--pink-cta);
    border-radius: 100px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .record-grid {
        flex-direction: column !important;
        gap: 50px;
        text-align: center;
    }
    
    .record-img-side {
        max-width: 100%;
        order: -1;
    }
    
    .record-list li {
        justify-content: center;
    }
}

/* Language Switcher */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 4px;
}

.lang-btn {
    background: transparent;
    color: #4a4a4a;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(115, 86, 160, 0.3);
}

.lang-btn:hover {
    background: #fdfbff;
    border-color: rgba(115, 86, 160, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(115, 86, 160, 0.1);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #ffffff;
    min-width: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-radius: 14px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.04);
}

.lang-menu.show {
    display: flex;
    flex-direction: column;
}

.lang-menu a {
    padding: 10px 0;
    color: #4a4a4a;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.lang-menu a:hover {
    background: #f7f3ff;
    color: #7356a0;
}

/* Adjust for mobile menu */
.nav-mobile-menu .lang-dropdown {
    margin-top: 10px;
    margin-left: 0;
}

.nav-mobile-menu .lang-btn {
    padding: 10px 20px;
    font-size: 1rem;
}

.nav-mobile-menu .lang-menu {
    background: rgba(255,255,255,0.5);
}
.nav-inner .btn-pink {
    padding: 10px 20px;
    font-size: 0.95rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Mobile Responsiveness Fixes --- */
@media (max-width: 991px) {
  /* Hide desktop language switcher in the main bar */
  .nav-inner .lang-dropdown {
    display: none !important;
  }
  
  /* Ensure the one in the mobile menu is styled correctly */
  #mobileMenu .lang-dropdown {
    display: block !important;
    margin: 20px 0;
  }

  .nav-inner {
    padding: 8px 12px;
    gap: 12px;
  }
  
  .hero {
    padding-top: 100px !important;
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 40px !important;
  }
  .nav-logo span {
    font-size: 1.1rem !important;
  }
}

/* ===================================
   MOBILE DIPLOMA COMPONENT (COMPACT & ELEGANT)
   =================================== */
@media (max-width: 991px) {
  .diploma-choice-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 20px 0 !important;
    padding: 0 10px !important;
  }

  .diploma-choice-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 12px !important;
    border-radius: 18px !important;
    position: relative !important;
    background: #fff !important;
    border: 1px solid #edf2f7 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    gap: 12px !important;
    min-height: auto !important;
  }

  .diploma-choice-card img {
    width: 45px !important;
    height: 45px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
  }

  .diploma-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
  }

  .diploma-card-title {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: var(--pink-cta) !important;
    margin: 0 0 2px 0 !important;
    min-height: auto !important;
    text-align: left !important;
    display: block !important;
    line-height: 1.1 !important;
  }

  .diploma-card-features {
    display: block !important;
    font-size: 0.65rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    color: #718096 !important;
    padding-left: 0 !important;
    list-style: none !important;
  }

  .diploma-card-features li {
    margin-bottom: 1px !important;
    white-space: normal !important;
  }

  .diploma-price-badge {
    margin: auto 0 auto auto !important; /* Center vertically in the row */
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    width: auto !important;
    height: fit-content !important;
    min-width: 55px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
  }

  .diploma-radio-indicator {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 50% !important;
    z-index: 2;
  }

  .diploma-choice-card.selected {
    border-color: var(--pink-cta) !important;
    background: #fff9fc !important;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.08) !important;
  }

  .diploma-choice-card.selected .diploma-radio-indicator {
    background: var(--pink-cta) !important;
    border-color: var(--pink-cta) !important;
    box-shadow: inset 0 0 0 3px white !important;
  }
}
