html {
  scroll-behavior: smooth;
}

:root {
  --background-color: #f7f6f4;
  --surface-color: #ffffff;
  --surface-muted: #f1efec;
  --primary-text-color: #141523;
  --muted-text-color: rgba(20, 21, 35, 0.68);
  --accent-color: #ffb703;
  --accent-strong: #f25f4c;
  --border-color: rgba(20, 21, 35, 0.12);
  --shadow-soft: 0 20px 45px rgba(15, 15, 35, 0.12);
  --shadow-deep: 0 35px 60px rgba(15, 15, 35, 0.25);
  --particle-glow: rgba(15, 20, 40, 0.1);
  --glass: rgba(255, 255, 255, 0.25);
  --gradient-hero: linear-gradient(135deg, #f7f6f4 10%, #e6ebf9 60%, #eef2ed 100%);
  --panel-glow: rgba(255, 183, 0, 0.2);
  --header-background: var(--gradient-hero);
  --section-background: rgba(255, 255, 255, 0.85);
  --section-border: rgba(20, 21, 35, 0.08);
  --navbar-background: rgba(255, 255, 255, 0.55);
}

.dark-mode {
  --background-color: #03050f;
  --surface-color: rgba(13, 16, 27, 0.95);
  --surface-muted: rgba(10, 15, 32, 0.75);
  --primary-text-color: #f7f7f7;
  --muted-text-color: rgba(247, 247, 247, 0.7);
  --accent-color: #f25f4c;
  --accent-strong: #fb8c00;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-deep: 0 40px 90px rgba(0, 0, 0, 0.75);
  --particle-glow: rgba(255, 255, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.05);
  --gradient-hero: radial-gradient(circle at 20% 20%, rgba(255, 96, 96, 0.25), transparent 45%), linear-gradient(135deg, #030510 20%, #0f1228 60%, #15192f 100%);
  --panel-glow: rgba(242, 95, 76, 0.25);
  --header-background: var(--gradient-hero);
  --section-background: rgba(13, 16, 27, 0.85);
  --section-border: rgba(255, 255, 255, 0.12);
  --navbar-background: rgba(3, 5, 15, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, p, ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background-color);
  color: var(--primary-text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

/* Audio Controls */
.audio-controls {
position: fixed;
bottom: 20px;
left: 20px; /* left side */
display: flex;
align-items: center;
background: var(--accent-color);
padding: 8px 15px;
border-radius: 50px;
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
z-index: 999;
}

/* Mute/Unmute Button */
#audioToggle {
background: none;
border: none;
font-size: 1.5rem;
color: var(--primary-text-color);
cursor: pointer;
outline: none;
}

/* Slider Wrapper */
.slider-wrapper {
overflow: hidden;
width: 0;
opacity: 0;
transition: width 0.4s ease, opacity 0.4s ease, margin-left 0.4s ease;
margin-left: 0;
}

/* FIX: Expand when hovering button OR wrapper */
.audio-controls:hover .slider-wrapper {
width: 120px;
opacity: 1;
margin-left: 15px;
}

/* Volume Slider Styling */
#volumeSlider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

#volumeSlider:hover {
background: #bbb;
}

/* Slider Thumb */
#volumeSlider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
background: var(--primary-text-color);
border: 2px solid var(--background-color);
border-radius: 50%;
cursor: pointer;
transition: background 0.3s ease;
}

#volumeSlider::-moz-range-thumb {
width: 14px;
height: 14px;
background: var(--primary-text-color);
border: 2px solid var(--background-color);
border-radius: 50%;
cursor: pointer;
transition: background 0.3s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navbar-background);
  backdrop-filter: blur(12px);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.navbar-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Hamburger */
#hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-text-color);
  cursor: pointer;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-weight: 500;
  color: var(--primary-text-color);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus-visible {
  background: rgba(20, 21, 35, 0.08);
  color: var(--primary-text-color);
}

#darkModeToggle {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-text-color);
  cursor: pointer;
  transition: transform 0.3s ease;
}

