/* ================================
   HEADER
================================ */
.header {
  width: 100%;
  height: clamp(70px, 5vw, 100px);

  display: flex;
  align-items: center;

  padding: 0 clamp(25px, 3vw, 60px);
  box-sizing: border-box;
}
/* ================================
   LEFT BRAND
================================ */

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: clamp(100px, 7vw, 145px);
  height: auto;
  display: block;
}

/* Angled divider */

.brand-divider {
  width: 1px;
  height: 68px;

  background: #aaa;

  margin: 0 30px;

  transform: rotate(28deg);
}

/* Engineering Motorsport text */

.brand-text {
  display: flex;
  flex-direction: column;

  gap: 7px;

  font-size: 10px;
  font-weight: 400;

  letter-spacing: 4px;
  line-height: 1;

  color: #555;
}

/* ================================
   CENTRE HORIZONTAL LINE
================================ */

.header-line {
  height: 1px;
  background: #9a9a9a;

  flex: 1;

  margin: 0 40px;
}

/* ================================
   NAVIGATION
================================ */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 36px);
  margin-left: auto;
}

/* Nav links */

.nav > a,
.dropdown-btn {
  position: relative;

  font-family: inherit;
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 500;

  letter-spacing: 1.5px;

  color: #111;
  text-decoration: none;

  background: none;
  border: none;

  padding: 0;

  cursor: pointer;

  transition: opacity 0.25s ease;
}

.nav > a:hover,
.dropdown-btn:hover {
  opacity: 0.45;
}

/* Optional subtle underline */

.nav > a::after,
.dropdown-btn::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: #111;

  transition: width 0.3s ease;
}

.nav > a:hover::after,
.dropdown-btn:hover::after {
  width: 100%;
}

/* ================================
   PROJECT DROPDOWN
================================ */

.dropdown {
  position: relative;

  /* Creates a safe hover area beneath PROJECTS */
  padding: 12px 0;
  margin: -12px 0;
}

/* PROJECTS button */
.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 7px;

  font-family: inherit;
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 500;
  letter-spacing: 1.5px;

  color: #111;
  background: none;
  border: none;

  padding: 0;
  cursor: pointer;
}

/* Arrow */
.arrow {
  font-size: 13px;
  position: relative;
  top: -1px;

  transition: transform 0.25s ease;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;

  top: 100%;
  left: 50%;

  transform: translateX(-50%);

  min-width: 220px;

  background: #fff;

  border-top: 1px solid #111;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);

  padding: 10px 0;

  opacity: 0;
  visibility: hidden;

  /* Stops hidden dropdown blocking anything */
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;

  z-index: 9999;
}

/* OPEN DROPDOWN */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Rotate arrow */
.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Links */
.dropdown-menu a {
  display: block;

  padding: 12px 20px;

  white-space: nowrap;

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;

  color: #111;
  text-decoration: none;

  transition:
    background 0.2s ease,
    padding-left 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  padding-left: 25px;
}
/* ================================
   SOCIAL SECTION
================================ */

.social-divider {
  width: 1px;
  height: 31px;

  background: #aaa;

  margin-left: 10px;
  margin-right: 5px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1vw, 18px);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  color: #111;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.social-links svg {
  width: clamp(16px, 1.1vw, 21px);
  height: auto;

  fill: currentColor;
}

.social-links a:hover {
  opacity: 0.45;
  transform: translateY(-1px);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
  .header {
    padding: 0 24px;
  }

  .header-line {
    margin: 0 25px;
  }

  .nav {
    gap: 25px;
  }

  .brand-text {
    letter-spacing: 3px;
  }
}

@media (max-width: 950px) {
  .header-line,
  .brand-text,
  .brand-divider {
    display: none;
  }

  .header {
    justify-content: space-between;
  }

  .nav {
    gap: 20px;
  }
}
/* =========================
   COUNTDOWN
========================= */

.countdown-section {
  text-align: center;

  padding: 80px 20px;
}

.countdown-title {
  font-size: 20px;
  text-align: center;
  letter-spacing: 3px;

  margin-bottom: 25px;
}

/* Countdown layout */

.countdown {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 40px;
}

/* Individual number */

.countdown-item {
  min-width: 70px;
}

.countdown-item span {
  display: block;

  font-size: 90px;
  font-weight: 300;

  letter-spacing: 2px;
}

/* DAYS / HOURS / MIN / SEC */

.countdown-item p {
  margin-top: 8px;

  font-size: 20px;

  letter-spacing: 2px;

  color: #777;
}
.footer {
  margin: 60px 3% 0;
  padding: 20px 0;

  border-top: 1px solid #d5d5d5;

  text-align: center;
}

.footer p {
  margin: 4px 0;

  font-size: 10px;
  font-weight: 400;

  letter-spacing: 1px;

  color: #777;
}

/* Signature  */

.signature-figure {
  width: 600px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 50px auto 0;
  opacity: 0.8;
}

/* Contact me - Social media Icon */
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 15px;
  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 {
  width: 140px;
  height: auto;
  opacity: 0.55;
  display: block;
  margin: 0 auto 12px;
}

/* =========================
   wELCOME PAGE PICTURE
========================= */
.welcome-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0 10%;
  box-sizing: border-box;
}

.welcome-image img {
  width: 100%;
  height: auto;
  display: block;
}
