@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

.fira-sans-thin {
  font-family: "Fira Sans", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.fira-sans-extralight {
  font-family: "Fira Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.fira-sans-light {
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.fira-sans-regular {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.fira-sans-medium {
  font-family: "Fira Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.fira-sans-semibold {
  font-family: "Fira Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.fira-sans-bold {
  font-family: "Fira Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.fira-sans-extrabold {
  font-family: "Fira Sans", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.fira-sans-black {
  font-family: "Fira Sans", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.fira-sans-thin-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.fira-sans-extralight-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.fira-sans-light-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.fira-sans-regular-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.fira-sans-medium-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.fira-sans-semibold-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.fira-sans-bold-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.fira-sans-extrabold-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.fira-sans-black-italic {
  font-family: "Fira Sans", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.inter-regular {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Styles Above */

:root {
  --font-family-base: 'Inter', sans-serif;
  --main-bg-color: #333333;
  --main-accent-color: #ffffff;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body, html {
  overflow-x: hidden;
  min-height: 100dvh;
  background-color: var(--main-bg-color);
  color: white;
}

.navbar__menu li.mobile-only {
  display: none; /* Hide on desktop */
}

.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px 30px; /* scaled down from 100px 150px */
  background: transparent;
  z-index: 10;
}

.navbar__container {
  display: flex;
  justify-content: space-between;  /* logo left, nav right */
  align-items: center;
  width: 100%;
}

.navbar__logo img {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: contain;
  border: none;

}

.navbar__menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Navbar links */
.navbar__links {
  font-size: 20px; /* down from 36px */
  color: #4a4a4a;
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: none;
  text-transform: none;
}

/* Desktop only */
@media screen and (min-width: 481px) {
  .navbar__links {
    text-transform: none;
  }
}

/* Underline on hover */
.navbar__links::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: currentColor;
  transition: width 0.5s ease;
}

.navbar__links:hover::after {
  width: 100%;
}

.navbar__links:hover {
  color: #5a5a5a; /* hover color change for navbar desktop */
  transition: color 0.3s ease; /* fade only on hover, not scroll */
}

/* Navbar__links CSS color change for underline and hover*/

.navbar__links.hover-accent:hover {
  color: #5a5a5a; /* slightly lighter grey for hover */
}

.navbar__links.hover-light:hover {
  color: #cccccc; /* light grey/white hover */
}


.navbar__toggle.active .bar {
  background-color: #ffffff !important;
}

/* Desktop only */
@media screen and (min-width: 481px) {
  .navbar {
    background-color: transparent;
    padding: 30px 20px; /* initial top/bottom padding */
    transition: background-color 0.2s linear,
                padding 0.2s ease-in-out;
  }

  .navbar.navbar--visible {
    background-color: #4a4a4a;
    padding: 10px 20px; /* smaller padding, slides up */
  }

  .navbar.navbar--visible .navbar__text,
  .navbar.navbar--visible .navbar__links {
    color: white;
  }
}

/* ----------------- MOBILE CSS ------------------- */

/*Responsive Mobile CSS*/
@media screen and (max-width: 480px) {

  .navbar__menu li.mobile-only {
    display: list-item; /* Show on mobile */
  }


  .navbar__menu li > .navbar__socials {
    display: flex;
  }

  .navbar__text {
    display: block;           /* make it visible */
    position: fixed;          /* fixed so it stays in place */
    top: 40px;
    left: 30px;
    font-size: 20px;          /* smaller size, adjust as you like */
    font-weight: bold;
    z-index: 3001;            /* above hamburger (3000) */
    transition: opacity 0.4s ease; /* or use transform + opacity for slide+fade */
    opacity: 1;
  }

  .navbar__text.hidden {
    opacity: 0;
    pointer-events: none; /* optional to prevent interaction while hidden */
  }

  /* Make navbar links uppercase on mobile */
  .navbar__menu .navbar__links {
    text-transform: none;
    font-weight: none;
  }

  .navbar {
    padding: 10px 10px;
  }

  /* Hamburger toggle button */
  .navbar__toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    overflow: visible;
    box-sizing: content-box;
  }

  /* Hamburger bars */
  .navbar__toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #4a4a4a;
    border-radius: 2px;
    margin: 0;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* Hamburger to X animation */
  .navbar__toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .navbar__toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Navbar container */
  .navbar__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  /* Menu panel */
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -80vw;
    width: 80vw;
    height: 100vh;
    background-color: #4A4A4A;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 70px 10px 30px 40px;
    box-sizing: border-box;
    transition: right 0.6s ease-out;
    z-index: 2000;
    pointer-events: none; /* disable interactions when hidden */
    margin-bottom: 0 !important;
  }

  /* Enable interactions when active or closing */
  .navbar__menu.active,
  .navbar__menu.closing {
    pointer-events: auto;
  }

  .navbar__menu.active {
    right: 0;
    transition: right 0.6s ease-out;
  }

  .navbar__menu.closing {
    right: -80vw;
    transition: right 0.6s ease-out;
  }

  /* Links initial state */
  .navbar__menu a {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
  }

  /* When .show added to links for staggered fade-in */
  .navbar__menu a.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Fade out when closing */
  .navbar__menu.closing a {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

      /* Link size */
  .navbar__links {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
  }

  /* Footer padding */
  .footer {
    padding: 20px 30px;
  }

  /* Overlay covers left 20% for click-outside close */
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 20vw;
    height: 100vh;
    background: transparent;
    z-index: 1999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: block;
  }

  #overlay.active {
    pointer-events: auto;
    opacity: 1;
  }

  /* CSS for mobile Navbar, follow me, contact and socials */
  /* Remove default list styles & spacing for all navbar menu items */
  .navbar__menu li {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Divider inside a list item */
  .navbar__divider {
    width: 100%;
    height: 1px;
    background-color: #999999;
    margin: 5px;
    border: none;
    opacity: 0.3;
  }

  /* Extra sections inside <li> */
  .navbar__menu li > .navbar__section-title {
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    /* Animation defaults (hidden state) (starts here) */
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none; /* not clickable while hidden */
  }

  /* Visible state */
  .navbar__menu li > .navbar__section-title.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Fade out when closing */
  .navbar__menu.closing li > .navbar__section-title {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
  }
  /* animation edit for .navbar__section-title (ends here) */

  /* Social icons container inside li */
  .navbar__menu li > .navbar__socials {
    display: flex;
    gap: 15px;
    margin-bottom: 10px; /* space below socials */
  }

  /* Social icon images */
  .navbar__menu li > .navbar__socials a img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
  }

  .navbar__menu li > .navbar__socials a:hover img {
    filter: brightness(0) invert(0.7);
  }

  /* Email and legal links inside li */
  .navbar__email,
  .navbar__legal-link {
    color: white;
    font-size: 16px;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
  }

  .navbar__email:hover,
  .navbar__legal-link:hover {
    color: #cccccc;
  }

  }

  /*Sections 2*/

/* ===== HERO SECTION ===== */
.hero {
  position: relative;          /* needed for layering trees and text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100dvh;              /* full viewport height */
  text-align: center;
  color: white;
  padding: 0 20px;
  background: url('/assets/2560\ hero-desktop.webp') no-repeat center center;
  background-size: cover;
  background-color: #333333;
}

/* ===== HERO TITLE ===== */
.hero__title {
  position: relative;
  top: -40px;
  z-index: 2;               
  font-size: 5rem;
  color: #4a4a4a;
  margin-bottom: 0.2rem;
  /*text-shadow: 0 2px 6px rgba(0,0,0,0.4); */
}

/* ===== HERO SUBTITLE ===== */
.hero__subtitle {
  position: relative;
  top: 0px;
  z-index: 2;                
  font-size: 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  max-width: 1000px;
}

/* Mobile Media Query for .hero elements */

@media screen and (max-width: 480px) {

/*.hero {
  align-items: flex-end;
  text-align: left;
  padding-left: 20px;
}*/

.hero__title {
  font-size: 3rem;
}

.hero__subtitle {
  font-size: 1.7rem;
}
}

.hero__scroll-down {
  display: inline-block;
  padding: 15px 25px; /* Rectangle around text */
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: transparent;
  border: 3px solid #cccccc; /* Visible line */
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s, transform 0.2s; /* add transform */
  border-radius: 2px; /* Optional: slight rounding */
  position: relative;
  margin-top: 40px;
}


.hero__scroll-down:hover {
  color: white;
  background-color: rgba(0,0,0,0.1);
  transform: translateY(-2px); /* lift up 2px */
}


.services1 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* vertically center within the section */
  align-items: flex-start; /* left-align text */
  padding: 50px 20px; /* top/bottom = 50px, left/right = 20px */
  color: white;
  background-color: #333333;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  height: auto;
  min-height: calc(100vh + 50px);
  text-align: left; /* keep text left-aligned */
}

.services1-title { 
  font-size: clamp(2rem, 4vw, 3rem);
  width: 80vw;
  margin-left: 5%; /* space from left */
  margin-bottom: 0.5rem;
}

.services1-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 80vw; /* limit line length */
  margin-left: 5%; /* matches title's left margin */
  line-height: 1.4;
}