#darkModeToggle:hover,
#darkModeToggle:focus-visible {
  transform: scale(1.1);
}

#modeIcon {
  pointer-events: none;
}

@media (max-width: 960px) {
  #hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 15, 35, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1050;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    width: 100%;
  }
}

/* Header */
.hero {
  background: var(--header-background);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  transition: background 0.5s ease;
  position: relative;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.5), transparent 50%), radial-gradient(circle at 80% 0, rgba(242, 95, 76, 0.15), transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.profile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-picture {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.profile-picture:hover {
  transform: scale(1.02);
  border-color: var(--accent-color);
}

.status-chip {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 14px;
}

.hero-eyebrow {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow);  
  margin-bottom: 18px;
  max-width: 420px;
}

.hero-eyebrow .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: #141523;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.eyebrow-headline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-text-color);
  margin-bottom: 4px;
}

.eyebrow-subtext {
  font-size: 0.85rem;
  color: var(--muted-text-color);
  margin: 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--muted-text-color);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 16px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.hero-button.primary {
  background: var(--accent-color);
  color: var(--surface-color);
  box-shadow: var(--shadow-soft);
}

.hero-button.ghost {
  background: transparent;
  color: var(--primary-text-color);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hero-button:hover {
  transform: translateY(-3px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  color: var(--primary-text-color);
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.panel-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.panel-card strong {
  font-size: 1.1rem;
  display: block;
  margin: 8px 0;
}

.panel-card.panel-focus {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6));
  color: var(--primary-text-color);
  border: 1px solid rgba(16, 16, 16, 0.1);
}

.dark-mode .panel-card.panel-focus {
  background: linear-gradient(180deg, rgba(12, 15, 26, 0.95), rgba(12, 15, 26, 0.7));
  color: var(--primary-text-color);
  border-color: rgba(255, 255, 255, 0.08);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}

.focus-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 16, 16, 0.04);
  border: 1px solid rgba(16, 16, 16, 0.08);
}

.focus-item strong {
  color: #0f0f0f;
  font-size: 0.95rem;
  display: block;
}

.focus-item span {
  font-size: 0.8rem;
  color: rgba(16, 16, 16, 0.75);
  line-height: 1.3;
}

.dark-mode .focus-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .focus-item strong,
.dark-mode .focus-item span {
  color: var(--primary-text-color);
}

.focus-meter {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.focus-meter-progress {
  display: block;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-strong));
  border-radius: 999px;
}

.focus-note {
  font-size: 0.75rem;
  margin-top: 10px;
  color: rgba(16, 16, 16, 0.65);
}

.dark-mode .focus-note {
  color: rgba(255, 255, 255, 0.7);
}

.stack-chip {
  display: inline-flex;
  padding: 6px 12px;
  margin: 4px 4px 0 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.panel-progress {
  width: 100%;
  height: 6px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.panel-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-strong));
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#small-message {
  font-size: 0.75rem;
  color: var(--primary-text-color);
  margin-top: 0px;
  opacity: 0.35;
  letter-spacing: 0.4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(2px);
}

#small-message:hover {
  opacity: 0.8;
  transform: translateY(0px);
}

#animated-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--primary-text-color);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  border-right: 2px solid var(--primary-text-color);
  animation: blinkCursor 0.8s infinite;
  padding-right: 4px;
}

