/* ===== ROOT VARIABLES — Glassmorphic Modern ===== */
:root {
  --bg: #0f0f1a;
  --bg-rgb: 15, 15, 26;
  --surface: rgba(255, 255, 255, 0.05);
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-rgb: 99, 102, 241;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Inter', sans-serif;
  --heading-weight: 700;
  --body-weight: 400;
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --transition: 0.4s 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;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Text overflow protection */
.service-card,
.team-card,
.hero h1,
.section-header h2,
h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  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); }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  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.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo img {
  border: 2px solid rgba(var(--accent-rgb), 0.3);
}

.nav-logo-text,
.nav-logo span {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link,
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active,
.nav-links a:hover {
  color: var(--text);
}

.nav-link::after,
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-btn {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  z-index: 999;
  background: rgba(var(--bg-rgb), 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: none;
  flex-direction: column;
  padding: 100px 32px 40px;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-link,
.mobile-menu a {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu-link:hover,
.mobile-menu-link.active,
.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  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 20px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--bg);
}

/* Hero decor — animated gradient blobs */
.hero-bg,
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse 50% 50% at 50% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.hero-blob,
.hero-decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.hero-blob:nth-child(1),
.hero-decor-circle-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -10%;
  left: -5%;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero-blob:nth-child(2),
.hero-decor-circle-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  top: 20%;
  right: -5%;
  animation: heroFloat 10s ease-in-out infinite reverse;
}

.hero-blob:nth-child(3),
.hero-decor-circle-3 {
  width: 350px;
  height: 350px;
  background: #a855f7;
  bottom: -5%;
  left: 30%;
  animation: heroFloat 14s ease-in-out infinite;
  animation-delay: -3s;
}

.hero-blob:nth-child(4) {
  width: 250px;
  height: 250px;
  background: #6366f1;
  bottom: 20%;
  right: 20%;
  animation: heroFloat 11s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-grid,
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* When hero-content is inside hero-grid */
.hero-grid .hero-content {
  display: block;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-hover);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-text p,
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions,
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number,
.hero-stat-number {
  display: block;
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: var(--heading-weight);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .stat-label,
.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image,
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 3px);
  background: var(--gradient);
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
}

.hero-image img,
.hero-photo {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: block;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--gradient);
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }
  .hero-grid,
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-grid .hero-content {
    max-width: 100%;
  }
  .hero-text p,
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 24px;
  }
  .hero-image,
  .hero-visual {
    order: -1;
  }
  .hero-image img,
  .hero-photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text);
}

.section-header h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Section divider — gradient line */
.section-divider {
  width: 80px;
  height: 2px;
  background: var(--gradient);
  margin: 0 auto 60px;
  border-radius: 2px;
}

/* Section shapes — floating gradient circles */
.section-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.section-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -100px;
  right: -100px;
}

.section-shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  bottom: -50px;
  left: -80px;
}

.section-shape-3 {
  width: 400px;
  height: 400px;
  background: #8b5cf6;
  top: 30%;
  left: -150px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Featured first card — full-width horizontal */
.service-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-left: 4px solid;
  border-image: var(--gradient) 1;
}

.service-card-featured .service-card-image {
  border-radius: var(--radius) 0 0 var(--radius);
}

.service-card-featured .service-card-image img {
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.service-card-featured .service-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.service-card-featured .service-card-content h3 {
  font-size: 1.5rem;
}

/* Also support old class .service-card:first-child */
.services-grid > .service-card:first-child {
  grid-column: 1 / -1;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: visible;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.15);
}

/* Gradient glow on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: var(--gradient);
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity var(--transition);
}

.service-card:hover::after {
  opacity: 0.15;
}

.service-card-image {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.services-grid .service-card:first-child .service-card-img {
  height: 320px;
}

.service-card-content,
.service-card-body {
  padding: 24px;
}

.service-card-content h3,
.service-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.service-card-content p,
.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent-hover);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-hover);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
    border-left: none;
    border-top: 4px solid;
    border-image: var(--gradient) 1;
  }
  .service-card-featured .service-card-image {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .service-card-featured .service-card-image img {
    min-height: 220px;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .service-card-featured .service-card-content {
    padding: 24px;
  }
  .services-grid > .service-card:first-child {
    grid-column: auto;
  }
  .service-card-img {
    height: 200px;
  }
  .services-grid .service-card:first-child .service-card-img {
    height: 220px;
  }
}

/* ===== TEAM ===== */
.team-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
  justify-content: center;
}

.team-grid::-webkit-scrollbar {
  height: 4px;
}

.team-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 4px;
}

.team-card {
  flex: 0 0 380px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  scroll-snap-align: start;
  transition: var(--transition);
  position: relative;
  overflow: visible;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.15);
}

/* Gradient border on hover */
.team-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card-photo {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.team-card-photo img,
.team-card-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card:hover .team-card-photo img {
  transform: scale(1.03);
}

.team-card-info,
.team-card-body {
  padding: 24px;
}

.team-card-info h3,
.team-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text);
}

.team-card-role,
.team-card-body .team-role {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-card-spec,
.team-card-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.team-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tag {
  padding: 4px 12px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-hover);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .team-card {
    flex: 0 0 300px;
  }
  .team-card-photo img,
  .team-card-img {
    height: 300px;
  }
}

/* ===== USP SECTION ===== */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.usp-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.usp-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.15);
}

.usp-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.usp-number {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.usp-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.usp-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.review-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}

.review-quote,
.review-card::before {
  font-size: 4rem;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  font-family: Georgia, serif;
  position: absolute;
  top: 16px;
  left: 24px;
}

.review-card::before {
  content: '\201C';
}

.review-card p {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  padding-top: 24px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 24px;
}

.cta-info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Gradient overlay on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.1) 30%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 16px;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  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: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--accent-hover);
}

.contact-info h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-info p,
.contact-info a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-list a {
  color: var(--text);
  transition: color var(--transition);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 350px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.footer-brand > p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-nav h4,
.footer-contacts h4,
.footer-social h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-nav a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-contacts .contact-list {
  gap: 8px;
}

.footer-contacts .contact-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contacts .contact-list a {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 30%, rgba(var(--accent-rgb), 0.1), transparent 70%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ===== SERVICES PAGE DETAILED ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail-img {
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-detail:hover .service-detail-img {
  box-shadow: var(--shadow-lg);
}

.service-detail-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.service-detail-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .service-detail:nth-child(even) {
    direction: ltr;
  }
  .service-detail-img {
    height: 240px;
  }
}

/* ===== STICKY BOTTOM BAR ===== */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 24px;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.sticky-bottom-bar.visible {
  transform: translateY(0);
}

.sticky-bottom-bar .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .sticky-bottom-bar {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }
  .sticky-bottom-bar .btn {
    width: 100%;
  }
}

/* ===== ANIMATIONS SUPPORT ===== */
[data-reveal] {
  will-change: transform, opacity;
}

/* Ensure content visible without JS */
.service-card,
.team-card,
.gallery-item,
.review-card,
.usp-card,
.contact-item,
.section-header,
.hero-content,
.hero-text,
.hero-image,
.hero-visual {
  opacity: 1;
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 48px 12px;
  }
}
