/* =======================
   GLOBAL STYLES
======================= */
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #0c0c0c, #0c0c0c);
    color: #eaeaea;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

/* =======================
   HERO SECTION
======================= */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: height 1s ease;
}

.hero-logo {
    width: 340px;
    transition: all 1s ease;
}

.brand-text {
    margin-top: 22px;
    letter-spacing: 6px;
    color: #d3d3d3; /* light gray only */
    text-transform: uppercase;
    font-weight: 900;
    font-size: 48px;
    transition: opacity 0.6s ease;
}

/* =======================
   NAVBAR – GLASS EFFECT
======================= */
.trust-navbar {
    height: 120px;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(200, 164, 74, 0.15);
    transform: translateY(-100%);
    transition: transform 0.9s ease;
    z-index: 1000;
}

.nav-logo {
    height: 80px;
}

/* =======================
   MENU LINKS
======================= */
.nav-link {
    color: #c8a44a !important;
    letter-spacing: 2px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c8a44a, transparent);
    transition: width 0.35s ease;
}

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

/* =======================
   HAMBURGER
======================= */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* =======================
   HERO ACTIVE STATE AFTER LOGO FADE
======================= */
body.loaded #hero {
    height: 150px;
}

body.loaded .hero-logo {
    width: 140px;
    opacity: 0;
}

body.loaded .brand-text {
    opacity: 0;
}

body.loaded .trust-navbar {
    transform: translateY(0);
}

/* =======================
   MOBILE RESPONSIVE
======================= */
@media (max-width: 992px) {
    .trust-navbar {
        height: 90px;
    }

    .nav-logo {
        height: 55px;
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
    }

    .hero-logo {
        width: 220px;
    }

    .brand-text {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-text {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 15px;
    }
}



/* =======================
   CONTENT SECTIONS
======================= */
.content-section {
    margin: 0;
    padding: 60px 0;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    background-color: #0c0c0c; /* same as body */
    color: #eaeaea;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    scroll-margin-top: 120px; /* aligns perfectly under sticky navbar */
}

/* About Us visible by default after hero fades */
body.loaded ~ .content-section#about {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Active section when clicking menu */
.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* =======================
   SECTION TITLES
======================= */
.section-title {
    font-size: 42px;
    color: #c8a44a; /* premium yellow */
    font-weight: 900;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =======================
   SECTION TEXT
======================= */
.section-text {
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    font-weight: 500;
}



/* =======================
   ABOUT US CARS - DESKTOP
======================= */
.about-car {
    position: absolute;
    width: 280px; /* large cars on desktop */
    z-index: 0; /* behind the text */
    opacity: 0.95;
    transition: all 1s ease; /* smooth effect on change */
}

.about-car img {
    width: 100%;
    border-radius: 12px;
    background: transparent; /* remove any background */
    filter: none; /* no highlights, contrast, or brightness */
    box-shadow: none; /* remove all shadows */
}

/* Desktop positions */
.about-car-left {
    top: -35px; /* lowered by 15px down */
    left: -60px; /* slightly outside the container */
    transform: rotate(-2deg);
}

.about-car-right {
    bottom: -40px;
    right: -70px; /* slightly outside the container */
    transform: rotate(2deg);
}

/* =======================
   MOBILE RESPONSIVE
======================= */
@media (max-width: 992px) {
    .about-car {
        position: relative; /* part of the flow */
        width: 200px; /* slightly more compact for mobile */
        margin: 20px auto; /* automatic centering */
        display: block;
        opacity: 0;
        transform: translateY(20px); /* for smooth slide-in */
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .about-car.visible {
        opacity: 0.95;
        transform: translateY(0);
    }

    /* Left car on mobile – centered with margin auto */
    .about-car-left {
        margin-bottom: 25px; /* below the title */
        left: auto; /* remove desktop positioning */
        transform: none; /* no rotation */
    }

    .about-car-right {
        margin-top: 25px; /* below the text */
        transform: none;
    }

    .about-car img {
        width: 100%;
        border-radius: 12px;
        filter: none;
        box-shadow: none;
        background: transparent;
    }

    /* Centering the text and light gradient behind it */
    .section-text, .section-title {
        text-align: center;
        position: relative;
        z-index: 1;
        padding: 10px;
        background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.15) 100%);
        border-radius: 8px;
    }
}


/* =======================
   CONTACT SECTION
======================= */
#contact {
    background-color: #0c0c0c;
    position: relative;
    padding: 60px 0;
}