/* Angled top divider */
.services1::before {
  content: '';
  position: absolute;
  top: -65px; /* pull it up to overlap hero */
  left: 0;
  width: 100%;
  height: 65px; /* vertical height of the angled shape */
  background-color: #333333;
  clip-path: polygon(0 100%, 100% 0%, 100% 100%, 0 100%);
  z-index: 1; /* make sure it’s above hero background but behind content */
}

.hero__scroll-down:hover {
  color: white;
  background-color: rgba(0,0,0,0.1);
  transform: translateY(-2px); /* lift up 2px */
}

/* SECTIOND DIVIDER */

.services2 {
  position: relative;
  height: calc(100dvh + 50px); /* restore the cut-off part + 100dvh allows mobile UI Bar coverage */
  padding: 50px 20px;
  color: white;
  background-color: #5a5a5a; /* fallback color */
  background-image: url('');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Angled top divider for services2 */
.services2::before {
  display: none;
  content: '';
  position: absolute;
  top: -50px; /* pull it up to overlap services1 */
  left: 0;
  width: 100%;
  height: 50px; /* vertical height of the angled shape */
  background-color: white; /* match your services2 background color */
  clip-path: polygon(0 100%, 100% 0%, 100% 100%, 0 100%);
  z-index: 1; /* above services1 background but behind services2 content */
}

  /*Footer CSS*/

  .footer {
    background-color: #4A4A4A;
    color: white;
    padding: 27px 100px; /* down from 40px 150px */
  }

  .footer__container {
    display: flex;
    justify-content: space-between; /* 3 parts spaced across */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  /* Left: Copyright aligned left */
  .footer__copyright {
    flex: 1;
    text-align: left;
    font-size: 14px; /* down from 16px */
  }

  /* Center: Nav links centered */
  .footer__nav {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
  }

  /* Right: Social icons aligned right */
  .footer__socials {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
  }

  /* Nav links style */
  .footer__link {
    color: white;
    text-decoration: none;
    font-size: 14px; /* down from 16px */
    transition: color 0.3s ease;
  }

  .footer__link:hover {
    color: #cccccc;
  }

  /* Social icons style */
  .footer__icon img {
    width: 32px; /* down from 48px */
    height: 32px; /* down from 48px */
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
    display: block;
  }

  .footer__icon:hover img {
    filter: brightness(0) invert(0.7); /* Slightly dim on hover */
  }

/* Responsive adjustments */
@media screen and (max-width: 480px) {
  .footer {
    padding: 20px;
  }

  .footer__container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer__copyright,
  .footer__nav,
  .footer__socials {
    flex: unset;
    text-align: center !important;
    justify-content: center !important;
    margin-bottom: 15px;
  }
}

/*Back to Top Button*/

#backToTop {
  position: fixed;
  bottom: 26px; /* down from 40px */
  right: 26px; /* down from 40px */
  width: 32px; /* down from 48px */
  height: 32px; /* down from 48px */
  padding: 0;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#backToTop:hover {
  opacity: 1;
}

#backToTop img {
  width: 16px;  /* down from 24px */
  height: 16px; /* down from 24px */
  display: block;
  margin: auto;
  padding: 0;
  filter: invert(1); /* if your SVG is black and you want white */
}  
