@font-face {
  font-family: LEMONMILK;
  /* Note: Paths like /Fonts/.. are relative to the root. 
         Make sure this path is correct on your server. */
  src: url(/Fonts/LEMONMILK-LightItalic.otf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

:root {
  --bg-color: #fefae5;
  --text-color: #000000;
  --second-text-color: #102f76;
  --add-color: #ed1921;
  --portfolio-bg: #e8e8e8; /* Background for portfolio section */
}

html {
  font-size: 60%;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: #000; /* Added a base background for contrast */
}

body.modal-open {
  overflow: hidden;
}
/* ==================== DESKTOP NAVBAR ==================== */
.desktop-nav-new {
  position: fixed;
  top: 20px; /* "Floating" 20px from the top */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 8px 50px;
  border-radius: 50px; /* Rounded pill shape */
  font-family: LEMONMILK;
  transition: top 0.3s ease-in-out; /* Smooth hide/show */

  /* The Glass Effect */
  background: rgba(255, 255, 255, 0.27);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.3px);
  -webkit-backdrop-filter: blur(6.3px);
  border: 1px solid rgba(255, 255, 255, 0.79);

  /* Blend Mode for text inversion */
  mix-blend-mode: difference;
}

/* Hide-on-scroll state */
.desktop-nav-new.navbar-hidden {
  top: -100px;
}

.desktop-nav-new ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.desktop-nav-new ul li {
  margin: 0 15px; /* Spacing between items */
  position: relative;
  overflow: hidden;
}

.desktop-nav-new ul li a {
  text-decoration: none;
  color: #f5f5f5; /* This will be the base color for the difference blend */
  font-size: 12px; /* Made smaller and more aesthetic */
  position: relative;
  display: block;
  padding: 6px 0; /* Adjusted padding */
  pointer-events: auto;
}

/* GSAP Hover Animation */
.nav-text {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.nav-text-inner {
  display: block;
  transition: transform 1s ease;
}

.nav-text-clone {
  position: absolute;
  top: 100%;
  left: 0;
  transition: transform 1s ease;
}

.desktop-nav-new ul li:hover .nav-text-inner,
.desktop-nav-new ul li:hover .nav-text-clone {
  transform: translateY(-100%);
  columns: var(--add-color);
}

/* ==================== MOBILE HAMBURGER (FIXED) ==================== */
.container-nav {
  cursor: pointer;
  position: fixed;
  top: 5%;
  right: 5%;
  width: 30px;
  height: 20px;
  z-index: 1002; /* Higher than mobile-nav */
  display: none;
  pointer-events: auto;
  mix-blend-mode: difference;
}

.bars {
  position: relative;
  width: 30px;
  height: 4px;
  background: white;
  transition: all 0.3s ease;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 4px;
  background: white;
  transition: all 0.3s ease;
}

.bars::before {
  margin-top: 9px;
}

.bars::after {
  margin-top: 18px;
}

/* ==================== BASE MOBILE NAV STRUCTURE (FIXED) ==================== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000000;
  z-index: 1001;
  padding: 0;
  margin: 0;
  overflow: hidden;

  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Hidden State for GSAP */
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
}

/* --- Links & Underline Effect --- */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav ul li {
  margin: 5rem 0;
  overflow: hidden;
}

.mobile-nav ul li a {
  color: #fafafa;
  font-size: 2.5em;
  font-family: LEMONMILK;
  text-decoration: none;
  display: inline-block; /* Important for underline width */
  position: relative;
}

/* The Underline Animation */
.mobile-nav ul li a:after {
  content: "";
  width: 100%;
  position: absolute;
  height: 3px;
  border-radius: 5px;
  background: #fff;
  bottom: -5px;
  left: 0;
  transform-origin: left;
  transition: transform 0.5s ease;
  transform: scaleX(0);
}

.mobile-nav ul li a:hover:after {
  transform: scaleX(1);
}

/* --- The Close "X" Button (FIXED) --- */
.mobile-nav .close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 6%; /* Adjust position */
  right: 5%;
  cursor: pointer;
  z-index: 1002;
  opacity: 0; /* Starts invisible */
  pointer-events: none; /* JS will enable this */
}

