/***** GLOBAL STYLING ******/

/* --- HEADER WITH BUTTONS --- */
header {
    position: sticky;
    /* or "fixed" if you want it always visible */
    top: 0;
    z-index: 1000;
    /* keeps it above images */
    background: #222;
    color: #E9D8A6;
    padding: 15px;
    display: flex;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

/* --- HEADER BUTTONS --- */
.nav-buttons a {
    color: #E9D8A6;
    text-decoration: none;
    margin-right: 10px;
    margin-left: 10px;
    font-weight: bold;
    align-content: center;
}

/* --- GLOBAL BODY SETTINGS --- */
body {
    background-color: #001e26;
    color: #E9D8A6;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* --- GLOBAL FONT SETTINGS --- */
hr {
    height: 2px;
    background-color: #daa65c;
    border: none;
}

h1 {
    font-size: 32px;
}

h3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

p {
    font-size: 18px;
    margin: 10px 0;
}

/***** STYLING FOR THE HOME PAGE ******/
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo img {
    max-height: 400px;
    border-style: groove;
    border-color: #daa65c;
    border-width: 20px;
    border-radius: double 10px;
}

/***** STYLING FOR MAIN CONTENT SECTION ******/
.services {
    color: #fff7df;
    background-color: #000000;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.services h2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services ul {
    font-size: 18px;
    display: inline-block;
    text-align: left;
    line-height: 1.6;
}

.services p {
    text-align: left;
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 0px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.services-list-items {
    flex: 1;
    min-width: 200px;
}

/***** STYLING FOR CONTACT US SECTION ******/
.contact-container {
    background-color: #111;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px #517667;
}

.contact-container h1 {
    font-size: 28px;
    color: #daa65c;
}

.contact-container a {
    color: #94D2BD;
    text-decoration: none;
    font-size: 18px;
}

.contact-container a:hover {
    color: #EE9B00;
    text-decoration: underline;
}

.contact-container p {
    color: #E9D8A6;
    font-size: 18px;
}

.email {
    margin-top: 20px;
}

.email p {
    color: #E9D8A6;
    text-decoration: none;
    font-weight: bold;
}

.email a {
    color: #39ff14;
    text-decoration: none;
    font-weight: bold;
}

.email a:hover {
    text-decoration: underline;
}

/***** STYLING FOR THE PORTFOLIO PAGE ******/
/* --- GRID LAYOUT FOR IMAGES --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* --- IMAGE CONTAINER --- */
.item {
    background: #daa65c;
    border-radius: 6px;
    overflow: hidden;
    color: #001e26;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 10px;
    box-shadow: 0 0 15px #517667;
}

/* --- IMAGES AUTO‑RESIZE WHILE KEEPING QUALITY --- */
.item img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- LIGHTBOX OVERLAY --- */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9);
}

/* --- LIGHTBOX IMAGE --- */
.lightbox-img {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
}

/* --- CAPTION TEXT --- */
.lightbox-caption {
    margin: 15px auto;
    text-align: center;
    color: #E9D8A6;
    font-size: 1rem;
    max-width: 80%;
}

/* --- CLOSE BUTTON --- */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #E9D8A6;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .nav-buttons {
        align-items: center;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p,
    .contact,
    .services,
    .contact-container {
        font-size: 14px;
    }

    .contact-container.a {
        font-size: 12px;
    }

    .logo img {
        max-width: 300px;
    }

    .item {
    border-radius: 3px;
    color: #001e26;
    font-weight: bold;
    font-size: 14px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 5px;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 22px;
    }

    p,
    .contact,
    .social,
    .services,
    .contact-container {
        font-size: 18px;
    }

    .logo img {
        max-width: 400px;
    }
}
