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

/* Remove focus/active outline for all elements */
*:focus {
  outline: none;
}

/* Remove tap highlight on mobile for clickable elements */
a, button, img {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
}

/* Optional: remove default link highlight on click */
a:active, button:active, img:active {
  outline: none;
  box-shadow: none;
}

.feature-box, .feature-box * {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

@font-face {
  font-family: 'Johnston ITC Std Medium';
  src: url('../fonts/JohnstonITCStd-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Johnston ITC Std Medium', sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
  
}

.navbar {
  background: #383838;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 500;
  
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  transition: border-radius 0.1s ease;
}

/* Contained wrapper for desktop spacing */
.navbar .container {
  max-width:1200px;
  margin:0 auto;
  padding:0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 130px;
}

/* Logo */
.navbar .logo img { height:100px; }

@media (max-width: 1000px) {
  .navbar .logo img {
    height: 80px; /* 50% of original 100px */
  }
  .navbar .container {
    min-height: 10px !important;
  }
}

/* Logo hidden by default */
.navbar .logo {
  opacity: 0;
  transform: translateX(-100px);
  transition: transform 1s ease-out, opacity 1s ease-out;
}

/* Logo visible state */
.navbar .logo.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- For mobile: always animate in on load --- */
@media(max-width: 1000px) {
  .navbar .logo {
    opacity: 1;               /* make visible immediately */
    transform: translateX(0); /* move into place */
    animation: slideInLeft 1s ease-out;
  }
}

/* Keyframes for slide-in */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Desktop nav row */
.nav-desktop {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex:1;
  padding:10px 0;
}

.nav-desktop .logo img{
  width: 200px;
  height: auto;
}

.nav-top .logo img{
  width: 100px;
  height: auto;
}

/* Desktop nav links */
.nav-links.desktop-links {
  display:flex;
  gap:30px;
  list-style:none;
  margin:0 auto;
}

.nav-links.desktop-links li a {
  position:relative;
  text-decoration:none;
  color:#fff;
  font-weight:bold;
  padding-bottom:5px;
  transition:color 0.3s ease;
}

/* Initial state: hidden + moved up */
.nav-links.desktop-links li {
  opacity: 0;
  transform: translateY(-20px);
  animation: navFadeIn 0.6s forwards;
}

/* Cascade delays for each link */
.nav-links.desktop-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links.desktop-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links.desktop-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links.desktop-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links.desktop-links li:nth-child(5) { animation-delay: 0.5s; }

/* Fade-in animation */
@keyframes navFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links.desktop-links li a:hover { color:#FFD600; }

/* Yellow underline effect (desktop) */
.nav-links.desktop-links li a::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:20px;
  height:3px;
  background:#FFD600;
  border-radius:3px;
  opacity:0;
  transition:opacity 0.3s ease;
}

.nav-links.desktop-links li a.active,
.nav-links.desktop-links li a.active::after {
  color:#FFD600;
  opacity:1;
}

/* Contact button (desktop + mobile) */
.contact-btn a {
  display:inline-block;
  padding:10px 20px;
  background:#383838;         
  color:#FFD600;              
  border:2px solid #FFD600;   
  border-radius:25px;         
  text-decoration:none;
  font-weight:bold;
  transition:background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor:pointer;
}

/* Shared hover + pressed look */
.contact-btn a:hover,
.contact-btn a.pressed,
.contact-btn a.active{
  background:#FFD600;         /* yellow fill */
  color:#383838;              /* dark text */
}

/* Desktop contact button */
.contact-btn.desktop-btn {
  opacity: 0;
  transform: translateX(50px); /* Start off to the right */
  animation: contactSlideIn 0.6s forwards;
  animation-delay: 0.5s; /* Slight delay after nav links */
}

.contact-btn.desktop-btn a {
  width: 200px;
  height: 50px;              /* set a fixed height */
  display: flex;             /* enable flexbox */
  align-items: center;       /* vertical centering */
  justify-content: center;   /* horizontal centering */
  text-align: center;        /* safe fallback */
}

/* Slide-in animation */
@keyframes contactSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Mobile top bar (logo + burger) */
.nav-top {
  display:none;
  justify-content:space-between;
  align-items:center;
  padding:10px 20px;
}

/* Hamburger wrapper */
.hamburger {
  position: relative;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 300;
  -webkit-tap-highlight-color: transparent;
}

/* Bars (all start centered) */
.hamburger span {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(.77,0,.175,1), 
              opacity 0.25s ease;
}

/* Closed state offsets */
.hamburger span:nth-child(1) {
  transform: translateY(-8px);
}
.hamburger span:nth-child(2) {
  transform: translateY(-50%);
}
.hamburger span:nth-child(3) {
  transform: translateY(6px);
}

/* Open state (X) */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scale(0.5);
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%; /* dropdown below navbar */
  left: 0;
  width: 100%;
  background: #383838;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000; /* higher than navbar to appear on top */
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.1s ease, opacity 0.4s ease;
  padding: 0 20px;
}

.mobile-menu.active {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

/* Remove navbar curve when mobile menu is open */
.navbar.menu-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Mobile nav links */
.mobile-menu .nav-links {
  list-style:none;
  width:100%;
  text-align:center;
  padding:0;
}

.mobile-menu .nav-links li { padding:12px 0; }

.mobile-menu .nav-links li a {
  position:relative;
  text-decoration:none;
  color:#fff;
  font-weight:bold;
  font-size:18px;
  display:block;
  padding:10px 0;
  transition:color 0.3s ease;
}

/* Hover + active underline for mobile */
.mobile-menu .nav-links li a:hover { color:#FFD600; }

.mobile-menu .nav-links li a::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:20px;
  height:3px;
  background:#FFD600;
  border-radius:3px;
  opacity:0;
  transition:opacity 0.3s ease;
}

.mobile-menu .nav-links li a.active,
.mobile-menu .nav-links li a.active::after {
  color:#FFD600;
  opacity:1;
}

.mobile-menu .contact-btn {
  margin:15px auto;
  text-align:center;
  max-width:200px;
  width:100%;
}

/* MOBILE RESPONSIVE */
@media(max-width:1000px) {
  .navbar .container { padding:0 20px; }
  .nav-desktop { display:none; }
  .nav-top { display:flex; }
  .hamburger { display:flex; }
}

.hero {
  position: relative;
  background: url("../images/Background.webp") no-repeat center center/cover;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  height: 98vh;
  background-color: #EB9F01;

  /* Pull hero behind navbar */
  margin-top: -100px; /* match navbar height */
  z-index: 1;
}

@media (max-width: 1000px) {
  .hero {
    height: 104vh; /* full height on mobile */
  }
}

/* optional overlay */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.080);
  z-index: 2;
}

