@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg-light: #f8fafc;
  --bg-section: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(13,148,136,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Mobil Tətbiq Üçün Optimizasiyalar */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

input, textarea, select {
  user-select: auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 50px;
  padding: 8px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Beautiful custom multi-color background glow under the navbar */
.navbar::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.16) 0%, rgba(245, 158, 11, 0.1) 50%, rgba(219, 39, 119, 0.14) 100%);
  filter: blur(15px);
  opacity: 0.85;
  border-radius: 50px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar.scrolled {
  top: 8px;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.navbar.scrolled::before {
  opacity: 0.6;
}

.navbar-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(13, 148, 136, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  position: relative;
  padding-bottom: 2px;
}

.brand-ramazan {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0d9488;
}

.brand-nasirli {
  font-size: 1.25rem;
  font-weight: 900;
  color: #f59e0b;
}

.brand-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: #0d9488;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all 0.25s ease;
}

.nav-links a span {
  display: inline-block;
}

.nav-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2px;
  transition: transform 0.25s ease;
}

/* Custom icon and hover color styles */
.text-primary {
  color: #0d9488;
}

.text-accent {
  color: #d97706;
}

.text-pwa {
  color: #6366f1;
}

.text-instagram {
  color: #d946ef;
}

.text-youtube {
  color: #ef4444;
}

/* Hover Background Highlights matching the color palette in the image */
.nav-links a:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-dark);
}

.nav-links a:hover .nav-icon {
  transform: translateY(-1px) scale(1.05);
}

.nav-links a.active {
  background: rgba(13, 148, 136, 0.08);
  color: #0d9488;
}

.nav-links a.active .nav-icon {
  color: #0d9488;
}

.nav-separator {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 10px;
}

/* CTAs and social buttons custom hover background colors */
.nav-links .nav-link-cta:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

.nav-links .nav-link-instagram:hover {
  background: rgba(217, 70, 239, 0.08);
  color: #d946ef;
}

.nav-links .nav-link-youtube:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 4px 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

/* Beautiful hamburger transition to Close 'X' when active */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 5% 80px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 50%, #fffbeb 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
}
.hero-content { max-width: 600px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,148,136,0.1); color: var(--primary);
  padding: 8px 16px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: all 0.3s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: var(--white); color: var(--text-dark);
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 2px solid var(--border); transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.hero-visual {
  flex: 1; display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 1;
}
.hero-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-lg);
  max-width: 400px; width: 100%;
  animation: fadeInUp 0.8s ease 0.4s both;
  border: 1px solid var(--border);
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.stat-item { text-align: center; padding: 16px; background: var(--bg-section); border-radius: var(--radius-sm); }
.stat-item .number {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item .label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ===== SECTIONS COMMON ===== */
section { padding: 100px 5%; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; background: rgba(13,148,136,0.1);
  color: var(--primary); padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== SERVICES ===== */
.services { background: var(--bg-section); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--border); transition: all 0.4s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: transform 0.4s; transform-origin: left;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(13,148,136,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== BİZDƏN SORUŞUN (AI ASSISTANT) ===== */
.ask-ai-container {
  max-width: 750px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.02), 0 8px 10px -6px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ask-ai-container:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-2px);
}
.chat-window {
  display: flex;
  flex-direction: column;
  height: 520px;
}
.chat-header {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.chat-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.chat-history {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-history::-webkit-scrollbar {
  width: 6px;
}
.chat-history::-webkit-scrollbar-track {
  background: transparent;
}
.chat-history::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}
.chat-message {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-message.bot {
  align-self: flex-start;
}
.chat-message.user {
  align-self: flex-end;
}
.chat-message .message-content {
  padding: 12px 18px;
  border-radius: 20px;
  line-height: 1.55;
  font-size: 0.95rem;
}
.chat-message.bot .message-content {
  background: var(--white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}
.chat-message.user .message-content {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: var(--white);
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 5px rgba(13,148,136,0.1);
}
.chat-message .message-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 6px;
}
.chat-message.user .message-time {
  align-self: flex-end;
}
.chat-input-wrapper {
  padding: 20px 24px;
  background: var(--white);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  gap: 12px;
  align-items: center;
}
.chat-input-wrapper input {
  flex: 1;
  border: 1px solid #cbd5e1;
  padding: 16px 26px;
  border-radius: 50px;
  outline: none;
  font-size: 1.05rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}
.chat-input-wrapper input:focus {
  border-color: #0d9488;
  background: var(--white);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.08), 0 0 0 4px rgba(13, 148, 136, 0.15);
}
.chat-input-wrapper button {
  background: #0d9488;
  color: var(--white);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px 2px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.chat-input-wrapper button:hover {
  background: #0f766e;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* Typing Bouncing Dots */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 80px;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #0d9488;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
  animation: bounce-dot 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* ===== CTA / APPOINTMENT ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: var(--white); 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.05'%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-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 40px; position: relative; }

/* ===== APPOINTMENT FORM ===== */
.appointment-form {
  max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 40px;
  border: 1px solid rgba(255,255,255,0.2); position: relative;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem; font-weight: 600; margin-bottom: 6px;
  color: rgba(255,255,255,0.9);
}
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.15); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: all 0.3s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); background: rgba(255,255,255,0.2);
}
.form-group select option { background: var(--primary-dark); color: var(--white); }
.btn-submit {
  width: 100%; padding: 14px; margin-top: 8px;
  background: var(--accent); color: var(--text-dark);
  border: none; border-radius: var(--radius-xs); cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700;
  transition: all 0.3s;
}
.btn-submit:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ===== WHY US ===== */
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.why-card {
  text-align: center; padding: 36px 24px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); transition: all 0.3s;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark); color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px; text-align: center;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: left; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--primary-light); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.85rem; }
