/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #F1E67C;
  font-family: "roc-grotesk-wide", sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  font-size: 16px; /* Base font size for better accessibility */
}

body {
  margin-top: 80px;
  background-color: black;
  line-height: 1.6;
}

/* Background Image */
.background-image {
  position: fixed;
  z-index: -100;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-image: url(images/main_image_desktop.jpg);
  background-position: center;
  background-size: cover;
  opacity: 0.9;
  transition: opacity 0.5s ease-out;
}

/* Navigation */
.main-nav {
  height: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all 0.3s ease;
}

.nav-content {
  width: 100%;
  max-width: 1400px;
  height: 48px;
  padding: 0 clamp(2rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  cursor: pointer;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: default;
  transition: all 0.3s ease;
  height: 40px;
  width: auto;
}

.nav-buttons {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  height: 40px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.nav-btn {
  padding: 0.5rem clamp(0.75rem, 1.5vw, 1rem);
  border-radius: 80px;
  border: 1px solid #F1E67C;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 230, 124, 0.3);
}

.nav-btn-primary {
  padding: 0.5rem clamp(1.5rem, 3vw, 3rem);
  font-weight: 600;
  background-color: #F1E67C;
  color: #525252;
}

.nav-btn-primary:hover {
  background-color: #e6d96b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 230, 124, 0.4);
}

/* Mobile Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F1E67C;
  clip-path: circle(0% at top right);
  transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  pointer-events: none;
}

.menu-overlay.active {
  clip-path: circle(150% at top right);
  pointer-events: all;
}

.hamburger-container {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  pointer-events: none;
}

.hamburger-container.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hamburger-content {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 32px;
}

.hamburger-nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.hamburger-nav h2 {
  color: black;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 500;
}

.circle-exit {
  width: 64px;
  height: 64px;
  border: 3px solid rgb(0, 0, 0);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.circle-exit:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 3px;
  background-color: rgb(0, 0, 0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.line1 {
  transform: translate(-50%, -50%) rotate(45deg);
}

.line2 {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.circle-exit:hover .line1 {
  transform: translate(-50%, -8px) rotate(0deg);
}

.circle-exit:hover .line2 {
  transform: translate(-50%, 6px) rotate(0deg);
}

.hamburger-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: clamp(1.5rem, 4vw, 2rem);
}

.hamburger-items h2 {
  color: black;
  font-size: clamp(2rem, 8vw, 3rem);
  text-align: right;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.hamburger-items a:hover h2 {
  transform: translateX(-10px);
}

/* Hero Section */
.hero {
  width: 100%;
  min-height: 80vh;
  padding: clamp(2rem, 5vw, 4rem);
  padding-left: clamp(4rem, 8vw, 6rem);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  text-align: left;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  margin-bottom: 1rem;
}

.hero-subtitle {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  margin: 2rem 0;
}

.hero-description {
  max-width: 300px;
  text-align: right;
}

.hero-description h3 {
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-family: "instrument-sans-variable", sans-serif;
  font-weight: 400;
  color: white;
  line-height: 1.5;
}

.hero-title-right {
  text-align: right;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
}

.scroll-indicator {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  margin-left: 2rem;
}

.scroll-icon {
  height: clamp(60px, 8vw, 100px);
  width: clamp(60px, 8vw, 100px);
  animation: bounce 2s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.scroll-icon:hover {
  transform: scale(1.1);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Projects Section */
.projects-section {
  width: 100%;
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4rem) 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-container {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

/* Project Cards */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 500px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 0; 
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Project Image */
.project-image {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  position: relative;
}

/* Project Content */
.project-content {
  padding: 1rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 120px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700; /* bold */
  color: #333;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.project-description {
  font-family: "instrument-sans-variable", sans-serif; /* match projects.css body font */
  font-size: 0.8rem; 
  color: #666;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  /* overflow: hidden; */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.project-card:nth-child(1) .project-image {
  background-image: url(images/shinealight/shinealight_01.jpg);
}

.project-card:nth-child(2) .project-image {
  background-image: url(images/kupu/kupu_best.jpg);
}

.project-card:nth-child(3) .project-image {
  background-image: url(images/myl/image_1.jpg);
}

.project-card:nth-child(4) .project-image {
  background-image: url(images/mhmmf/final_image_two.jpg);
}

.project-card:nth-child(5) .project-image {
  background-image: url(images/tiaki/hero_image.jpg);
}

/* Shine a Light badge (silver.png) in top-right of image */
.project-card:nth-child(1) .project-image::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 52px;
  height: 52px;
  background-image: url(images/silver.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .project-card:nth-child(1) .project-image::after {
    width: 48px;
    height: 48px;
    top: 6px;
    right: 6px;
  }
}

/* Shine a Light badge (gooddesign.png) in bottom-right of image */
.project-card:nth-child(1) .project-image::before {
  content: '';
  position: absolute;
  top: -20px;     
  left: 8px;
  width: 96px;
  height: 96px;
  background-image: url(images/gooddesign.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .project-card:nth-child(1) .project-image::before {
    width: 64px;
    height: 64px;
    top: -10px;
    left: 6px;
  }
}
/* Made You Look badge (bronze.png) in top-right of image */
.project-card:nth-child(3) .project-image::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 52px;
  height: 52px;
  background-image: url(images/bronze.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .project-card:nth-child(3) .project-image::after {
    width: 48px;
    height: 48px;
    top: 6px;
    right: 6px;
  }
}

/* Kupu badge (bronze.png) in top-right of image */
.project-card:nth-child(2) .project-image::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 52px;
  height: 52px;
  background-image: url(images/bronze.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .project-card:nth-child(2) .project-image::after {
    width: 48px;
    height: 48px;
    top: 6px;
    right: 6px;
  }
}

/* Hover effects for grid layout */
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(241, 230, 124, 0.3);
}

/* Footer */
.main-footer {
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.footer-content-desktop {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content-desktop h4 {
  font-family: "instrument-sans-variable", sans-serif;
  font-weight: 300;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-content-desktop h4:hover {
  opacity: 1;
}

.footer-content-mobile {
  display: none;
}

.footer-mobile-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-mobile-row {
  display: flex;
  justify-content: space-between;
}

.footer-mobile-row h4 {
  font-family: "instrument-sans-variable", sans-serif;
  font-weight: 300;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1147px) {
  .nav-buttons {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
  }

  .nav-toggle {
    position: static;
    cursor: pointer;
    margin: 0;
    transform: none;
    order: 3;
    margin-left: auto;
  }

  .nav-toggle:hover {
    transform: scale(1.1);
  }
}

@media (max-width: 900px) {
  body {
    padding: 0 1.5rem;
    margin-top: 60px;
  }

  .nav-content {
    padding: 0 1.5rem;
  }

  .main-footer {
    padding: 2rem 1.5rem;
  }

  .background-image {
    background-image: url(images/main_image_mobile.jpg);
  }

  .hero {
    min-height: 70vh;
    margin-top: 2vh;
    padding: 0;
    gap: 2rem;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .hero-content {
    text-align: center;
    margin-top: 2rem;
    max-width: 800px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
  }

  .hero-subtitle {
    flex-direction: row;
    gap: clamp(1rem, 3vw, 3rem);
    justify-content: center;
    margin: 0;
  }

  .hero-description h3 {
    width: 100%;
    text-align: right;
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 250px;
  }

  .scroll-indicator {
    justify-content: flex-start;
    margin-top: auto;
    margin-bottom: 2rem;
  }

  .scroll-icon {
    margin-top: 1vh;
    height: clamp(50px, 8vw, 64px);
    width: clamp(50px, 8vw, 64px);
  }

  .projects-section {
    height: auto;
    min-height: 120vh;
    margin-bottom: 20vh;
  }

  .projects-container {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .project-card {
    min-height: 450px;
  }
  
  .project-image {
    height: 280px;
  }
  
  .project-content {
    padding: 0.8rem;
    max-height: 100px;
  }
  
  .project-title {
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
  }
  
  .project-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .footer-content-desktop {
    display: none;
  }

  .footer-content-mobile {
    display: block;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 1rem;
    margin-top: 50px;
  }

  .nav-content {
    padding: 0 1rem;
  }

  .main-footer {
    padding: 1.5rem 1rem;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-title {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .hero-title-right {
    font-size: clamp(1.5rem, 10vw, 2.5rem);
  }

  .projects-section {
    min-height: 100vh;
  }

}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-icon {
    animation: none;
  }
}

/* Focus styles for better accessibility */
.nav-btn:focus,
.project-card:focus,
.circle-exit:focus {
  outline: 2px solid #F1E67C;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-btn {
    border-width: 2px;
  }
  
  .project-card::before {
    background: rgba(0, 0, 0, 0.4);
  }
}