@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap");

/* --- Base Reset & Body --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Main Layout --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* --- MODIFIED: Added padding to prevent content from hiding under the fixed header --- */
  padding-top: 150px;
}

.bg-img {
  display: none; /* Hidden by default on mobile */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  opacity: 0.8;
}

.mobile-bg {
  display: block; /* Shown by default on mobile */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(249, 168, 37, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: -1;
}

/* --- Header & Navigation --- */
/* --- MODIFIED: Made header fixed and added transitions --- */
.header {
  position: fixed; /* Changed from relative to fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
    padding 0.4s ease;
}

/* --- NEW: Style for the header when the page is scrolled --- */
.header.scrolled {
  background-color: rgba(18, 18, 18, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.171);
  border-radius: 0 0 50px 50px;
  margin-top: -2rem;
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1280px;
  padding: 1.8rem 2rem;
  transition: padding 0.4s ease; /* For smooth padding change */
  margin-top: 1rem;
 
}

/* --- NEW: Shrink navbar padding slightly on scroll --- */
.header.scrolled .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo-link {
  grid-column: 1;
}

.logo {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease, height 0.4s ease;
}

/* --- NEW: Shrink logo on scroll --- */
.header.scrolled .logo {
  height: 85px;
}

.logo:hover {
  transform: scale(1.05);
}

/* --- Hamburger Menu (Mobile-First) --- */
.hamburger-btn {
  display: block;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background-color: #ffffff;
  transition: all 0.3s ease-in-out;
}

.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links-desktop,
.btn-nav-desktop {
  display: none;
}

/* --- Mobile Navigation Menu --- */
.nav-menu-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;

  transition: left 0.4s ease-in-out;
  z-index: 1000;
}

.nav-menu-mobile.active {
  left: 0;
}

.nav-menu-mobile a {
  font-size: 1.8rem;
  font-weight: 500;
  color: #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-menu-mobile a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #f9a825;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* === UPDATED with .active === */
.nav-menu-mobile a:hover,
.nav-menu-mobile a.active {
  color: #f9a825;
}

/* === UPDATED with .active === */
.nav-menu-mobile a:hover::after,
.nav-menu-mobile a.active::after {
  width: 100%;
}

/* --- Buttons --- */
.btn {
  background-color: #f9a825;
  color: #000000;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(249, 168, 37, 0.4);
}

.btn-nav-mobile {
  font-size: 1.5rem;
  padding: 0.75rem 2rem;
}

.btn-nav-desktop {
  font-size: 1rem;
  padding: 0.75rem 2rem;
}

.btn-hero {
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  margin-top: 3rem;
}

/* --- Hero Content --- */
.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center !important;
  padding: 2rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.5s;
  /* margin-top: -1.8rem; /* Removed to work better with fixed header */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.text-yellow {
  color: #f9a825;
}

.desktop-break {
  display: none;
}

.hero-content p {
  font-size: 0.9rem;
  color: #ffffff;
  margin-top: 1.5rem;
  max-width: 36rem;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-content p span {
  color: #ffffff;
  font-weight: 500;
}

#W {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
  text-stroke: 1px rgba(255, 255, 255, 0.8);
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.4s ease;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

#W::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #f9a825;
  transition: width 0.4s ease;
}

#digitally,
#succeed {
  font-size: 1em;
  font-weight: 300;
  opacity: 1;
  display: inline-block;
  transition: all 0.4s ease;
}

#hero-headline.w-tapped #W,
#hero-headline:hover #W {
  color: #f9a825;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  text-transform: none;
  transform: scale(1.1);
}

#hero-headline.w-tapped #W::after,
#hero-headline:hover #W::after {
  width: 100%;
}

#hero-headline.w-tapped #digitally,
#hero-headline.w-tapped #succeed,
#hero-headline:hover #digitally,
#hero-headline:hover #succeed {
  font-size: 0.8em;
  opacity: 0.7;
  transform: translateY(-2px);
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(249, 168, 37, 0.1);
  z-index: -1;
  animation: float 15s infinite ease-in-out;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* --- Responsive Media Queries --- */

