/* ==========================================================================
   1. CORE VARIABLES & BASE STYLES
   ========================================================================== */
:root {
  --primary: #3b82f6;
  --accent: #8b5cf6;
  --bg: #ffffff;
  --card: #111827;
  --text: #161ae7;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --heading-color: #060AF5; /* Deep Blue */
  --underline-color: #FF7F7F;
}

/* Parent container controls alignment */
.section-header {
  text-align: center;
}

/* Universal Heading */
.fancy-heading {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 18px;
  color: var(--heading-color);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: capitalize;
    
  
}

/* Underline scales with text width  */
.fancy-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 85%;
  min-width: 60px;
  max-width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #FF7F7F;
}

 
.fancy-heading-nonunderline{
  position: relative;
  display: inline-block;
  margin: 0;
  padding-bottom: 18px;
  color: var(--heading-color);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: capitalize;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}

html {
  scroll-behavior: auto !important;
  color-scheme: light;
  background-color: #ffffff !important;
}

body {
  background-color: #ffffff !important;
  color: var(--text);
  overflow-x: hidden;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

 .breadcrumb {
  margin-top: 100px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #64748b;
}
 
/* Custom Scrollbar */
html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-thumb {
  background-color: #38bdff;
  border-radius: 20px;
}

h2 {
  font-size: 2rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   2. NAVIGATION (DESKTOP)
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  z-index: 1000;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav.scrolled .brand-name {
  color: rgb(6, 10, 245);
}

/* Logo Styles */
.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: 0.4s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--primary);
}

.logo-circle {
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}

.brand-name {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: rgb(6, 10, 245);
}

.highlight {
  color: red;
}

.ltd {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Nav Links & State */
.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-item {
  text-decoration: none;
  color: #38bdff;
  font-size: 1.2rem;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active,
.sidebar-item.active {
  color: #161ae7 !important;
}

.nav-item.active,
.sidebar-item.active {
  font-weight: bold;
  border-bottom: 2px solid #38bdff;
}


/* Desktop Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.dropdown.show .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  color: #0000ff ;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 1.125rem;
  transition: 0.3s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active,
.mobile-dropdown-content a.active {
  color:#38bdff !important;
  background: var(--glass);
}

/* ==========================================================================
   3. MOBILE NAVIGATION (SIDEBAR & HAMBURGER)
   ========================================================================== */
.hamburger {
  cursor: pointer;
  display: none;
  z-index: 2100;
  position: relative;
}

.bar {
  width: 25px;
  height: 2px;
  background: #0000ff ;
  margin: 6px 0;
  transition: 0.4s;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 100px 40px 40px;
  transform: translateX(-100%);
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 999;
  overflow-y: auto;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-item {
  opacity: 0;
  transform: translateX(-20px);
  display: block;
  color: #38bdff;
  text-decoration: none;
  padding: 18px 0;
  font-size: 1.1rem;
border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: 0.3s;
}

.sidebar-item:hover {
  color: #0000ff ;
  padding-left: 10px;
}
/* Optional: Removes the line from the very last main sidebar item */
.sidebar-item:last-of-type {
  border-bottom: none;
}
.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s ease;
  background: #ffffff;
  border-radius: 8px;
}

.mobile-dropdown-content.open {
  max-height: 500px;
  padding: 10px 0;
  margin-top: 5px;
}

.mobile-dropdown-content a {
  display: block;
  color:#38bdf8;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  transition: 0.3s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
 
.mobile-dropdown-content a:hover {
  color: #3c00ff !important;
  background: rgba(0, 0, 0, 0.02);
}
/* ==========================================================================
   4. PAGE SECTIONS (MIDDLE PART & HERO)
   ========================================================================== */
.middle_auto_part-wrapper {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background: #111827;
}

.middle_auto_part-element {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.middle_auto_part-img {
  position: absolute;
  inset: 0;
  background: url('pictures/lubeBay.webp') center/cover no-repeat;
  transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.middle_auto_part-wrapper.is-active .middle_auto_part-img {
  transform: scale(1.1);
}

.middle_auto_part-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 20, 22, 0.6), rgba(20, 20, 22, 0.85));
}

.middle_auto_part-content {
  position: relative;
  z-index: 5;
  text-align: center;
}

.middle_auto_part-pop-text {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #facc15;
  font-weight: 800;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.middle_auto_part-subtext {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out 0.2s;
}

.middle_auto_part-view-btn {
  padding: 14px 40px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease-out 0.4s;
}

.middle_auto_part-wrapper.is-active :is(.middle_auto_part-pop-text, .middle_auto_part-subtext, .middle_auto_part-view-btn) {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.middle_auto_part-view-btn:hover {
  background: #ffffff;
  color: #38bdf8;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

 
/* ==========================================================================
   5. FOOTER (FIXED BACKGROUND VERSION)
   ========================================================================== */
footer {
  /* Using separate properties ensures reliable cross-platform overrides */
  background-image: linear-gradient(rgba(20, 20, 25, 0.6), rgba(20, 20, 25, 0.75)),
                    url("pictures/LAKESIDEVIEW.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed; /* Parallax for desktop */
  
  padding: 80px 5% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  color: white;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  margin-bottom: 25px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(8px);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: white !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
}

.copyright-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-block;
}

.copyright-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   6. MEDIA QUERIES (RESPONSIVENESS & SAFARI/MOBILE FIXES)
   ========================================================================== */

/* Tablet & Smaller Desktop */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  footer {
    /* Explicitly kill the fixed rendering causing the break on tablets */
    background-attachment: scroll !important;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem !important;
    letter-spacing: 0.5px;
  }

  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

  .sidebar {
    display: block !important;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .logo-img {
    height: 38px;
  }

  .service-card {
    height: 260px;
  }

  .hero {
    height: 90vh;
    clip-path: ellipse(150% 100% at 50% 0%);
  }

  /* Footer Mobile Adjustment */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
    text-align: left; 
  }

  .footer-col {
    align-items: flex-start; 
  }
  
  .footer-col h4::after {
    left: 0;              
    transform: none;
  }

  .social-icons {
    justify-content: flex-start; 
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  footer {
    /* Explicitly kill the fixed rendering causing the break on phones */
    background-attachment: scroll !important;
  }

  .fancy-heading {
    padding-bottom: 14px;
  }
  .fancy-heading-nonunderline{
    padding-bottom: 14px;
  }

  .fancy-heading::after {
    height: 3px;
  }
}

/* Small Mobile */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  footer {
    padding: 60px 20px 30px;
  }

  .footer-col h4 {
    font-size: 0.9rem;
  }

  .footer-col a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  footer {
    background-attachment: scroll !important;
  }
}
body,
body p,
body span,
body li,
body a {
  font-family: var(--font-body);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .brand-name {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}


