header {
  background: #222;
  color: white;
  padding: 1em 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Gaegu', cursive;
  margin: 0;
  background: #f9f9fb;
  color: #333;
  text-transform: lowercase;
  padding-top: 80px; /* Account for fixed header */
  font-size: 18px; /* Default is usually 16px */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1; /* This makes the main content grow to fill available space */
}

.hero-section {
  background: #222;
  color: white;
  padding: 2em 0;
  text-align: center;
  margin-top: 0;
}

.hero-section h1 {
  margin: 0;
  font-size: 2.5em;
}

.hero-section h2 {
  margin: 0.25em 0 0;
  font-weight: 300;
  font-size: 1.25em;
  opacity: 0.9;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
  margin-bottom: 1em;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  text-decoration: none !important;
  color: inherit !important;
}

.logo:visited {
  color: inherit !important;
}

.logo:hover {
  color: inherit !important;
  text-decoration: none !important;
}

.nav-links {
  display: flex;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 1.1em; /* Add this line - increased from default */
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
}

.header-content {
  text-align: center;
  padding: 0 2em;
}

.header-content h1 {
  margin: 0;
  font-size: 2.5em;
}

.header-content h2 {
  margin: 0.25em 0 0;
  font-weight: 300;
  font-size: 2.5em;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .header-nav {
    flex-direction: column;
    gap: 1em;
  }
  .nav-links {
    gap: 1em;
  }
  .nav-links a {
    padding: 0.4em 0.8em;
    font-size: 0.9em;
  }
}

.filters {
  text-align: center;
  margin: 2em auto;
  padding: 0 1em;
  max-width: 800px;
}

.filters button {
  padding: 0.6em 1.2em;
  margin: 0.4em;
  border: none;
  background: #ffefdf;
  cursor: pointer;
  border-radius: 20px;
  font-size: 1em;
  font-family: 'Gaegu', cursive;
  transition: background 0.2s;
}

.filters button.active, .filters button:hover {
  background: #333;
  color: white;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 5em;
  padding: 2em 2em 4em;
  max-width: 1200px;
  margin: auto;
}

.project {
  background: #fff8f1;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.project-media {
  width: 100%;
  height: 370px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Image hover effects */
.image-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 122, 204, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.project:hover .project-video {
  opacity: 1;
}

.project:hover .image-hover-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5em;
}

.project h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.6em; /* Changed from 1.2em */
  color: #007acc;
}

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

.project p {
  margin: 0.5em 0 1em;
  line-height: 1.4;
  font-size: 1.2em; /* Add this line */
}

.tags {
  margin-top: 1em;
  font-size: 0.85em;
  color: #666;
}

.hidden {
  display: none !important;
}

/* Fallback for projects without media */
.project-media.no-media {
  background: linear-gradient(135deg, #ffefdf, #fff8f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9em;
}

/* Footer styles */
footer {
  background: #222;
  color: white;
  padding: 3em 2em 2em;
  margin-top: auto; /* Changed from 4em to auto */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content h3 {
  margin: 0 0 1em;
  font-size: 1.8em;
}

.footer-content p {
  margin: 0 0 2em;
  font-size: 1.1em;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.contact-links a {
  color: white;
  text-decoration: none;
  padding: 0.8em 1.5em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5em;
  margin-top: 2em;
  font-size: 0.9em;
  opacity: 0.7;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* More space for mobile header if needed */
  }
  
  footer {
    padding: 2em 1em 1.5em; /* Reduce footer padding on mobile */
  }
  
  .contact-links {
    gap: 1em;
  }
  .contact-links a {
    padding: 0.6em 1.2em;
    font-size: 0.9em;
  }
}