@media (min-width: 768px) {
  .logo {
    height: 120px;
  }

  /* --- NEW --- */
  .header.scrolled .logo {
    height: 95px;
  }

  .hero-content {
    align-items: center;
    text-align: left;
    padding: 2rem 4rem;
  }


  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    max-width: 42rem;
  }
  .btn-nav-desktop {
    z-index: -10;
  }
  .nav-links-desktop,
  .navbar .btn-nav-desktop {
    display: none;
  }
}

@media (min-width: 1024px) {
  .bg-img {
    display: block;
  }
  .mobile-bg {
    display: none;
  }

  .navbar {
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    padding: 2rem 3rem;
     margin-left: 7.5rem;
  }

  .logo {
    height: 150px;
  }

  /* --- NEW --- */
  .header.scrolled .logo {
    height: 100px;
  }

  .hamburger-btn {
    display: none;
  }

  .nav-menu-mobile {
    display: none;
  }

  .nav-links-desktop {
    display: flex;
    justify-content: center;
    gap: 3rem;
    grid-column: 2;
  }

  .nav-links-desktop a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e5e7eb;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
  }

  .nav-links-desktop a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f9a825;
    transition: width 0.3s ease;
  }

  /* === UPDATED with .active === */
  .nav-links-desktop a:hover,
  .nav-links-desktop a.active {
    color: #f9a825;
  }

  /* === UPDATED with .active === */
  .nav-links-desktop a:hover::after,
  .nav-links-desktop a.active::after {
    width: 100%;
  }

  .btn-nav-desktop {
    display: inline-block;
    grid-column: 3;
  }

  .hero-content {
    padding: 2rem 5rem;
  }

  .hero-content h1 {
    font-size: 7rem;
  }

  .desktop-break {
    display: block;
  }

  .hero-content p {
    font-size: 1.4rem;
    max-width: 48rem;
  }
  .navbar .btn-nav-desktop {
    display: inline-block;
    grid-column: 3;
  }
}

/* --------------------------------------------------------------------------------------------------------------------
        --------------------------------------------------------------------------------------------------------------------*/

/*-----------------------------------------------------------------------------------------------------------------
        Section 2
        ----------------------------------------------------------------------------------------------------------------*/
/* --- --------------
        Section 2 Container
        -------------------- */
.slide-container {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 40px 20px;
  padding-top: 25px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: auto;
  padding: 20px;
  overflow: hidden;
  max-width: 1449px;
  border-radius: 50px 50px 0 0;
}

.deco-box {
  position: absolute;
}
.top-right {
  top: 20px;
  right: 20px;
}

.top-right img {
  width: 80px;
  height: 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 30px 40px;
  grid-template-areas:
    "headline headline"
    "left-img text-content"
    "left-img bottom-right";
}

.left-image {
  grid-area: left-img;
}
.text-content {
  max-width: 400px;
}

.text-content p {
  grid-area: text-content;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-left: -6rem;
}
.text-content strong {
  color: #000;
}

.bottom-right-content {
  grid-area: bottom-right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.left-image img {
  width: auto;
  height: 430px;
  display: block;
  border-radius: 16px;
}
.small-image img {
  width: 400px;
  height: auto;
  display: block;
  border-radius: 16px;
}
.small-image {
  flex-basis: 60%;
}

.learn-more-wrapper {
  flex-basis: 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -14rem;
  margin-left: 26rem;
  cursor: pointer;
}
.learn-more-wrapper:hover {
  transform: scale(1.1);
}
.circular-text-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.circle-arrow img {
  width: 100px;
  height: 100px;
}

.rotating-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "left-img"
      "text-content"
      "bottom-right";
    gap: 20px;
  }

  .headline {
    font-size: 2.5rem;
    text-align: left;
  }

  .text-content p {
    margin-left: 0;
  }

  .text-content {
    max-width: 100%;
  }

  .left-image img,
  .small-image img {
    width: 100%;
    height: auto;
  }

  .left-image img {
    max-height: 450px;
    object-fit: cover;
  }

  .bottom-right-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .learn-more-wrapper {
    margin-top: 1rem;
    margin-left: 0;
    margin: 1rem auto;
  }
}

