:root {
  --bg: #121212;
  --text: #f1f1f1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: sans-serif;
  min-height: 100vh;
}

.page-wrapper {
  overflow: hidden;
  width: 100%;
  padding-top: 80px;
  min-height: 100vh;
}
  
  /* Light theme overrides */
  body.light {
    --bg: white;
    --text: black;
  }
  
input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
  }
  
  /* Toggle track */
  label#switch-label {
    cursor: pointer;
    width: 80px;
    height: 40px;
    background: #393939;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 100px;
    padding: 3px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 2rem;
    transition: background 1s ease;
  }
  
  /* Toggle handle (thumb) */
  #toggle-thumb {
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: translateX(0);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, opacity 0.3s ease;
  }
  
  /* When checkbox is checked (light mode) */
  input:checked + label#switch-label {
    background: #dedede;
    justify-content: flex-end;
  }

  /* Move the thumb to the right smoothly */
input:checked + label#switch-label #toggle-thumb {
  transform: translateX(1px);
}

/* Animate the track background */
input:checked + label#switch-label {
  background: #dedede;
}

#toggle-thumb.midnight-blue {
    background-color: #191970; /* midnight blue */
    color: white; /* make emoji visible */
  }
  
  #toggle-thumb.sky-blue {
    background-color: #87ceeb; /* sky blue */
    color: black; /* better contrast for sun */
  }
  
  /*this is where the location pin styling code is at*/
  .location-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-family: sans-serif;
  }
  
  .location-pin {
    stroke: var(--text);
    flex-shrink: 0;
  }
  
  .location-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  
  .location-title {
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .location-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
  }
  
    /*this is where the email container is at*/

    .email-container {
        margin-top: 1.5rem;
      }
      
      .email-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text);
        text-decoration: none;
        font-family: sans-serif;
        font-size: 1rem;
      }
      
      .email-link:hover {
        text-decoration: underline;
      }
      
      .email-icon {
        stroke: var(--text);
        flex-shrink: 0;
      }
      
       /*this is where the github container is at*/
      .github-container {
        margin-top: 1.5rem;
      }
      
      .github-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text);
        text-decoration: none;
        font-family: sans-serif;
        font-size: 1rem;
      }
      
      .github-link:hover {
        text-decoration: underline;
      }
      
      .github-icon {
        stroke: var(--text);
        flex-shrink: 0;
        width: 32px;
        height: 32px;
      }
      
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 1px 5px rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2000;
}

.top-bar-toggle {
  display: flex;
  align-items: center;
}

.top-bar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag-icon {
  width: 24px;
  height: 16px;
  display: block;
  border-radius: 2px;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn.active {
  opacity: 1;
  background: var(--text);
  color: var(--bg);
}

.top-bar label#switch-label {
  margin-bottom: 0;
}


/* Light mode top bar style */
body.light .top-bar {
  background-color: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

/* Dark mode top bar style */
body.dark .top-bar {
  background-color: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-left {
  position: relative;
}

.contact-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 12px;
}

.contact-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 6px;
  margin-top: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.contact-dropdown a {
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.contact-dropdown a:hover {
  background-color: rgba(255,255,255,0.1);
}

.hidden {
  display: none;
}

.upwork-link,
.linkedin-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: sans-serif;
  font-size: 1rem;
}

.upwork-link:hover,
.linkedin-link:hover {
  text-decoration: underline;
}

.upwork-icon,
.linkedin-icon {
  stroke: var(--text);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/*contact item class for the drop down menu*/

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: sans-serif;
  font-size: 1rem;
  padding: 0.3rem 0;
}
.contact-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inline-location {
  margin-top: 0; /* remove top spacing */
  font-size: 0.85rem;
}

.inline-location .location-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.inline-location .location-title {
  font-weight: bold;
  font-size: 0.9rem;
}

.inline-location .location-subtitle {
  font-size: 0.75rem;
  opacity: 0.7;
}

.inline-location .location-pin {
  width: 20px;
  height: 20px;
  stroke: var(--text);
}

/* Main content layout */
.content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Introduction Section */
.intro-section {
  min-height: calc(100vh - 160px);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  margin: 0 auto 4rem auto;
  position: relative;
  overflow: hidden;
}

/* Atmospheric depth layers — ultra-faint, slower than blobs */
.depth-layer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 0;
}

