/* ============================================================
   CSS CUSTOM PROPERTIES — edit these to theme your site!
   TODO: Try asking Copilot to suggest a color palette for you.
   ============================================================ */
:root {
  --color-bg: #f0f8ff;
  --color-bg-alt: #e0f2f7;
  --color-text: #0d2c3a;
  --color-text-muted: #4a6b7c;
  --color-accent: #0080ab;
  --color-accent-hover: #005f7f;
  --color-border: #b8d8e8;
  --color-ocean-dark: #003f5c;
  --color-ocean-light: #6ecae3;
  --color-navy: #0a1628;
  --color-navy-light: #1a3a52;
  --color-glass-bg: rgba(240, 248, 255, 0.08);
  --color-glass-border: rgba(110, 202, 227, 0.2);
  --font-main: 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0, 60, 90, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 60, 90, 0.2);
  --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.37);
  --transition: 0.2s ease;
}

/* TODO: Add a [data-theme="dark"] block here for dark mode.
   Copilot can generate this for you — try:
   "Add a dark mode theme using CSS custom properties" */

/* ============================================================
   DARK MODE THEME
   ============================================================ */
[data-theme="dark"] {
  --color-bg: #0d1b2a;
  --color-bg-alt: #1a2332;
  --color-text: #e8f1f5;
  --color-text-muted: #a8c5d1;
  --color-accent: #4fc3f7;
  --color-accent-hover: #29b6f6;
  --color-border: #2c3e50;
  --color-ocean-dark: #0a0e14;
  --color-ocean-light: #4fc3f7;
}

[data-theme="dark"] body {
  background: linear-gradient(180deg, #0d1b2a 0%, #1a2f42 50%, #0f1e2e 100%);
}

[data-theme="dark"] body::before {
  opacity: 0.25;
}

[data-theme="dark"] .section::before {
  opacity: 0.12;
}

[data-theme="dark"] .section-alt::before {
  opacity: 0.18;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3 {
  color: #e8f1f5;
}

[data-theme="dark"] .btn {
  background: #4fc3f7;
  color: #0d1b2a;
}

[data-theme="dark"] .btn:hover {
  background: #29b6f6;
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.3);
}

[data-theme="dark"] .btn-outline {
  background: transparent;
  border: 2px solid #4fc3f7;
  color: #4fc3f7;
}

[data-theme="dark"] .btn-outline:hover {
  background: #4fc3f7;
  color: #0d1b2a;
}

[data-theme="dark"] .project-card {
  background: rgba(41, 57, 86, 0.12);
  border-color: rgba(79, 195, 247, 0.25);
}

[data-theme="dark"] .project-card:hover {
  background: rgba(79, 195, 247, 0.15);
  border-color: rgba(79, 195, 247, 0.4);
}

[data-theme="dark"] .skill-badge {
  background: rgba(41, 57, 86, 0.2);
  border-color: rgba(79, 195, 247, 0.2);
  color: #e8f1f5;
}

[data-theme="dark"] .skill-badge:hover {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.3) 0%, rgba(41, 182, 246, 0.2) 100%);
  border-color: #4fc3f7;
}

[data-theme="dark"] .skill-tooltip {
  background: rgba(13, 27, 42, 0.98);
  border-color: rgba(79, 195, 247, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 195, 247, 0.2);
}

[data-theme="dark"] .skill-tooltip::after {
  border-top-color: rgba(79, 195, 247, 0.25);
}

[data-theme="dark"] .tag {
  background: rgba(41, 57, 86, 0.3);
  border-color: rgba(79, 195, 247, 0.3);
  color: #a8d5e8;
}

[data-theme="dark"] .about-grid {
  background: rgba(41, 57, 86, 0.15);
  border-color: rgba(79, 195, 247, 0.15);
  color: #d4e8f0;
}

[data-theme="dark"] .contact-intro {
  background: rgba(41, 57, 86, 0.15);
  border-color: rgba(79, 195, 247, 0.15);
  color: #d4e8f0;
}

[data-theme="dark"] .navbar {
  background: rgba(13, 27, 42, 0.95);
  border-color: rgba(79, 195, 247, 0.1);
}

[data-theme="dark"] .nav-links a {
  color: #4fc3f7;
}

[data-theme="dark"] .nav-links a:hover {
  color: #29b6f6;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes glassShimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes backgroundPan {
  0% { background-position: 0% center; }
  50% { background-position: 2% center; }
  100% { background-position: 0% center; }
}

@keyframes fishSwim {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(20px) translateY(-5px); }
  100% { transform: translateX(0) translateY(0); }
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--bubble-drift, 0));
    opacity: 0;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(180deg, #0a1628 0%, #1a3a52 50%, #0d2c3a 100%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.7;
  position: relative;
  animation: backgroundPan 20s ease-in-out infinite;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/photo-1560364897-91578ff41817.avif') center/cover;
  background-attachment: fixed;
  opacity: 0.15;
  z-index: -1;
}

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

