/*
Theme Name: 3DLab Custom Theme
Author: Hasan Daoud
Description: Custom theme for 3DLab
Version: 1.0
*/

/* ============================================
   3DLab - Base Styles (Glassmorphism + Themes)
   ============================================ */

:root {
  /* Dark theme (default) */
  --bg-primary: #08090d;
  --bg-secondary: #0e1016;
  --bg-tertiary: #14161f;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-no-alpha: rgb(10, 10, 10);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-green: #4ade80;
  --accent-orange: #fb923c;
  --accent-red: #f87171;
  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #a855f7 50%, #ec4899 100%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
  --border-radius: 20px;
}

[data-theme="light"] {
  --bg-primary: #f4f6fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef1f7;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-no-alpha: rgb(255, 255, 255);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.85);
  --text-primary: #0b1220;
  --text-secondary: rgba(11, 18, 32, 0.75);
  --text-muted: rgba(11, 18, 32, 0.5);
  --shadow-card: 0 10px 40px rgba(15, 23, 42, 0.08);
  --accent-cyan: #31b7cc;
  --accent-green: #46aa6b;
  --accent-orange: #d87e34;
  --accent-red: #d46161;
}

html.lenis, html.lenis body { height: auto; }
body.admin-bar .navbar { top: 32px; }

html, html body {
    scroll-behavior: auto !important;
}

/* Default state: hidden */
.cursor-dot, 
.cursor-ring,
.preloader {
    display: none !important;
}

/* Only show cursor on the homepage */
.home .cursor-dot,
.home .cursor-ring {
    display: block !important;
}

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

.hidden { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Background orbs ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: orb-float 20s ease-in-out infinite;
}
.bg-orbs .orb-1 { width: 500px; height: 500px; background: var(--accent-cyan); top: -10%; left: -10%; }
.bg-orbs .orb-2 { width: 600px; height: 600px; background: var(--accent-purple); top: 30%; right: -15%; animation-delay: -6s; }
.bg-orbs .orb-3 { width: 400px; height: 400px; background: var(--accent-pink); bottom: -10%; left: 30%; animation-delay: -12s; }
[data-theme="light"] .bg-orbs .orb { opacity: 0.18; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  background: rgba(8, 9, 13, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}
[data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.6); }
.navbar.scrolled { padding: 12px 40px; background: rgba(8, 9, 13, 0.8); }
[data-theme="light"] .navbar.scrolled { background: rgba(255, 255, 255, 0.85); }

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo i { color: var(--accent-cyan); -webkit-text-fill-color: var(--accent-cyan); }

.nav-links {
	display: flex;
	gap: 30px;
	list-style: none;
	position: relative;
	padding-bottom: 8px; /* Space for the underline */
	transition: color 0.3s ease;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
	content: '';
	position: absolute;
	left: 0; bottom: -6px;
	width: 0; height: 2px;
	background: var(--accent-gradient);
	transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4); /* Subtle glow */
/*     bottom: 0; */
/*     left: 50%; */
/*     width: 0; */
/*     height: 2px; */
}
.nav-links a:hover::after { width: 100%; left: 0;}

.nav-links a.active {
    color: var(--accent-cyan) !important;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.theme-toggle:hover { background: var(--glass-hover); transform: rotate(15deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-cta {
  padding: 10px 22px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-gradient);
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(168, 85, 247, 0.45); }
.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-hover); border-color: var(--accent-cyan); }

/* ===== Common containers ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 8px 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.section-heading .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
}

/* ===== Footer ===== */
.footer {
  margin-top: 120px;
  padding: 60px 40px 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-cyan); }
.footer-brand p { color: var(--text-secondary); margin: 12px 0; max-width: 340px; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Glass card base ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .navbar, .navbar.scrolled { padding: 14px 20px; }
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .fleet-specs-grid {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   Global Cart Drawer
   ============================================ */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px; /* PC/Tablet width */
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%); /* Hidden off-screen to the right */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
    transform: translateX(0); /* Slides in */
}

.drawer-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-body {
    flex-grow: 1;
    padding: 20px 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

/* Mini Item Styling */
.mini-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: var(--glass-bg);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: border 0.3s;
}
.mini-item:hover {
    border-color: rgba(34, 211, 238, 0.2);
}

.mini-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.mini-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-item-info { flex-grow: 1; }


/* Clear Button */
.btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 5px;
    
    /* Allow the button to rotate correctly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Update transition to include transform */
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-text:hover {
    color: var(--accent-pink);
    /* Rotates the icon 90 degrees and scales it up slightly */
    transform: rotate(90deg) scale(1.1);
}

/* Optional: If you want a specific effect for the "X" close buttons */
.btn-text i {
    transition: transform 0.3s ease;
}


/* Optional Notification Badge on Navbar Icon */
.cart-badge {
    position: relative;
    top: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* Responsive adjustment for Mobile (Full screen) */
@media (max-width: 480px) {
    .cart-drawer { max-width: 100%; border-left: none; }
}

#global-cart-btn{
	gap: 0px;
}