/* Hero inner content */
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  text-align: left;
  max-width: 600px;

  /* start transparent and shifted left */
  opacity: 0;
  transform: translateX(-50px);

  /* fade-in + slide-in from left */
  animation: fadeInLeft 1s ease-out forwards;
}

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

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;

  /* start hidden off-screen */
  opacity: 0;
  transform: translateX(100px);

  /* run animation */
  animation: slideInRight 1s ease-out forwards;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer; /* optional, makes it feel more interactive */
}

.hero-image img:hover {
  transform: translateY(-10px) scale(1.03);
}

/* Scroll section container */
.scroll-down {
  position: absolute;
  bottom: 20px;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-weight: 500;
  z-index: 100;

  /* fade-in animation */
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s; /* adjust delay as needed */
}

/* Mouse icon */
.scroll-down .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 14px;
  position: relative;
  margin: 0 auto 10px;
}

/* Animated "wheel" inside mouse */
.scroll-down .mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

/* Animation for the wheel */
@keyframes scrollWheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  30%  { opacity: 1; transform: translate(-50%, 8px); }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* Text styling */
.scroll-down p {
  font-size: 14px;
  margin: 0;
}

/* Fade-in keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* RESPONSIVE SIZES */
@media(max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 0 20px;
  }

  .hero-content {
    text-align: center;
  }

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

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

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

/* ABOUT + STATS SECTION */
.about-stats {
  background-color: #F2F2F7;
  padding: 80px 20px;
  color: #1A1A1A;
}

