/* PREMIUM LUXURY LIGHT DESIGN SYSTEM - DR. XUDU XUDIYEV */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #fdfcfb;
  --bg-secondary: #f7f5f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --accent-gold: #b3915c;
  --accent-bronze: #a1804c;
  --accent-gold-rgb: 179, 145, 92;
  --text-light: #1e293b;
  --text-muted: #64748b;
  --text-dark: #0f172a;
  --mint-glow: #0d9488;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(179, 145, 92, 0.2);
  --glass-hover: rgba(179, 145, 92, 0.08);
  --shadow-gold: 0 15px 35px rgba(179, 145, 92, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-bronze);
}

/* Ambient Background Lights - Light Theme */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: floatOrb 20s infinite alternate ease-in-out;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: #f1ebd9;
  top: -10%;
  left: -10%;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: #e2e8f0;
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}
.orb-3 {
  width: 400px;
  height: 400px;
  background: #f5f3e9;
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Floating Glass Header - Light Theme */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 15px 30px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(179, 145, 92, 0.08);
  transition: var(--transition);
}
header.scrolled {
  top: 0;
  width: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: rgba(253, 252, 251, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
}
.logo span {
  color: var(--accent-gold);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  position: relative;
}
nav a:hover, nav a.active {
  color: var(--text-dark);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}
nav a:hover::after, nav a.active::after {
  width: 100%;
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-bronpx));
  background-color: var(--accent-gold);
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(179, 145, 92, 0.25);
  transition: var(--transition);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 145, 92, 0.4);
  background-color: var(--accent-bronze);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Premium Main Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  color: var(--accent-gold);
  font-size: 0.8rem;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(180deg, #1e293b, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Hero Section - FIXED Image Cropping and Light Design */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  gap: 60px;
}
.hero-content {
  flex: 1.2;
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--text-dark) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 550px;
}
.hero-image-container {
  flex: 0.8;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Fixed Image Wrapper: Classical portrait frame shape, taller aspect ratio, no face cutting */
.hero-image-wrapper {
  position: relative;
  border-radius: 180px 180px 24px 24px; /* Classical Arch Shape - extremely elegant and premium */
  width: 360px;
  height: 480px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(179, 145, 92, 0.15);
  background: var(--bg-secondary);
  transition: var(--transition);
}
.hero-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(179, 145, 92, 0.25);
  border-color: var(--accent-gold);
}
/* Fixed Image Alignment: ensure the doctor's face is centered and fully visible */
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%; /* Shift photo down so face/eyes are completely visible */
  transition: var(--transition);
}
.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 15px 25px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(179, 145, 92, 0.1);
  z-index: 10;
}
.hero-badge i {
  color: var(--accent-gold);
  font-size: 1.5rem;
}
.hero-badge div span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hero-badge div strong {
  font-size: 1.1rem;
  font-family: 'Cinzel', serif;
  color: var(--text-dark);
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.btn-outline {
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-light);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.btn-outline:hover {
  background: var(--glass-hover);
  border-color: var(--accent-gold);
  color: var(--text-dark);
}

/* Service Showcases */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}
.service-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.service-card:hover .service-card-image img {
  transform: scale(1.05);
}
.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(253, 252, 251, 0.95) 100%);
}
.service-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.service-card:hover .service-card-title {
  color: var(--accent-gold);
}
.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.service-card-link i {
  transition: var(--transition);
}
.service-card:hover .service-card-link i {
  transform: translateX(4px);
}

/* Before / After Slider */
.comparison-container {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 40px;
  gap: 40px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(179, 145, 92, 0.05);
}
.comparison-info {
  flex: 0.8;
}
.comparison-showcase {
  flex: 1.2;
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before {
  z-index: 2;
}
.ba-after {
  z-index: 1;
}
.ba-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.comparison-showcase input[type="range"] {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  z-index: 4;
  margin: 0;
  cursor: ew-resize;
}
.comparison-showcase input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 400px;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(179, 145, 92, 0.8);
  cursor: ew-resize;
}
.ba-label {
  position: absolute;
  bottom: 20px;
  background: rgba(253, 252, 251, 0.9);
  border: 1px solid var(--glass-border);
  color: var(--text-dark);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 3;
}
.before-label {
  left: 20px;
}
.after-label {
  right: 20px;
}

/* Appointment Form */
.booking-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 60px;
  box-shadow: 0 20px 50px rgba(179, 145, 92, 0.08);
  margin-top: 50px;
  align-items: center;
}
.booking-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.booking-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.b-feature {
  display: flex;
  gap: 15px;
  align-items: center;
}
.b-feature i {
  color: var(--accent-gold);
  background: rgba(179, 145, 92, 0.1);
  padding: 12px;
  border-radius: 50%;
  font-size: 1.1rem;
}
.b-feature div span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.b-feature div strong {
  font-size: 1rem;
  color: var(--text-dark);
}

.booking-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}
.booking-form h4 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}
.form-group {
  position: relative;
  margin-bottom: 25px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(247, 245, 240, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 15px;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 15px rgba(179, 145, 92, 0.1);
}
.form-group label {
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}
.form-group input:focus ~ label, .form-group input:valid ~ label,
.form-group textarea:focus ~ label, .form-group textarea:valid ~ label {
  top: -22px;
  left: 5px;
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 700;
}
.form-group select {
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffffff;
  border: 1px solid var(--accent-gold);
  color: var(--text-dark);
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(179, 145, 92, 0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2000;
}
.toast.show {
  transform: translateY(0);
}
.toast i {
  color: var(--accent-gold);
  font-size: 1.3rem;
}

/* Footer Section */
footer {
  background: #faf9f6;
  border-top: 1px solid var(--glass-border);
  padding: 80px 20px 30px;
  margin-top: 100px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 800;
}
.footer-logo span {
  color: var(--accent-gold);
}
.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
  max-width: 300px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-gold);
  font-size: 1.1rem;
}
.social-link:hover {
  background: var(--accent-gold);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-dark);
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 12px;
}
.footer-column ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-column ul li a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-contact-item i {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
  header {
    width: 95%;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
  }
  .hero-image-wrapper {
    width: 320px;
    height: 420px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    bottom: -10px;
  }
  .comparison-container {
    flex-direction: column;
  }
  .booking-section {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  }
  nav.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .comparison-showcase {
    height: 300px;
  }
  .comparison-showcase input[type="range"]::-webkit-slider-thumb {
    height: 300px;
  }
}