/* Section title */
.contact-title {
    margin-bottom: 20px;
    text-align: center;
    color: #c8a44a;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 42px;
}

/* -----------------------
   LEFT SIDE / CONTACT INFO
----------------------- */
.contact-info {
    text-align: left; /* always left on desktop */
}

/* Labels for contact info */
.contact-label {
    color: #c8a44a;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Contact values (phone/email) */
.contact-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #d3d3d3;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(200,164,74,0.3);
    animation: neonPulse 3.5s infinite alternate;
}

.contact-value:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(200,164,74,0.8);
}

/* Neon pulse animation */
@keyframes neonPulse {
    0% {
        text-shadow: 0 0 3px rgba(200,164,74,0.3);
        color: #d3d3d3;
    }
    50% {
        text-shadow: 0 0 10px rgba(200,164,74,0.55);
        color: #eaeaea;
    }
    100% {
        text-shadow: 0 0 3px rgba(200,164,74,0.3);
        color: #d3d3d3;
    }
}

/* -----------------------
   RIGHT SIDE / FORM
----------------------- */
#contact-form .form-label {
    color: #c8a44a;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Inputs and textarea */
.neon-input {
    width: 100%;
    padding: 12px;
    background: #0c0c0c;
    border: 1px solid #c8a44a;
    color: #eaeaea;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.neon-input::placeholder {
    color: #777;
}

.neon-input:focus {
    background: #0c0c0c;
    color: #eaeaea;
    border-color: #c8a44a;
    box-shadow: 0 0 12px rgba(200,164,74,0.5);
    outline: none;
}

/* -----------------------
   BUTTON
----------------------- */
.neon-btn {
    border: 1px solid #c8a44a;
    color: #c8a44a;
    background: transparent;
    padding: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.neon-btn:hover {
    background: #c8a44a;
    color: #0c0c0c;
    box-shadow: 0 0 15px rgba(200,164,74,0.6);
}

/* -----------------------
   FORM ALERT
----------------------- */
#form-alert {
    display: none;
    padding: 12px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

#form-alert.success {
    display: block;
    color: #0c0c0c;
    background-color: #c8a44a;
    border: 1px solid #c8a44a;
}

#form-alert.error {
    display: block;
    color: #0c0c0c;
    background-color: #ff4c4c;
    border: 1px solid #ff4c4c;
}

/* -----------------------
   RESPONSIVE FIX
   Stack left + right on small screens
----------------------- */
@media (max-width: 991px) {
    .contact-info {
        text-align: center !important;
        margin-bottom: 30px;
    }
}

/* =======================
   AUTOFILL / SELECTED FIX
   Ensure text stays visible and background black
======================= */

/* Chrome, Safari, Edge autofill */
input.neon-input:-webkit-autofill,
textarea.neon-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #0c0c0c inset !important;
    -webkit-text-fill-color: #eaeaea !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Firefox autofill */
input.neon-input:-moz-autofill,
textarea.neon-input:-moz-autofill {
    box-shadow: 0 0 0px 1000px #0c0c0c inset !important;
    -moz-text-fill-color: #eaeaea !important;
}

/* Select dropdown fix (if any) */
select.neon-input {
    background-color: #0c0c0c;
    color: #eaeaea;
}


/* ===============================
   SERVICES SECTION
================================ */

.services-section {
  background: #0c0c0c;
  position: relative;
  overflow: hidden;
}

