/* ============================================
   Glassmorphic Modern — Stom Dr Nurdinov
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #0f0f1a;
  --surface: rgba(255, 255, 255, 0.05);
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --accent-rgb: 99, 102, 241;
  --bg-rgb: 15, 15, 26;
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Inter', sans-serif;
  --heading-weight: 700;
  --body-weight: 400;
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card, .team-card, .hero h1, .section-header h2 {
  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: 1.5rem;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: var(--heading-font);
  font-weight: 800;
  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); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(15, 15, 26, 0.7);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}

.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 {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.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 30px rgba(var(--accent-rgb), 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text);
}

/* --- Sections (shared) --- */
.section {
  position: relative;
  padding: 6rem 2rem;
  overflow: visible;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Floating Gradient Shapes (section decor) --- */
.section-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.section-shape--1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.section-shape--2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  bottom: -50px;
  left: -80px;
}

.section-shape--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

/* Hero animated gradient mesh blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.hero-blob--1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -150px;
  right: -100px;
  animation: blobFloat1 20s ease-in-out infinite;
}

.hero-blob--2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(225deg, #a855f7, #6366f1);
  bottom: -100px;
  left: -100px;
  animation: blobFloat2 25s ease-in-out infinite;
}

.hero-blob--3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(180deg, #818cf8, #a855f7);
  top: 30%;
  left: 50%;
  animation: blobFloat3 22s ease-in-out infinite;
}

.hero-blob--4 {
  width: 280px;
  height: 280px;
  background: linear-gradient(90deg, #6366f1, #c084fc);
  top: 60%;
  right: 20%;
  animation: blobFloat4 18s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 40px) scale(1.05); }
  50% { transform: translate(20px, -20px) scale(0.95); }
  75% { transform: translate(-15px, -30px) scale(1.02); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.92); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -40px) scale(1.1); }
}

@keyframes blobFloat4 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-25px, 30px); }
  80% { transform: translate(15px, -20px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero-content h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.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;
}

.hero-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Hero glass panel (right side) */
.hero-glass-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--surface);
  padding: 0.5rem;
}

.hero-photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.hero-glass-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-glass-stat {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.hero-glass-stat .stat-value {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-glass-stat .stat-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.service-card-img {
  position: relative;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.service-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.service-card-link:hover {
  color: var(--accent-hover);
  gap: 0.6rem;
}

/* --- Team Grid (horizontal scroll) --- */
.team-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  position: relative;
  z-index: 1;
}

.team-grid::-webkit-scrollbar {
  height: 4px;
}

.team-grid::-webkit-scrollbar-track {
  background: transparent;
}

.team-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.team-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--surface);
  transition: all var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.team-card-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(15, 15, 26, 0.95) 0%, rgba(15, 15, 26, 0.6) 50%, transparent 100%);
}

.team-card-overlay h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card-overlay .team-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

.team-card-overlay .team-spec {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover {
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.3);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--accent-rgb), 0.1);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), rgba(var(--accent-rgb), 0.08), var(--bg));
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact List --- */
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--accent);
}

/* --- Map Container --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  display: block;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.3) brightness(0.8);
}

/* --- Footer --- */
.footer {
  background: rgba(15, 15, 26, 0.95);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.footer-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Page Header (for subpages) --- */
.page-header {
  position: relative;
  padding: 10rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- CSS Decorative Elements --- */

/* Gradient pseudo-elements for sections */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
}

/* Section gradient fade backgrounds */
.section-gradient-1 {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--accent-rgb), 0.03) 50%, var(--bg) 100%);
}

.section-gradient-2 {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(139, 92, 246, 0.03) 50%, var(--bg) 100%);
}

/* Hover effects */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

/* ==============================
   RESPONSIVE (mobile-first)
   ============================== */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1.25rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 7rem 1.25rem 4rem;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .hero-stat .stat-number {
    font-size: 1.5rem;
  }

  .hero-glass-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photo-card img {
    height: 220px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .services-grid {
    gap: 0;
    border-radius: var(--radius-sm);
  }

  .service-card:first-child {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-card-img img {
    min-height: 180px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .team-card {
    flex: 0 0 240px;
  }

  .team-card-img {
    height: 260px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-header {
    padding: 8rem 1.25rem 3rem;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1025px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Services page full layout --- */
.services-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.service-full-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: visible;
  transition: all var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-full-card:nth-child(even) {
  direction: rtl;
}

.service-full-card:nth-child(even) > * {
  direction: ltr;
}

.service-full-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.service-full-img {
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
}

.service-full-card:nth-child(even) .service-full-img {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.service-full-img img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-full-card:hover .service-full-img img {
  transform: scale(1.05);
}

.service-full-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.service-full-body h2 {
  font-size: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-full-body p {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .service-full-card,
  .service-full-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-full-img,
  .service-full-card:nth-child(even) .service-full-img {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .service-full-body {
    padding: 1.5rem;
  }

  .service-full-img img {
    min-height: 220px;
    max-height: 250px;
  }
}

/* --- UTP cards --- */
.utp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.utp-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.utp-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.utp-card-number {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.utp-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