a:hover {
  color: var(--color-accent-hover);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;\n  background: linear-gradient(90deg, #0d2c3a 0%, #003f5c 100%);\n  border-bottom: 3px solid #0080ab;\n  box-shadow: var(--shadow-lg);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #6ecae3;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #e0f2f7;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #6ecae3;
}

/* TODO: The nav isn't responsive on mobile yet.
   Ask Copilot: "Make this navbar collapse into a hamburger menu on small screens" */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 63, 92, 0.8) 0%, rgba(0, 128, 171, 0.7) 100%), url('assets/photo-1583212292454-1fe6229603b7.avif') center/cover;
  background-attachment: fixed;
  color: #fff;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInLeft 1s ease-out;
}

.highlight {
  color: #6ecae3;
  display: inline-block;
  position: relative;
}

.headline-text {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.3s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e0f2f7;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInRight 1s ease-out 0.2s forwards;
  opacity: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: #0080ab;
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(0, 128, 171, 0.3);
  animation: fadeIn 1s ease-out 0.5s forwards;
  opacity: 0;
}

.btn-hero {
  animation: fadeIn 1s ease-out 0.6s forwards !important;
  opacity: 0;
}

.btn:hover {
  background: #005f7f;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 128, 171, 0.6);
}

.btn-outline {
  background: transparent;
  color: #0080ab !important;
  border: 2px solid #0080ab;
  box-shadow: none;
}

.btn-outline:hover {
  background: #0080ab;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0, 128, 171, 0.5);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  animation: scrollFadeIn 1s ease-out forwards;
  opacity: 0;
}

.section:nth-of-type(3) { animation-delay: 0.1s; }
.section:nth-of-type(4) { animation-delay: 0.2s; }
.section:nth-of-type(5) { animation-delay: 0.3s; }
.section:nth-of-type(6) { animation-delay: 0.4s; }

.section > * {
  position: relative;
  z-index: 1;
}

.section-alt {
  max-width: 100%;
  padding: 6rem 2rem;
}

.section-alt > * {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Accent underline on section headings */
h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, #0080ab 0%, #6ecae3 100%);
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 128, 171, 0.4);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  animation: fadeIn 1s ease-out;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  padding: 3rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
}

.about-text {
  color: #e0f2f7;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text p + p {
  margin-top: 1rem;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid #0080ab;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 128, 171, 0.4);
  object-fit: cover;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: slideInRight 1s ease-out;
}

.profile-photo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 128, 171, 0.6);
}

.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 5px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ============================================================
EXPERIENCE & EDUCATION
============================================================ */
.timeline-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}

.timeline-card {
background: var(--color-glass-bg);
border: 1px solid var(--color-glass-border);
border-radius: var(--radius-lg);
padding: 2rem;
backdrop-filter: blur(10px);
box-shadow: var(--shadow-glass);
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.timeline-card:hover {
transform: translateY(-6px);
border-color: #6ecae3;
box-shadow: 0 14px 34px rgba(0, 128, 171, 0.28);
}

.timeline-label {
display: inline-block;
margin-bottom: 0.9rem;
padding: 0.3rem 0.75rem;
border-radius: 999px;
background: rgba(110, 202, 227, 0.15);
border: 1px solid rgba(110, 202, 227, 0.35);
color: #6ecae3;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}

.timeline-card h3 {
color: #ffffff;
font-size: 1.2rem;
margin-bottom: 0.35rem;
}

.timeline-subtitle {
color: #b3e5fc;
font-weight: 600;
margin-bottom: 1rem;
}

.timeline-card ul {
padding-left: 1.2rem;
color: #d0e8f0;
}

.timeline-card li {
margin-bottom: 0.55rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  animation: fadeIn 0.8s ease-out backwards;
  backdrop-filter: blur(10px);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 40px rgba(0, 128, 171, 0.35), inset 0 1px 0 rgba(110, 202, 227, 0.3);
  border-color: #6ecae3;
  background: var(--color-glass-bg);
  background: linear-gradient(135deg, rgba(110, 202, 227, 0.15) 0%, rgba(0, 128, 171, 0.08) 100%);
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-weight: 600;
}

.project-card p {
  color: #d0e8f0;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  background: rgba(110, 202, 227, 0.15);
  border: 1px solid rgba(110, 202, 227, 0.4);
  border-radius: 999px;
  color: #6ecae3;
  transition: all var(--transition);
}

.tag:hover {
  background: rgba(0, 128, 171, 0.25);
  border-color: #0080ab;
  color: #ffffff;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-links a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-badge-wrapper {
  position: relative;
  display: inline-block;
}

.skill-badge {
  padding: 0.65rem 1.3rem;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  transition: all var(--transition);
  animation: fadeIn 0.6s ease-out backwards;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: block;
}

.skill-badge:nth-child(1) { animation-delay: 0.05s; }
.skill-badge:nth-child(2) { animation-delay: 0.1s; }
.skill-badge:nth-child(3) { animation-delay: 0.15s; }
.skill-badge:nth-child(4) { animation-delay: 0.2s; }
.skill-badge:nth-child(5) { animation-delay: 0.25s; }
.skill-badge:nth-child(6) { animation-delay: 0.3s; }
.skill-badge:nth-child(7) { animation-delay: 0.35s; }
.skill-badge:nth-child(8) { animation-delay: 0.4s; }
.skill-badge:nth-child(9) { animation-delay: 0.45s; }
.skill-badge:nth-child(10) { animation-delay: 0.5s; }

.skill-badge:hover {
  background: linear-gradient(135deg, rgba(0, 128, 171, 0.35) 0%, rgba(110, 202, 227, 0.2) 100%);
  border-color: #6ecae3;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 128, 171, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px) scale(1.1);
}

/* ============================================================
   SKILL TOOLTIPS
   ============================================================ */
.skill-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 30, 46, 0.95);
  border: 1px solid rgba(110, 202, 227, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  width: 200px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(110, 202, 227, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(10px);
  z-index: 10;
}

.skill-tooltip.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.skill-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(110, 202, 227, 0.3);
}

.tooltip-rating {
  font-size: 1.1rem;
  color: #ffd700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.tooltip-description {
  font-size: 0.8rem;
  color: #b3e5fc;
  line-height: 1.4;
  font-style: italic;
}

/* ============================================================
   DARK MODE BUTTON
   ============================================================ */
.dark-mode-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-mode-btn:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(110, 202, 227, 0.5));
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  margin: 4rem auto;
}

