:root {
  --green-dark: #0f2e23;
  --green: #164d3b;
  --green-light: #e9f3ef;
  --gold: #c8a227;
  --text-dark: #0e1a16;
  --text-light: #ffffff;
}

/* GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--green-light);
  color: var(--text-dark);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR FLEX ALIGNMENT */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  background: var(--green-dark);
  color: var(--text-light);
  position: relative;
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px; /* space between logo and name */
}

.nav-logo {
  height: 40px; /* adjust to your desired size */
  width: auto;
}

nav a {
  margin-left: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.25s ease;
}

nav a:hover {
  background: linear-gradient(135deg, var(--gold), #e6c65a);
  color: #000;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
  .nav-logo {
    height: 30px; /* shrink logo on mobile */
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px; /* spacing between logo/name and links */
  }

  .nav-left {
    gap: 8px; /* smaller gap on mobile */
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* HERO */
.portfolio-hero {
  padding: 120px 8% 80px;
  text-align: center;
}
.portfolio-hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.portfolio-hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* GRID */
.portfolio-grid {
  padding: 60px 8% 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* PROJECT CARD */
.project {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  transition: 0.35s ease;
}

/* Removed card hover effects */
/* .project:hover { transform: translateY(-10px); }
.project:hover img { transform: scale(1.05); } */

/* CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  height: 420px; /* fixed height for consistent slides */
  overflow: hidden;
  border-radius: 22px;
}
.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures consistent fill without stretching */
  display: none;
  transition: opacity 0.4s ease;
}
.carousel img.active {
  display: block;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 4px;
  z-index: 10;
  transition: all 0.25s ease;
}

/* Hover effect on arrows only */
.carousel-btn:hover {
  background: rgba(255,255,255,0.95);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* PROJECT INFO PANEL */
.project-info {
  padding: 30px;
  background: white;
}
.project-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.project-info p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.project-type {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}


/* CTA */
.cta {
  padding: 120px 8%;
  text-align: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--text-light);
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}
.cta a {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #e6c65a);
  color: #000;
  font-weight: 700;
  transition: 0.25s ease;
}
.cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* FOOTER */
footer {
  background: var(--green-dark);
  color: var(--text-light);
  padding: 50px 8%;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width:900px) {
  .portfolio-hero h1 { font-size:2.2rem; }
  .portfolio-grid { gap: 30px; }
  .carousel { height: 280px; } /* smaller height for mobile */
}

/* =========================
   PORTFOLIO RESPONSIVE ONLY
   Keeps desktop layout as-is
   ========================= */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 8%;
  background: var(--green-dark);
  color: var(--text-light);
  position: relative;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-tagline {
  font-size: 0.85rem;
  opacity: 0.82;
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.desktop-nav a,
.mobile-menu-links a {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.25s ease;
  text-align: center;
}

.desktop-nav a:hover,
.mobile-menu-links a:hover {
  background: linear-gradient(135deg, var(--gold), #e6c65a);
  color: #000;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Mobile dropdown hidden on desktop */
.mobile-nav {
  display: none;
}

/* Remove default arrow */
.mobile-nav summary {
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.menu-button {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.15);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.mobile-menu-links a {
  width: 100%;
  padding: 12px 16px;
}

/* Tablet */
@media (max-width: 900px) {
  .site-nav {
    padding: 18px 5%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-nav {
    padding: 14px 5%;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-logo {
    height: 34px;
    width: 34px;
  }

  .nav-tagline {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
    width: 100%;
  }

  .menu-button {
    width: fit-content;
    margin-left: auto;
    display: block;
  }

  .mobile-nav[open] {
    width: 100%;
  }

  .mobile-nav[open] .menu-button {
    margin-bottom: 4px;
  }

  .mobile-menu-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    padding: 40px 5% 80px;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .carousel-btn {
    padding: 10px 12px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .cta a {
    width: 100%;
    text-align: center;
  }
} 

.project {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 70px rgba(0,0,0,0.18);
}

.project-info {
  padding: 30px;
  background: white;
  transition: background 0.3s ease;
}

.project:hover .project-info {
  background: #fcfcfb;
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.narrow-shell {
  max-width: 850px;
  margin: 0 auto;
}