/* DRAW THE X LINES */
.mobile-nav .close::before,
.mobile-nav .close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px; /* Length of line */
  height: 3px; /* Thickness */
  background: #fff;
  transition: background 0.3s ease;
  border-radius: 2px;
}

.mobile-nav .close::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav .close::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Red Hover Effect */
.mobile-nav .close:hover::before,
.mobile-nav .close:hover::after {
  background: rgb(209, 3, 3);
}

/* Hamburger Button Container */
.container-nav {
  cursor: pointer;
  position: fixed;
  top: 5%;
  right: 5%;
  z-index: 1002;
  mix-blend-mode: difference;
  display: none;
}
/* ==================== MEDIA QUERIES ==================== */

/* 1. DESKTOP (Larger than 992px) */
@media screen and (min-width: 993px) {
  .container-nav {
    display: none !important; /* Never show hamburger on desktop */
  }
  .mobile-nav {
    display: none !important; /* Completely remove from DOM layout */
  }
  .desktop-nav-new {
    display: block; /* Ensure desktop nav is visible */
  }
}

/* 2. TABLET & MOBILE (992px and smaller) */
@media screen and (max-width: 992px) {
  .desktop-nav-new {
    display: none !important; /* Hide desktop nav */
  }

  .container-nav {
    display: block; /* Show hamburger */
  }

  .mobile-nav {
    /* We don't use display:none here because GSAP needs it to be 'flex' 
       to calculate positions. We use visibility: hidden instead. */
    display: flex;
  }
}

/* 3. MOBILE SMALL SPECIFIC (Adjust fonts if needed) */
@media screen and (max-width: 400px) {
  .mobile-nav ul li a {
    font-size: 2.5em; /* Smaller text for tiny screens */
  }
}
/*--------------------- 	HOME 	 -------------------------------------*/
.images-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(10px);
  opacity: 1;
  z-index: -1; /* KEY FIX: Sends image behind text */
}

/* ==================== BASE STYLES  ==================== */
/* Ensure the container sits above the background canvas/image */
.home-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px; /* Limit max width for large screens */
  min-height: 100vh;
  margin: 0 auto;
  z-index: 10; /* Keeps text above the matrix effect */
  padding-top: 50px; /* Space from top */
}

.home-content-right-side {
  flex: 1; /* Takes up half space */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-content-left-side {
  flex: 1; /* Takes up half space */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo Styling */
.home-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 450px;
  margin: auto 15%;
}

.home-logo-h3 {
  font-family: LEMONMILK;
  font-size: 2.8rem;
  color: #fff;
  margin: auto 15%;
  line-height: 1.2;
}

.Mwa-Text {
  font-family: "Instrument Serif", serif;
  text-align: center;
  font-style: italic;
  font-size: 4rem;
  color: #ccc; /* Light gray for readability */
  line-height: 1;
  max-width: 650px;
  margin: 2rem 0;
}

.mwa-red {
  color: #ed1921;
  font-size: 5rem;
  font-weight: bold;
  text-shadow: 0px 0px 10px #ed1921;
}

/* Undraw Image Styling */
.undraw-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  /* Optional: Add a slight float animation */
  animation: float 6s ease-in-out infinite;
}

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

