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

:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --secondary: #06b6d4;
  --accent: #10b981;
  --bg-dark: #0b131a;
  --bg-card: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Background Blobs (Dynamic & Glassy) */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(13, 148, 136, 0) 70%);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, rgba(6, 182, 212, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation-duration: 30s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, rgba(16, 185, 129, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 22s;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(80px, 50px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, -80px) scale(0.9) rotate(360deg);
  }
}

/* Floating medical background elements */
.floating-icon {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.12;
  fill: var(--secondary);
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
  transition: transform 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.floating-icon svg {
  width: 100%;
  height: 100%;
}

.icon-lungs-1 {
  width: 140px;
  height: 140px;
  top: 15%;
  left: 8%;
}

.icon-steth-1 {
  width: 90px;
  height: 90px;
  top: 48%;
  left: 6%;
}

.icon-syringe-1 {
  width: 100px;
  height: 100px;
  bottom: 12%;
  right: 10%;
  stroke: var(--secondary);
}

.icon-resp-1 {
  width: 110px;
  height: 110px;
  top: 25%;
  right: 15%;
  stroke: var(--secondary);
}

.icon-inhaler-1 {
  width: 90px;
  height: 90px;
  bottom: 25%;
  left: 32%;
  stroke: var(--secondary);
}

/* Animation keys applied to child SVGs to animate them independently of mouse parallax */
.icon-lungs-1 svg { animation: drift-1 28s infinite linear; }
.icon-steth-1 svg { animation: drift-2 36s infinite linear; }
.icon-syringe-1 svg { animation: drift-3 30s infinite linear; }
.icon-resp-1 svg { animation: drift-4 24s infinite linear; }
.icon-inhaler-1 svg { animation: drift-5 38s infinite linear; }

@keyframes drift-1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(30px, -45px) rotate(180deg) scale(1.06); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

@keyframes drift-2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-45px, 35px) rotate(-180deg) scale(0.94); }
  100% { transform: translate(0, 0) rotate(-360deg) scale(1); }
}

@keyframes drift-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, 20px) rotate(90deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes drift-4 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.96); }
  50% { transform: translate(-30px, -25px) rotate(180deg) scale(1.04); }
  100% { transform: translate(0, 0) rotate(360deg) scale(0.96); }
}

@keyframes drift-5 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(35px, -15px) rotate(-90deg); }
  100% { transform: translate(0, 0) rotate(-360deg); }
}

/* Subtle grid overlay to enhance glass look */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Glass Container Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px 0 rgba(13, 148, 136, 0.2);
}

/* Typography & Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(11, 19, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
}

.logo span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  filter: drop-shadow(0 0 8px rgba(13, 148, 136, 0.5));
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
}

.hero-content h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 40px; /* Reserves space to prevent vertical layout shifting during typing */
  display: block;
}

.typing-text {
  border-right: 2px solid var(--secondary);
  white-space: normal;
  word-break: break-word;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--secondary); }
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Hero Graphic / Lung Concept */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lung-container {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  position: relative;
}

.lung-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.15);
  animation: pulse-ring 4s infinite ease-in-out;
}

.lung-pulse-ring:nth-child(2) {
  animation-delay: 1.3s;
}

.lung-pulse-ring:nth-child(3) {
  animation-delay: 2.6s;
}

.lung-svg-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  padding: 30px;
  animation: breathe 5s infinite ease-in-out;
}

.lung-svg-wrap svg {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 0 15px rgba(13, 148, 136, 0.3));
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(13, 148, 136, 0.3));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.6));
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-img-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 0.85;
}

.about-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(11, 19, 26, 0.8));
  z-index: 1;
}

.about-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-img-container:hover img {
  transform: scale(1.05);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  padding: 12px 20px;
}

.about-badge h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.about-badge p {
  font-size: 0.85rem;
  color: var(--secondary);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.skill-tag svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(13, 148, 136, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid rgba(13, 148, 136, 0.3);
  transition: var(--transition);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--secondary);
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-card:hover .service-icon {
  background: var(--primary);
  border-color: var(--primary);
}

.service-card:hover .service-icon svg {
  fill: #fff;
  transform: scale(1.1);
}

/* Timeline Section (Career & Education) */
.timeline-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.timeline-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-pane {
  display: none;
}

.timeline-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.timeline-item {
  position: relative;
  padding-left: 45px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: -48px;
  width: 2px;
  background: var(--border-glass);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 4px solid var(--primary);
  z-index: 2;
  box-shadow: 0 0 10px var(--primary);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--secondary);
  box-shadow: 0 0 15px var(--secondary);
}

