/* --- Global Styles & Variables --- */
:root {
    --brand-primary: #f1a257; /* Your Warm Orange */
    --brand-accent: #c7b08a; /* Your Muted Gold */
    --text-dark: #333333; /* Dark color for text for readability */
    --background-dark: #2c3e50; /* A professional dark slate for footer */
    --light-gray: #f9f9f9;
    --white-color: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--white-color);
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo a {
    display: flex;
    align-items: center;
    gap: 15px; /* Creates space between image and text */
    text-decoration: none; /* Removes underline from the text */
}

.logo img {
    height: 40px; /* <-- CHANGE THIS VALUE to make the logo smaller or larger */
    width: auto; /* 'auto' maintains the aspect ratio */
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--brand-primary); /* Use brand orange for hover/active */
}

/* --- Hero Section --- */
.hero {
    /* This is where you put your image file name */
    background-image: url('../images/hero-background.jpg'); /* <-- CHANGE THE FILENAME HERE */
    
    /* These properties make the background image look good */
    background-size: cover; /* Stretches the image to cover the whole area without distortion */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from tiling */

    color: var(--white-color); /* Change text color to white for contrast */
    padding: 100px 0; /* Increased padding for more visual impact */
    text-align: center;
    position: relative; /* This is essential for the overlay to work */
    z-index: 1;
}

/* This creates the dark, semi-transparent overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-dark);
}

.cta-button {
    background-color: var(--brand-primary); /* Use brand orange for the button */
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--brand-primary);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--white-color);
    color: var(--brand-primary);
}

/* --- Services Overview Section --- */
.services-overview {
    padding: 60px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--brand-accent); /* Use muted gold for subtle accent */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-basis: 45%;
    text-align: left;
}

.card h3 {
    margin-top: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--background-dark);
    color: var(--light-gray);
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--white-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }

    nav ul {
       justify-content: center;
       flex-wrap: wrap; /* Allows nav items to wrap on small screens */
    }

    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .service-cards {
        flex-direction: column;
    }
}

/* --- Styles for Services Page --- */

.page-header {
    background-image: url('../images/hero-background.jpg'); /* Using the same image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 60px 0; /* A bit more padding */
    text-align: center;
    color: var(--white-color);
    position: relative; /* For the overlay */
    z-index: 1;
}

/* Overlay for the page header */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 35, 66, 0.7); /* Same overlay color */
    z-index: -1;
}

/* We need to make sure the text inside is white */
.page-header h1, .page-header p {
    color: var(--white-color);
}

.page-header h1 {
    color: var(--white-color);
    font-size: 2.8rem;
    margin: 0;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--light-gray);
    opacity: 0.9;
}

.service-details {
    padding: 60px 0;
}

.service-item {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

/* This reverses the order for every second item for visual variety */
.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-item img {
    width: 45%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-item .service-text {
    flex: 1;
}

.service-item h2 {
    font-size: 2rem;
    color: var(--brand-primary); /* Use brand orange for service titles */
    margin-top: 0;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

/* This creates a custom checkmark bullet point using the accent color */
.service-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
}

/* --- Mobile Responsiveness for Service Page --- */
@media (max-width: 768px) {
    .service-item, .service-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .service-item img {
        width: 100%;
        margin-bottom: 20px;
    }

    .service-item ul {
        text-align: left;
        display: inline-block; /* Helps center the list block */
    }
}

/* --- Styles for Portfolio Page --- */

.portfolio-section {
    padding: 60px 0;
}

.portfolio-layout {
    display: flex;
    gap: 40px;
}

/* Sidebar Styling */
.project-list {
    flex-basis: 30%; /* Sidebar takes up 30% of the width */
    max-width: 300px;
    border-right: 1px solid #e0e0e0;
    padding-right: 30px;
}

.project-list h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 0;
    border-bottom: 2px solid var(--brand-accent);
    padding-bottom: 10px;
}

.project-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-list li a:hover {
    background-color: var(--light-gray);
}

/* This style applies to the currently selected project link */
.project-list li a.active {
    background-color: var(--brand-primary);
    color: var(--white-color);
}

/* Main Content Area Styling */
.portfolio-content {
    flex: 1; /* Takes up the remaining space */
}

/* By default, all project blocks are hidden */
.project-content-block {
    display: none;
}

/* The 'active' block is made visible */
.project-content-block.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-info {
    line-height: 1.7;
}

/* --- Mobile Responsiveness for Portfolio --- */
@media (max-width: 900px) {
    .portfolio-layout {
        flex-direction: column;
    }

    .project-list {
        max-width: 100%;
        border-right: none;
        padding-right: 0;
        margin-bottom: 40px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
    }
}

/* --- Styles for Image Modal (Lightbox) --- */

/* Make gallery images clickable */
.gallery-image {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

/* Modal Content (the Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh; /* Max height is 80% of the viewport height */
}

/* Style the PDF iframe to match and hide it by default */
#modal-pdf {
    display: none; /* Hidden by default */
    width: 90%;
    height: 90vh;
    border: none;
}