/* Layer 1: Slow drifting gradient */
.depth-gradient {
  background:
    radial-gradient(ellipse at 20% 30%, hsla(260, 60%, 50%, 0.35), transparent 60%),
    radial-gradient(ellipse at 80% 70%, hsla(190, 55%, 45%, 0.30), transparent 55%),
    radial-gradient(ellipse at 50% 90%, hsla(320, 50%, 50%, 0.25), transparent 50%);
  animation: gradient-drift 90s ease-in-out infinite alternate;
}

@keyframes gradient-drift {
  0% { transform: scale(1); }
  25% { transform: scale(1.05); }
  50% { transform: scale(1.02); }
  75% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* Layer 2: Subtle animated grain texture */
.depth-noise {
  opacity: 0.12;
  animation: noise-shift 0.3s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

@keyframes noise-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2px, 3px); }
  50%  { transform: translate(3px, -1px); }
  75%  { transform: translate(-1px, -3px); }
  100% { transform: translate(2px, 1px); }
}

/* Layer 3: Dust particle canvas */
.depth-dust {
  opacity: 0.55;
}

/* Bottom fade overlay — blends intro into site background */
.intro-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, #121212 100%);
  z-index: 10;
  pointer-events: none;
}

[data-theme="light"] .intro-fade-bottom {
  background: linear-gradient(to bottom, transparent 0%, #fafafa 100%);
}

[data-theme="light"] .intro-name,
[data-theme="light"] .intro-title,
[data-theme="light"] .intro-description {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.35);
}

/* Lava lamp background */
.lava-wrapper {
  filter: url("#plasma");
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  animation: iridescent-shift 30s linear infinite;
}

@keyframes iridescent-shift {
  0%   { filter: url("#plasma") hue-rotate(0deg); }
  100% { filter: url("#plasma") hue-rotate(360deg); }
}

.lava-blob {
  position: absolute;
  will-change: transform;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.4), transparent 30%),
    radial-gradient(ellipse at 75% 70%, rgba(255, 255, 255, 0.2), transparent 25%),
    radial-gradient(ellipse at 25% 20%, hsla(300, 100%, 65%, 0.85), transparent 45%),
    radial-gradient(ellipse at 80% 65%, hsla(200, 100%, 60%, 0.85), transparent 45%),
    radial-gradient(ellipse at 55% 85%, hsla(130, 90%, 55%, 0.7), transparent 40%),
    radial-gradient(ellipse at 70% 15%, hsla(50, 100%, 65%, 0.65), transparent 40%),
    linear-gradient(160deg,
      hsl(280, 100%, 65%) 0%,
      hsl(230, 95%, 60%) 20%,
      hsl(185, 90%, 55%) 40%,
      hsl(130, 85%, 55%) 55%,
      hsl(280, 100%, 65%) 75%,
      hsl(330, 95%, 62%) 100%);
  background-attachment: fixed;
}

/* Organic shapes via varied border-radius + morph animations */
.blob-1 {
  width: 450px;
  height: 420px;
  top: -5%;
  left: -3%;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  animation: lava-rise-1 35s ease-in-out infinite, morph-1 18s ease-in-out infinite;
}

.blob-2 {
  width: 330px;
  height: 375px;
  top: 5%;
  right: -2%;
  border-radius: 44% 56% 65% 35% / 57% 38% 62% 43%;
  animation: lava-rise-2 40s ease-in-out infinite 3s, morph-2 22s ease-in-out infinite;
}

.blob-3 {
  width: 270px;
  height: 300px;
  bottom: -5%;
  left: 2%;
  border-radius: 55% 45% 38% 62% / 42% 58% 42% 58%;
  animation: lava-rise-3 32s ease-in-out infinite 5s, morph-3 16s ease-in-out infinite;
}

.blob-4 {
  width: 210px;
  height: 240px;
  top: 8%;
  left: 40%;
  border-radius: 40% 60% 52% 48% / 63% 35% 65% 37%;
  animation: lava-rise-4 45s ease-in-out infinite 8s, morph-1 24s ease-in-out infinite 2s;
}

