/* --- Base Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #2b2b2b; /* Dark charcoal background */
    color: #ffffff;
    line-height: 1.6;
    font-weight:200;
}

h1, h2, h3, .logo {
    font-family: 'DM Serif Display', serif;
    font-weight: 700;
}

li{ font-weight:600; font-size:120%;}

ul{ margin-bottom:20px; }

a {
    text-decoration: none;
    color: inherit;
}

.mt-2 {
    margin-top: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.primary-btn {
    background-color: #d4ff00; /* Neon Lime Green */
    color: #000000;
}

.dark-btn {
    background-color: #2b2b2b;
    color: #ffffff;
    width: 200px;
    margin: 0 auto;
    display: block;
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

.card .btn{
    position: absolute;
    bottom: 15px;
    padding: 5px 30px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url('images/hero.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.abouthero{ 
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url('images/abouthero.jpg') center/cover no-repeat;
 }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.logo {
    font-size: 2rem;
    letter-spacing: 2px;
}

.logo img {
    max-height: 100px; /* Change this number to make the logo bigger or smaller */
    width: auto;      /* Keeps the image proportions correct */
    display: block;   /* Removes any weird extra space under the image */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #d4ff00;
    border-bottom: 2px solid;
    padding-bottom: 2px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* --- Services Section --- */
.services {
    padding: 4rem 1%;
    background-color: transparent;
    margin-top: -15vh;
    position: relative;
    z-index: 10;
}

.services.reviews {
    margin-top: 0;}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card {
    background-color: #ffffff;
    color: #000000;
    border-radius: 12px;
    padding: 1rem 1rem 4rem 1rem;
    width: 230px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position:relative;
}


.card .btn{ opacity:0.2; }

.card:hover .btn{ opacity:1; }

.card .btn::before{ display:block; background-color:transparent; height:40px; width:100%; }

.reviews .card {
    width: 30%;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    min-height: 2.8rem;
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.reviews .card img {
    width: 60%;
    height: auto;
}

.card p {
    font-size: 0.85rem;
    color: #555555;
}

.sub{font-size:80%;
font-style: italic;
font-weight:bold;
margin-top:20px;
display:block;}

/* --- About Section --- */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5% 5rem 0;
    background-color: #2b2b2b;
    gap: 4rem;
}

.service1{ background-color:#000; }

.service2{ background-color:#21592b; }

.service3{ background-color:#8eae06; }

.service4{ background-color:#000; }

.service5{ background-color:#21592b; }


.about-illustration {
    flex: 1;
}

.about-illustration img {
    width: 150%;
    height: auto;
    object-fit: contain;
    margin-left: -50%;
}

.servicespage .about-illustration img {
    width: 100%;
    margin-left: 0;
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #cccccc;
    font-size: 1rem;
}

.servicespage .about-text p { color:#fff; }

.team { background-color: #000; }

.team .about-text h2 {
color:#fff;
}

.team .about-text p {
    color: #fff;
}

.team .about-illustration img {
    width: 100%;
    margin-left: 0;
}

.photos1{ background-color:#000; } 

.photos2{ background-color:#666; } 

.gallerypage .about { padding: 5rem; flex-direction:column;}

.gallerypage .about-text {
    max-width: 100%;
}

.gallerypage .hero{ background-image:url(images/photos-hero.jpg); }


/* --- Gallery Slider Updates --- */

.gallery{
    background-color: #000;
    padding: 3rem 2rem;
}

.gallery h2, .reviews h2{
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.gallery-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: flex; /* Overrides the old grid display */
    overflow-x: auto; /* Allows horizontal scrolling */
    scroll-snap-type: x mandatory; /* The magic that makes it "snap" into place */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth flicking on iOS */
    gap: 1.5rem;
    padding-bottom: 1rem; /* Gives space for a scrollbar if visible */
}

/* Hide the ugly default scrollbar but keep functionality */
.gallery-grid::-webkit-scrollbar {
    height: 8px;
}
.gallery-grid::-webkit-scrollbar-track {
    background: #1f1f1f;
}
.gallery-grid::-webkit-scrollbar-thumb {
    background: #d4ff00; /* Your lime green brand color */
    border-radius: 4px;
}

.gallery-grid img {
    /* Mobile first: 1 image takes up the whole screen */
    flex: 0 0 100%; 
    scroll-snap-align: center;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  
  /* Hidden state by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  
  /* Button styling */
  background-color: #fff; /* Change to match your brand */
  color: #000;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hover effect */
#backToTop:hover {
  background-color: #666;
}

/* Class added by JavaScript to show the button */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Mobile Navigation Styles --- */

/* The hamburger icon container */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 100; /* Keeps it above the menu */
}

/* The three lines of the hamburger */
.bar {
    width: 40px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px #000;
}

/* Hover effect for the hamburger */
.hamburger:hover .bar {
    background-color: #d4ff00; /* Your lime green */
}

/* Mobile specific rules. 
  Make sure this replaces your old @media (max-width: 768px) navbar rules 
*/
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position:fixed;
        top:20px;
        right:20px;
    }
    
    .nav-links {
        /* Hide menu off-screen to the left initially */
        position: fixed;
        left: -100%; 
        top: 0px; /* Adjust this based on your navbar's height */
        padding-top:80px !important;
        padding-bottom:80px !important;
        flex-direction: column;
        background-color: #1f1f1f; /* Slightly darker than main body */
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        z-index: 99;
    }

    /* When the JS adds the 'active' class, slide it into view */
    .nav-links.active {
        left: 0; 
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 2.2rem;
    }

    /* Optional: Animate the hamburger into an 'X' when open */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}



/* Tablet: Show 2 images at a time */
@media (min-width: 768px) {
    .gallery-grid img {
        flex: 0 0 calc(50% - 0.75rem); 
    }
}

/* Desktop: Show 3 images at a time */
@media (min-width: 1024px) {
    .gallery-grid img {
        flex: 0 0 calc(33.333% - 1rem); 
    }
}

/* --- Slider Arrows --- */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333333;
    color: #d4ff00;
    border: none;
    font-size: 2rem;
    line-height: 1;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.slide-arrow:hover {
    background: #d4ff00;
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

#slide-arrow-prev { left: -20px; }
#slide-arrow-next { right: -20px; }

@media (max-width: 768px) {
    /* Hide arrows on mobile since users can just flick their screens */
    .slide-arrow {
        display: none; 
    }
}

/* --- Contact Section --- */
.contact {
    background-color: #d4ff00; /* Lime Green */
    color: #000000;
    padding: 5rem 5%;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 2rem;
    font-weight: 600;
}

.quote-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.quote-form textarea {
    border-radius: 15px;
    resize: none;
}

@media screen and (max-width:992px){

    .about-illustration img {
    width: 70%;
margin-left:0;}

    .about {
        padding: 0 1rem 5rem 1rem;
    }

    .reviews .card {
    width: 90%;
    max-width:500px;
}
}

/* --- Footer --- */
footer {
    background-color: #111111;
    color: #888888;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 90%;
        max-width: 500px;
    }

    .card .btn{ opacity:1; }

}