@import url("https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap");

:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #0070f3;
  --nav-height: 70px;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(12px) saturate(140%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.35);
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: 'Jura', 'Inter', sans-serif; padding-top: var(--nav-height); 
  background-color: #faebd7;
}

.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  overflow-y: auto;
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease-out;
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 2s ease, transform 2s ease-out;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: box-shadow ease 0.50s 0.35s;
}

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

.logo {
  font-size: 2rem;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.nav-menu {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  border-radius: 0 0 12px 12px;
}

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

.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.5s;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: 0.3s;
}

/* Mobile Styles */
@media (max-width: 768px) {
  html { scroll-snap-type: none; }
  .snap-section { scroll-snap-align: none; scroll-snap-stop: unset; }
  .fade-section { opacity: 0.55; }

  .hamburger { display: block; z-index: 1001; }

  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .navbar {
    background: #faebd7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-menu {
    position: fixed;
    top: calc(var(--nav-height) - 2px);
    left: 0;
    width: 100%;
    z-index: 999;
    transform: translateX(0);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
    visibility: hidden;
    overflow: hidden;
    background: #faebd7;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-menu::before {
    content: none;
  }

  .navbar.active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.00);
    transition: box-shadow 0s;
  }

  .nav-menu.active {
    grid-template-rows: 1fr;
    visibility: visible;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-list {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 1.5rem;

    transform: translateY(-16px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.active .nav-list {
    transform: translateY(0);
    opacity: 1;
    padding: 2rem 0;
  }
}

.experience {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 4rem 1.5rem;
}

.experience h2 {
  margin-bottom: 2rem;
  font-size: 4.5rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .experience {
    padding: 3rem 1rem;
    gap: 1.5rem;
    min-height: auto;
  }

  .experience h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    text-align: center;
  }
}
