/*
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* =============================
          GLOBAL STYLES
============================== */

:root {
  --font-main: Helvetica, Arial, sans-serif;

  --text-main: #111;
  --text-muted: #777;

  /* SPACING SYSTEM */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-128: 128px;

  /* FONT SIZE SYSTEM */
  --font-10: 10px;
  --font-12: 12px;
  --font-14: 14px;
  --font-16: 16px;
  --font-18: 18px;
  --font-20: 20px;
  --font-24: 24px;
  --font-30: 30px;
  --font-36: 36px;
  --font-44: 44px;
  --font-52: 52px;
  --font-62: 62px;
  --font-74: 74px;
  --font-86: 86px;
  --font-98: 98px;

  --black: #111111;
  --dark-grey: #555555;
  --grey: #777777;
  --mid-grey: #9a9a9a;
  --soft-grey: #aaaaaa;
  --light-grey: #d5d5d5;
  --off-white: #f5f5f5;
  --white: #ffffff;

  --accent: #315a7d;
}

/* =============================
              RESET
============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global website font */

html,
body {
  font-family: var(--font-main);
  color: var(--text-main);
}

/* Make buttons/forms use same font */

button,
input,
textarea,
select {
  font: inherit;
}
/* =============================
        Universal page Title
============================== */
.page-title {
  width: 100%;

  margin: 0 0 var(--space-48);

  padding: var(--space-12) 0;

  font-size: var(--font-44);
  font-weight: 400;
  letter-spacing: -1px;

  text-align: center;

  color: #111;

  border-top: 1px solid #315a7d;
  border-bottom: 1px solid #315a7d;
}

/* =============================

              HEADER

============================== */

.header {
  --header-accent: #315a7d;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  width: 100%;
  height: clamp(70px, 5vw, 100px);

  padding: 0 clamp(var(--space-24), 3vw, var(--space-64));

  position: relative;
  z-index: 1000;

  background-color: #fff;
}

/* =============================
          LEFT SECTION
============================== */

.header-left {
  display: flex;
  align-items: center;

  min-width: 0;

  gap: var(--space-16);
}

/* Logo */

.logo {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
}

.logo img {
  width: 64px;
  height: auto;

  display: block;
}

/* Horizontal engineering line */

.header-line {
  height: 1px;

  background-color: var(--header-accent);

  opacity: 0.8;
}

.header-line-left {
  flex: 1;

  margin-right: var(--space-16);
}

/* =============================
          CENTRE NAV
============================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: var(--space-24);

  padding: 0 var(--space-24);

  white-space: nowrap;

  background-color: #fff;
}

/* Main nav links */

.nav > a {
  position: relative;

  font-size: var(--font-14);
  font-weight: 400;

  letter-spacing: 1px;
  line-height: 1;

  color: #000;

  text-decoration: none;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.nav > a:hover {
  color: var(--header-accent);
}

/* Underline animation */

.nav > a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background-color: var(--header-accent);

  transition: width 0.3s ease;
}

.nav > a:hover::after {
  width: 100%;
}

/* =============================
          NAV DIVIDERS
============================== */

.nav-divider {
  width: 1px;
  height: 13px;

  background-color: var(--header-accent);

  opacity: 0.45;

  flex-shrink: 0;
}

/* =============================
            DROPDOWN
============================== */

.dropdown {
  position: relative;

  display: flex;
  align-items: center;

  z-index: 1001;
}

/* Dropdown button */

.dropdown-btn {
  position: relative;

  display: flex;
  align-items: center;

  background: none;
  border: none;

  padding: 0;

  font-size: var(--font-14);
  font-weight: 400;

  letter-spacing: 1px;
  line-height: 1;

  color: #111;

  cursor: pointer;

  font-family: inherit;

  transition: color 0.25s ease;
}

.dropdown-btn:hover {
  color: var(--header-accent);
}

/* Dropdown button underline */

.dropdown-btn::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background-color: var(--header-accent);

  transition: width 0.3s ease;
}

.dropdown-btn:hover::after {
  width: 100%;
}

/* Arrow */

.arrow {
  display: inline-block;

  margin-left: var(--space-4);

  font-size: var(--font-10);

  transition: transform 0.3s ease;
}