.about-stats .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Initial hidden state */
.about-intro {
  text-align: center;
  margin-bottom: 60px;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Visible state triggers slide-up */
.about-intro.visible {
  opacity: 1;
  transform: translateY(0);
}


.about-intro h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #383838;
  position: relative; /* <-- make h2 the reference for ::after */
  display: inline-block; /* optional: keeps width to text size */
}

/* Yellow underline effect (desktop) */
.about-intro h2::after {
  content: "";
  position: absolute;
  left: 50%;              /* start at center of h2 */
  bottom: -8px;
  transform: translateX(-50%); /* shift back by half width to center */
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}

.about-intro p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 15px auto;
  color: #383838;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Honeycomb stat container */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* hidden until visible */
  opacity: 0;
  transform: translateY(30px);
}

/* When visible, trigger fade-up */
.stat.visible {
  animation: fadeUp 0.8s ease forwards;
}

/* Icon above number */
.stat-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
}

.stat h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #FFD600; /* accent color */
  margin-bottom: 10px;
}

.stat p {
  font-size: 1rem;
  font-weight: 500;
  color: #383838;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-stats {
    padding-top: 100px; /* Add top padding to push section down */
  }
  .stats-grid {
    gap: 20px; /* Tighter gap */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller min width */
  }
  .about-intro h2 {
    font-size: 2rem;
  }
  .about-intro p {
    font-size: 1rem;
  }
  .stat h3 {
    font-size: 1.8rem; /* Slightly smaller for mobile */
  }
  .stat p {
    font-size: 0.95rem;
  }
  .stat-icon {
    width: 50px;
    height: 50px;
  }
}

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

/* Cascade delays when visible */
.stat.visible:nth-child(1) { animation-delay: 0.2s; }
.stat.visible:nth-child(2) { animation-delay: 0.4s; }
.stat.visible:nth-child(3) { animation-delay: 0.6s; }
.stat.visible:nth-child(4) { animation-delay: 0.8s; }
.stat.visible:nth-child(5) { animation-delay: 1.0s; }
.stat.visible:nth-child(6) { animation-delay: 1.2s; }
.stat.visible:nth-child(7) { animation-delay: 1.4s; }
.stat.visible:nth-child(8) { animation-delay: 1.6s; }

/* FEATURE SECTION */
.feature-section {
  padding: 80px 20px;
  background-color: #F9F9F9;
  text-align: center;
}

.feature-section .container{
  max-width: 1000px;
  margin: 0 auto;
}

/* Intro heading & paragraph */
.feature-section .feature-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #383838;
  position: relative; /* <-- make h2 the reference for ::after */
  display: inline-block; /* optional: keeps width to text size */
}

/* Yellow underline effect (desktop) */
.feature-section .feature-intro h1::after {
  content: "";
  position: absolute;
  left: 50%;              /* start at center of h2 */
  bottom: -8px;
  transform: translateX(-50%); /* shift back by half width to center */
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}

.feature-section .feature-intro p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px auto;
  color: #383838;
}

/* Slide-up animation for intro */
.feature-intro {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 per row */
  gap: 30px;
  justify-items: center;
}

/* Feature boxes */
.feature-box {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px 20px 20px 20px;
  width: 100%; 
  max-width: 500px; /* keep nice width */
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;

  /* slide-up initial state */
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr; /* 1 per row on smaller screens */
  }
}

/* Visible with cascade effect */
.feature-box.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cascade using nth-child */
.feature-box:nth-child(1).visible {
  transition-delay: 0.1s;
}
.feature-box:nth-child(2).visible {
  transition-delay: 0.25s;
}

/* Hover raise */
.feature-box:hover {
  transform: translateY(-10px);
}

/* Icon, header, and text */
.feature-box .icon {
  margin-bottom: 20px;
}

.icon img {
  width: 50px;
}

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #383838;
  position: relative; /* needed for ::after positioning */
}

.feature-box h3::after {
  content: "";
  display: block;
  width: 50px;           /* length of the line */
  height: 3px;           /* thickness of the line */
  background-color: #FFD700; /* yellow color */
  margin: 8px auto 0;    /* spacing + centered */
  border-radius: 2px;    /* rounded edges */
}

