/* 1. SETUP & VARIABLES */
:root {
    --navy: #1A2238;
    --vibrant: #B15F2F; /* Warm Earthy Brown */
    --light: #F9F9F9;
    --white: #FFFFFF;
    --text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    position: relative;
    min-height: 100vh;
    background-color: var(--white);
}


/* 2. NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 5%;
    align-items: center;
    /* background: var(--white); */
    border-bottom: 1px solid #eee;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy);
}

.logo span { color: var(--vibrant); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
}

@media (max-width: 480px) {
    .nav-logo {
        height: 60px;
    }
}

/* 3. HERO SECTION */
.hero {
    padding: 80px 5%;
    /* background-color: var(--light);*/
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.vibrant-text { color: var(--vibrant); }

.btn-vibrant {
    background-color: var(--vibrant);
    color: white !important;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-vibrant:hover { opacity: 0.8; }

/* 4. SERVICES (The Responsive Grid) */
.services {
    display: flex;
    flex-wrap: wrap; /* Key for Mobile */
    gap: 20px;
    padding: 60px 5%;
}

.card {
    flex: 1 1 300px; /* Grows, but shrinks to 300px min */
    padding: 30px;
    background: var(--white);
    border: 1px solid #eee;
    border-top: 4px solid var(--vibrant); /* Professional detail */
    border-radius: 8px;
}

/* 5. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    
    .nav-links {
        display: flex; /* Bring them back! */
        gap: 10px;
    }
}

body {
    position: relative;
    min-height: 100vh;
    background-color: var(--white); /* Ensures the off-white background stays clean */
}

body::before {
    content: "";
    position: fixed; /* Stays in the center while you scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Background Logo Properties */
    background-image: url('../assets/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 500px; /* Adjust this to make it larger or smaller */
    
    /* The "Clean" Secret: Low Opacity */
    opacity: 0.15; /* 0.05 is a subtle hint; 0.1 is a visible watermark */
    
    z-index: -1; /* Puts it behind all your text and cards */
    pointer-events: none; /* Ensures you can still click buttons through it */
}

/* Mobile Tweak */
@media (max-width: 768px) {
    body::before {
        background-size: 250px; /* Scale down so it doesn't overwhelm the screen */
    }
}
.slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #eee;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps images from stretching */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

.next { right: 0; }
.prev { left: 0; }

.prev:hover, .next:hover { background: var(--vibrant); }

/* Style for the hamburger lines */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; } /* Show icon on mobile */

    .nav-links {
        display: none; /* Keep it hidden until toggled */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        border-bottom: 1px solid #eee;
        text-align: center;
        z-index: 10;
    }

    /* When this class is added by JS, the menu shows up */
    .nav-links.active {
        display: flex;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense; /* Fills in gaps automatically */
    gap: 15px;
    padding: 20px 5%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect for that 'Vibrant' feel */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(177, 95, 47, 0.7); /* Your brand color with transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    color: white;
    font-weight: bold;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Layout Variations */
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Mobile Adjustments */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on mobile */
        grid-auto-rows: 150px;
    }
    .gallery-item.wide { grid-column: span 1; } /* Reset wide items on small screens */
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--vibrant);
    background: transparent;
    color: var(--vibrant);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--vibrant);
    color: white;
}

/* Ensure the grid looks like a professional gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
    padding: 0 5% 80px;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

.nav-logo {
    height: 110px;
}