/* ==================== TABLET (Max-width: 1024px) ==================== */
@media screen and (max-width: 1024px) {
  .home-content {
    text-align: center; /* Center align text */
    gap: 4rem; /* Space between image and text */
    padding-top: 100px; /* More space for navbar */
  }

  .home-content-right-side {
    align-items: center; /* Center items vertically */
    padding-right: 0; /* Remove desktop padding */
    width: 100%;
  }
  .home-logo {
    width: 300px; /* Smaller logo */
  }

  .home-content-left-side {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .home-logo-h3 {
    font-size: 1.8rem; /* Slightly smaller title */
  }

  .Mwa-Text {
    max-width: 50vw; /* Use screen percentage for width */
    font-size: 1.5rem; /* Slightly smaller body text */
  }

  .mwa-red {
    font-size: 4rem;
  }

  .undraw-image {
    max-width: 400px;
  }
}

/* ==================== MOBILE (Max-width: 768px) ==================== */
@media screen and (max-width: 768px) {
  .home-content-right-side {
    align-items: center;
    text-align: center;
  }

  .home-logo {
    width: 180px; /* Smaller logo */
  }

  .home-logo-h3 {
    font-size: 1.2rem; /* readable title size */
    margin: -0.5rem 0 1rem 0;
  }

  .Mwa-Text {
    font-size: 2.5rem; /* Smaller body text */
    line-height: 0.8;
    max-width: 100%; /* Full width allowed */
    color: #ddd;
  }
  .mwa-red {
    font-size: 3rem;
  }

  .home-content {
    flex-direction: column; /* Stack: Image Top -> Text Bottom */
    gap: 3rem;
    padding: 80px 5% 40px 5%; /* Add horizontal padding */
  }

  /* Adjust Image */
  .home-content-left-side {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .undraw-image {
    max-width: 80%; /* Responsive width */
    min-width: 280px; /* Minimum size safety */
  }
}

/*------------------- 		SERVICES 		---------------------------------------*/

.services {
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.services-logo h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Libre Baskerville", serif;
  font-weight: 500;
  font-style: italic;
  font-size: 5rem;
  letter-spacing: -7px;
  color: var(--second-text-color);
  line-height: 80px;
  padding-top: 100px;
}
.blanc {
  padding: 0 1.5rem 0 0;
}

.services-logo p {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-color);
  text-align: center;
  margin: -1rem 0 0 0;
  gap: 0.6rem;
}

.container-icons {
  flex: 1;
  display: flex;
  margin: 18rem;
  font-family: "Montserrat", sans-serif;
}

.container-icons i {
  display: inline-flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 7rem;
  background: transparent;
  background: var(--add-color);
  color: var(--bg-color);
  transition: 0.3s ease-in-out;
  border-radius: 50%;
  width: 100px;
  height: 100px;
}

.container-icons i:hover {
  border: solid 2px var(--bg-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--add-color);
  transform: scale(1.2);
}

.container-icons h3 {
  display: inline-flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-size: 3.2rem;
  color: var(--text-color);
  font-weight: bold;
  margin: 2rem 0 2rem 0;
  width: 25vw;
}

.container-icons p {
  display: inline-flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  width: 20vw;
}

/*-------------------------- 	 PORTFOLIO 		--------------------------------*/

.portfolio {
  display: flex; /* Changed to flex */
  flex-direction: column; /* Stack children vertically */
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--portfolio-bg);
  min-height: 100vh;
  overflow: hidden; /* Hide carousel overflow */
}

.portfolio-text {
  display: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px; /* Added padding here */
}

.portfolio-h3 {
  color: var(--second-text-color);
  font-family: "Libre Baskerville", serif;
  font-weight: 500;
  font-style: italic;
  font-size: 5rem;
  letter-spacing: -3px;
}

.portfolio-span {
  font-size: 2rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text-color); /* Ensure text is visible */
}

/* --- START: Carousel Styles --- */
.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
  margin-top: 5rem; /* Add some space from the title */
  flex-grow: 1; /* Allow wrapper to take up space */
  margin-bottom: 10rem; /* Add space at the bottom */
}

.carousel-container {
  position: relative;
  width: 90%;
  padding: 3rem 0;
  max-width: 1200px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* Fade effect for the edges */
.carousel-container::before,
.carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 150px; /* Width of the fade */
  z-index: 2;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--portfolio-bg) 0%,
    rgba(232, 232, 232, 0) 100%
  ); /* Match --portfolio-bg */
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--portfolio-bg) 0%,
    rgba(232, 232, 232, 0) 100%
  ); /* Match --portfolio-bg */
}

.carousel-track {
  display: flex;
}

