:root {
  --bg-main: #0a192f;
  --bg-card: #13293d;
  --primary: #0f4c81;
  --secondary: #14b8a6;
  --accent: #22c55e;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(25, 38, 61, 0.35);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(41, 231, 214, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(15, 76, 129, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(20, 184, 166, 0.08) 0%,
      transparent 40%
    ),
    var(--bg-main);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(6, 13, 25, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1050;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main) !important;
  letter-spacing: -0.02em;
}

.navbar-brand i {
  color: var(--secondary);
  transition: var(--transition);
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem !important;
  transition: var(--transition);
  border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary) !important;
  background: rgba(255, 255, 255, 0.05);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.menu-btn {
  color: var(--text-main);
  font-size: 1.25rem;
}

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

.hero-tagline {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typewriter Animation styling */
.typewriter-box {
  height: 35px;
  margin-bottom: 1.5rem;
}

.typewriter {
  font-size: 1.35rem;
  color: var(--secondary);
  opacity: 0.9;
  font-weight: 500;
  border-right: 2px solid var(--secondary);
  white-space: nowrap;
  animation: blink 0.75s step-end infinite;
  letter-spacing: -0.01em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-tagline {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-apple {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.btn-apple-primary {
  background: var(--primary);
  color: white;
  border: 1px solid transparent;
}

.btn-apple-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
  color: white;
}

.btn-apple-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(5px);
}

.btn-apple-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
  color: var(--text-main);
}

/* Medical Illustration Placeholder Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.medical-art {
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.15) 0%,
    rgba(15, 76, 129, 0.05) 70%
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(20, 184, 166, 0.3);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pulse 4s ease-in-out infinite;
}

.medical-art i.main-icon {
  font-size: 5.5rem;
  background: linear-gradient(
    135deg,
    var(--text-main) 0%,
    var(--secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  drop-filter: drop-shadow(0 10px 20px rgba(0, 113, 227, 0.2));
}

.floating-badge {
  position: absolute;
  background: rgba(10, 21, 41, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--glass-border-glow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.floating-badge:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.badge-1 {
  top: -5%;
  left: -10%;
}
.badge-2 {
  bottom: 5%;
  right: -8%;
}

/* About Section */
.about-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.5 rem;
}

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: rgba(20, 184, 166, 0.2);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 1rem 3rem;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-main);
  border: 3px solid var(--secondary);
  top: 24px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}
.right {
  left: 50%;
}

.right::after {
  left: -8px;
}

.timeline-content {
  padding: 1.5rem;
  background: var(--bg-card);
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.timeline-content h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.skills-category {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.skills-category h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(15, 76, 129, 0.2);
  border: 1px solid var(--glass-border) !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--secondary) !important;
  color: var(--secondary);
  transform: translateY(-2px);
}

/* Initiatives / Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(20, 184, 166, 0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Certifications & Education Grid */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.edu-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 184, 166, 0.1);
  margin-bottom: 1.5rem;
}

.edu-card:last-child {
  margin-bottom: 0;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.edu-title {
  font-weight: 600;
  font-size: 1.15rem;
}
.edu-meta {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.edu-inst {
  color: var(--secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.edu-grade {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cert-list {
  list-style: none;
}

.cert-item {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 184, 166, 0.1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-item i {
  font-size: 1.5rem;
  color: var(--accent);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-item i {
  width: 45px;
  height: 45px;
  background: rgba(20, 184, 166, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
}

.info-item div h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-item div a,
.info-item div span {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.contact-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-main);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 6px;
  color: white;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
}

.form-control::placeholder {
  color: #ffffff;
  opacity: 1; 
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(20, 184, 166, 0.1);
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.9;
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.75rem;
  }
  .cta-group {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 2rem;
  }
  .skills-grid,
  .edu-cert-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 5rem;
    padding-right: 0;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item::after {
    left: 23px;
    right: auto;
  }
  .right::after {
    left: 23px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-main);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    transition: var(--transition);
  }
  .nav-links.active {
    left: 0;
  }
  .menu-btn {
    display: block;
  }
}
