/* ============================================
   NINO MOTORS - Theme Bleu Corporate + Accent Orange
   ============================================ */

:root {
  /* Blue corporate palette */
  --blue-50:  #F4F7FA;
  --blue-100: #DAE4EE;
  --blue-200: #B5C9DD;
  --blue-300: #7FAED4;
  --blue-400: #3D7FC1;
  --blue-500: #3D7FC1;
  --blue-600: #1A4F8A;
  --blue-700: #153F6E;
  --blue-800: #102F52;

  /* Accent orange */
  --accent:       #FF5722;
  --accent-hover: #E64A19;
  --accent-light: #FFF3E0;

  /* Grey palette (blue-grey harmonised) */
  --grey-50:  #F4F7FA;
  --grey-100: #EDF1F5;
  --grey-200: #DAE4EE;
  --grey-300: #C5D1DE;
  --grey-400: #8E9EAE;
  --grey-500: #5F6F7E;
  --grey-600: #3E4E5E;
  --grey-700: #2C3A48;
  --grey-800: #1A2632;
  --grey-900: #0F1820;

  /* Semantic */
  --color-primary: var(--blue-400);
  --color-primary-hover: var(--blue-600);
  --color-primary-light: var(--blue-50);
  --color-text: var(--grey-800);
  --color-text-light: var(--grey-500);
  --color-bg: #FFFFFF;
  --color-bg-alt: var(--grey-50);
  --color-dark: var(--grey-900);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-title.text-left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 127, 193, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 10px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
}

.btn-nav:hover {
  background: var(--color-primary-hover);
}

.btn-full {
  width: 100%;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.logo-nino {
  color: #C0392B;
}

.logo-motors {
  color: #fff;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: #fff;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--grey-900) 0%, var(--grey-700) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(61, 127, 193, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 127, 193, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* Hero particles canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(255,255,255,0.02) 100px,
      rgba(255,255,255,0.02) 101px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(255,255,255,0.02) 100px,
      rgba(255,255,255,0.02) 101px
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--grey-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.6s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Preloader logo */
.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-img {
  width: 280px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  animation: logoReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Typewriter */
.preloader-typewriter {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.preloader-typewriter.visible {
  opacity: 1;
}

.typewriter-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 6px;
  color: #C0392B;
  -webkit-text-fill-color: #C0392B;
}

.typewriter-cursor {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: #C0392B;
  animation: cursorBlink 0.7s steps(1) infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Hide site content until preloader done */
body.loading {
  overflow: hidden;
}

/* Responsive preloader logo */
@media (max-width: 600px) {
  .preloader-logo-img {
    width: 200px;
  }
}

.hero h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Services
   ============================================ */

.services {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  perspective: 1200px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: 16px;
  padding: 40px 30px;
  transition: box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-400), var(--blue-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(61, 127, 193, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, 50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.service-card:hover {
  box-shadow: 0 20px 50px rgba(61, 127, 193, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(61, 127, 193, 0.2);
}

/* Tilt 3D shine overlay */
.service-card .tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.service-card:hover .tilt-shine {
  opacity: 1;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  width: 300px;
  height: 300px;
}

.service-icon {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
  color: var(--blue-600);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--grey-800);
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: var(--grey-600);
}

/* Service card wide — spans full row */
.service-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 24px;
  align-items: center;
  text-align: left;
}

.service-card-wide .service-icon {
  grid-row: 1 / 3;
  margin-bottom: 0;
}

.service-card-wide h3 {
  align-self: end;
}

.service-card-wide p {
  grid-column: 2 / 4;
  align-self: start;
}

.service-card-wide .service-tags {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.service-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--blue-50);
  color: var(--color-primary);
  border: 1px solid rgba(61, 127, 193, 0.2);
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.service-card-wide:hover .service-tag {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================
   About
   ============================================ */

.about {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-100);
}

.about-logo-img {
  width: 75%;
  height: auto;
  object-fit: contain;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 20px 28px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.badge-text {
  font-size: 0.85rem;
  opacity: 0.9;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-content strong {
  color: var(--color-text);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
  display: block;
}

/* ============================================
   Atelier Gallery
   ============================================ */

.atelier-gallery {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.gallery-toggle-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.btn-gallery-toggle {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn-gallery-toggle:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid.hidden {
  display: none;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.photo-container img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.gallery-item:hover .photo-container img {
  transform: scale(1.05);
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  z-index: 9999;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 16px 12px;
  border-radius: 8px;
  z-index: 9999;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
  .lightbox { padding: 16px; }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 12px 10px;
  }

  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }

  .lightbox-close {
    top: 10px;
    right: 14px;
    font-size: 2.5rem;
    padding: 8px;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 80vh;
  }
}

/* ============================================
   Why Us
   ============================================ */

.why-us {
  padding: var(--section-padding);
  background: var(--grey-900);
  color: #fff;
}

.why-us .section-title {
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}

.feature:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.feature h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--grey-50) 0%, #fff 50%, var(--blue-50) 100%);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 36px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              background 0.4s ease,
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(61, 127, 193, 0.15), transparent 50%, rgba(61, 127, 193, 0.08));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(61, 127, 193, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(61, 127, 193, 0.2);
}

.testimonial-card:hover::before {
  opacity: 1;
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.testimonial-card > p {
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   Contact
   ============================================ */

.contact {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

.contact-form-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--grey-800);
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--grey-100);
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: var(--transition);
  background: var(--grey-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 127, 193, 0.1);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer .logo-img {
  height: 60px;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade-in on scroll base */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Direction variants */
.animate-on-scroll.fade-up {
  transform: translateY(50px);
}

.animate-on-scroll.fade-left {
  transform: translateX(-50px);
}

.animate-on-scroll.fade-right {
  transform: translateX(50px);
}

.animate-on-scroll.fade-scale {
  transform: scale(0.9);
}

.animate-on-scroll.fade-up-rotate {
  transform: translateY(50px) rotate(2deg);
}

/* Visible state — all variants */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0deg);
}

/* Section titles and subtitles fade */
.section-title,
.section-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title.visible,
.section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--grey-900);
    flex-direction: column;
    padding: 80px 40px 40px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .footer .logo-img {
    height: 40px;
  }

  .typewriter-text,
  .typewriter-cursor {
    font-size: 2.2rem;
    letter-spacing: 4px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    perspective: none;
  }

  .service-card-wide {
    display: block;
    text-align: left;
  }

  .service-card-wide .service-icon {
    margin-bottom: 20px;
  }

  /* Disable 3D tilt on touch devices */
  .service-card {
    transform: none !important;
    transform-style: flat;
  }

  .service-card .tilt-shine {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-placeholder {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-badge {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature {
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-container img {
    height: 240px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Glassmorphism fallback for mobile — slightly more opaque */
  .testimonial-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info .section-title {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .typewriter-text,
  .typewriter-cursor {
    font-size: 1.6rem;
    letter-spacing: 3px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }
}
