/* =============================================
   Dr. Sadybakas — Light Glassmorphic Design
   Style 11: Ethereal glass on pastel canvas
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #f0f4f8;
  --surface: rgba(255, 255, 255, 0.6);
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.7);
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);

  --accent-rgb: 99, 102, 241;
  --bg-rgb: 240, 244, 248;

  --heading-font: 'Plus Jakarta Sans', 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-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body-font);
  font-weight: var(--body-weight);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Dot-grid texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  gap: 24px;
}

.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); }
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(240, 244, 248, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  box-shadow: var(--shadow);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.12);
}

.nav-logo span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(240, 244, 248, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* --- Section base --- */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section shapes / blobs */
.section-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #c4b5fd, transparent 70%);
  top: -100px;
  right: -100px;
  animation: blobFloat1 28s ease-in-out infinite;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #f9a8d4, transparent 70%);
  bottom: -80px;
  left: -80px;
  animation: blobFloat2 25s ease-in-out infinite;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #93c5fd, transparent 70%);
  top: 40%;
  left: 60%;
  animation: blobFloat3 30s ease-in-out infinite;
}

.blob-4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #c7d2fe, transparent 70%);
  top: 20%;
  right: 20%;
  animation: blobFloat1 26s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 25px) scale(1.03); }
  66% { transform: translate(35px, -15px) scale(0.97); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.08); }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 100px;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(167, 139, 250, 0.07), transparent);
  z-index: -2;
}

/* Dot grid on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  pointer-events: none;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  top: -150px;
  left: -100px;
  animation: blobFloat1 25s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 168, 212, 0.2), transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: blobFloat2 28s ease-in-out infinite;
}

.hero-blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.2), transparent 70%);
  top: 30%;
  right: 10%;
  animation: blobFloat3 30s ease-in-out infinite;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero stats glass card */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 48px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero photo showcase */
.hero-photo {
  position: relative;
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 280px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* --- Glass Card (base) --- */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
  word-break: break-word;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  transition: gap var(--transition);
}

.service-card-link:hover {
  gap: 10px;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.95);
}

.team-card-img {
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.team-card:hover .team-card-img img {
  transform: scale(1.05);
}

.team-card-info {
  padding: 24px;
}

.team-card-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.team-card-info .role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.team-card-info .specialization {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Solo team member — centered */
.team-grid.team-solo {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(99, 102, 241, 0.15) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --- UTP / Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.95);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  z-index: 1;
}

.cta-glass {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.cta-glass h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-glass p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Contact List --- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-list li a {
  color: var(--accent);
  font-weight: 500;
}

.contact-list li a:hover {
  color: var(--accent-hover);
}

/* --- Map --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 300px;
  margin-top: 40px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.footer {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-row img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand .logo-row span {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  color: #fff;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* --- Services page detail --- */
.service-detail {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  transition: all var(--transition);
}

.service-detail:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.95);
}

.service-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.service-detail-content.reversed {
  direction: rtl;
}

.service-detail-content.reversed > * {
  direction: ltr;
}

.service-detail-img {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.service-detail:first-child .service-detail-img {
  border-radius: var(--radius) 0 0 var(--radius);
}

.service-detail .service-detail-content.reversed .service-detail-img {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-detail:hover .service-detail-img img {
  transform: scale(1.03);
}

.service-detail-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-detail-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --- Page header --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 120px 20px 80px;
    min-height: auto;
  }

  .hero-stats {
    gap: 24px;
    padding: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail-content,
  .service-detail-content.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-detail-img {
    min-height: 220px;
    border-radius: var(--radius) var(--radius) 0 0 !important;
  }

  .service-detail-text {
    padding: 28px;
  }

  .cta-glass {
    padding: 40px 24px;
  }

  .hero-photo img {
    width: 220px;
    height: 280px;
  }

  .btn {
    min-height: 48px;
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}

/* --- Word-break safety --- */
.service-card,
.team-card,
.hero h1,
.section-header h2,
.feature-card h3,
.service-detail-text h3 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- Pseudo-element decorative accents --- */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin: 16px auto 0;
}

.service-card-body::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin-bottom: 16px;
}

/* --- Contact section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