@media (max-width: 767px) {
  .slide-container {
    padding: 20px 15px;
  }

  .headline {
    font-size: 2rem;
    align-items: center;
    text-align: center;
  }

  .text-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .deco-box.top-right {
    top: 10px;
    right: 10px;
    margin-top: 3rem;
  }
  .top-right img {
    width: 60px;
    height: 60px;
  }

  .circular-text-container {
    width: 130px;
    height: 130px;
  }

  .circle-arrow img {
    width: 80px;
    height: 80px;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.headline.reveal-on-scroll {
  transition-delay: 0.1s;
}
.left-image.reveal-on-scroll {
  transition-delay: 0.2s;
}
.text-content.reveal-on-scroll {
  transition-delay: 0.3s;
}
.bottom-right-content.reveal-on-scroll {
  transition-delay: 0.4s;
}

/*-------------------------------------------------------------------------------------------------------------------------
        ----------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------
        Section 3
        -------------------------------------------------------------------------------------------------------------------------*/

.learnmore {
  font-family: Arial, sans-serif;
  background-color: #000000;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
  color: #f1f1f1;

  /* --- CHANGE: Mobile-friendly padding --- */
  padding: 40px 20px;

  /* --- FIX: min-height prevents content from being cut off on tall, narrow screens --- */
  min-height: 100vh;
  height: auto; /* Allow content to grow */
}

/* Decorative square (if you use it) */
.Services-decorsquares {
  position: absolute;
  top: 80px;
  left: 5%;
  width: 60px;
  z-index: 1;
  margin-top: 74.6rem;
  display: none; /* Hide on mobile by default */
}

/* --- CHANGE: Mobile-first grid (1 column) --- */
.services-container {
  display: grid;
  grid-template-columns: 1fr; /* Default to 1 column */
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.service-texts {
  max-width: 550px;
  /* --- CHANGE: Center text for mobile stack --- */
  text-align: center;
  width: 100%;
}

/* --- CHANGE: Mobile layout (stacked) --- */
.services-intro {
  /* No grid placement needed, it's the first item */
  display: flex;
  justify-content: space-between;
  gap: 20px;

  /* --- CHANGE: Stack text and circle on mobile --- */
  flex-direction: column;
  align-items: center;
}

.services-intro h1 {
  /* --- CHANGE: Mobile-friendly font size --- */
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.services-intro .highlight-text {
  color: #f0b90b;
}

.services-intro .tagline {
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: #f1f1f1;
}

.services-intro p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/* --- Rotating Circle CSS --- */
.learn-more-wrapper-services {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  /* --- CHANGE: Center circle in the stack --- */
  margin: 20px 0 0 0;
}
.learn-more-wrapper-services .rotating-svg text {
  fill: #ffffff !important;
}

.learn-more-wrapper-services:hover {
  transform: scale(1.1) !important;
}

.circle-arrow img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.rotating-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  animation: rotate 15s linear infinite;
}

/* @keyframes rotate is already defined in Section 2, no need to repeat */

/* --- Service Cards Base Style --- */
.service-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #333;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
  /* --- CHANGE: Removed margin-top, grid-gap handles spacing --- */
}

.service-card .service-icon {
  width: 75px;
  height: 75px;
  margin-bottom: 20px;
  transition: filter 0.3s ease;
  color: #f1f1f1;
}

.service-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-card p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* --- Grid placement --- */
/* No placement needed for mobile (1-column stack) */

/* --- Card Hover & Highlighted States --- */
.service-card:not(.highlighted):hover {
  background-color: #f0b90b;
  border-color: #f0b90b;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(240, 185, 11, 0.2);
}

.service-card:not(.highlighted):hover .service-icon {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%)
    contrast(100%);
}

.service-card:not(.highlighted):hover h3,
.service-card:not(.highlighted):hover p {
  color: #000;
}

.service-card.highlighted {
  background-color: #f0b90b;
  border-color: #f0b90b;
}

.service-card.highlighted .service-icon {
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%)
    contrast(100%);
}

.service-card.highlighted h3,
.service-card.highlighted p,
.service-card.highlighted img {
  color: #050000;
}