.glass-card {
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.4); /* Lighter glass on light bg */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  border-radius: 16px;

  /* Card Layout */
  width: 350px; /* Width from old .card */
  height: 500px; /* Height from old .card */
  margin: 0 15px;
  flex-shrink: 0; /* Prevents cards from shrinking */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to top */
  text-align: left;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
  color: var(--text-color);

  /* Performance Optimization */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.card-image {
  width: 100%;
  height: 250px; /* Height from old .card img */
  object-fit: cover;
  border-top-left-radius: 16px; /* Match card radius */
  border-top-right-radius: 16px;
}

.card-content {
  padding: 2rem 2rem; /* Padding from old .cards-text */
  font-family: "Montserrat", sans-serif;
}

.card-content h3 {
  font-size: 3rem; /* From .cards-title */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 1rem 0;
}

.card-content p {
  font-size: 1.5rem; /* From .cards-description */
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-color);
  opacity: 0.7;
}
/* --- END: Carousel Styles --- */

/* --- Modal Styles --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000; /* High z-index */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border-radius: 16px;
  color: white;

  width: 80%;
  max-width: 900px;
  height: 60vh;
  max-height: 600px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  z-index: 1001;

  /* Add scale-in animation */
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
  transition: transform 0.2s ease;
}

.modal-close-btn:hover {
  transform: scale(1.1);
}

.modal-left {
  flex: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

/* Style for the image in the modal */
.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-right {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
  /* Ensure scrolling works even when Lenis is stopped */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-right h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: LEMONMILK;
  color: var(--add-color);
}

.modal-right p {
  display: flex;
  text-align: left;
  font-size: 1.6rem;
  line-height: 1.3;
  font-family: "Montserrat", sans-serif;
  word-wrap: break-word;
}

/* Responsive for modal */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    height: 80vh;
    width: 90%;
  }
  .modal-left {
    flex: 0 0 200px; /* Fixed height for image area */
  }
  .modal-right {
    flex: 1;
    padding: 20px 25px;
  }
  .modal-right h2 {
    font-size: 2rem;
  }
  .modal-right p {
    font-size: 1.5rem;
  }
}
/* --- END: Modal Styles --- */

/*----------------------------- 	 TIMELINE 		-----------------------------*/

/* ==================================================================
        CSS FOR THE HOVER-REVEAL EFFECT
      ==================================================================
      */

.hover-reveal_text {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: black;
}

/* This class is added by JS on hover */
.z-nine {
  z-index: 9999;
}

/* --- Image Wrapper Styles --- */
.img-wrap {
  position: relative;
  z-index: 999;
}

.img-wrap .inner .hover-wrap {
  z-index: -1;
  width: 28vw;
  height: 500px;
  position: fixed; /* This makes it follow the mouse */
  top: 0;
  left: 0;
  opacity: 0; /* Hidden by default */
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  transition: opacity 0.2s ease;
}

/* This class is added by JS on hover to show the image */
.img-wrap .inner .hover-wrap.animate {
  opacity: 1;
  z-index: 990;
}

/* --- Clip-Path Animation --- */
.img-wrap .inner .hover-wrap .hover-wrap-inner {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0 round 12px);
  transition: clip-path 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* This is the "reveal" animation */
.img-wrap .inner .hover-wrap.animate .hover-wrap-inner {
  clip-path: inset(0 0 0 0 round 12px);
}

/* --- Image Styles --- */
.img-wrap .inner .hover-wrap .hover-wrap-inner .hover-reveal_image {
  border-radius: 12px;
  position: absolute;
  object-fit: contain;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: scale(1.1);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animate image scale on reveal */
.img-wrap .inner .hover-wrap.animate .hover-wrap-inner .hover-reveal_image {
  transform: scale(1);
}

/* ==================================================================
        YOUR TIMELINE CSS (Cleaned and Merged)
      ==================================================================
      */

.inline-block {
  max-width: 100%;
  display: inline-block;
}

.page-wrapper {
  position: relative;
  z-index: 0;
}

.container {
  width: 100vw;
  min-width: 100vw;
  margin-left: auto;
  margin-right: auto;
}

.section-timeline-heading {
  background-color: var(--bg-color);
}

.padding-vertical-xlarge {
  padding-top: 120px;
  padding-bottom: 120px;
}

.timeline-main_heading-wrapper {
  color: #000000;
  text-align: center;
  max-width: 64em;
  margin-left: auto;
  margin-right: auto;
}

.timeline-main_heading-wrapper h3 {
  color: var(--second-text-color);
  font-weight: bold;
  font-style: italic;
  font-size: 5rem;
  letter-spacing: -3px;
  margin: 0;
}

.section-timeline {
  background-color: var(--bg-color);
  position: relative;
  z-index: 3;
}

.timeline_component {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.timeline_progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background-color: #000000;
  z-index: 1;
}

.timeline_progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, #ff6a00, #ee0979);
  z-index: 2;
  transition: height 0.1s ease-out;
}