/* Dropdown menu */

.dropdown-menu {
  position: absolute;

  top: calc(100% + var(--space-16));
  left: 50%;

  min-width: 210px;

  padding: var(--space-12) 0;

  background-color: #fff;

  border-top: 2px solid var(--header-accent);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

  opacity: 0;
  visibility: hidden;

  transform: translateX(-50%) translateY(-5px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;

  z-index: 1002;
}

/* Dropdown links */

.dropdown-menu a {
  display: block;

  padding: var(--space-12) var(--space-16);

  font-size: var(--font-12);
  font-weight: 400;

  letter-spacing: 1px;

  white-space: nowrap;

  color: #111;

  text-decoration: none;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--header-accent);

  background-color: #f7f9fb;
}

/* OPEN */

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}

/* Rotate arrow */

.dropdown.active .arrow {
  transform: rotate(180deg);
}

/* =============================
          RIGHT SECTION
============================== */

.header-right {
  display: flex;
  align-items: center;

  min-width: 0;

  gap: var(--space-16);
}

.header-line-right {
  flex: 1;

  margin-left: var(--space-16);
}

/* =============================
          SOCIAL ICONS
============================== */

.social-links {
  display: flex;
  align-items: center;

  gap: var(--space-16);

  flex-shrink: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  color: #000;

  text-decoration: none;

  transition:
    color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}

.social-links svg {
  width: 20px;
  height: 20px;

  display: block;

  fill: currentColor;
}

.social-links a:hover {
  color: var(--header-accent);

  transform: translateY(-2px);
}

/* =============================
          RESPONSIVE
============================== */

@media (max-width: 1100px) {
  .header {
    padding: 0 var(--space-24);
  }

  .nav {
    gap: var(--space-16);

    padding: 0 var(--space-16);
  }

  .header-line {
    opacity: 0.55;
  }
}

@media (max-width: 900px) {
  .header-line {
    display: none;
  }

  .nav {
    gap: var(--space-12);
  }

  .nav > a,
  .dropdown-btn {
    font-size: var(--font-12);
  }
}

@media (max-width: 760px) {
  .header {
    display: flex;
    flex-wrap: wrap;

    height: auto;

    padding: var(--space-16) var(--space-24);
  }

  .header-left {
    flex: 1;
  }

  .header-right {
    margin-left: auto;
  }

  .nav {
    order: 3;

    width: 100%;

    margin-top: var(--space-16);

    padding: var(--space-16) 0 0;

    justify-content: center;

    flex-wrap: wrap;

    border-top: 1px solid #e4e4e4;
  }

  .nav-divider {
    display: none;
  }
}

/* =============================
              FOOTER
============================== */