/* ---------- BANNERS ---------- */
.services-banner {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.services-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

/* overlay for banner dark effect */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(12, 12, 12, 0.75),
    rgba(12, 12, 12, 0.95)
  );
}

/* ---------- CONTENT ---------- */
.services-content {
  position: relative;
  z-index: 2;
}

/* ---------- LAYOUT ---------- */
.services-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ---------- TEXT ---------- */
.services-text p {
  color: #d1d5db;              /* light gray for readability */
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.7rem;
  letter-spacing: 0.2px;
  font-weight: 400;
}

.services-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- MOSAIC (DESKTOP) ---------- */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.services-mosaic img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
  filter: brightness(0.88) contrast(1.05);
}

/* hover effect for images: subtle zoom and shadow */
.services-mosaic img:hover {
  transform: scale(1.03);
  filter: brightness(1) contrast(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

/* ---------- SCROLL ANIMATION ---------- */
.services-section .services-text,
.services-section .services-mosaic {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.services-section.active .services-text,
.services-section.active .services-mosaic {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   RESPONSIVE
================================ */

/* ---------- TABLET ---------- */
@media (max-width: 992px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-mosaic img {
    height: 220px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 576px) {

  /* reduce banner height */
  .services-banner {
    height: 200px;
  }

  /* smaller paragraph font */
  .services-text p {
    font-size: 1.02rem;
  }

  /* hide desktop mosaic on mobile */
  .services-mosaic {
    display: none;
  }

  /* flex column for text flow */
  .services-text {
    display: flex;
    flex-direction: column;
  }

  /* add each image under each paragraph */
  .services-text p:nth-of-type(1)::after,
  .services-text p:nth-of-type(2)::after,
  .services-text p:nth-of-type(3)::after,
  .services-text p:nth-of-type(4)::after {
    content: "";
    display: block;
    height: 200px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 14px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.95) contrast(1.05);
    transition: transform 0.5s ease, filter 0.5s ease;
  }

  /* assign specific images to each paragraph */
  .services-text p:nth-of-type(1)::after {
    background-image: url("/static/images/service/kids1.jpg");
  }

  .services-text p:nth-of-type(2)::after {
    background-image: url("/static/images/service/kids2.jpg");
  }

  .services-text p:nth-of-type(3)::after {
    background-image: url("/static/images/service/kids3.jpg");
  }

  .services-text p:nth-of-type(4)::after {
    background-image: url("/static/images/service/kids4.jpg");
  }

  /* subtle scale effect for mobile images */
  .services-text p::after {
    transform: scale(0.98);
  }

  .services-section.active .services-text p::after {
    transform: scale(1);
    opacity: 1;
  }
}

















/* =======================
   FOOTER – HIDDEN UNTIL BODY.LOADED
======================= */
.trust-footer {
    background-color: #0c0c0c;
    border-top: 1px solid rgba(200, 164, 74, 0.35);
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;

    /* HIDE footer initially */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Show footer after page loads */
body.loaded .trust-footer {
    opacity: 1;
    transform: translateY(0);
    /* Optional small delay if you want it slightly after content */
    transition-delay: 0.3s;
}

/* subtle moving glow line */
.trust-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #c8a44a,
        transparent
    );
    animation: footerGlow 6s linear infinite;
}

@keyframes footerGlow {
    0% { left: -40%; }
    100% { left: 100%; }
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* CONTACT LINKS */
.footer-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.footer-link {
    color: #c8a44a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: #c8a44a;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.footer-link:hover {
    color: #fff;
}

.footer-link:hover::after {
    width: 100%;
}

/* DIVIDER */
.footer-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #c8a44a,
        transparent
    );
    margin: 0 auto 20px;
}

/* COPYRIGHT */
.footer-copy {
    font-size: 14px;
    color: #a0a0a0;
    letter-spacing: 1px;
    font-weight: 500;
}

/* =======================
   MOBILE FOOTER
======================= */
@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 18px;
    }

    .footer-link {
        font-size: 16px;
    }
}
