/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
html {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000; /* black background */
}

/* Header */
header {
    background: black;
    color: white;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vh 0vw 1.5vh 1vw;
    height: 12vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.5s ease; /* smooth hide/show */
    will-change: transform; /* optimize for transform changes */
}


header .logo {
    font-size: 1.5vw;
    font-weight: bold;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

header .logo .header-img {
    height: 12vh;
    width: auto;
    margin-left: 1.5vw;
}

header .logo .header-img:nth-of-type(2) {
    height: 10vh;
    width: auto;
    margin-left: 1.5vw;
}
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;;
}
.nav-center a{   
    font-weight: 600;
    font-size: clamp(16px, 3vw, 44px);
    text-decoration: none;
        /* Gradient effect */
    background: linear-gradient(90deg, #FFA500, #fff); /* orange to blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header button */
.quote-btn {
    background-color: #e67e22; /* orange */
    color: #fff;               /* black text */
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(10px, 2vw, 24px);
    transition: all 0.3s ease;
    display: flex;
    flex: 1;
    margin-right: 2vw;
}

/* Hover effect */
.quote-btn:hover {
    background-color: #e67e50; /* darker orange */
    color: #fff;
    transform: scale(1.05);    /* slight pop */
}
header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}

header a.logo {
    text-decoration: none;
    color: inherit;
}

header a.logo:hover {
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-image: url('./Images/MyHomePage.png'); /* ensures it fills the section */
    background-size: cover; 
    background-position: center; /* centers the image */
    color: #123944;
    text-align: center;               /* makes it full viewport height */
    height: 100vh;
    width: 100%;
    display: flex;               /* for centering text */
    flex-direction: column;
    justify-content: center;     /* vertical centering */
    align-items: center;         /* horizontal centering */
    position: relative; /* required for ::after to be anchored */
    overflow: hidden;   /* prevent overflow of fade */
    
}
/* Hero section fade bottom */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* height of fade */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 30%, #123944 100%);
    pointer-events: none;
}
.hero h1 {
    color: #e67e22;
    font-size: 10vw;
    max-width: 100px;
    text-align: left;
    position: absolute;
    top: 17vh;
    left: 10vw;
    line-height: 1;
    font-weight: bold;
}
.hero p {
    color: #e67e22;
    font-size: 3.4vw;
    text-align: left;
    position: absolute;
    top: 58vh;
    left: 10.5vw;
    line-height: 1.2;
}
.hero .btn {
    background: #e67e22;
    color: white;
    padding: 1.5vh 4vw;
    text-decoration: none;
    border-radius: 20px;
    display: inline-block;
    position: absolute;
    left: 10.5vw;
    top: 75vh;
    margin-right: 15px;
    font-size: 1.5vw;
    cursor: pointer;
    z-index: 10;
}

.hero .btn:hover {
    background: #d35400;
}
.hero .btn.btn-secondary {
    background: #e67e22;
    color: white;
    padding: 1.5vh 5vw;
    text-decoration: none;
    border-radius: 20px;
    display: inline-block;
    position: absolute;
    left: 30vw;
    top: 75vh;
    font-size: 1.5vw;
    z-index: 10;
}

.hero .btn.btn-secondary:hover {
    background: #d35400;
}
/* Services */
#services {
    padding: 60px 20px;
    background: #123944;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 0;
    overflow: hidden;
}
#services::before {
    content: "";
    position: absolute;
    bottom: -2vh;          /* treeline sticks to the bottom of section */
    right: -3vw;
    width: 140vw;
    height: 250vh;      /* adjust as needed */
    background-image: url('./Images/BTLS.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: -1;         /* behind the content */
}

/* Our Services Title */
#services h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 60px); /* scales with window */
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: #FFA500; /* Orange text */
    position: relative;
}