.footer {
  margin: var(--space-64) 3% 0;

  padding: var(--space-24) 0;

  border-top: 1px solid #d5d5d5;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

/* Footer signature */

.footer-signature {
  display: block;

  width: 120px;
  height: auto;

  margin: 0 auto var(--space-12);

  opacity: 0.75;
}

/* Footer text */

.footer p {
  margin: var(--space-4) 0;

  font-size: var(--font-10);
  font-weight: 400;

  letter-spacing: 1px;

  color: var(--text-muted);

  text-align: center;
}

/* Signature */

.signature-figure {
  width: 400px;
  max-width: 80%;

  height: auto;

  display: block;

  margin: var(--space-48) auto 0;

  opacity: 0.8;
}

/* Contact me - Social media Icon */

.social-links {
  display: flex;
  align-items: center;

  gap: var(--space-16);
}

.social-links a {
  display: flex;
  align-items: center;

  gap: var(--space-16);

  color: #111;
}

.social-links svg {
  width: 24px;
  height: 24px;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.social-links a:hover svg {
  opacity: 0.45;

  transform: translateY(-1px);
}

/* Footer signature */

.footer-signature {
  width: 140px;
  height: auto;

  opacity: 0.55;

  display: block;

  margin: 0 auto var(--space-12);
}

/* =============================
          GENERAL PAGES
============================== */

/* =============================
          WELCOME PAGE
============================== */

/* =============================
          COUNTDOWN
============================== */

.countdown-section {
  text-align: center;

  padding: var(--space-80) var(--space-24);
}

.countdown-title {
  font-size: var(--font-20);

  text-align: center;

  letter-spacing: 3px;

  margin-bottom: var(--space-24);
}

/* Countdown layout */

.countdown {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: var(--space-48);
}

/* Individual number */

.countdown-item {
  min-width: 70px;
}

.countdown-item span {
  display: block;

  font-size: var(--font-86);
  font-weight: 300;

  letter-spacing: 2px;
}

/* DAYS / HOURS / MIN / SEC */

.countdown-item p {
  margin-top: var(--space-8);

  font-size: var(--font-20);

  letter-spacing: 2px;

  color: var(--text-muted);
}

/* =============================
          SIGNATURE
============================== */

.signature-figure {
  width: 400px;
  max-width: 80%;

  height: auto;

  display: block;

  margin: var(--space-48) auto 0;

  opacity: 0.8;
}

/* =========================================
              HERO
========================================= */
.hero {
  width: 100%;
  min-height: 700px;

  position: relative;
  z-index: 1;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
          BACKGROUND IMAGE
========================================= */

.welcome-image {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;

  justify-content: center;
  align-items: center;

  z-index: 0;
}

.welcome-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  opacity: 0.22;
}

/* =========================================
          CONTENT OVER IMAGE
========================================= */

.hero-content {
  position: relative;

  z-index: 2;

  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: var(--space-48) var(--space-24);

  box-sizing: border-box;
}

/* =========================================
              TITLE
========================================= */

.welcome-heading {
  width: 100%;

  padding: var(--space-24) 0;

  border-top: 1px solid #111;
  border-bottom: 1px solid #111;

  text-align: center;

  box-sizing: border-box;
}

.welcome-title {
  margin: 0;

  font-size: var(--font-36);
  font-weight: 400;

  line-height: 1.02;

  letter-spacing: -1.2px;

  color: #111;
}

.welcome-title + .welcome-title {
  margin-top: var(--space-4);
}

/* =========================================
              QUOTE
========================================= */

.welcome-quote {
  width: 100%;

  max-width: 800px;

  margin: var(--space-24) auto 0;

  text-align: center;

  font-size: var(--font-14);
  font-weight: 500;

  line-height: 1.6;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  color: #315a7d;
}

/* =========================================
          VIEW MY WORK BUTTON
========================================= */

.view-work-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: var(--space-24);

  width: fit-content;

  margin-top: var(--space-32);

  padding: var(--space-12) var(--space-32);

  border: 1px solid rgba(17, 17, 17, 0.65);

  background: rgba(255, 255, 255, 0.35);

  color: #111;

  font-family: inherit;

  font-size: var(--font-12);
  font-weight: 400;

  letter-spacing: 1.8px;

  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.view-work-btn span {
  font-size: var(--font-14);

  transition: transform 0.3s ease;
}

.view-work-btn:hover {
  background-color: #111;

  border-color: #111;

  color: #fff;
}

.view-work-btn:hover span {
  transform: translateX(5px);
}

/* =============================
       HIGHLIGHTS PAGE
============================= */









/* ===================================
SELECTED PROJECTS
=====================================*/
.selectedprojects-page {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}
/* ===================================
   SELECTED PROJECTS HEADER
=================================== */

.projects-page-header {
  width: 100%;
  margin: 0 0 var(--space-48);
  padding: var(--space-24) 0 var(--space-32);

  text-align: center;

  border-top: 1px solid #315d82;
  border-bottom: 1px solid #315d82;
}


/* Small text above */

.projects-header-eyebrow {
  margin: 0 0 var(--space-16);

  font-size: var(--font-10);
  font-weight: 400;
  letter-spacing: 6px;

  color: #315d82;
}


/* Main title */

.projects-header-title {
  margin: 0;

  font-size: clamp(var(--font-44), 4vw, var(--font-62));
  font-weight: 400;

  line-height: 1;
  letter-spacing: -2px;

  color: #111;
}


/* Accent word */

.projects-header-title span {
  color: #315d82;
  font-style: italic;
  font-weight: 400;
}


/* Description */

.projects-header-subtitle {
  max-width: 700px;

  margin: var(--space-16) auto 0;

  font-size: var(--font-12);
  font-weight: 400;

  line-height: 1.7;
  letter-spacing: 0.5px;

  color: #555;
}


/* ===================================
   MOBILE
=================================== */

@media (max-width: 700px) {

  .projects-page-header {
    margin-bottom: var(--space-32);
    padding: var(--space-24) 0 var(--space-24);
  }

  .projects-header-eyebrow {
    font-size: var(--font-10);
    letter-spacing: 3px;
  }

  .projects-header-title {
    font-size: var(--font-44);
    letter-spacing: -1px;
  }

  .projects-header-subtitle {
    width: 90%;
    font-size: var(--font-12);
  }
}




/* ===================================
   PROJECT CATEGORY
===================================== */

.project-category {
  margin-bottom: var(--space-64);
}


/* Category title */

.category-title {
  margin: 0 0 var(--space-12);

  font-size: var(--font-18);
  font-weight: 500;
  letter-spacing: 0.3px;

  color: #111;
}


/* ===================================
   TWO COLUMN / ONE ROW GRID
===================================== */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: var(--space-24);

  width: 100%;
}


/* ===================================
   PROJECT CARD
===================================== */

.project-card {
  display: block;

  min-width: 0;

  padding-top: var(--space-8);

  border-top: 1px solid #315a7d;

  color: #111;
  text-decoration: none;
}


/* Project heading */

.project-card-header {
  margin-bottom: var(--space-12);
}

.project-card-header h3 {
  margin: 0 0 var(--space-4);

  font-size: var(--font-14);
  font-weight: 500;

  line-height: 1.2;

  color: #111;
}

.project-card-header p {
  margin: 0;

  font-size: var(--font-10);
  font-weight: 400;

  color: #666;
}


/* ===================================
   IMAGE
===================================== */

.project-image {
  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background-color: #f5f5f5;
}

.project-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}