@keyframes blinkCursor {
  0% { border-color: var(--primary-text-color); }
  50% { border-color: transparent; }
  100% { border-color: var(--primary-text-color); }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: var(--section-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.social-icon:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Main */
main {
  flex: 1;
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

section {
  background: var(--section-background);
  margin-bottom: 50px;
  padding: 30px;
  scroll-margin-top: 100px;
  border-radius: 18px;
  border: 1px solid var(--section-border);
  box-shadow: var(--shadow-soft);
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.4s ease;
  backdrop-filter: blur(10px);
}

section:hover {
  transform: translateY(-4px);
}

/* Skills Section */
.skills-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  padding: 60px 24px;
  border-radius: 20px;
  box-shadow: 0 25px 40px rgba(15, 15, 35, 0.15);
  border: 1px solid rgba(20, 21, 35, 0.08);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skills-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.skills-heading h2 {
  font-size: clamp(2.2rem, 2vw + 1.2rem, 2.8rem);
  margin-bottom: 10px;
}

.skills-card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-items: center;
}

.skills-card {
  --rx: 0deg;
  --ry: 0deg;
  --glow-x: 50%;
  --glow-y: 20%;
  background: var(--surface-color);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(20, 21, 35, 0.08);
  box-shadow: 0 10px 25px rgba(15, 15, 35, 0.15);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  position: relative;
  overflow: hidden;
  will-change: transform;
  width: 100%;
  max-width: 340px;
}

.skills-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.skills-card:hover {
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.02);
  box-shadow: 0 25px 45px rgba(15, 15, 35, 0.25);
}

.skills-card:hover::after {
  opacity: 1;
}

.skills-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  flex-direction: column;
  text-align: center;
}

.skills-card-index {
  font-size: 0.9rem;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  color: rgba(20, 21, 35, 0.4);
  font-weight: 600;
}

.skills-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  z-index: 1;
}

.skill-chip {
  background: var(--section-background);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(20, 21, 35, 0.08);
  color: var(--primary-text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(15, 15, 35, 0.18);
}

.skill-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dark-mode .skills-section {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.95), rgba(12, 18, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .skills-card {
  background: rgba(15, 20, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.dark-mode .skill-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Section Titles */
section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-text-color);
}

section p, section ul {
  font-size: 1.1rem;
}

ul {
  list-style-type: square;
  padding-left: 20px;
}

/* Footer */
footer {
  background: var(--header-background);
  color: var(--primary-text-color);
  text-align: center;
  padding: 20px;
  transition: background 0.5s ease;
}

/* Ripple Effect */
#ripple {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0.5;
  pointer-events: none;
  z-index: 5;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Flashlight */
#flashlight {
position: fixed;
top: 0;
left: 0;
width: 600px;
height: 600px;
pointer-events: none;
border-radius: 50%;
background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
mix-blend-mode: screen;
opacity: 0;
transform: translate(-50%, -50%);
transition: opacity 0.3s ease;
z-index: 50;
}

/* Fade in animations */
section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}


/* Animated Tagline Section */
#animated-tagline {
font-size: 1.5rem;
font-weight: 500;
margin-bottom: 10px;
color: var(--primary-text-color);
letter-spacing: 1px;
white-space: nowrap;
overflow: hidden;
display: inline-block; /* Make it shrink and grow naturally */
border-right: 2px solid var(--primary-text-color);
animation: blinkCursor 0.8s infinite;
padding-right: 4px; /* small space between text and cursor */
}

@keyframes blinkCursor {
0% { border-color: var(--primary-text-color); }
50% { border-color: transparent; }
100% { border-color: var(--primary-text-color); }
}

#particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0; /* behind everything */
pointer-events: none; /* so you can still click buttons/text normally */
}

/* Social Icons */
.social-icons {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 20px;
}

.social-icon {
width: 50px;
height: 50px;
background: var(--section-background);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon img {
max-width: 70%;
max-height: 70%;
object-fit: contain;
}

.social-icon:hover {
transform: scale(1.2);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}




/* About Me */
#about .about-toggle {
  display: block;
  margin: 30px auto 0 auto;
  font-size: 1rem;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  background: var(--accent-color);
  color: var(--primary-text-color);
  border: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.more-text {
  overflow: hidden;
  height: 0;
  transition: height 0.5s ease, padding 0.5s ease;
}

/* When expanded */
.more-text.expanded {
  height: auto;
  padding-top: 20px;
}

#about .about-toggle:hover {
  background: #d3c7b7;
  color: #000;
}