/* Black → Orange underline that scales with screen */
#services h2::after {
    content: "";
    display: block;
    width: clamp(60px, 15vw, 150px); /* scales with window width */
    height: clamp(3px, 0.5vw, 6px);  /* scales thickness */
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(to right, #000000, #FFA500); /* Black → Orange */
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.card {
    background: #1a1a1a;
    padding: 3vh 3vw;
    border-radius: 12px;
    width: 30vw;
    max-width: 500px;
    min-width: 250px;
    box-shadow: 0px 4px 15px rgba(230, 126, 34, 0.2);
    border: 2px solid #e67e22;
    color: white;
}
.card h3 {
    color: #e67e22;
    font-size: 2vw;
    margin: 15px 0;
}

.card p {
    color: #ccc;
    line-height: 1.6;
    font-size: 1.1vw;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

#about {
  background-color: #000; /* Black background */
  padding: 80px 8%;
  color: #fff; /* default text color */
  position: relative;
  overflow: hidden;
}

/* Flex container */
.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap; /* keep side-by-side on desktop */
}

/* Image styling */
.about-image {
  flex: 0 0 30%; /* image width */
  max-width: 30%;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #2C3E50; /* blue border */
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* About Us title */
.about-container h2 {
  font-size: clamp(36px, 4vw, 60px); /* enlarged and responsive */
  margin-bottom: 20px;
  color: #FFA500; /* orange title */
  font-weight: 700; /* bold */
}

/* Paragraph text */
.about-container p {
  font-size: clamp(18px, 1.5vw, 22px); /* slightly larger for readability */
  line-height: 1.7;
  color: #ffffff; /* white paragraph */
}

/* Responsive for smaller screens */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column; /* stack image above text */
    align-items: center;
    text-align: center;
  }

  .about-image {
    flex: 0 0 70%;
    max-width: 300px;
    margin-bottom: 20px;
  }
/* Highlight words in paragraphs inside #about */
}
/* Recent Work Section */
#recent-work {
    background-color: #123944; /* same blue as used before */
    padding: 80px 8%;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#recent-work::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 5%);
    z-index: 0;
    pointer-events: none;
}

#recent-work h2 {
    font-size: clamp(50px, 5vw, 58px); /* responsive title size */
    color: #FFA500; /* orange for title */
    margin-top: 0;
    position: relative;
    display: inline-block
}
#recent-work h2::after {
    content: "";
    display: block;
    width: clamp(60px, 15vw, 150px); /* scales with window width */
    height: clamp(3px, 0.5vw, 6px);  /* scales thickness */
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(to right, #000000, #FFA500); /* Black → Orange */
}
#recent-work p {
    font-size: clamp(16px, 1.2vw, 20px); /* responsive paragraph */
    margin-top: 3vh;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image styling */
.recent-work-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px #FFA500;
    margin-top: 4vh;
}
/* Contact Form */
/* CONTACT SECTION BACKGROUND */
#contact {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    color: #000;
    overflow: hidden;   
}
#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./Images/MyHomePage.png") center/cover no-repeat;
    transform: scaleX(-1); /* Mirrors the image */
    z-index: -2;
}
#contact h2 {
    color: #FFA500;
    font-size: clamp(36px, 5vw, 70px);
    margin-bottom: 40px;
}
/* Optional dark overlay for readability */
#contact::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* adjust fade height */
    background: linear-gradient(
        to bottom,
        #123944 0%,          /* solid black at top */
        rgba(0,0,0,0) 100% /* fades to transparent for image */
    );
    z-index: -1; /* sits above mirrored image but behind form/text */
    pointer-events: none; /* allows clicking through */
}
/* FORM STYLING */
#contactForm {
    width: 90%;                 /* scales with screen */
    max-width: 800px;           /* prevents it from getting too big */
    min-width: 280px;           /* prevents it from getting too small */
    margin: 0 auto;
    padding: 2vw;               /* responsive padding */
    background: rgba(255, 255, 255, 0.50);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Inputs */
#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 1vw;              /* responsive padding */
    font-size: clamp(14px, 1vw, 19px);            /* scales text */
    margin: 8px 0 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button */
#contactForm button {
    background: #2c3e50;
    color: white;
    padding: 12px;
    border: none;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

#contactForm button:hover {
    background: #1a252f;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    padding: 10px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
}

form button:hover {
    background: #34495e;
}

/* Footer */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 20px;
}
/* Popup container */
.popup-box {
    position: fixed;
    bottom: 0;
    right: 1vw;
    width: 280px;
    background: #000;
    color: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    overflow: visible; /* allow arrow to show outside */
    transition: transform 0.5s ease;
    z-index: 9999;
}

/* Popup content */
.popup-content {
    padding: 15px 20px;
}