.blob-5 {
  width: 390px;
  height: 360px;
  bottom: -3%;
  right: -4%;
  border-radius: 58% 42% 40% 60% / 45% 55% 45% 55%;
  animation: lava-rise-5 38s ease-in-out infinite 2s, morph-2 26s ease-in-out infinite 3s;
}

.blob-6 {
  width: 165px;
  height: 195px;
  top: 65%;
  left: -4%;
  border-radius: 48% 52% 60% 40% / 55% 40% 60% 45%;
  animation: lava-rise-6 30s ease-in-out infinite 10s, morph-3 20s ease-in-out infinite 1s;
}

.blob-7 {
  width: 255px;
  height: 225px;
  top: 35%;
  right: -5%;
  border-radius: 65% 35% 45% 55% / 38% 62% 38% 62%;
  animation: lava-rise-7 42s ease-in-out infinite 6s, morph-1 19s ease-in-out infinite 4s;
}

.blob-8 {
  width: 135px;
  height: 165px;
  bottom: 15%;
  left: 50%;
  border-radius: 42% 58% 55% 45% / 60% 42% 58% 40%;
  animation: lava-rise-8 36s ease-in-out infinite 4s, morph-2 15s ease-in-out infinite 5s;
}

.blob-9 {
  width: 300px;
  height: 270px;
  top: 70%;
  right: 30%;
  border-radius: 50% 50% 35% 65% / 40% 60% 40% 60%;
  animation: lava-rise-9 44s ease-in-out infinite 7s, morph-3 21s ease-in-out infinite 2s;
}

.blob-10 {
  width: 195px;
  height: 210px;
  top: 15%;
  left: 70%;
  border-radius: 55% 45% 62% 38% / 48% 52% 48% 52%;
  animation: lava-rise-10 34s ease-in-out infinite 1s, morph-1 23s ease-in-out infinite 6s;
}

/* Slow lava lamp drift — primarily vertical with gentle lateral sway */
@keyframes lava-rise-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(20px, -120px) scale(1.04); }
  30% { transform: translate(-15px, -60px) scale(0.97); }
  50% { transform: translate(30px, -180px) scale(1.06); }
  70% { transform: translate(-10px, -90px) scale(0.98); }
  85% { transform: translate(15px, -30px) scale(1.02); }
}

@keyframes lava-rise-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(-25px, 100px) scale(1.05); }
  35% { transform: translate(15px, 40px) scale(0.96); }
  50% { transform: translate(-20px, 160px) scale(1.03); }
  70% { transform: translate(10px, 70px) scale(0.98); }
  85% { transform: translate(-15px, 20px) scale(1.01); }
}

@keyframes lava-rise-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(15px, -140px) scale(1.06); }
  40% { transform: translate(-20px, -50px) scale(0.95); }
  55% { transform: translate(10px, -200px) scale(1.04); }
  75% { transform: translate(-10px, -80px) scale(0.97); }
  90% { transform: translate(5px, -20px) scale(1.02); }
}

@keyframes lava-rise-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(-20px, 130px) scale(1.05); }
  35% { transform: translate(25px, 50px) scale(0.96); }
  55% { transform: translate(-10px, 180px) scale(1.04); }
  75% { transform: translate(15px, 80px) scale(0.98); }
  90% { transform: translate(-5px, 25px) scale(1.01); }
}

@keyframes lava-rise-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(20px, -110px) scale(1.05); }
  40% { transform: translate(-15px, -40px) scale(0.97); }
  60% { transform: translate(25px, -170px) scale(1.03); }
  80% { transform: translate(-10px, -70px) scale(0.98); }
}

@keyframes lava-rise-6 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-15px, -150px) scale(1.06); }
  45% { transform: translate(20px, -60px) scale(0.95); }
  65% { transform: translate(-10px, -210px) scale(1.04); }
  85% { transform: translate(10px, -90px) scale(0.98); }
}

@keyframes lava-rise-7 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(15px, 120px) scale(1.04); }
  35% { transform: translate(-20px, 45px) scale(0.96); }
  55% { transform: translate(10px, 160px) scale(1.05); }
  80% { transform: translate(-15px, 60px) scale(0.97); }
}

