/* ============================================
   MaxTuning — Vibrant Premium Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* === CSS Variables === */
:root {
  --bg: #fafafa;
  --surface: #f0f0f0;
  --accent: #7c3aed;
  --accent-hover: #9333ea;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --accent-rgb: 124, 58, 237;
  --bg-rgb: 250, 250, 250;
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Inter', sans-serif;
  --radius: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gradient: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-reverse: linear-gradient(135deg, #ec4899, #7c3aed);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body-font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Text overflow protection */
.service-card, .team-card, .hero h1, .section-header h2,
h1, h2, h3, h4, p {
  overflow-wrap: break-word;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* === Preloader === */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* === Gradient Text === */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              var(--gradient) border-box;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  -webkit-text-fill-color: #fff;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}

.nav-cta::after {
  display: none !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(var(--bg-rgb), 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  padding: 12px 24px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* === Section === */
.section {
  position: relative;
  padding: 100px 0;
}

.section:nth-child(even) {
  background: var(--surface);
}

/* Section shapes - gradient circles */
.section {
  overflow: visible;
}

.section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.06;
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gradient-reverse);
  filter: blur(60px);
  opacity: 0.05;
  bottom: -80px;
  left: -80px;
  pointer-events: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Gradient divider */
.section-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gradient);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--bg);
  overflow: hidden;
}

/* Hero gradient mesh decor */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
}

.hero-decor-circle:nth-child(1) {
  width: 600px;
  height: 600px;
  background: #7c3aed;
  top: -200px;
  right: -150px;
}

.hero-decor-circle:nth-child(2) {
  width: 450px;
  height: 450px;
  background: #ec4899;
  bottom: -100px;
  left: -100px;
}

.hero-decor-circle:nth-child(3) {
  width: 350px;
  height: 350px;
  background: #7c3aed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-text h1 {
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Image */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  /* Gradient border 3px */
  padding: 3px;
  background: var(--gradient);
}

.hero-image-wrapper img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 3px);
  display: block;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  min-height: 48px;
  min-width: 44px;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1DB954;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid .service-card:first-child {
  grid-column: 1 / -1;
}

/* Service Card - gradient border on hover */
.service-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: visible;
  transition: var(--transition);
  /* Gradient border trick */
  padding: 2px;
  background: var(--border);
  border-radius: var(--radius);
}

.service-card-inner {
  background: #fff;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--gradient);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Featured card (first) */
.service-card:first-child .service-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.service-card:first-child .service-card-img {
  height: 100%;
  min-height: 300px;
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.service-card .service-price {
  margin-top: 14px;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  transition: var(--transition);
}

.service-card .service-link:hover {
  gap: 10px;
}

/* === Team === */
.team-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.team-grid::-webkit-scrollbar {
  height: 4px;
}
.team-grid::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 4px;
}
.team-grid::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 4px;
}

.team-card {
  min-width: 300px;
  scroll-snap-align: start;
  padding: 2px;
  background: var(--gradient);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.team-card-inner {
  background: #fff;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  text-align: center;
  padding: 32px 24px;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              var(--gradient) border-box;
}

.team-card h3 {
  margin-bottom: 6px;
}

.team-card .team-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.team-card .team-spec {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover::after {
  opacity: 0.3;
}

.gallery-item-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* === Video Section === */
.video-wrapper {
  text-align: center;
}

.video-wrapper video {
  width: 100%;
  max-width: 800px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* === CTA Section === */
.cta-section {
  position: relative;
  padding: 80px 0;
  background: var(--gradient);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -120px;
  left: -80px;
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}

/* === UTP / Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-item a:hover {
  color: var(--accent);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 360px;
  background: var(--surface);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* === Footer === */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand span {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gradient);
  color: #fff;
}

/* === Services Page specifics === */
.services-page-grid {
  display: grid;
  gap: 32px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-detail-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-detail-card:nth-child(even) {
  direction: rtl;
}

.service-detail-card:nth-child(even) > * {
  direction: ltr;
}

.service-detail-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.service-detail-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-body h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-detail-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* === Page Header (for inner pages) === */
.page-header {
  padding: 140px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #7c3aed;
  filter: blur(100px);
  opacity: 0.06;
  top: -200px;
  right: -100px;
}

.page-header h1 {
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

/* === Responsive === */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-image-wrapper img {
    height: 380px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:first-child {
    grid-column: 1 / -1;
  }

  .service-card:first-child .service-card-inner {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .service-detail-card:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  .section {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:first-child {
    grid-column: 1;
  }

  .service-card:first-child .service-card-inner {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat .stat-number {
    font-size: 1.6rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  .page-header {
    padding: 110px 0 40px;
  }

  .team-card {
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper img {
    height: 300px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding: 0 16px;
  }
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effects count */
.service-card:hover .service-link { color: var(--accent-hover); }
.feature-card:hover .feature-icon { background: rgba(var(--accent-rgb), 0.15); }
.gallery-item:hover { box-shadow: var(--shadow-lg); }