#contact h2 {
  text-align: center;
  display: block;
  margin-bottom: 2rem;
}

#contact h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-intro {
  color: #d0e8f0;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  text-align: center;
  line-height: 1.8;
  animation: fadeIn 0.8s ease-out;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
  opacity: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(90deg, #0d2c3a 0%, #003f5c 100%);
  border-top: 3px solid #0080ab;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: #e0f2f7;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-out;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeIn 1s ease-out 0.2s forwards;
  opacity: 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(110, 202, 227, 0.1);
  color: #6ecae3;
  transition: all var(--transition);
  border: 2px solid #6ecae3;
}

.social-icons a:hover {
  background: #6ecae3;
  color: #003f5c;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 16px rgba(110, 202, 227, 0.4);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   ANIMATED FISH
   ============================================================ */
.fish-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.fish {
  position: absolute;
  width: 60px;
  height: 40px;
  opacity: 0.5;
  animation: fishSwim 6s ease-in-out infinite;
}

.fish:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.fish:nth-child(2) {
  top: 50%;
  left: 70%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.fish:nth-child(3) {
  top: 70%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 7s;
}

/* ============================================================
   BUBBLES
   ============================================================ */
.bubble {
  position: fixed;
  bottom: -50px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(110, 202, 227, 0.3));
  border-radius: 50%;
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   RESPONSIVE
   TODO: This is a start, but there's more to do on mobile.
   Ask Copilot: "Improve the responsive styles for screens under 600px"
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .section-alt {
    padding: 4rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }

  .profile-photo,
  .avatar-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .hero {
    min-height: 60vh;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .skills-container {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .skill-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .contact-intro {
    font-size: 0.95rem;
    padding: 1.5rem;
  }
}

/* ============================================================
   EXTRA SMALL SCREENS (under 600px)
   ============================================================ */
@media (max-width: 600px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .nav-logo {
    flex-basis: 100%;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }

  .nav-links {
    flex-basis: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .nav-links li {
    flex: 1;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .dark-mode-btn {
    font-size: 1rem;
    padding: 0.25rem;
  }

  .hero {
    min-height: 50vh;
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .btn-hero {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section-alt {
    padding: 2.5rem 1rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  h2::after {
    width: 50px;
  }

  .about-grid {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .profile-photo,
  .avatar-placeholder {
    width: 120px;
    height: 120px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .project-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .project-card-links {
    gap: 0.75rem;
  }

  .project-card-links a {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .skills-container {
    gap: 0.5rem;
    justify-content: center;
  }

  .skill-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .skill-tooltip {
    width: 160px;
    padding: 0.6rem 0.8rem;
    bottom: 110%;
  }

  .tooltip-rating {
    font-size: 0.9rem;
  }

  .tooltip-description {
    font-size: 0.75rem;
  }

  #contact {
    margin: 2rem auto;
  }

  #contact h2 {
    margin-bottom: 1.5rem;
  }

  .contact-intro {
    font-size: 0.9rem;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .social-icons {
    gap: 0.75rem;
  }

  .social-icons a {
    width: 35px;
    height: 35px;
  }

  .social-icons svg {
    width: 16px;
    height: 16px;
  }
}
