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

:root {
  /* Light Theme (Default - Off-white) */
  --bg-primary: #faf9f6;
  --bg-secondary: #f4f3ef;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border-color: #e4e4e7;
  --accent: #18181b;
  --accent-hover: #3f3f46;
  --navbar-bg: rgba(250, 249, 246, 0.15);
  --navbar-border: rgba(24, 24, 27, 0.3);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-normal: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --border-color: #27272a;
  --accent: #ffffff;
  --accent-hover: #a1a1aa;
  --navbar-bg: rgba(0, 0, 0, 0.15);
  --navbar-border: rgba(255, 255, 255, 0.3);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Layout Container - Narrow and focused for premium readability */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

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

a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Remove scrollbar styling for standard default scroll */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 720px;
  height: 64px;
  background-color: var(--navbar-bg);
  border: 1.5px solid var(--navbar-border);
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: background-color var(--transition-normal),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.2px;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Page Breathe Theme Switch Triggered State */
.theme-breathe-active section {
  opacity: 0.35;
  transform: translateY(8px) scale(0.99);
}

.theme-breathe-active .navbar {
  opacity: 0.35;
  transform: translate(-50%, -4px);
}

/* Redefine Theme Toggle Button for absolute icon morphing */
.theme-toggle {
  position: relative;
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: color var(--transition-normal), transform var(--transition-normal);
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--text-primary);
  transform: scale(1.08);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle i {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

/* Animate sun/moon transition instead of simple display toggle */
[data-theme="dark"] .theme-toggle .fa-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
[data-theme="dark"] .theme-toggle .fa-moon {
  opacity: 0;
  transform: scale(0) rotate(-45deg);
}
[data-theme="light"] .theme-toggle .fa-sun {
  opacity: 0;
  transform: scale(0) rotate(45deg);
}
[data-theme="light"] .theme-toggle .fa-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}



.nav-cta {
  display: none; /* Hide flashy call-to-actions */
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: color var(--transition-normal);
}

.menu-toggle:hover {
  color: var(--text-primary);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  margin-bottom: 2.5rem;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  /* border: 1px solid var(--border-color); */
  border-color: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--transition-normal),
              background-color var(--transition-normal),
              border-color var(--transition-normal);
}

/* .hero-avatar:hover {
  transform: scale(1.05);
} */

[data-theme="dark"] .hero-avatar {
  background-color: #f4f3ef; /* Keep background off-white in dark mode */
  border-color: #e4e4e7;     /* Light border for contrast in dark mode */
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 640px;
  line-height: 1.7;
}

.hero-socials {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.hero-socials a {
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  text-decoration: none;
  transition: transform var(--transition-normal), filter var(--transition-normal), color var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-socials a:hover {
  transform: translateY(-2px) scale(1.08);
  filter: brightness(1.15);
}

/* Individual Social Media Brand Colors */
.hero-socials a[aria-label="LinkedIn"] {
  color: #0a66c2;
}

.hero-socials a[aria-label="GitHub"] {
  color: var(--text-primary);
}

.hero-socials a[aria-label="Instagram"] i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-socials a[aria-label="Twitter"] {
  color: var(--text-primary);
}

.hero-socials a[aria-label="Email"] {
  color: #ea4335;
}

/* Stats are hidden/removed in minimalist text view */
.hero-stats, .hero-image {
  display: none;
}

section {
  padding: 60px 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

section:not(.hero) {
  padding-top: 0;
}

section:not(.hero) .container {
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

body.is-scrolling section {
  filter: blur(var(--scroll-blur, 0px));
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  display: none; /* Hide upper tags for cleaner feel */
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- About Section --- */
.about-grid {
  display: block; /* flat single column */
}

.about-image-wrapper {
  display: none; /* Remove profile picture grid */
}

.about-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: none;
}

.about-detail {
  display: flex;
  flex-direction: column;
}

.about-detail .icon-box {
  display: none; /* No emojis */
}

.detail-text {
  display: block;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* --- Skills Section --- */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-card {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.skill-icon {
  display: none; /* No emojis */
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* --- Projects Section --- */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: block;
}

.project-img {
  display: none; /* No screenshot frames */
}

.project-info {
  padding: 0;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info h3 a {
  text-decoration: none;
}

.project-info h3 a:hover {
  text-decoration: underline;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

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

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.project-links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.project-links a {
  color: var(--text-secondary);
}

.project-links a:hover {
  color: var(--text-primary);
}

.link-divider {
  color: var(--text-muted);
}

/* --- Experience (Education) Section --- */
.timeline-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  position: relative;
}

.timeline-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  border-left: 2px solid var(--border-color);
  padding-left: 0;
}

.active-indicator {
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 60px;
  background-color: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.timeline-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  border: none;
  padding: 0.8rem 1.25rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-sans);
}

.timeline-tab-btn:hover {
  background-color: var(--bg-secondary);
}

.timeline-tab-btn .tab-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.timeline-tab-btn .tab-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.timeline-tab-btn.active .tab-title {
  color: var(--text-primary);
}

.timeline-tab-btn.active {
  background-color: var(--bg-secondary);
}

.timeline-panes {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  min-height: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.01);
}

.timeline-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.timeline-pane .pane-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.25rem;
}

.timeline-pane h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.timeline-pane .company {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-pane .pane-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Academic stats details */
.academic-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0.15rem;
  letter-spacing: 0.5px;
}

/* Coursework modules */
.key-modules h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.module-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.module-tag:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* --- Contact Section --- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
  width: 100%;
}

.contact-info {
  width: 100%;
  text-align: center;
}

.contact-info h3 {
  display: none; /* Subtitle already in section header */
}

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

.contact-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--text-secondary);
}

