/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* Eloquia Font Family */
@import url('https://db.onlinewebfonts.com/c/321e53022d0a33d76e1b4791d82b7314?family=Eloquia+Display+ExtBd');
@import url('https://db.onlinewebfonts.com/c/43bcf95cd1b2e5e6ba33de34ba10ba10?family=Eloquia+Text+ExtLt');

/* CSS Variables */
:root {
  --deep-indigo: #33007E;
  --light-teal: #6BC1D6;
  --white: #ffffff;
  --black: #000000;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Project Type Colors */
  --type-architecture: #ECBC30;
  --type-interior: #57A159;
  --type-industrial: #610E57;
  --type-graphic: #3856FF;
  --type-conceptual: #69C1D6;
  
  --font-display: 'Eloquia Display ExtBd', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Timeline card entrance animations */
@keyframes slideFromAbove {
  from {
    opacity: 0;
    transform: translateY(calc(-50% - 90px - var(--offset, 0px)));
  }
  to {
    opacity: 1;
    transform: translateY(calc(-50% - 50px - var(--offset, 0px)));
  }
}

@keyframes slideFromBelow {
  from {
    opacity: 0;
    transform: translateY(calc(50% + 90px + var(--offset, 0px)));
  }
  to {
    opacity: 1;
    transform: translateY(calc(50% + 50px + var(--offset, 0px)));
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up {
  opacity: 0;
}

.fade-in-up.visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  opacity: 0;
}

.fade-in.visible {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Eloquia Display ExtBd', sans-serif;
  font-weight: normal;
  line-height: 1.1;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1rem 3rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

nav.nav-hidden {
  transform: translateY(-100%);
}

/* Full-width background behind nav */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: transparent;
  z-index: 999;
  pointer-events: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

body.nav-scrolled::before {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: 6rem;
}

body.nav-hidden::before {
  transform: translateY(-100%);
}

body.nav-scrolled nav a {
  color: var(--black);
}

.logo {
  height: 60px;
  margin: 0;
  padding: 0;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.7;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

nav.scrolled a {
  color: var(--black);
}

nav a:hover {
  opacity: 0.6;
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  display: block;
}

body.nav-scrolled .hamburger span,
nav.scrolled .hamburger span {
  background: var(--black);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
}

.hero-video-container {
  position: absolute;
  inset: 0;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-end-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-end-image.visible {
  opacity: 1;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-accent-bar {
  position: absolute;
  bottom: -180px;
  left: 0;
  width: 80px;
  height: calc(50% + 80px);
  background: var(--type-architecture);
  z-index: 10;
}

.hero-title-right {
  position: absolute;
  bottom: 6rem;
  left: 6rem;
  z-index: 11;
  text-align: left;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-title-right.visible {
  opacity: 1;
}

.hero-welcome-title {
  color: var(--white);
  font-family: 'Eloquia Display ExtBd', sans-serif;
  font-size: 10rem;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
}

.hero-welcome-title:hover {
  opacity: 0.7;
}

.hero-welcome-subtitle {
  color: var(--white);
  font-size: 2rem;
  font-family: 'Eloquia Text ExtLt', sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
}

.hero-welcome-subtitle:hover {
  opacity: 0.7;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6rem;
}

.hero-content h1 {
  font-size: 6rem;
  color: var(--white);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.3s backwards;
  text-transform: uppercase;
}

/* About Section */
.about-section {
  padding: 6rem 6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 3rem;
}

.about-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  opacity: 0;
}

.about-section h2.visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-700);
  opacity: 0;
}

.about-section p.visible {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Project Grid */
.project-grid {
  padding: 6rem 6rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.view-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--black);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--black);
  padding-bottom: 0.25rem;
  transition: opacity 0.3s ease;
}

.view-all:hover {
  opacity: 0.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  auto-rows: 600px;
}

.grid > .project-card {
  height: 100%;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-card.size-large {
  grid-column: span 8;
}

.project-card.size-wide {
  grid-column: span 12;
  height: 500px;
}

.project-card.size-small,
.project-card.size-medium {
  grid-column: span 4;
}

.project-card.size-tall {
  grid-column: span 4;
  grid-row: span 1.5;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
  display: block;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
}

.project-card:hover .project-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  transform: translateY(1rem);
  opacity: 0;
  transition: all 0.5s ease;
}

.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Type-specific label colors on hover */
.project-card:hover .project-meta[data-type="Architecture"] {
  background: var(--type-architecture);
  color: var(--white);
}

.project-card:hover .project-meta[data-type="Interior Architecture"] {
  background: var(--type-interior);
  color: var(--white);
}

.project-card:hover .project-meta[data-type="Industrial Design"] {
  background: var(--type-industrial);
  color: var(--white);
}

.project-card:hover .project-meta[data-type="Graphic Design"] {
  background: var(--type-graphic);
  color: var(--white);
}

.project-card:hover .project-meta[data-type="Conceptual"] {
  background: var(--type-conceptual);
  color: var(--white);
}

.project-info h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.project-icon {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}

.project-card:hover .project-icon {
  opacity: 1;
}

/* Work Page */
.work-header {
  padding: 12rem 6rem 6rem;
}

.work-header h1 {
  font-size: 6rem;
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.filters-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.sort-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.sort-btn {
  background: none;
  border: 1px solid var(--gray-300);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  font-family: 'DM Sans', sans-serif;
  border-radius: 2px;
}

.sort-btn:hover {
  border-color: var(--black);
  color: var(--black);
}

.sort-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.filter-btn {
  background: none;
  border: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  border-radius: 2px;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
  width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--black);
  font-weight: 700;
  transform: translateY(-2px);
}

/* All filter button - black background */
.filter-btn[data-filter="all"]:hover,
.filter-btn[data-filter="all"].active {
  background: var(--black);
  color: var(--white);
}

.filter-btn[data-filter="all"]:hover::after,
.filter-btn[data-filter="all"].active::after {
  width: 0;
}

/* Type-specific filter label styles */
.filter-btn[data-filter="Architecture"]:hover,
.filter-btn[data-filter="Architecture"].active {
  background: var(--type-architecture);
  color: var(--white);
}

.filter-btn[data-filter="Interior Architecture"]:hover,
.filter-btn[data-filter="Interior Architecture"].active {
  background: var(--type-interior);
  color: var(--white);
}

.filter-btn[data-filter="Industrial Design"]:hover,
.filter-btn[data-filter="Industrial Design"].active {
  background: var(--type-industrial);
  color: var(--white);
}

.filter-btn[data-filter="Graphic Design"]:hover,
.filter-btn[data-filter="Graphic Design"].active {
  background: var(--type-graphic);
  color: var(--white);
}

.filter-btn[data-filter="Conceptual"]:hover,
.filter-btn[data-filter="Conceptual"].active {
  background: var(--type-conceptual);
  color: var(--white);
}

.filter-btn[data-filter="Architecture"]:hover::after,
.filter-btn[data-filter="Architecture"].active::after,
.filter-btn[data-filter="Interior Architecture"]:hover::after,
.filter-btn[data-filter="Interior Architecture"].active::after,
.filter-btn[data-filter="Industrial Design"]:hover::after,
.filter-btn[data-filter="Industrial Design"].active::after,
.filter-btn[data-filter="Graphic Design"]:hover::after,
.filter-btn[data-filter="Graphic Design"].active::after,
.filter-btn[data-filter="Conceptual"]:hover::after,
.filter-btn[data-filter="Conceptual"].active::after {
  width: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 4rem 2rem;
  padding: 6rem;
}

.work-card {
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  transition: transform 0.3s ease;
}

.work-card.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

.work-card:hover {
  opacity: 0.95;
}

.work-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 1.5rem;
  position: relative;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

/* Title accent bar */
.title-accent-bar {
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.title-accent-bar[data-type="Architecture"] {
  background: var(--type-architecture);
}

.title-accent-bar[data-type="Interior Architecture"] {
  background: var(--type-interior);
}

.title-accent-bar[data-type="Industrial Design"] {
  background: var(--type-industrial);
}

.title-accent-bar[data-type="Graphic Design"] {
  background: var(--type-graphic);
}

.title-accent-bar[data-type="Conceptual"] {
  background: var(--type-conceptual);
}

.work-card-content {
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}

.work-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.work-card:hover h3 {
  opacity: 0.6;
}

.work-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

/* Work card type label styles on hover */
.work-card:hover p[data-type="Architecture"] {
  background: var(--type-architecture);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  display: inline-block;
}

.work-card:hover p[data-type="Interior Architecture"] {
  background: var(--type-interior);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  display: inline-block;
}

.work-card:hover p[data-type="Industrial Design"] {
  background: var(--type-industrial);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  display: inline-block;
}

.work-card:hover p[data-type="Graphic Design"] {
  background: var(--type-graphic);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  display: inline-block;
}

.work-card:hover p[data-type="Conceptual"] {
  background: var(--type-conceptual);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  display: inline-block;
}

/* Project Detail Page */
.project-hero {
  height: 85vh;
  position: relative;
  margin-top: 0;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-accent-bar {
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 250px;
  height: 50px;
  z-index: 10;
}

.project-hero-accent-bar[data-type="Architecture"] {
  background: var(--type-architecture);
}

.project-hero-accent-bar[data-type="Interior Architecture"] {
  background: var(--type-interior);
}

.project-hero-accent-bar[data-type="Industrial Design"] {
  background: var(--type-industrial);
}

.project-hero-accent-bar[data-type="Graphic Design"] {
  background: var(--type-graphic);
}

.project-hero-accent-bar[data-type="Conceptual"] {
  background: var(--type-conceptual);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.project-hero-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.project-hero-title h1 {
  width: 50%;
  color: var(--white);
  font-size: 6rem;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 
               0 4px 8px rgba(0, 0, 0, 0.1), 
               0 8px 16px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out 0.3s backwards;
  text-transform: uppercase;
}

.project-hero-year {
  color: var(--white);
  font-family: 'Eloquia Display ExtBd', sans-serif;
  font-size: 6rem;
  font-weight: normal;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 
               0 4px 8px rgba(0, 0, 0, 0.1), 
               0 8px 16px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out 0.5s backwards;
  text-align: right;
  flex-shrink: 0;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  padding: 6rem 6rem;
}

.project-sidebar {
  position: sticky;
  top: 6rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.fixed-project-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 100;
  transition: position 0s;
}

.fixed-project-nav.at-footer {
  position: absolute;
  bottom: auto;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.detail-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.detail-item p {
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.detail-item.year-item p {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

/* Category link styles */
.category-link {
  font-size: 1.125rem;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.category-link:hover {
  opacity: 0.85;
  transform: translateX(4px);
}

/* Project detail type label styles - normal text color */
.detail-item .category-link {
  color: inherit;
}

.project-description h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-description p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.project-images {
  display: grid;
  gap: 3rem;
}

.project-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive project images grid */
@media (min-width: 600px) and (max-width: 1023px) {
  .project-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 599px) {
  .project-images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  padding: 6rem;
  border-top: 1px solid var(--gray-200);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Contact Footer */
footer {
  background: var(--deep-indigo);
  color: var(--white);
  padding: 10rem 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 6rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--light-teal);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 1.5rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--deep-indigo);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  nav ul.active {
    right: 0;
  }
  
  nav ul a {
    color: var(--white);
    font-size: 1.25rem;
  }
  
  body.nav-scrolled nav ul,
  nav.scrolled ul {
    background: var(--deep-indigo);
  }
  
  body.nav-scrolled nav ul a,
  nav.scrolled ul a {
    color: var(--white);
  }
  
  .hero-content,
  .project-hero-title {
    padding: 2rem 1.5rem;
  }
  
  .hero-title-right {
    bottom: 2rem;
    right: 90px;
  }
  
  .hero-welcome-title {
    font-size: 36px;
  }
  
  .hero-welcome-subtitle {
    font-size: 14px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    auto-rows: 500px;
  }
  
  .project-card.size-large,
  .project-card.size-wide,
  .project-card.size-small,
  .project-card.size-medium,
  .project-card.size-tall {
    grid-column: span 1;
    grid-row: span 1;
    height: auto;
  }
  
  .project-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }
  
  .project-sidebar {
    position: static;
  }
  
  .work-grid {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  
  .about-section {
    padding: 3rem 1.5rem;
  }
  
  .project-grid {
    padding: 3rem 1.5rem;
  }
  
  .work-header {
    padding: 12rem 1.5rem 3rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Timeline Page - Vertical Layout */
.timeline-page {
  overflow-x: hidden;
}

.timeline-header {
  padding: 10rem 3rem 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-header h1 {
  font-family: 'Eloquia Display ExtBd', sans-serif;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.timeline-subtitle {
  color: var(--gray-500);
  font-size: 1.125rem;
  font-weight: 400;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Animated vertical timeline line - grey to purple on scroll */
.timeline-vertical-line {
  --scroll-progress: 0%;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--deep-indigo) 0%,
    var(--deep-indigo) var(--scroll-progress),
    var(--gray-300) var(--scroll-progress),
    var(--gray-300) 100%
  );
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-track {
  position: relative;
  z-index: 2;
}

/* Decade Sections */
.timeline-decade-section {
  margin-bottom: 6rem;
}

.timeline-decade-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-decade-title {
  font-family: 'Eloquia Display ExtBd', sans-serif;
  font-size: 3rem;
  color: var(--gray-900);
  display: inline-block;
  background: var(--white);
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Timeline Entries */
.timeline-entries {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Entry marker (dot on the line) - starts grey, turns purple when line reaches it */
.timeline-entry-marker {
  width: 16px;
  height: 16px;
  background: var(--gray-300);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gray-300), 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 3;
  grid-column: 2;
}

/* Marker turns purple with bounce when line reaches it */
.timeline-entry-marker.passed {
  background: #33007E;
  box-shadow: 0 0 0 3px #33007E, 0 4px 12px rgba(51, 0, 126, 0.3);
  animation: markerBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes markerBounce {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.timeline-entry:hover .timeline-entry-marker {
  transform: scale(1.2);
}

/* Card positioning - left side */
.timeline-entry[data-side="left"] .timeline-entry-card {
  grid-column: 1;
  justify-self: end;
}

.timeline-entry[data-side="left"] .timeline-entry-text {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

/* Card positioning - right side */
.timeline-entry[data-side="right"] .timeline-entry-card {
  grid-column: 3;
  justify-self: start;
}

.timeline-entry[data-side="right"] .timeline-entry-text {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

/* Entry Card (image side) */
.timeline-entry-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 400px;
  width: 100%;
}

.timeline-entry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.timeline-entry-year {
  font-family: 'Eloquia Display ExtBd', sans-serif;
  font-size: 2.5rem;
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.timeline-entry-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.timeline-entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-entry-card:hover .timeline-entry-image img {
  transform: scale(1.08);
}

/* Entry Text (opposite side of card) - also clickable */
.timeline-entry-text {
  display: block;
  max-width: 400px;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.timeline-entry-text:hover {
  opacity: 0.8;
}

.timeline-entry-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--gray-900);
  transition: color 0.3s ease;
}

.timeline-entry-text:hover h3 {
  color: var(--deep-indigo);
}

.timeline-entry-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.timeline-entry-category[data-type="Architecture"] {
  background: var(--type-architecture);
  color: var(--white);
}

.timeline-entry-category[data-type="Interior Architecture"] {
  background: var(--type-interior);
  color: var(--white);
}

.timeline-entry-category[data-type="Industrial Design"] {
  background: var(--type-industrial);
  color: var(--white);
}

.timeline-entry-category[data-type="Graphic Design"] {
  background: var(--type-graphic);
  color: var(--white);
}

.timeline-entry-category[data-type="Conceptual"] {
  background: var(--type-conceptual);
  color: var(--white);
}

.timeline-entry-location {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.timeline-entry-description {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 1rem;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .timeline-header {
    padding: 8rem 1.5rem 2rem;
  }

  .timeline-header h1 {
    font-size: 2.5rem;
  }

  .timeline-container {
    padding: 2rem 1.5rem;
  }

  .timeline-vertical-line {
    left: 24px;
  }

  .timeline-entries {
    gap: 3rem;
  }

  .timeline-entry {
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    position: relative;
    gap: 1rem;
  }

  .timeline-entry-marker {
    position: absolute;
    left: 16px;
    top: 20px;
  }

  .timeline-entry:hover .timeline-entry-marker {
    transform: scale(1.2);
  }

  .timeline-entry[data-side="left"] .timeline-entry-card,
  .timeline-entry[data-side="right"] .timeline-entry-card,
  .timeline-entry[data-side="left"] .timeline-entry-text,
  .timeline-entry[data-side="right"] .timeline-entry-text {
    max-width: 100%;
    text-align: left;
    justify-self: start;
  }

  .timeline-entry-text {
    order: 2;
  }

  .timeline-entry-card {
    order: 1;
  }

  .timeline-decade-title {
    font-size: 2rem;
  }
}

/* Password Protection Overlay */
.password-overlay {
  position: fixed;
  inset: 0;
  background: var(--deep-indigo);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.password-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.password-box {
  text-align: center;
  padding: 3rem;
  max-width: 400px;
  width: 90%;
}

.password-logo {
  height: 60px;
  margin-bottom: 2rem;
}

.password-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.password-input-group {
  display: flex;
  gap: 0.5rem;
}

.password-input-group input {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

.password-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.password-input-group input:focus {
  border-color: var(--light-teal);
}

.password-input-group input.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.password-input-group button {
  padding: 1rem 2rem;
  background: white;
  color: var(--deep-indigo);
  border: none;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-input-group button:hover {
  background: var(--light-teal);
}

.password-error {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-error.visible {
  opacity: 1;
}