.timeline_items-container {
  position: relative;
  z-index: 3;
}

.timeline_item {
  z-index: 2;
  grid-template-rows: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.timeline_left {
  text-align: right;
  padding-right: 8em;
  justify-content: flex-end;
  align-items: stretch;
  position: relative;
}

.timeline_center {
  display: flex;
  justify-content: center;
}

.timeline_right {
  padding-left: 80px;
  width: 80%;
}

/* --- STICKY & TEXT ELEMENTS --- */

.timeline_date-text {
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.03em;
  font-size: 5em;
  font-weight: 500;
  line-height: 1.2;
  position: sticky;
  top: 50vh;
  color: black;
  animation: pulse 2s linear infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.timeline_circle {
  position: sticky;
  width: 15px;
  height: 15px;
  background-color: var(--add-color);
  border-radius: 100%;
  box-shadow: 0 0 0 8px var(--bg-color);
  z-index: 4;
  top: 100vh;
}

.timeline_header-text {
  font-family: Rosie;
  color: var(--second-text-color);
  font-size: 2em;
  font-weight: 500;
  max-width: 35rem;
}

.timeline_header-text h2 {
  font-family: LEMONMILK;
  margin: 0;
  font-size: 1.5em;
  width: 15em;
  display: flex;
  justify-content: flex-start;
  text-align: left;
  position: sticky;
  top: 50vh;
}

.timeline_text {
  display: block;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  color: black;
  font-size: 2em;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.5em;
}

/* --- UTILITIES --- */

.margin-bottom-xlarge {
  margin-bottom: 56px;
}

.margin-bottom-medium {
  margin-bottom: 32px;
}

.overlay-fade-top {
  background-image: linear-gradient(var(--bg-color), #0a0a0a00);
  height: 80px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}

.overlay-fade-bottom {
  background-image: linear-gradient(to top, var(--bg-color), #0a0a0a00);
  height: 80px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}
/*------------------------ 	 COTACT 	 ----------------------------------*/

.contact {
  background-color: #e8e8e8;
  min-height: 100vh;
  padding: 40px 15%;
}

.title-contact h3 {
  color: var(--second-text-color);
  font-weight: bold;
  font-style: italic;
  font-size: 5rem;
  letter-spacing: -3px;
  margin: 0;
}

.title-contact p {
  color: black;
  font-size: 2rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20rem;
}

.component-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
}

.component-left input {
  border: 1px solid var(--add-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  width: 500px;
  border-radius: 10px;
  height: 50px;
  font-size: 1.5rem;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.064);
  transition: 0.4s ease-in-out;
  padding: 2rem;
}

.component-left input:hover {
  width: 500px;
  border: none;
  border-radius: 10px;
  height: 50px;
  font-size: 1.5rem;
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.064);
  border: 1px solid var(--add-color);
  transform: scale(1.05);
}

.component-left input:active {
  transform: scale(0.95) rotateZ(1.7deg);
}

.component-right textarea {
  height: 230px;
  width: 500px;
  border: 1px solid var(--add-color);
  border-radius: 10px;
  font-size: 2rem;
  padding: 2rem 0 0 3rem;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.064);
  transition: 0.4s ease-in-out;
  resize: none;
}

.component-right textarea:hover {
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.064);
  border: 1px solid var(--add-color);
  transform: scale(1.05);
}

.button-place {
  padding: 10rem;
}