/* Toggle arrow container */
.popup-toggle {
    position: absolute;
    top: 13px;     /* sits above the popup */
    left: 4px;    /* distance from popup right edge */
    width: 0;       /* container itself doesn’t need width */
    height: 0;
    cursor: pointer;
}

/* Arrow using borders (triangle pointing up) */
.popup-toggle::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #FFA500; /* orange arrow */
    transform: rotate(90deg);
}

/* Rotate arrow when collapsed */
.popup-box.collapsed .popup-toggle::before {
    transform: rotate(270deg);
    transition: transform 0.3s ease;
}

/* Collapsed state: slide down */
.popup-box.collapsed {
    transform: translateX(92%);
}
/* ========================= */
/* MOBILE RESPONSIVE FIXES */
/* ========================= */
@media (max-width: 768px) {

  .nav {
    padding: 10px 15px;
    flex-wrap: nowrap;
  }

  /* LOGO smaller */
  .logo img {
    height: 60px !important;
    width: auto !important;
  }
  .logo img:nth-child(2) {
  display: none;
}

  /* PHONE number centered + smaller */
  .nav-center a {
    font-size: 23px !important;
    margin-left: -14px;
  }

  /* BUTTON smaller */
   nav .quote-btn {
    font-size: 13px !important;   /* shrink button text */
    padding: 4px 8px !important;
    max-width: 110px;              /* smaller max-width on mobile */
    margin-right: 10px;
  }
    .nav-center .phone-icon {
    display: none;
  }
    .hero {
    background-position: 60% center; /* slightly different for small screens */
  }
  .hero h1 {
    font-size: 18vw;
    max-width: 100px;
    top: 17vh;
    left: 8vw;
}
.hero p {
    font-size: 5vw;
    top: 37vh;
    left: 10.5vw;
}
.hero .btn {
    padding: 1.5vh 4vw;
    border-radius: 20px;
    left: 10.5vw;
    top: 50vh;
    margin-right: 15px;
    font-size: 5vw;
}
.hero .btn.btn-secondary {
    padding: 1.5vh 8vw;
    border-radius: 20px;
    left: 11vw;
    top: 60vh;
    font-size: 5vw;
}
#services h2 {
    font-size: 6vh;
}
.card {
    flex: 0 0 90%; /* cards take ~90% of container width */
    margin: 10px auto; /* center horizontally */
  }
.card h3 {
    font-size: 8vw;
    margin: 15px 0;
}

.card p {
    line-height: 1.6;
    font-size: 4vw;
}
.recent-work-image img {
    width: 100%;       /* full width on small screens */
    float: none;       /* stop floating on mobile */
    display: block;
}
}
@media (min-width: 768px) and (max-width: 1024px) {
  header {
    flex-wrap: nowrap; /* keep items in one row */
    justify-content: space-between;
    padding: 10px 20px;
  }

  /* Logo */
  header .logo img {
    height: 8vh !important; /* shrink slightly if needed */
    width: auto;
    margin-right: auto;
  }
      .nav-center .phone-icon {
    display: none;
  }

  /* Phone number */
  header .nav-center a {
    font-size: 27px; /* slightly smaller for iPad */
    margin: 0 10px;
  }

  /* Quote button */
  header nav a.quote-btn {
    font-size: 16px; /* shrink slightly */
    padding: 6px 12px;
  }
  .hero h1 {
    font-size: 15vw !important;
    top: 22vh;
    left: 10vw;

}
   .hero p {
    font-size: 5vw;
    top: 45vh;
    left: 10.5vw;
}
.hero .btn {
    padding: 1.5vh 4vw;
    border-radius: 20px;
    left: 10.5vw;
    top: 55vh;
    margin-right: 15px;
    font-size: clamp(10px, 4vw, 24px);;
}
.hero .btn.btn-secondary {
    padding: 1.5vh 8vw;
    border-radius: 20px;
    left: 11vw;
    top: 65vh;
    font-size: clamp(10px, 4vw, 24px);
}
#services h2 {
    font-size: 6vh;
}
.card {
    flex: 0 0 45%;
}
.card h3 {
    font-size: 4.5vw;
    margin: 15px 0;
}

.card p {
    line-height: 1.6;
    font-size: 2vw;
}
}