.feature-box p {
  font-size: 1rem;
  color: #383838;
}

/* Hover image overlay - slide up */
.feature-box .hover-image {
  position: absolute;
  top: 100%; /* start hidden below */
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  transition: top 0.5s ease;
  z-index: 2;
}

.feature-box:hover .hover-image {
  top: 0; /* slide up into place */
}

.feature-box .hover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FOOTER */
.site-footer {
  background-color: #383838;
  color: #FFD600;
  padding: 40px 20px 20px 20px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap; /* makes it responsive */
  margin-bottom: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-left,
.footer-right {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.footer-left h4,
.footer-right h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #FFD600;
}

.footer-left p,
.footer-right p {
  margin: 0;
  color: #ccc;
  line-height: 1.6;
  padding-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #FFD600;
  padding-top: 15px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0;
}

/* FOOTER ANIMATION (base state hidden for left + right only) */
.footer-left,
.footer-right {
  opacity: 0;
  transform: translateY(40px);
}

/* Animate only when visible */
.footer-left.visible {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.footer-right.visible {
  animation: slideUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

/* Footer bottom is always visible */
.footer-bottom {
  opacity: 1;
  transform: none;
}

/* Social Icons */
.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.5;
}

.social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

/* INFO SECTION BASE */
.info-section {
  background: #F2F2F7;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56,56,56,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.info-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.info-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(60px);
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block.reverse {
  flex-direction: row-reverse;
}

/* IMAGE STYLING */
.info-image {
  flex: 1;
  perspective: 1000px;
}

.info-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.info-image img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* TEXT STYLING */
.info-text {
  flex: 1;
  position: relative;
}

.info-text h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: #383838;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.info-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}

.info-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #383838;
  max-width: 500px;
}

/* ANIMATED STATE */
.info-block.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.info-block .info-image,
.info-block .info-text {
  opacity: 0;
  transform: translateY(40px);
}

.info-block.visible .info-image {
  animation: slideIn 1s ease forwards;
}

.info-block.visible .info-text {
  animation: fadeUp 1s ease forwards 0.4s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .info-block,
  .info-block.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .info-text h2 {
    font-size: 2rem;
  }

  .info-text p {
    margin: 0 auto;
    font-size: 1.05rem;
  }

  .info-image img {
    transform: none;
  }

    .info-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-section {
  background: #fff;
  padding: 80px 20px;
}

.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.timeline-icons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.timeline-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.timeline-icon img {
  width: 40px;
  filter: grayscale(100%) brightness(0);
  transition: all 0.3s ease;
}

.timeline-icon.active {
  background: #EEF3F8; /* matches your nav highlight */
}

.timeline-icon svg path {
  fill: black;
  transition: fill 0.3s ease;
}

.timeline-icon.active svg path {
  fill: #FFD600; /* yellow */
}
.timeline-content {
  position: relative;
}

.timeline-box {
  display: none;
  background: #EEF3F8;
  border-radius: 20px;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.timeline-box.active {
  display: block;
}

.timeline-box h2 {
  position: relative; /* needed for ::after positioning */
  display: inline-block; /* ensures the line is aligned properly */
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #383838;
}

.timeline-box h2::after {
  content: "";
  position: absolute;
  left: 50%;            /* start from center */
  bottom: -10px;        /* distance below h2 */
  transform: translateX(-50%); /* center it horizontally */
  width: 60px;           /* line length */
  height: 4px;           /* thickness */
  background-color: #FFD700; /* yellow */
  border-radius: 2px;
}


.timeline-box p {
  color: #383838;
  font-size: 1.1rem;
  line-height: 1.6;
}

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

/* Mobile: stack icons */
@media (max-width: 768px) {
  .timeline-icons {
    justify-content: center;
  }
}

.timeline-intro {
  text-align: center;
  margin-bottom: 40px;
}

.timeline-intro h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #383838;
  position: relative; /* <-- make h2 the reference for ::after */
  display: inline-block; /* optional: keeps width to text size */
}

/* Yellow underline effect (desktop) */
.timeline-intro h1::after {
  content: "";
  position: absolute;
  left: 50%;              /* start at center of h2 */
  bottom: -8px;
  transform: translateX(-50%); /* shift back by half width to center */
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}


.timeline-intro p {
  font-size: 1rem;
  color: #383838;
}

.timeline-section .timeline-intro,
.timeline-section .timeline-icons button {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-section .timeline-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-section .timeline-icons button.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cascading for icons --- */
.timeline-section .timeline-icons button.visible:nth-child(1) { transition-delay: 0.2s; }
.timeline-section .timeline-icons button.visible:nth-child(2) { transition-delay: 0.3s; }
.timeline-section .timeline-icons button.visible:nth-child(3) { transition-delay: 0.4s; }
.timeline-section .timeline-icons button.visible:nth-child(4) { transition-delay: 0.5s; }
.timeline-section .timeline-icons button.visible:nth-child(5) { transition-delay: 0.6s; }
.timeline-section .timeline-icons button.visible:nth-child(6) { transition-delay: 0.7s; }
.timeline-section .timeline-icons button.visible:nth-child(7) { transition-delay: 0.8s; }
.timeline-section .timeline-icons button.visible:nth-child(8) { transition-delay: 0.9s; }

/* Active icon background */
.timeline-icon.active {
  background: #EEF3F8;
  transition: background 0.3s ease;
}

/* Timeline content boxes */
.timeline-section .timeline-content .timeline-box {
  display: none;
  opacity: 1;
  transform: translateY(0);
}

.timeline-section .timeline-content .timeline-box.active {
  display: block;
}

.timeline-image {
  display: block;
  margin: 20px auto 0; /* top margin + centered horizontally */
  width: 100%;         
  max-width: 800px;    
  height: 450px;       
  object-fit: cover;   
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .timeline-image {
    width: 90%;          /* slightly smaller than full width */
    max-width: 100%;     /* don’t exceed container */
    height: auto;        /* maintain aspect ratio */
    margin: 15px auto 0; /* slightly smaller margin */
    border-radius: 6px;  /* slightly smaller radius */
  }
}

.timeline-image:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.brand-container {
  background-image: url('images/BMW/bmw_background.jpg');
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.brand-container .brand-intro {
  position: relative;
  z-index: 2;
}

.brand-container .brand-intro h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD600;
}

.brand-container .brand-intro img {
  width: 120px;                 /* consistent size */
  height: 120px;                /* fixed square for uniform look */
  object-fit: contain;          /* scale logos properly without stretching */
  background: rgba(255,255,255,0.9); 
  border-radius: 50%;           /* keep circular frame */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 40px auto;     /* centers and adds spacing */
  padding: 15px;                /* breathing room inside circle */
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 20px rgba(255,255,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-container .brand-intro img:hover {
  transform: scale(1.05);       /* subtle hover interaction */
  box-shadow: 0 6px 25px rgba(0,0,0,0.25), 0 0 25px rgba(255,255,255,0.8);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .brand-container .brand-intro h2 {
    font-size: 2rem;  /* smaller header */
    margin-bottom: 15px;
  }

  .brand-container .brand-intro img {
    width: 90px;      /* smaller logo */
    height: 90px;
    margin-bottom: 30px; /* reduce spacing slightly */
    padding: 10px;    /* slightly smaller padding inside circle */
  }
}

.brand-stats .stat .stat-icon {
  filter: brightness(0) invert(1); /* turns black/dark SVGs white */
}

.brand-stats .stat p{
  color: white;
}

.brand-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns per row on desktop */
  gap: 30px; /* spacing between stats */
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .brand-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns per row on mobile */
    gap: 20px; /* optional smaller spacing on mobile */
  }
}

.brand-intro h2,
.brand-intro img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.brand-intro.visible h2,
.brand-intro.visible img {
  opacity: 1;
  transform: translateY(0);
}

/* BRAND SELECTOR */
.brand-selector {
  padding: 80px 20px;
  text-align: center;
  background: #F9F9F9;
}

.brand-selector-container {
  max-width: 1200px;
  margin: 0 auto;
}

.brand-selector h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 600;
  color: #383838;
  position: relative; /* <-- make h2 the reference for ::after */
  display: inline-block; /* optional: keeps width to text size */
}

/* Yellow underline effect (desktop) */
.brand-selector h2::after {
  content: "";
  position: absolute;
  left: 50%;              /* start at center of h2 */
  bottom: -8px;
  transform: translateX(-50%); /* shift back by half width to center */
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}

.brand-selector p {
  margin-bottom: 40px;
  font-size: 1rem;
  color: #383838;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.logo-grid img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.logo-grid img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

/* Smooth scrolling globally */
html {
  scroll-behavior: smooth;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #FFD600; /* bright yellow */
  color: #1A1A1A;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.back-to-top:hover {
  transform: scale(1.1);
  background: #e6c200; /* slightly darker yellow on hover */
}

.bottom-info {
  background-color: #f7f7f7; /* light background */
  color: #1a1a1a;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.bottom-info h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 600;
  color: #383838;
  position: relative; /* <-- make h2 the reference for ::after */
  display: inline-block; /* optional: keeps width to text size */
}

/* Yellow underline effect (desktop) */
.bottom-info h2::after {
  content: "";
  position: absolute;
  left: 50%;              /* start at center of h2 */
  bottom: -8px;
  transform: translateX(-50%); /* shift back by half width to center */
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}

.bottom-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: #383838;
}

a.no-style {
  color: inherit;       /* inherit text color from parent */
  text-decoration: none; /* remove underline */
  font-weight: inherit;  /* match surrounding text */
  cursor: pointer;       /* still shows it's clickable */
}

a.no-style:hover {
  text-decoration:underline; /* no underline on hover */
  color: inherit;        /* no color change on hover */
}

/* Logo grid base */
.logo-grid a {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When visible */
.logo-grid a.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional stagger by nth-child */
.logo-grid a:nth-child(1) { transition-delay: 0.1s; }
.logo-grid a:nth-child(2) { transition-delay: 0.2s; }
.logo-grid a:nth-child(3) { transition-delay: 0.3s; }
.logo-grid a:nth-child(4) { transition-delay: 0.4s; }
.logo-grid a:nth-child(5) { transition-delay: 0.5s; }
.logo-grid a:nth-child(6) { transition-delay: 0.6s; }
.logo-grid a:nth-child(7) { transition-delay: 0.7s; }
.logo-grid a:nth-child(8) { transition-delay: 0.8s; }
.logo-grid a:nth-child(9) { transition-delay: 0.9s; }
.logo-grid a:nth-child(10) { transition-delay: 1.0s; }
.logo-grid a:nth-child(11) { transition-delay: 1.1s; }
.logo-grid a:nth-child(12) { transition-delay: 1.2s; }
.logo-grid a:nth-child(13) { transition-delay: 1.3s; }
.logo-grid a:nth-child(14) { transition-delay: 1.4s; }
.logo-grid a:nth-child(15) { transition-delay: 1.5s; }
.logo-grid a:nth-child(16) { transition-delay: 1.6s; }
.logo-grid a:nth-child(17) { transition-delay: 1.7s; }
.logo-grid a:nth-child(18) { transition-delay: 1.8s; }
.logo-grid a:nth-child(19) { transition-delay: 1.9s; }
.logo-grid a:nth-child(20) { transition-delay: 2.0s; }
.logo-grid a:nth-child(21) { transition-delay: 2.1s; }
.logo-grid a:nth-child(22) { transition-delay: 2.2s; }
.logo-grid a:nth-child(23) { transition-delay: 2.3s; }
.logo-grid a:nth-child(24) { transition-delay: 2.4s; }
/* Keep going if you add more logos */

/* Mobile override: set all children to 0.1s delay */
@media (max-width: 768px) {
  .logo-grid a {
    transition-delay: 0.2s !important;
  }
}

/* Brand selector heading + text animations */
.brand-selector h2,
.brand-selector p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.brand-selector h2.visible,
.brand-selector p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PURE EVENTS CALCULATOR (Centred Version) === */
.pure-calculator {
  padding: 80px 20px;
  background: #F2F2F7;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calculator-container {
  max-width: 650px;
  width: 100%;
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-container:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.pure-calculator h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #383838;
  text-align: center;
  position: relative;
}

.pure-calculator h2::after {
  content: "";
  display: block;
  width: 50px;           /* length of the line */
  height: 3px;           /* thickness of the line */
  background-color: #FFD700; /* yellow color */
  margin: 8px auto 0;    /* spacing + centered */
  border-radius: 2px;    /* rounded edges */
}

.pure-calculator p {
  font-size: 1.05rem;
  color: #383838;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin: 25px 0;
  text-align: center; /* centre the labels + inputs */
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #383838;
  margin-bottom: 10px;
  display: block;
  text-align: center; /* label centred */
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  width: 100%;
  max-width: 320px; /* keeps it neat in the centre */
  margin: 0 auto; /* centres input/select */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fdfdfd;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #FFD600;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.25);
}

.calc-btn {
  margin-top: 15px;
  padding: 14px 35px;
  background: #FFD600;
  color: #383838;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.calc-btn:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.results-box {
  margin-top: 40px;
  padding: 25px 20px;
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: none; /* hidden until results show */
  animation: fadeIn 0.4s ease forwards;
  text-align: center;
}

.results-box h3 {
  margin-bottom: 15px;
  color: #383838;
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
}

.results-box h3::after {
  content: "";
  display: block;
  width: 50px;           /* length of the line */
  height: 3px;           /* thickness of the line */
  background-color: #FFD700; /* yellow color */
  margin: 8px auto 0;    /* spacing + centered */
  border-radius: 2px;    /* rounded edges */
}

.results-box p {
  font-size: 1.1rem;
  color: #383838;
  margin: 8px 0;
  text-align: center;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pure Calculator Animation */
.pure-calculator {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.pure-calculator.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FEATURE SECTION */
.event-section {
  padding: 80px 20px;
  background-color: #F2F2F7;
  text-align: center;
}

.event-section .container{
  max-width: 1000px;
  margin: 0 auto;
}

/* Intro heading & paragraph */
.event-section .event-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #383838;
  position: relative; /* <-- make h2 the reference for ::after */
  display: inline-block; /* optional: keeps width to text size */
}

/* Yellow underline effect (desktop) */
.event-section .event-intro h1::after {
  content: "";
  position: absolute;
  left: 50%;              /* start at center of h2 */
  bottom: -8px;
  transform: translateX(-50%); /* shift back by half width to center */
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}

.event-section .event-intro p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px auto;
  color: #383838;
}

/* Slide-up animation for intro */
.event-intro {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.event-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-section {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;

  /* Animation setup */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When scrolled into view */
.contact-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 600;
  color: #383838;
  position: relative;
  display: inline-block;
}

.contact-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #FFD600;
  border-radius: 2px;
}

.contact-section p {
  margin-bottom: 40px;
  font-size: 1rem;
  color: #383838;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

/* ✅ Force 2-column layout on desktop */
.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.form-row .form-group {
  flex: 1 1 calc(50% - 10px);
  min-width: 250px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #FFD600;
  box-shadow: 0 0 0 3px rgba(238, 255, 0, 0.15);
  outline: none;
}

.full-width {
  width: 100%;
}

/* Center the submit button */
.submit-btn {
  font-family: 'Johnston ITC Std Medium', sans-serif;
  display:inline-block;
  padding:10px 20px;
  background:#FFD600;         /* yellow fill */
  color:#383838;              /* dark text */ 
  border:2px solid #FFD600;   
  border-radius:25px;         
  text-decoration:none;
  font-weight:bold;
  transition:background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor:pointer;
  margin: 0px auto 0; /* <-- centers it horizontally */
}

.submit-btn:hover {
  background:#f9f9f9;         
  color:#FFD600;   
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

/* 📱 Responsive stacking */
@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
  }
  .form-row .form-group {
    flex: 1 1 100%;
  }
}

.stats-updated {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  margin-top: 80px; 
  margin-bottom: 0px;
}