.button-place p {
  font-size: 2rem;
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "ROND" 0;
}

button {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: white;
  background-color: #171717;
  padding: 1em 2em;
  border: none;
  border-radius: 0.6rem;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  margin: 2rem 0 0 0;
}

button span:not(:nth-child(6)) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 30px;
  width: 30px;
  background-color: #0c66ed;
  border-radius: 50%;
  transition: 0.6s ease;
}

button span:nth-child(6) {
  position: relative;
}

button span:nth-child(1) {
  transform: translate(-3.3em, -4em);
}

button span:nth-child(2) {
  transform: translate(-6em, 1.3em);
}

button span:nth-child(3) {
  transform: translate(-0.2em, 1.8em);
}

button span:nth-child(4) {
  transform: translate(3.5em, 1.4em);
}

button span:nth-child(5) {
  transform: translate(3.5em, -3.8em);
}

button:hover span:not(:nth-child(6)) {
  transform: translate(-50%, -50%) scale(4);
  transition: 1.5s ease;
}

/*----------------------- 	 EXTRA 	 -----------------------------------*/
.extra {
  background-color: #1a1a1a; /* Dark background */
  min-width: 100vw;
  padding: 120px 5%; /* Use % for responsive padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.extra-card {
  width: 100%;
  max-width: 1200px;
  padding: 4rem 5rem;
  border-radius: 20px;
  font-family: LEMONMILK;

  /* The Glass Effect */
  background: rgba(255, 255, 255, 0.1); /* Lighter glass on dark bg */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.extra-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.extra-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.extra-contact-info h3 {
  font-size: 2.2rem;
  color: var(--bg-color); /* Light text */
  margin-bottom: 2rem;
  font-family: LEMONMILK;
}

.extra-contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.extra-contact-item i {
  font-size: 2.2rem;
  color: var(--add-color);
  width: 25px; /* Align icons */
  text-align: center;
}

.extra-contact-item p {
  font-size: 1.6rem;
  color: #eee; /* Light text */
  font-family: "Montserrat", sans-serif;
  line-height: 1.4;
}

.extra-socials {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.extra-socials a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #eee;
  font-family: LEMONMILK;
  font-size: 1.5rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.extra-socials a i {
  font-size: 2.2rem;
  color: var(--add-color);
  transition: transform 0.3s ease;
}

.extra-socials a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--add-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.extra-socials a:hover {
  color: var(--bg-color);
}

.extra-socials a:hover i {
  transform: scale(1.1);
}

.extra-socials a:hover::after {
  transform: scaleX(1);
}

.extra-logo img {
  max-width: 400px;
  filter: brightness(0) invert(1); /* Make logo white */
  opacity: 0.9;
}

.extra-map {
  width: 100%;
  height: 300px; /* Taller map */
  border-radius: 15px;
  overflow: hidden; /* Ensures border-radius applies to iframe */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.extra-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer for Clock and Copyright */
.extra-footer {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0 0 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
}

.extra-footer p {
  font-size: 1.6rem;
  font-family: "Montserrat", sans-serif;
}

#clock {
  color: #aaa;
  border-radius: 10px;
  font-size: 1.6rem;
  font-family: LEMONMILK;
}

/*----------------------------------------------------------*/

/* ==================== MEDIA QUERIES (Consolidated) ==================== */

@media (max-width: 992px) {
  /* Hide desktop navbar completely */
  .desktop-nav-new {
    display: none !important;
    visibility: hidden;
  }

  /* Show mobile hamburger button */
  .container-nav {
    display: block;
    visibility: visible;
  }

  /* Enable mobile navbar (GSAP will animate position) */
  .mobile-nav {
    display: flex;
    visibility: visible;
    transform: translateX(100%);
  }
}

/* Desktop - Hide hamburger, show desktop nav */
@media (min-width: 993px) {
  /* Hide mobile elements */
  .container-nav {
    display: none;
    visibility: hidden;
  }

  .mobile-nav {
    display: none;
    visibility: hidden;
    transform: translateX(100%);
  }

  /* Show desktop navbar */
  .desktop-nav-new {
    display: flex;
    visibility: visible;
  }
}

/* MOBILE - PHONE */
@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }
  /* SERVICES */

  .services-logo h3 {
    font-size: 4rem;
    letter-spacing: -5px;
  }

  .services-logo p {
    font-size: 1.5rem;
  }

  .container-icons {
    flex-direction: column; /* Stack icons vertically */
    margin: 10rem 0; /* Adjust margin */
    gap: 5rem;
    width: 70vw; /* Adjust width */
  }

  .container-icons i {
    font-size: 3rem;
    width: 50px;
    height: 50px;
  }

  .container-icons h3 {
    display: flex;
    font-size: 1.8rem;
    width: 70vw; /* Adjust width */
  }

  .container-icons p {
    font-size: 1.5rem;
    width: 70vw; /* Adjust width */
  }

  /* PORTFOLIO */
  .glass-card {
    width: 90vw; /* Make cards responsive */
    max-width: 250px;
    height: 450px; /* Auto height */
  }
  .card-content {
    padding: 1.5rem;
  }
  .card-content h3 {
    font-size: 2.5em;
  }

  /* TIMELINE */
  .timeline_header-text h2 {
    font-size: 1.5em;
    width: 70vw;
  }

  .timeline_text {
    font-size: 2em;
  }

  .timeline_item {
    grid-template-columns: auto 1fr;
    padding-left: 40px;
  }

  .timeline_left {
    display: none;
  }

  .timeline_center {
    position: absolute;
    left: 1rem;
  }

  .timeline_right {
    padding-left: 20px;
    width: 100%;
  }

  .timeline_progress {
    left: 1rem;
    transform: none;
  }

  .timeline-main_heading-wrapper h2 {
    font-size: 5rem;
  }

  .timeline_circle {
    margin: 0 0 0 -0.5rem;
  }

  /* CONTACT */
  .form-container {
    flex-direction: column;
    align-items: center;
    gap: 5rem;
  }

  .component-left,
  .component-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .component-left input {
    width: 90%;
    max-width: 350px;
    margin-bottom: 1rem;
  }

  .component-right textarea {
    width: 90%;
    max-width: 350px;
  }

  button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
  }

  /* EXTRA Section */
  .extra-card {
    padding: 3rem 2rem;
  }
  .extra-grid {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    gap: 3rem;
  }
  .extra-logo img {
    max-width: 250px;
  }
  .extra-socials {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .extra-footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* TABLET */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* HOME */
  .home {
    gap: 5rem;
  }
  .home-content p {
    font-size: 3.5rem;
  }
  .home-image img {
    width: 30vw;
  }
  .home-image h3 {
    font-size: 1.85rem;
  }

  /* SERVICES */
  .services-logo h3 {
    font-size: 5rem;
    letter-spacing: -5px;
  }

  .services-logo p {
    font-size: 2rem;
  }

  .container-icons {
    flex-direction: column; /* Stack icons vertically */
    margin: 10rem 0; /* Adjust margin */
    gap: 5rem;
    width: 70vw; /* Adjust width */
  }

  .container-icons i {
    font-size: 6rem;
    width: 80px;
    height: 80px;
  }

  .container-icons h3 {
    display: flex;
    font-size: 3rem;
    width: 70vw; /* Adjust width */
  }

  .container-icons p {
    font-size: 2rem;
    width: 70vw; /* Adjust width */
  }

  /* TIMELINE */
  .timeline_header-text h2 {
    font-size: 1.5em;
    width: 40vw;
  }

  /* CONTACT */
  .form-container {
    flex-direction: column;
    align-items: center;
    gap: 5rem;
  }
  .component-left,
  .component-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .component-left input {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1rem;
  }
  .component-right textarea {
    width: 100%;
    max-width: 500px;
  }
  button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
  }

  /* EXTRA Section */
  .extra-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .extra-card {
    padding: 4rem 3rem;
  }
}

.loop {
  transform: rotateX(-35deg) rotateY(-45deg) translateZ(1.5625em);
}

@keyframes s {
  to {
    transform: scale3d(0.2, 0.2, 0.2);
  }
}