/*
=========================================
--- Scroll Animation Styles (Unchanged) ---
=========================================
*/
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.scroll-animate.fade-in-up {
  transform: translateY(30px);
}
.scroll-animate.fade-in-right {
  transform: translateX(-30px);
}
.scroll-animate.pop-in {
  transform: scale(0.8);
}
.scroll-animate.is-visible {
  opacity: 1;
  transform: none;
}
.scroll-animate.delay-1.is-visible {
  transition-delay: 0.1s;
}
.scroll-animate.delay-2.is-visible {
  transition-delay: 0.2s;
}
.scroll-animate.delay-3.is-visible {
  transition-delay: 0.3s;
}
.scroll-animate.delay-4.is-visible {
  transition-delay: 0.4s;
}

/* =========================================
    NEW: Tablet Breakpoint (768px and up)
    ========================================= */
@media (min-width: 768px) {
  .learnmore {
    /* Increase padding for tablets */
    padding: 60px 40px;
  }

  .services-container {
    /* 2-column grid */
    grid-template-columns: repeat(2, 1fr);
  }

  .services-intro {
    /* Intro spans full width */
    grid-column: 1 / span 2;
    grid-row: 1;

    /* --- CHANGE: Go back to side-by-side --- */
    flex-direction: row;
    align-items: center;
  }

  .service-texts {
    /* --- CHANGE: Align text left again --- */
    text-align: left;
  }

  .services-intro h1 {
    font-size: 3rem;
  }

  .learn-more-wrapper-services {
    /* --- CHANGE: Reset mobile margin --- */
    margin: 0;
  }

  /* --- Re-order cards for 2-col layout --- */
  .services-container > div:nth-of-type(2) {
    /* Business */
    grid-column: 1;
    grid-row: 2;
  }
  .services-container > div:nth-of-type(3) {
    /* Digital */
    grid-column: 2;
    grid-row: 2;
  }
  .services-container > div:nth-of-type(4) {
    /* Branding */
    grid-column: 1;
    grid-row: 3;
  }
  .services-container > div:nth-of-type(5) {
    /* Web Dev */
    grid-column: 2;
    grid-row: 3;
  }
}

/* =========================================
    NEW: Desktop Breakpoint (1024px and up)
    ========================================= */
@media (min-width: 1024px) {
  .learnmore {
    /* Restore original desktop padding */
    padding: 70px;
  }

  .services-container {
    /* 3-column grid */
    grid-template-columns: repeat(3, 1fr);
  }

  .Services-decorsquares {
    display: block; /* Show decorative square */
  }

  .services-intro {
    /* Intro spans 2 columns */
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .learn-more-wrapper-services {
    /* Restore original right margin */
    margin-right: 7rem;
  }

  .services-intro h1 {
    font-size: 3.5rem; /* Full-size font */
  }

  /* --- Re-order cards for 3-col desktop layout --- */
  .services-container > div:nth-of-type(2) {
    /* Business */
    grid-column: 3; /* Moves to top right */
    grid-row: 1;
  }
  .services-container > div:nth-of-type(3) {
    /* Digital */
    grid-column: 1;
    grid-row: 2;
  }
  .services-container > div:nth-of-type(4) {
    /* Branding */
    grid-column: 2;
    grid-row: 2;
  }
  .services-container > div:nth-of-type(5) {
    /* Web Dev */
    grid-column: 3;
    grid-row: 2;
  }
}

/*-------------------------------------------------------------------------------------------------------------------------
        ----------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------
        Section 4
        -------------------------------------------------------------------------------------------------------------------------*/

.love {
  font-family: "Poppins", "Arial", sans-serif;
  background-color: #ffffff;
  display: grid;
  place-items: center;
  /* Use small viewport height for better mobile compatibility */
  min-height: 100svh;
  padding: 2rem;
  width: 100%;
}

/* --- Main Section Styling --- */
.why-us-section {
  background-color: #ffcb4f;
  border-radius: 25px;
  /* Use fluid padding */
  padding: 3rem;
  /* Use % width for fluidity and max-width for control */
  width: 90%;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  animation: sectionFadeIn 0.8s ease-out;
  /* Removed fixed height, let content define height */
}

/* --- Decoration Element --- */
.why-us-decoration {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  animation: decorFadeIn 1.2s ease-out;
  pointer-events: none;
}

/* --- Title --- */
.why-us-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 450px;
}