@keyframes lava-rise-8 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-10px, -130px) scale(1.07); }
  40% { transform: translate(15px, -45px) scale(0.94); }
  60% { transform: translate(-20px, -190px) scale(1.03); }
  80% { transform: translate(10px, -70px) scale(0.98); }
}

@keyframes lava-rise-9 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  15% { transform: translate(20px, -100px) scale(1.04); }
  35% { transform: translate(-15px, -35px) scale(0.97); }
  55% { transform: translate(10px, -160px) scale(1.06); }
  75% { transform: translate(-20px, -60px) scale(0.95); }
  90% { transform: translate(5px, -15px) scale(1.02); }
}

@keyframes lava-rise-10 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-15px, 110px) scale(1.05); }
  40% { transform: translate(20px, 40px) scale(0.96); }
  60% { transform: translate(-10px, 150px) scale(1.03); }
  80% { transform: translate(15px, 55px) scale(0.98); }
}

/* Shape morphing — slower */
@keyframes morph-1 {
  0%, 100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  25% { border-radius: 40% 60% 55% 45% / 48% 52% 48% 52%; }
  50% { border-radius: 55% 45% 35% 65% / 58% 42% 58% 42%; }
  75% { border-radius: 45% 55% 60% 40% / 40% 60% 40% 60%; }
}

@keyframes morph-2 {
  0%, 100% { border-radius: 44% 56% 65% 35% / 57% 38% 62% 43%; }
  25% { border-radius: 58% 42% 40% 60% / 42% 58% 42% 58%; }
  50% { border-radius: 35% 65% 55% 45% / 62% 38% 62% 38%; }
  75% { border-radius: 52% 48% 45% 55% / 38% 62% 38% 62%; }
}

@keyframes morph-3 {
  0%, 100% { border-radius: 55% 45% 38% 62% / 42% 58% 42% 58%; }
  25% { border-radius: 42% 58% 62% 38% / 55% 45% 55% 45%; }
  50% { border-radius: 65% 35% 42% 58% / 48% 52% 48% 52%; }
  75% { border-radius: 38% 62% 52% 48% / 60% 40% 60% 40%; }
}

.intro-name {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  animation: fadeInUp 0.8s ease;
  position: relative;
  z-index: 2;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 0, 0, 0.3);
}

.intro-title {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--text);
  opacity: 0.8;
  animation: fadeInUp 0.8s ease 0.2s backwards;
  position: relative;
  z-index: 2;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 0, 0, 0.3);
}

.intro-description {
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.8;
  margin: 0;
  color: var(--text);
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.4s backwards;
  position: relative;
  z-index: 2;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 0, 0, 0.2);
}

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

/* Scroll-down arrow */
.scroll-arrow {
  display: inline-block;
  margin-top: 10rem;
  color: var(--text);
  opacity: 0.5;
  animation: bounce-arrow 2s infinite;
  transition: opacity 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.scroll-arrow:hover {
  opacity: 1;
}

@keyframes bounce-arrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

/* Section styling */
.section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--text);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

body.light .section-title {
  border-bottom-color: rgba(0, 0, 0, 0.2);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Experience and Project items */
.experience-item,
.project-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.light .experience-item,
body.light .project-item {
  background-color: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.experience-item:hover,
.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.item-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: var(--text);
}

.item-date {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  white-space: nowrap;
}

.item-company {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  opacity: 0.8;
}

.item-description {
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: var(--text);
  opacity: 0.9;
}

/* Tags/Skills */
.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text);
}

