/* =========================================================
   Garden Garage Autoparts – Premium Dark Theme
   ========================================================= */

/* ----- CSS Custom Properties ----- */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0c0c12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(79, 140, 255, 0.25);

  --text-primary: #f0f0f5;
  --text-secondary: #9a9ab0;
  --text-muted: #6a6a80;

  --accent: hsl(220, 90%, 60%);
  --accent-light: hsl(220, 90%, 72%);
  --accent-dark: hsl(220, 90%, 45%);
  --gradient-accent: linear-gradient(135deg, hsl(220, 90%, 60%), hsl(260, 80%, 65%));
  --gradient-hero: linear-gradient(160deg, #050508 0%, #0d0d1a 40%, #0a0a14 100%);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ----- Reset ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ----- Utility ----- */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--accent); }

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-family);
}
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 140, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 140, 255, 0.45);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(79, 140, 255, 0.06);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.site-header.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.5);
  padding: 0.6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  height: 42px;
  width: 42px;
  border-radius: 10px;
  object-fit: cover;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav ul {
  display: flex;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 6s infinite;
}
@keyframes float-particle {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(79, 140, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(140, 80, 255, 0.06) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 4rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}
.about-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 140, 255, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}
.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.about-feature p {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
  color: var(--text-muted) !important;
}

.about-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.about-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}
.about-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  text-align: center;
  cursor: default;
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  transition: transform var(--transition);
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* =========================================================
   LOCATION
   ========================================================= */
.location {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  min-height: 420px;
}

.location-info {
  padding: 2.5rem;
}
.location-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.location-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.loc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.location-detail strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}
.location-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--border-subtle);
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 6rem 0;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem;
}
.contact-form:hover {
  transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.5rem;
}
.form-status.success { color: #4caf50; }
.form-status.error { color: #f44336; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #07070c;
  padding: 4rem 0 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand .logo-text {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul li,
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 999;
  }
  .nav.open { right: 0; }
  .nav ul { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-link { font-size: 1.1rem; padding: 0.75rem 2rem; }

  .hero-content { padding: 7rem 0 3rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }

  .section-header h2 { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
