:root {
    --primary-color: #3A5A40; /* Muted Green */
    --secondary-color: #A3B18A; /* Lighter Green */
	--light-green-bg: #F0F5F0; /* Add this line */
    --text-color: #333;
    --background-color: #F4F4F4;
    --white-color: #FFFFFF;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #FFFFFF; /*background-color: rgba(255, 255, 255, 1);*/
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: kenburns 20s infinite;
}

.slide.active {
    opacity: 1;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-2%, 2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-text {
    z-index: 3;
    position: relative;
}

.hero-text h1 {
    font-family: var(--header-font);
    font-size: 4rem;
    margin: 0;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 10px;
}

/* General Content */
.content-section {
    padding: 40px 20px;
    background-color: var(--white-color);
    margin-top: 60px; /* Adjust for fixed navbar */
}

.content-section h1, .content-section h2 {
     font-family: var(--header-font);
     color: var(--primary-color);
     text-align: center;
     margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}
/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
/* --- Admin & Forms --- */
.login-form, .admin-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h2 {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--body-font);
    box-sizing: border-box; /* Important for width */
}

textarea.form-control {
    resize: vertical;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2c4431; /* Darker green */
}

.btn-secondary {
    background-color: #888;
}
.btn-secondary:hover {
    background-color: #666;
}

/* Flash Messages */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* --- Admin Navigation --- */
.admin-nav {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.admin-nav a {
    text-decoration: none;
    color: var(--primary-color);
    margin-right: 20px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}
.admin-nav a.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* --- Admin Portfolio Grid --- */
.admin-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.admin-portfolio-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}
.admin-portfolio-item img {
    width: 100px;  /* Set a fixed width */
    height: 100px; /* Set a fixed height */
    object-fit: cover; /* This crops the image to fit, preserving aspect ratio */
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #eee; /* Optional: adds a light border */
}
.admin-portfolio-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    min-height: 40px;
}
.btn-danger {
    background-color: #dc3545;
}
.btn-danger:hover {
    background-color: #c82333;
}
/* --- Public Portfolio Page --- */
.portfolio-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* --- Admin Review Moderation --- */
.review-moderation-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}
.review-moderation-card.approved {
    background-color: #f7f7f7;
}
.review-moderation-card p { margin: 0 0 10px 0; }
.review-text {
    font-style: italic;
    color: #333;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid var(--secondary-color);
    margin: 10px 0;
}
.owner-reply {
    margin-top: 15px;
    padding-left: 15px;
}

/* --- Public Reviews Page --- */
.reviews-list {
    max-width: 800px;
    margin: 0 auto;
}
.review-card {
    /* And replace it with this */
    background: var(--light-green-bg);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 1px solid #e0e5e0;
}
.review-card-body p.review-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
    color: #333;
}
.review-card-footer {
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
}
.review-reply {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}
.reply-title {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.reply-text {
    font-style: italic;
    color: #555;
    margin: 0;
}
/* --- Contact Page --- */
.flash-container {
    max-width: 600px;
    margin: 0 auto 20px auto;
}
/* --- Formatted Content (from Markdown) --- */
.formatted-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.formatted-content h1,
.formatted-content h2,
.formatted-content h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}
.formatted-content p {
    margin-bottom: 1.2em;
}
.formatted-content ul {
    padding-left: 20px;
    margin-bottom: 1.2em;
}
.formatted-content li {
    margin-bottom: 0.5em;
}
.form-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: -15px;
    margin-bottom: 15px;
}
/* --- Welcome Section on Homepage --- */
.welcome-section {
    text-align: center;
}
.welcome-section p {
    max-width: 750px; /* Prevents text from being too wide on large screens */
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: #555;
}
.logo-image {
    height: 50px; /* This should be about 75% of the nav bar height. Adjust if needed. */
    margin-right: 10px;
}
/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    /* --- Hamburger Menu --- */
    .hamburger {
        display: block;
        cursor: pointer;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
    }

    /* --- Navigation Menu --- */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Should match navbar height */
        gap: 0;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 16px 0;
    }
	
	/* title in main nav */
 .nav-logo {
    font-size: 1.4rem; /* Adjust value as needed */
}

    /* --- Hero Section --- */
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        font-size: 1.2rem;
    }

    /* --- General Content --- */
    .content-section {
        padding: 60px 20px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr; /* Stack portfolio items */
    }
    .services-grid {
        grid-template-columns: 1fr; /* Stack service cards */
    }
}
/* --- Generated Link Box --- */
.generated-link-box {
    background-color: #e9f5e9;
    border: 1px solid #c8e6c9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.generated-link-box strong {
    flex-shrink: 0;
}
.generated-link-box input[type="text"] {
    width: 100%;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
}
/* --- Portfolio Admin Updates --- */
.admin-portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-portfolio-item .update-form,
.admin-portfolio-item .delete-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.flash-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
/* --- Multi-delete Styles --- */
.admin-portfolio-item {
    position: relative; /* Needed for checkbox positioning */
}

.delete-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    transform: scale(1.5); /* Makes checkbox bigger */
    z-index: 10;
}

.multi-delete-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}
/* --- Upload Spinner Overlay --- */
#upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.spinner-box {
    background-color: var(--primary-color);
    padding: 30px 40px;
    border-radius: 10px;
}

.spinner-box p {
    margin: 10px 0 0 0;
    font-size: 1.1rem;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}