/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #0E6B8A;
  --blue-light: #1289AD;
  --blue-dark:  #094F6B;
  --accent:     #00BCD4;
  --white:      #ffffff;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #475569;
  --gray-800:   #1E293B;
  --text:       #1E293B;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(21,101,192,.12);
  --shadow-lg:  0 8px 48px rgba(21,101,192,.18);
  --transition: .3s ease;
  --font:       'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ============ UTILITY ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--gray-800);
}

.section-header h2 span { color: var(--blue); }

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 2px;
  margin: 16px auto 0;
}

.divider-light { background: rgba(255,255,255,.5); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(21,101,192,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,192,.45);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-block { width: 100%; justify-content: center; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
  flex-shrink: 0;
}

.logo img { height: 40px; }

.navbar.scrolled .logo { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.15); }

.navbar.scrolled .nav-links a { color: var(--gray-600); }
.navbar.scrolled .nav-links a:hover { color: var(--blue); background: var(--gray-100); }

.nav-cta { font-size: 14px; padding: 10px 22px; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span { background: var(--gray-800); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 60%, var(--accent) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,.85) 0%, rgba(21,101,192,.6) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-tagline {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.2);
}

.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.3);
  box-shadow: 0 0 0 16px rgba(255,255,255,.08), 0 20px 60px rgba(0,0,0,.35);
  animation: float 6s ease-in-out infinite;
}

.hero-image-placeholder {
  width: 340px;
  height: 440px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: rgba(255,255,255,.3);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ============ SERVICES ============ */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(41,182,246,.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--blue);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--blue-light), var(--accent));
  color: var(--white);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover { gap: 10px; }

/* ============ DOCTOR ============ */
.doctor-section { background: var(--gray-50); }

.doctor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.doctor-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.doctor-img-wrap img {
  width: 360px;
  height: 360px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: 0 16px 60px rgba(14,107,138,.25);
}

.doctor-img-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 100px;
  color: var(--gray-400);
}

.play-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: var(--transition);
  z-index: 2;
}

.play-btn:hover { background: var(--blue); color: var(--white); transform: translateX(-50%) scale(1.1); }

.doctor-info h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.doctor-specialty {
  color: var(--blue);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.doctor-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 2px;
  margin: 20px 0;
}

.doctor-desc {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ============ PORTFOLIO ============ */
.portfolio-section { background: var(--white); }

.portfolio-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,71,161,.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.portfolio-overlay span { font-size: 13px; opacity: .8; }

.portfolio-item.hidden { display: none; }

/* ============ STATS ============ */
.stats-section {
  background: var(--blue);
  padding: 80px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.stats-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.4;
}

.stats-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ============ RESUME ============ */
.resume-section { background: var(--gray-50); }

.resume-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.resume-content {
  max-width: 760px;
  margin: 0 auto;
}

.resume-item {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}

.resume-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.resume-dot {
  width: 22px;
  height: 22px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(21,101,192,.15);
}

.resume-body { flex: 1; }

.resume-year {
  display: inline-block;
  background: rgba(21,101,192,.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.resume-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.resume-sub {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.resume-body p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
}

/* ============ APPOINTMENT ============ */
.appointment-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  padding: 96px 0;
}

.appointment-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.appointment-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.appointment-text p {
  color: rgba(255,255,255,.8);
  font-size: 16px;
  line-height: 1.8;
}

.appointment-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* ============ CONTACT ============ */
.contact-section { background: var(--white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.contact-info .divider { margin: 0 0 24px; }

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 28px;
  line-height: 1.8;
}

.contact-list { display: flex; flex-direction: column; gap: 20px; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--gray-600);
  font-size: 15px;
}

.contact-list i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(21,101,192,.1), rgba(41,182,246,.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 16px;
  flex-shrink: 0;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--gray-100);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  gap: 12px;
  font-size: 14px;
}

.map-placeholder i { font-size: 48px; color: var(--blue); }

/* ============ FOOTER ============ */
.footer {
  background: var(--gray-800);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-light { color: var(--white); font-size: 24px; font-weight: 800; }

.footer p { color: var(--gray-400); font-size: 14px; }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--blue); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }

/* ============ ANIMATIONS ============ */
[data-aos] {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}

[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-image { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }
  .doctor-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-inner { grid-template-columns: 1fr; gap: 48px; }
  .appointment-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--white);
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 999;
  }

  .nav-links.open a {
    color: var(--gray-800);
    font-size: 20px;
  }

  .form-row { grid-template-columns: 1fr; }
  .stats-numbers { grid-template-columns: 1fr 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .appointment-form-wrap { padding: 24px 20px; }
}
