/* C:\xampp\htdocs\ns\assets\css\style.css */
/* Modern Patient-Friendly Design System for Dr. Krishnalal N.S. - Maxillofacial Surgeon */

:root {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.95);
  --accent-cyan: #0284c7;
  --accent-teal: #0ea5e9;
  --accent-emerald: #10b981;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-glow: rgba(2, 132, 199, 0.15);
  --hospital-gold: #d97706;
  --whatsapp-green: #25d366;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Glassmorphism & Soft Modern Card Containers */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.07);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-text p {
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.mobile-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Desktop Content Container Alignment */
.main-wrapper, body {
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: auto;
  padding: 120px 5% 50px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
}

.hero-content h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 15px;
  color: var(--text-main);
  font-weight: 800;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 22px;
  max-width: 550px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  align-items: center;
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 440px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
}

.hero-surgeon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-portrait-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: rgba(7, 13, 25, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 10px 16px;
  border-radius: 14px;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* 3D Visualizer Container */
.interactive-3d-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
}

/* Patient Real Photo Layer Overlay */
.patient-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.patient-profile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.patient-tag-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

#canvas3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

.v3d-controls-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  padding: 10px 15px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  z-index: 10;
}

.v3d-model-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v3d-stage-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.v3d-stage-btn.active, .v3d-stage-btn:hover {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  font-weight: bold;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.hud-overlay-container {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 240px;
  z-index: 10;
  pointer-events: none;
}

.hud-card {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hud-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
}

.hud-val {
  font-size: 14px;
  font-weight: bold;
  font-family: monospace;
}

.hud-val.cyan { color: var(--accent-cyan); }
.hud-val.blue { color: #60a5fa; }
.hud-val.green { color: #4ade80; }

/* Section Headings */
.section {
  padding: 50px 5%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 28px auto;
}

.section-header h2 {
  font-size: 13px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 700;
}

.section-header h3 {
  font-size: 28px;
  color: var(--text-main);
  font-weight: 800;
}

/* Doctor Profile Section */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

.profile-img-container {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header-text h4 {
  font-size: 26px;
  color: var(--text-main);
  margin-bottom: 5px;
  font-weight: 800;
}

.profile-title {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
}

.profile-bio {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  padding: 20px;
  text-align: center;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
}

.stat-card .num {
  font-size: 32px;
  font-weight: bold;
  color: var(--accent-cyan);
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  padding: 30px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  background: #ffffff;
  border-radius: 16px;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
}

.service-icon {
  font-size: 32px;
  color: var(--accent-cyan);
  margin-bottom: 15px;
  width: 54px;
  height: 54px;
  background: rgba(2, 132, 199, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h4 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Hospitals Section */
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.hospital-card {
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: #ffffff;
  border-radius: 16px;
}

.hospital-icon {
  width: 56px;
  height: 56px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--hospital-gold);
}

.hospital-details h4 {
  font-size: 18px;
  color: var(--text-main);
  font-weight: 700;
}

.hospital-details p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Booking Section */
.booking-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 35px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Case Works Gallery */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.work-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
}

.work-image-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
  position: relative;
}

.work-image-compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-label {
  position: absolute;
  top: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.tag-label.before { left: 10px; }
.tag-label.after { right: 10px; }

.work-body {
  padding: 20px;
}

.work-body h4 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 700;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--accent-cyan);
  margin-top: 15px;
  font-weight: 600;
}

/* WhatsApp Floating Action Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--whatsapp-green);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 35px 5% 20px 5%;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-img-container {
    height: 300px;
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-glow);
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .booking-container {
    padding: 20px 16px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .booking-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }
  .interactive-3d-wrapper {
    height: 540px;
  }
  .patient-tag-badge {
    top: 10px;
    left: 10px;
    right: auto;
    font-size: 11px;
    padding: 4px 10px;
    max-width: 90%;
  }
  .hud-overlay-container {
    top: 45px;
    left: 10px;
    right: 10px;
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hud-card {
    flex: 1 1 calc(50% - 6px);
    padding: 5px 8px;
  }
  .hud-label {
    font-size: 8px;
  }
  .hud-val {
    font-size: 11px;
  }
  .v3d-controls-overlay {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 10px;
  }
  .v3d-model-selector {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .v3d-stage-btn {
    justify-content: center;
    padding: 8px 6px;
    font-size: 11px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .profile-img-container {
    height: 300px;
  }
}