body.light .tag {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

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

.project-link {
  color: var(--text);
  transition: opacity 0.2s ease;
}

.project-link:hover {
  opacity: 0.7;
}

.project-link svg {
  stroke: var(--text);
}

/* Video Card Styles */
.project-with-video {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.project-info {
  flex: 1;
}

.video-card {
  width: 350px;
  height: 225px;
  background: rgba(114, 113, 114, 0.3);
  border-radius: 15px;
  padding: 10px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in;
  cursor: pointer;
}

.video-card .video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.video-card .preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .page-wrapper {
    padding-top: 60px;
  }

  .content {
    padding: 1rem;
    max-width: 100%;
  }

  .intro-section {
    padding: 2rem 1rem;
    min-height: calc(100vh - 100px);
    max-width: 100%;
  }

  /* Top bar mobile */
  .top-bar {
    height: 60px;
    padding: 0 0.4rem;
    overflow: hidden;
  }

  .top-bar-left {
    gap: 0.4rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .contact-btn {
    font-size: 1rem;
    padding: 4px 6px;
  }

  .location-container {
    gap: 0.3rem;
  }

  .location-pin {
    width: 16px;
    height: 16px;
  }

  .location-title {
    font-size: 0.65rem;
  }

  .location-subtitle {
    font-size: 0.55rem;
  }

  .top-bar-controls {
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .language-switcher {
    gap: 0.15rem;
  }

  .lang-btn {
    padding: 0.15rem;
    border-width: 1px;
  }

  .flag-icon {
    width: 16px;
    height: 11px;
  }

  .top-bar label#switch-label {
    width: 50px;
    height: 28px;
  }

  #toggle-thumb {
    font-size: 1rem;
  }

  .intro-name {
    font-size: 2rem;
  }

  .intro-title {
    font-size: 1.1rem;
  }

  .intro-description {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 90vw;
  }

  /* Hide grainy noise on mobile — causes visible squares */
  .depth-noise {
    display: none;
  }

  /* Scale down blobs for mobile */
  .lava-wrapper {
    opacity: 0.4;
  }

  /* Reduce blob sizes directly (transform is overwritten by animations) */
  .blob-1 {
    width: 170px;
    height: 160px;
  }
  .blob-2 {
    width: 140px;
    height: 150px;
  }
  .blob-3 {
    width: 130px;
    height: 140px;
  }
  .blob-4 {
    width: 110px;
    height: 120px;
  }
  .blob-5 {
    width: 150px;
    height: 140px;
  }
  .blob-6 {
    width: 95px;
    height: 105px;
  }
  .blob-7 {
    width: 120px;
    height: 110px;
  }
  .blob-8 {
    width: 85px;
    height: 95px;
  }
  .blob-9 {
    width: 130px;
    height: 120px;
  }
  .blob-10 {
    width: 105px;
    height: 110px;
  }

  .scroll-arrow svg {
    width: 28px;
    height: 28px;
  }

  /* Sections */
  .section-title {
    font-size: 1.4rem;
  }

  .item-title {
    font-size: 1.15rem;
  }

  .item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-description {
    font-size: 0.9rem;
  }

  .item-date {
    font-size: 0.8rem;
  }

  /* Tech stack + skills card */
  .proverb-skills-section {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .tech-stack-container {
    width: 100%;
    align-items: center;
  }

  .tech-stack-title {
    font-size: 0.95rem;
    text-align: center;
  }

  .tech-badges {
    justify-content: center;
  }

  .tech-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }

  .skills-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex: unset;
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .skill-name {
    width: 60px;
    font-size: 13px;
    text-align: left;
  }

  .skill-percent-number {
    font-size: 12px;
  }

  /* Projects */
  .project-with-video {
    flex-direction: column;
  }

  .video-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  /* Contact dropdown */
  .contact-dropdown {
    left: 0;
    right: auto;
    min-width: 180px;
  }
}

/* Proverb and Skills Card Section */
.proverb-skills-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  width: 100%;
}

.tech-stack-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-stack-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.tech-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

[data-theme="light"] .tech-badge {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tech-badge:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.skills-card-container {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

/* Skills Card Styling */
.card {
  width: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light .card {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.header {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

body.light .header {
  background-color: #333;
  color: #fff;
}

.body {
  padding: 20px;
}

.skill {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.skill-name {
  width: 100px;
  font-size: 16px;
  color: var(--text);
}

.skill-level {
  flex: 1;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 10px;
}

body.light .skill-level {
  background-color: #eee;
}

.skill-percent {
  background: linear-gradient(90deg, #4fc3f7, #0288d1);
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

body.light .skill-percent {
  background: linear-gradient(90deg, #42a5f5, #1565c0);
}

.skill-percent-number {
  width: 40px;
  font-size: 14px;
  text-align: right;
  color: var(--text);
}