/* The Close Button (X) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* --- Styles for About Page --- */

.about-content {
    padding: 60px 0;
}

.about-flex-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.about-text {
    flex: 2; /* Text takes up 2/3 of the space */
}

.about-image {
    flex: 1; /* Image takes up 1/3 of the space */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text h3 {
    margin-top: 30px;
    border-bottom: 2px solid var(--brand-accent);
    padding-bottom: 5px;
    display: inline-block;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.about-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
}


/* --- Styles for Contact Page --- */

.contact-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.contact-layout {
    display: flex;
    gap: 50px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.contact-form-container {
    flex: 3;
}

.contact-details-container {
    flex: 2;
    padding-left: 40px;
    border-left: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.contact-details-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details-list a {
    color: var(--brand-primary);
    text-decoration: none;
}

.contact-details-list a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden; /* This makes the map conform to the border-radius */
}

/* --- Final Mobile Responsive Tweaks --- */
@media (max-width: 900px) {
    .about-flex-container, .contact-layout {
        flex-direction: column;
    }
    .contact-details-container {
        padding-left: 0;
        border-left: none;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid #e0e0e0;
    }
}

/* --- Styles for Downloads Page --- */

/* Reusing portfolio styles for a consistent layout */
.downloads-section {
    padding: 60px 0;
}
.downloads-layout {
    display: flex;
    gap: 40px;
}
.download-list {
    flex-basis: 30%;
    max-width: 300px;
    border-right: 1px solid #e0e0e0;
    padding-right: 30px;
}
.download-list h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 0;
    border-bottom: 2px solid var(--brand-accent);
    padding-bottom: 10px;
}
.download-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.download-list li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.download-list li a:hover {
    background-color: var(--light-gray);
}
.download-list li a.active {
    background-color: var(--brand-primary);
    color: var(--white-color);
}
.downloads-content {
    flex: 1;
}
.download-content-block {
    display: none;
}
.download-content-block.active {
    display: block;
}

/* Specific styles for the download file list */
.file-list-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.file-list-container h4 {
    margin-top: 0;
    font-size: 1.2rem;
}
.downloadable-files {
    list-style: none;
    padding: 0;
}
.downloadable-files li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 10px;
}
.download-button {
    background-color: var(--brand-accent);
    color: var(--white-color);
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevents text from wrapping */
    transition: background-color 0.3s ease;
}
.download-button:hover {
    background-color: #b39d7b; /* A slightly darker version of the accent color */
}

/* --- Mobile Responsiveness for Downloads --- */
@media (max-width: 900px) {
    .downloads-layout {
        flex-direction: column;
    }
    .download-list {
        max-width: 100%;
        border-right: none;
        padding-right: 0;
        margin-bottom: 40px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
    }
}