/* --- Cards Container (NOW FULLY RESPONSIVE) --- */
.why-us-cards {
  display: grid;
  /* This is the key change:
      - 'auto-fit' tells the grid to fit as many columns as it can.
      - 'minmax(250px, 1fr)' tells each column to be a minimum of 250px
        but expand to fill the space (1fr) if available.
      - This one line replaces the need for multiple media queries for the grid.
    */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* Use rem for a scalable gap */
  gap: 2rem;
}

/* --- Individual Card Styling --- */
.why-us-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.31);
  overflow: hidden;
  /* Use rem for a scalable border */
  border: 1rem solid #ffffff;

  /* --- Animation Setup --- */
  opacity: 0;
  animation: cardFadeInUp 0.6s ease-out forwards;

  /* --- NEW: Flex setup for responsive height --- */
  display: flex;
  flex-direction: column;
  /* height: 100%; ensures cards in a row are same height */
  height: 100%;
  /* Removed fixed height: 300px; */
  margin-top: -1rem;

  /* --- Enhanced Hover Transition --- */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Staggered Animation Delay for each card --- */
/* This will now apply to cards as they appear in the DOM */
.why-us-card:nth-child(1) {
  animation-delay: 0.2s;
}
.why-us-card:nth-child(2) {
  animation-delay: 0.4s;
}
.why-us-card:nth-child(3) {
  animation-delay: 0.6s;
}
.why-us-card:nth-child(4) {
  animation-delay: 0.8s;
}