.footer-social { display: flex; gap: 12px; margin-top: 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;
  font-size: 1.1rem; transition: all 0.3s;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

/* ===== FLOATING BUTTONS ===== */
.float-buttons { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer; transition: all 0.3s;
  box-shadow: var(--shadow-md); text-decoration: none;
}
.float-btn.whatsapp { background: #25D366; color: var(--white); }
.float-btn.phone { background: var(--primary); color: var(--white); }
.float-btn:hover { transform: scale(1.1); }

/* ===== TOAST ===== */
.toast {
  position: fixed; top: 24px; right: 24px; z-index: 9999;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 24px; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--success);
  transform: translateX(120%); transition: transform 0.4s ease;
}
.toast.show { transform: translateX(0); }
.toast h4 { font-size: 0.95rem; margin-bottom: 4px; }
.toast p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 9998;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; max-width: 500px; width: 90%;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== TEAM SECTION ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.team-card:hover::before { transform: scaleX(1); }
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.team-photo {
  width: 120px; height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover .team-photo {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(20,184,166,0.4);
  border-color: var(--accent);
}
.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.team-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(13,148,136,0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== BRANCHES SECTION ===== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.branch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.4s ease;
  overflow: hidden;
}
.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.branch-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.branch-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.branch-loc {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.branch-address {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.4;
}
.branch-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-section);
  min-height: 200px;
}
.branch-map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--radius-sm);
}

/* ===== RESPONSIVE ===== */
.mobile-social-bar {
  display: none;
}

@media (max-width: 1180px) {
  .navbar {
    width: 92%;
    padding: 10px 20px;
    border-radius: 30px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 20px;
    gap: 8px;
    z-index: 1000;
    align-items: stretch;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.02);
  }
  .nav-separator {
    display: none;
  }
  .mobile-social-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  .mobile-social-bar a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 50px;
    color: #fff;
    transition: transform 0.2s;
  }
  .mobile-social-bar a:active {
    transform: scale(0.95);
  }
  .mobile-social-bar .m-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  }
  .mobile-social-bar .m-youtube {
    background: #FF0000;
  }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 120px 5% 60px; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .appointment-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-card { padding: 20px 12px; }
  .team-photo { width: 90px; height: 90px; margin-bottom: 12px; border-width: 3px; }
  .team-card h3 { font-size: 0.95rem; }
  .team-role { font-size: 0.75rem; padding: 2px 10px; margin-bottom: 6px; }
  .team-card p { font-size: 0.8rem; line-height: 1.4; }
  .branches-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .navbar {
    width: 94%;
    padding: 6px 14px;
    top: 10px;
  }
  .brand-ramazan, .brand-nasirli {
    font-size: 1.05rem;
  }
  .logo-img {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }
  .logo-text {
    margin-left: 6px;
  }
  .brand-underline {
    height: 2px;
    width: 20px;
  }
  .nav-links a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ===== Responsive 3-Dots Placeholders (2026 Update) ===== */

/* Glassmorphic Placeholder Card */
.section-placeholder {
  max-width: 800px;
  margin: 40px auto;
  padding: 50px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.08);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.section-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.section-placeholder:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.section-placeholder:hover::before {
  opacity: 1;
}

.placeholder-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(13, 148, 136, 0.2));
  transition: transform 0.3s ease;
}

.section-placeholder:hover .placeholder-icon {
  transform: scale(1.15) rotate(5deg);
}

