/* ============================================
   CSS Reset & Base
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #032C46;
  --accent-blue: #066AA3;
  --white: #FFFFFF;
  --body-text: #787878;
  --heading-text: #050706;
  --light-bg: #F7F8FA;
  --border: #E2E5E9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--heading-text);
  line-height: 1.25;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* Nav button: transparent/white on hero, accent blue when scrolled */
.btn-nav {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-nav:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.header.scrolled .btn-nav {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

.header.scrolled .btn-nav:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 36px;
  width: auto;
  transition: filter 0.3s ease;
}

.header:not(.scrolled) .logo img {
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.header:not(.scrolled) .nav-link:not(.btn) {
  color: var(--white);
}

.header.scrolled .nav-link:not(.btn) {
  color: var(--heading-text);
}

.header:not(.scrolled) .nav-link:not(.btn):hover {
  color: rgba(255, 255, 255, 0.7);
}

.header.scrolled .nav-link:not(.btn):hover {
  color: var(--accent-blue);
}

.nav-link.btn {
  padding: 10px 24px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading-text);
  transition: all 0.3s ease;
}

.header:not(.scrolled) .mobile-toggle span {
  background: var(--white);
}

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3, 44, 70, 0.88) 0%,
    rgba(6, 106, 163, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 140px 24px 100px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   Section Basics
   ============================================ */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--primary-blue);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body-text);
}

.section-header-light .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.section-header-light .section-title {
  color: var(--white);
}

.section-header-light .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--heading-text);
  font-weight: 600;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.value-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 30px rgba(6, 106, 163, 0.08);
  transform: translateY(-2px);
}

.value-icon {
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   Projects Section
   ============================================ */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.project-reverse {
  direction: rtl;
}

.project-reverse > * {
  direction: ltr;
}

.project-gallery {
  position: sticky;
  top: 100px;
}

.project-gallery-main {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: pointer;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.gallery-arrow-left {
  left: 12px;
}

.gallery-arrow-right {
  right: 12px;
}

.gallery-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

.gallery-expand:hover {
  background: rgba(0, 0, 0, 0.75);
}

.project-gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent-blue);
}

.project-label {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.project-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.project-location {
  font-size: 15px;
  color: #B0BEC5;
  margin-bottom: 20px;
}

.project-highlights {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.highlight {
  display: flex;
  flex-direction: column;
}

.highlight-value {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.highlight-label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #90A4AE;
  margin-top: 2px;
}

.project-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #CFD8DC;
  margin-bottom: 16px;
}

/* ============================================
   Partners Section
   ============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.partner-card {
  padding: 48px 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.partner-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.partner-logo {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.partner-logo img {
  max-height: 52px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.partner-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.partner-card p {
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */
.section-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  text-align: center;
  padding: 80px 0;
}

.cta-content h2 {
  font-size: 40px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--heading-text);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-copyright {
  font-size: 13px;
  color: var(--white);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-arrow-left {
  left: 24px;
}

.lightbox-arrow-right {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 50px;
  }

  .section-title {
    font-size: 34px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-reverse {
    direction: ltr;
  }

  .project-gallery {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    display: none;
  }

  .about-values {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav.open {
    right: 0;
  }

  .nav-link:not(.btn) {
    color: var(--heading-text) !important;
    font-size: 16px;
  }

  .nav .btn-nav {
    background: var(--accent-blue) !important;
    color: var(--white) !important;
    border-color: var(--accent-blue) !important;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-content {
    padding: 120px 24px 80px;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .project-highlights {
    gap: 20px;
    flex-wrap: wrap;
  }

  .cta-content h2 {
    font-size: 30px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .partner-card {
    padding: 32px 24px;
  }

  .project-gallery-thumbs {
    gap: 6px;
  }

  .gallery-thumb {
    width: 52px;
    height: 36px;
  }

  .gallery-arrow {
    opacity: 1;
    width: 34px;
    height: 34px;
  }
}