/* --- HUGE HOVER EFFECT --- */
.why-us-card:hover {
  transform: scale(1.05) translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

/* --- Card Image --- */
.why-us-card-image {
  width: 100%;
  /* Kept fixed height as per original design, but 'aspect-ratio' is another option */
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Make image border-radius smaller to fit inside card's border */
  border-radius: 10px;
}

/* --- Image zoom on card hover --- */
.why-us-card:hover .why-us-card-image {
  transform: scale(1.1);
}

/* --- Card Text --- */
.why-us-card-text {
  /* Use rem for scalable padding */
  padding: 1.5rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  font-weight: 600;
  /* Removed min-height: 100px; */

  /* --- NEW: This makes the text area grow --- */
  /* It fills the remaining space in the flex-column card */
  flex-grow: 1;

  position: relative;
  z-index: 2;
  background-color: #ffffff;
}

/* --- ANIMATION KEYFRAMES (Unchanged) --- */
@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes decorFadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE DESIGN (Simplified) --- */

/* For Tablets (The auto-fit grid already handles 2-3 columns) */
@media (max-width: 1024px) {
  .why-us-title {
    /* Adjust title size as in original */
    font-size: 2.2rem;
  }
}

/* For Mobile Phones */
@media (max-width: 640px) {
  .why-us-section {
    /* Reduce padding for small screens */
    padding: 1.5rem;
    width: 100%;
  }

  /* The auto-fit grid will automatically become 1 column */

  .why-us-title {
    font-size: 1.8rem;
    max-width: 100%;
  }
  .why-us-decoration {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    margin-right: -1rem;
  }
  .why-us-card {
    /* Reduce border on mobile */
    border-width: 0.5rem;
  }
  .why-us-card-image {
    /* You could reduce the image height on mobile if desired */
    /* height: 150px; */
  }
  .why-us-card-text {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/*-------------------------------------------------------------------------------------------------------------------------
        ----------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------
        Section 5
        -------------------------------------------------------------------------------------------------------------------------*/

.calltoaction {
  font-family: "Inter", sans-serif;
  background-color: #f8f9fa; /* Light gray background */
  /* Use grid to center the content on the page */
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* 2. CTA Section Styles */
.cta-container {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #fdbd3d; /* Thinner border like the image */
  border-radius: 20px;
  padding: 3rem 2rem; /* Padding for mobile */
  max-width: 1000px; /* Max width for the container */
  width: 100%;
  text-align: center;
  /* We use 'visible' so the rocket can "stick out" */
  overflow: visible;
  margin: 2rem 0;

  /* Animation styles */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Class added by JavaScript when element is in view */
.calltoaction .cta-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Content Styles */
.calltoaction .cta-content {
  /* This ensures text is "above" the illustration */
  position: relative;
  z-index: 2;
}

.calltoaction h1 {
  font-size: 2.5rem; /* Font size for mobile */
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.calltoaction p {
  font-size: 1rem; /* Font size for mobile */
  color: #555;
  /* Use max-width to control line length and prevent overflow */
  max-width: 600px;
  margin: 0 auto 2.5rem; /* auto centers the block */
  line-height: 1.6;
}

/* 4. Button Styles */
.calltoaction .button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap; /* Allows buttons to stack on small screens */
}

.calltoaction .btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px; /* Pill-shaped buttons like the image */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.calltoaction .btn-primary {
  background-color: #f6be2c;
  color: #1a1a1a;
  border-color: #f6be2c;
}

.calltoaction .btn-primary:hover {
  background-color: #e0ac28;
  border-color: #e0ac28;
}

.calltoaction .btn-secondary {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.calltoaction .btn-secondary:hover {
  background-color: #333;
  border-color: #333;
}

/* 5. Decorative Elements */
.corner-square img {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  z-index: 1;
}

.rocket-illustration {
  position: absolute;
  bottom: -30px;
  right: 20px;
  width: 150px;
  height: auto;
  z-index: 1;
  cursor: pointer;

  /* THIS IS THE "SMOOTHLY" PART:
    It tells the browser to animate any changes to 'transform'
    over a period of 0.5 seconds with an 'ease-in-out' curve.
    */
  transition: transform 0.5s ease-in-out;

  transform-origin: bottom center;
}

.rocket-illustration:hover {
  /* These are the "moving" (translateY) and 
    "scaleup" (scale) parts.
    */
  transform: translateY(-150px) scale(1.3);
  z-index: 10;
}

/* 6. Responsive Styles (for tablet and up) */
@media (min-width: 768px) {
  .calltoaction.cta-container {
    padding: 5rem 4rem; /* More padding on larger screens */
  }

  .calltoaction h1 {
    font-size: 3.5rem; /* Larger font for desktop */
  }

  .calltoaction p {
    font-size: 1.125rem; /* Slightly larger paragraph */
  }

  .rocket-illustration {
    width: 200px; /* Larger rocket */
    right: 40px;
    bottom: -40px;
  }
}

/*-------------------------------------------------------------------------------------------------------------------------
        ----------------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------------
        Footer
        -------------------------------------------------------------------------------------------------------------------------*/

footer {
  /* --black and --dark-gray are not defined, using fallback */
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #f9f9f9;
  padding: 60px 8%;
  position: relative;
  overflow: hidden;
}

@keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-logo h2 {
  font-size: 28px;
  font-weight: 600;
  color: #d4af37;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
}

.footer-links h3 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 18px;
  position: relative;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #d4af37;
  transform: translateX(4px);
}

.footer-social h3 {
  color: #d4af37;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 1px solid #d4af37;
  border-radius: 50%;
  color: #d4af37;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #d4af37;
  color: #0a0a0a;
  transform: scale(1.1);
  box-shadow: 0 0 10px #d4af37;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.footer-bottom span {
  color: #d4af37;
  font-weight: 500;
}

/* === SCROLL TO TOP BUTTON STYLE (UPDATED) === */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #d4af37;
  color: #0a0a0a;
  border: none;
  /* UPDATED for perfect circle */
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  /* padding: 10px 15px; (replaced) */
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  display: none; /* JS will manage this */
  z-index: 99;
  transition: 0.3s;
}

#scrollTopBtn:hover {
  background: #0a0a0a;
  color: #d4af37; /* Replaced var(--gold) */
  border: 1px solid #d4af37;
}

@media (max-width: 768px) {
  footer {
    padding: 50px 5%;
  }

  .footer-logo h2 {
    font-size: 24px;
  }
}