.contact-icon {
  display: none; /* No icons */
}

.contact-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-item .value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-item .value a {
  color: inherit;
  text-decoration: none;
}

.contact-item .value a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.social-link {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-normal);
}

.social-link:hover {
  color: var(--text-primary);
}

.social-link i {
  display: none; /* Text links instead of font awesome icons */
}

.social-link::after {
  content: attr(aria-label);
}

/* Form Styles */
.contact-form-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.01);
  width: 100%;
}

.contact-form-el {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-group textarea {
  resize: vertical;
}

/* Floating labels */
.form-group label {
  position: absolute;
  left: 1rem;
  top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-secondary); /* Matches card background instead of page primary bg */
  padding: 0 0.35rem;
  border-radius: 4px;
}

/* Float label active state */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.55rem;
  left: 0.8rem;
  font-size: 0.7rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Focus state */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text-primary);
}

/* Validation error state */
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--border-color);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
  border-color: var(--text-primary);
}

.form-group.has-error label {
  color: var(--text-muted);
}

.form-group.has-error input:focus ~ label,
.form-group.has-error textarea:focus ~ label {
  color: var(--text-primary);
}

.error-msg {
  position: absolute;
  bottom: -1.15rem;
  left: 0.2rem;
  font-size: 0.7rem;
  color: #ea4335;
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-group.has-error .error-msg {
  opacity: 1;
  transform: translateY(0);
}

/* Submit Button & Animations */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 42px;
  align-self: center; /* Centered in column layout */
}

.submit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.submit-btn .btn-text {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.submit-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

/* Sending State: Button shrinks to capsule, text disappears, icon centered */
.submit-btn.btn-sending {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  pointer-events: none;
  align-self: center;
}

.submit-btn.btn-sending .btn-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  transform: scale(0.5);
  display: none;
}

.submit-btn.btn-sending .btn-icon {
  margin: 0;
  animation: pulse-plane 1s infinite ease-in-out;
}

/* Success State: Button turns green, paper plane flies out */
.submit-btn.btn-success {
  background-color: #34a853 !important;
  color: white !important;
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  pointer-events: none;
  align-self: center;
}

.submit-btn.btn-success .btn-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  display: none;
}

.submit-btn.btn-success .btn-icon {
  animation: fly-away 0.7s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.form-status {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-status.show {
  opacity: 1;
  transform: translateY(0);
}

.form-status.success {
  color: #34a853;
}

.form-status.error {
  color: #ea4335;
}

/* Keyframe Animations */
@keyframes pulse-plane {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes fly-away {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  35% {
    transform: translate(-3px, 3px) scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: translate(40px, -40px) scale(0.3);
    opacity: 0;
  }
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px 0;
  background-color: var(--bg-primary);
  border-top: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  border-top: none;
  padding-top: 0;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Reveal (Subtle Fade In) --- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 90px;
  }
  .navbar {
    top: 16px;
    height: 56px;
    width: calc(100% - 32px);
  }
  .navbar .container {
    padding: 0 1.25rem;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 16px;
    width: calc(100% - 32px);
    background-color: var(--bg-primary);
    border: 1.5px solid var(--navbar-border);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero {
    padding-top: 120px;
  }
  .hero-avatar {
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .about-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Timeline responsive rules */
  .timeline-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 2px solid var(--border-color);
    padding-left: 0;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  .timeline-tabs::-webkit-scrollbar {
    display: none;
  }
  .active-indicator {
    left: 0;
    top: auto;
    bottom: -2px;
    height: 2px;
    width: 100px;
  }
  .timeline-tab-btn {
    flex-shrink: 0;
    width: auto;
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    align-items: center;
  }
  .timeline-panes {
    padding: 1.25rem;
    min-height: auto;
  }
  .academic-stats {
    gap: 0.75rem;
    padding: 0.75rem;
  }
  .stat-num {
    font-size: 1.1rem;
  }
  
  /* Contact responsive rules */
  .contact-items {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