.timeline-content {
  padding: 24px 30px;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: #fff;
}

.timeline-location {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.timeline-details-list {
  list-style: none;
  padding-left: 0;
}

.timeline-details-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.timeline-details-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: var(--primary);
  font-weight: bold;
}

/* Appointment Form Section */
.appointment-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
}

.appointment-header {
  text-align: center;
  margin-bottom: 40px;
}

.appointment-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.appointment-header p {
  color: var(--text-secondary);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

select.form-control option {
  color: #0b131a;
  background-color: #ffffff;
}

input[type="date"].form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Custom Checkbox for GDPR compliance */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.form-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-glass);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  transition: var(--transition);
  margin-top: 3px;
}

.form-checkbox:checked {
  background: var(--secondary);
  border-color: var(--secondary);
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.checkbox-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

.policy-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.policy-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.form-submit-wrap {
  text-align: center;
  margin-top: 30px;
}

.form-submit-wrap .btn {
  width: 100%;
  padding: 14px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary);
}

.contact-card-detail h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff;
}

.contact-card-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-card-detail a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card-detail a:hover {
  color: var(--secondary);
}

/* Styled Map / Hospital Card */
.hospital-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hospital-header {
  margin-bottom: 20px;
}

.hospital-header h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 5px;
}

.hospital-header p {
  color: var(--accent);
  font-weight: 500;
}

.hospital-map-placeholder {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-glass);
  border-radius: 16px;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hospital-map-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image: 
    radial-gradient(circle at 30% 20%, var(--primary) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, var(--secondary) 0%, transparent 45%);
}

.map-marker {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: bounce 2s infinite ease-in-out;
}

.map-marker svg {
  width: 48px;
  height: 48px;
  fill: #ef4444;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.6));
}

.map-marker p {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(11, 19, 26, 0.8);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

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

.work-hours {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-glass);
  padding-top: 15px;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  max-width: 450px;
  width: 90%;
  padding: 40px;
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.modal-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--accent);
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #fff;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Success & Error modifiers for Modal */
.modal-content.modal-success .modal-icon {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent);
}
.modal-content.modal-success .modal-icon svg {
  fill: var(--accent);
}

.modal-content.modal-error .modal-icon {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #ef4444;
}
.modal-content.modal-error .modal-icon svg {
  fill: none !important;
  stroke: #ef4444;
}

/* Footer Section */
footer {
  background: rgba(11, 19, 26, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 3.2rem;
  }
  
  .hero-desc {
    margin: 0 auto 30px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-img-container {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .floating-icon {
    display: none;
  }
  

  .hero-subtitle {
    min-height: 70px; /* Reserves space for wrapped text on tablets to prevent layout shifting */
  }
  
  .section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(11, 19, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 50px 0;
    gap: 40px;
    transition: var(--transition);
    border-top: 1px solid var(--border-glass);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .appointment-wrap {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.12rem;
    line-height: 1.4;
    min-height: 80px; /* Reserves space for up to 3 lines of wrapped text on small mobile screens to prevent shifting */
    margin-bottom: 15px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .about-skills {
    grid-template-columns: 1fr;
  }
  
  .timeline-content {
    padding: 20px 15px;
  }
}

/* ==========================================================================
   Privacy Policy Page Styles
   ========================================================================== */
.policy-section {
  padding: 140px 0 80px;
}

.policy-content-card {
  padding: 50px 40px;
  margin-bottom: 40px;
}

.policy-content-card h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.policy-date {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 40px;
  display: block;
}

.policy-body h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  border-left: 3px solid var(--secondary);
  padding-left: 15px;
}

.policy-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.policy-body ul {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.policy-body li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.back-home-btn {
  margin-top: 40px;
  display: inline-flex;
}

@media (max-width: 768px) {
  .policy-content-card {
    padding: 30px 20px;
  }
  
  .policy-content-card h1 {
    font-size: 2rem;
  }
}
