/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-green: #2d5a27;
    --accent-green: #5ba34b;
    --light-bg: #f4f4f4;
    --dark-text: #333;
}

html { scroll-behavior: smooth; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-green); }
.logo span { color: var(--accent-green); }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: var(--dark-text); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-green); }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* Hero */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('images/bobcat.jpg?auto=format&fit=crop&w=1600&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; }

.btn {
    background: var(--accent-green);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Services */
.services { padding: 5rem 5%; text-align: center; background: var(--light-bg); }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-card i { font-size: 2.5rem; color: var(--accent-green); margin-bottom: 1rem; }

/* Contact Section Rework */
.contact {
    padding: 5rem 5%;
    text-align: center;
    background: var(--light-bg);
}
.contact-box {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: inline-block;
    max-width: 500px;
    width: 100%;
    margin-top: 2rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-icon-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-detail {
    color: var(--dark-text);
    font-size: 1.2rem;
}

.email-btn {
    background: #4a90e2; /* Professional blue for email */
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.email-btn:hover {
    background: #357abd;
}

.contact-divider {
    margin: 2rem 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

.contact-divider span {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.8rem;
    font-weight: bold;
}

.call-btn {
    background: var(--accent-green);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.call-btn:hover {
    background: var(--primary-green);
    transform: scale(1.05);
}

.availability {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}



footer { background: var(--primary-green); color: white; text-align: center; padding: 2rem; }

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        width: 100%;
        text-align: center;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 1rem 0; }
    .hamburger { display: block; }
}
/* Portfolio Section */
.portfolio {
    padding: 5rem 5%;
    text-align: center;
    background: #fff;
}

.portfolio h2 { margin-bottom: 0.5rem; color: var(--primary-green); }
.portfolio p { margin-bottom: 3rem; color: #666; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 280px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps images from stretching */
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(45, 90, 39, 0.9); /* Green overlay */
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay span {
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
}
/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; /* Hides the images that aren't active */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Carousel Adjustments */
.carousel-slide {
    min-width: 100%;
    height: 60vh; /* Relative to screen height */
    background: #000; /* Black bars for portrait photos */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Shows entire image without cropping */
    image-orientation: from-image;
}

/* Lightbox (Full Screen) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%; /* Reduced slightly to allow room for rotation */
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease; /* Smooths the transition between slides */
}

#lightbox-caption {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
}
.l-prev { left: 10px; }
.l-next { right: 10px; }

.slide-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(45, 90, 39, 0.85);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-weight: bold;
}

/* Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.carousel-btn:hover { background: white; color: var(--accent-green); }
.prev { left: 20px; }
.next { right: 20px; }

/* Mobile Height Adjustment */
@media (max-width: 768px) {
    .carousel-slide { height: 350px; }
}
/* Mobile Tweak */
@media (max-width: 480px) {
    .phone-display { font-size: 1.5rem; }
}