/* Project hover */

.project-card:hover .project-image img {
  transform: scale(1.02);

  opacity: 0.92;
}


/* ===================================
   VIEW MORE
===================================== */

.category-footer {
  display: flex;

  justify-content: flex-end;

  margin-top: var(--space-16);
}


.view-more-btn {
  display: inline-flex;

  align-items: center;

  gap: var(--space-12);

  padding-bottom: var(--space-4);

  border-bottom: 1px solid #111;

  font-size: var(--font-10);
  font-weight: 400;

  letter-spacing: 1.5px;

  color: #111;

  text-decoration: none;

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}


.view-more-btn span {
  font-size: var(--font-14);

  transition: transform 0.25s ease;
}


.view-more-btn:hover {
  color: #315a7d;

  border-color: #315a7d;
}


.view-more-btn:hover span {
  transform: translateX(5px);
}


/* ===================================
   RESPONSIVE
===================================== */

@media (max-width: 750px) {

  .selectedprojects-page {
    width: calc(100% - 40px);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-category {
    margin-bottom: var(--space-48);
  }

}


/* ===================================
   SCROLL REVEAL
===================================== */

.project-category {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.project-category.visible {
  opacity: 1;
  transform: translateY(0);
}


.project-card {
  opacity: 0;
  transform: translateY(12px);

  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.project-category.visible .project-card {
  opacity: 1;
  transform: translateY(0);
}

.project-category.visible .project-card:nth-child(2) {
  transition-delay: 0.12s;
}


/* =====================================
              PROJECT PAGES 
======================================= */

.projects-page{
 width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}


/* =============================
        COMING SOON
============================= */

.project-image {
  position: relative;
  overflow: hidden;
}

.coming-soon-label {
  position: absolute;
  top: 16px;
  right: 16px;

  padding: 8px 12px;

  background: rgba(255, 255, 255, 0.92);

  border: 1px solid var(--accent);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1;

  color: var(--accent);

  z-index: 3;
}

/* Make unfinished project slightly quieter */
.coming-soon .project-image img {
  opacity: 0.72;
}

/* No pointer interaction */
.coming-soon {
  cursor: default;
}