/* Projects Section */
#projects {
  width: 100%;
  max-width: 1000px;
  padding: 30px 20px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  #projects {
    max-width: 1400px;
    padding: 30px 60px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  margin-top: 30px;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}  

.project-card {
  background: var(--surface-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 183, 0, 0.2), transparent 40%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(15, 15, 35, 0.25);
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
display: block;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-info {
padding: 20px;
text-align: center;
}

.project-info h3 {
margin-bottom: 10px;
font-size: 1.2rem;
color: var(--primary-text-color);
}

.project-info p {
color: var(--primary-text-color);
font-size: 0.95rem;
}


/* Background Timeline Section */
#background {
padding: 80px 20px;
text-align: center;
background: var(--section-background);
}

.timeline {
position: relative;
width: 90%;
margin: 0 auto;
}

.timeline-item {
display: grid;
grid-template-columns: 1fr 40px 1fr; /* left - center - right */
align-items: center;
margin: 60px 0;
opacity: 0;
transform: translateY(40px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content {
background: var(--section-background);
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.image-box img {
width: 100%;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dot {
width: 20px;
height: 20px;
background: var(--accent-color);
border-radius: 50%;
margin: 0 auto;
}

/* Center vertical line */
.timeline::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 4px;
background: var(--accent-color);
transform: translateX(-50%);
}

.timeline-years {
font-size: 0.8rem;
color: gray;
margin-left: 8px;
}


.timeline-item.active {
opacity: 1;
transform: translateY(0);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
.timeline-item {
  grid-template-columns: 1fr;
  text-align: center;
}

.timeline::before {
  display: none;
}

.dot {
  margin: 20px auto;
}
}



/* Education Section */
.education {
  padding: 20px 20px;
  max-width: 1100px;
  margin: auto;
  margin-bottom: 50px;
}

.education h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
  color: var(--primary-text-color);
}

.education-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  border-left: 6px solid var(--accent-color);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.education-entry:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.edu-left {
  flex: 1 1 250px;
}

.edu-left h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--primary-text-color);
}

.edu-left .degree {
  font-weight: 500;
  margin-top: 6px;
  color: var(--accent-color);
}

.edu-left .year {
  font-size: 0.95rem;
  color: #888;
}

.edu-right {
  flex: 2 1 500px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--secondary-text-color);
}

/* Dark Mode Styling */
body.dark-mode .education-entry {
  background: #1e1e1e;
  border-left-color: #4fc3f7;
}

body.dark-mode .edu-left h3,
body.dark-mode .edu-left .degree,
body.dark-mode .edu-right,
body.dark-mode .education h2 {
  color: #ffffff;
}

body.dark-mode .edu-left .year {
  color: #aaa;
}




/* Clock Section */
.clock-container {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 40px;
}

/* Clock Canvas */
#availabilityClock {
background: var(--section-background);
border-radius: 50%;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
transition: background 0.5s ease;
}

/* Availability Text */
.availability-text {
margin-top: 15px;
font-size: 1.2rem;
font-weight: bold;
color: var(--primary-text-color);
}

.availability-hours {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--primary-text-color);
  text-align: center;
  line-height: 1.6;
  opacity: 0.8;
}



/* Contact Me Section */
#contact {
background: var(--section-background);
margin-bottom: 40px;
padding: 30px;
scroll-margin-top: 80px;
border-radius: 10px;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
text-align: center;
}

#contact h2 {
font-size: 2rem;
margin-bottom: 20px;
color: var(--primary-text-color);
}

#contact-form {
display: flex;
flex-direction: column;
gap: 15px;
max-width: 500px;
margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
padding: 12px 15px;
border-radius: 8px;
border: 1px solid #ccc;
font-size: 1rem;
background: #fff;
resize: none;
transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
border-color: var(--accent-color);
outline: none;
}

#form-status {
margin-top: 20px;
font-weight: bold;
color: var(--primary-text-color);
}



/* Fade Out Animation */
.fade-out {
opacity: 0;
transition: opacity 0.5s ease;
pointer-events: none;
}