.placeholder-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.placeholder-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Glowing 3-Dots Button */
.dots-btn {
  display: inline-flex;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.section-placeholder:hover .dots-btn {
  background: rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 0 15px rgba(13, 148, 136, 0.2);
}

.dots-btn span {
  width: 8px;
  height: 8px;
  background-color: #0d9488;
  border-radius: 50%;
  display: inline-block;
  animation: dotsPulse 1.5s infinite ease-in-out;
}

.dots-btn span:nth-child(2) { animation-delay: 0.2s; }
.dots-btn span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotsPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 4px #0d9488); }
}

/* Responsive Viewport Rules */
@media (min-width: 769px) {
  /* On Desktop: always hide placeholders and show actual sections */
  .section-placeholder {
    display: none !important;
  }
  .mobile-toggle-section {
    display: block !important;
  }
}

@media (max-width: 768px) {
  /* On Mobile: hide actual sections by ID unless they are revealed, to ensure absolute priority over any ID selectors */
  #services.mobile-toggle-section,
  #booking-section.mobile-toggle-section,
  #branches.mobile-toggle-section {
    display: none !important;
  }
  
  #services.mobile-toggle-section.revealed,
  #booking-section.mobile-toggle-section.revealed,
  #branches.mobile-toggle-section.revealed {
    display: block !important;
    animation: slideFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  .section-placeholder {
    display: block;
    margin: 30px 15px; /* Slight margin adjustment for small screens */
  }
  .section-placeholder.hidden {
    display: none !important;
  }
}

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

/* ===== SOCIAL MEDIA FLOATING BAR ===== */
.social-media-bar {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: auto;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: socialBarSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.social-media-bar.scrolled {
  top: 60px;
}

@keyframes socialBarSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-15px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Beautiful custom multi-color background glow under the social bar, matching the navbar */
.social-media-bar::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.12) 0%, rgba(225, 48, 108, 0.1) 50%, rgba(255, 0, 80, 0.08) 100%);
  filter: blur(10px);
  opacity: 0.85;
  border-radius: 50px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.social-media-bar.scrolled::before {
  opacity: 0.6;
}

.social-bar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 50px;
  box-shadow: 
    0 10px 30px -5px rgba(0, 0, 0, 0.06), 
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated shimmer glow across the bar */
.social-bar-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(13, 148, 136, 0.04) 25%,
    rgba(225, 48, 108, 0.04) 50%,
    rgba(255, 0, 80, 0.03) 75%,
    transparent 100%
  );
  animation: shimmerGlow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerGlow {
  0% { left: -100%; }
  100% { left: 200%; }
}

.social-bar-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  padding: 0 10px 0 14px;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  margin-right: 4px;
  height: 14px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.social-bar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-bar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.social-bar-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-bar-link span {
  opacity: 0.9;
  transition: opacity 0.3s;
}

/* Instagram branded */
.social-instagram:hover {
  background: rgba(225, 48, 108, 0.08);
  color: #e1306c;
}

/* TikTok branded */
.social-tiktok:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #010101;
}
.social-tiktok svg {
  filter: drop-shadow(0.5px 0 0 #fe2c55) drop-shadow(-0.5px 0 0 #25f4ee);
}

/* YouTube branded */
.social-youtube:hover {
  background: rgba(255, 0, 0, 0.06);
  color: #ff0000;
}

/* Hover icon spin effect */
.social-bar-link:hover svg {
  transform: rotate(8deg) scale(1.15);
}
.social-bar-link:hover span {
  opacity: 1;
}

/* Active press effect */
.social-bar-link:active {
  transform: scale(0.97);
}

/* Scrolled state - make bar even more compact */
.social-media-bar.scrolled .social-bar-label {
  display: none;
}
.social-media-bar.scrolled .social-bar-inner {
  padding: 4px;
}
.social-media-bar.scrolled .social-bar-link {
  padding: 5px 8px;
}
.social-media-bar.scrolled .social-bar-link span {
  display: none;
}

/* ===== SOCIAL BAR RESPONSIVE ===== */
@media (max-width: 768px) {
  .social-media-bar {
    top: 66px;
  }
  .social-media-bar.scrolled {
    top: 56px;
  }
  .social-bar-label {
    display: none;
  }
  .social-bar-inner {
    padding: 4px;
    gap: 4px;
  }
  .social-bar-link {
    padding: 5px 8px;
    font-size: 10px;
    gap: 4px;
  }
  .social-bar-link span {
    display: none;
  }
  .social-bar-link svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 420px) {
  .social-bar-link {
    padding: 6px;
    border-radius: 50%;
  }
}
