/* --- GLOBAL STYLES & RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f6fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER --- */
header {
    background: linear-gradient(135deg, #111, #222);
    color: #fff;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
}

header p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #f1c40f;
}

/* --- NAVIGATION --- */
nav {
    margin-left: 20px;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #f1c40f;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
    transition: color 0.3s ease, background 0.3s ease;
    white-space: nowrap;
    padding: 5px;
    border-radius: 4px;
}

/* CORRECTED: Increased background opacity for visibility */
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(241, 196, 15, 0.25); /* Was 0.1, now 0.25 for a clear highlight */
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #f1c40f;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f1c40f;
    transition: all 0.2s ease-in-out;
}
.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { top: 8px; }

/* --- GENERAL SECTIONS & TYPOGRAPHY --- */
section { padding: 70px 20px; max-width: 1200px; margin: auto; }
h2 { text-align: center; margin-bottom: 30px; font-size: 2rem; color: #111; position: relative; }
h2::after { content: ''; width: 60px; height: 4px; background: #f1c40f; display: block; margin: 10px auto 0; border-radius: 5px; }
.about { text-align: center; font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; }

/* --- WORK & SERVICES SECTION --- */
.work-section { background: #fff; margin-bottom: 40px; padding: 30px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.work-section h3 { font-size: 1.6rem; margin-bottom: 15px; color: #111; }
.work-section p { font-size: 1.05rem; color: #444; margin-bottom: 10px; }
.work-types { margin-top: 15px; }
.work-types li { margin: 20px 0; list-style: disc; margin-left: 20px; color: #555; }

/* --- GALLERY STYLES --- */
.filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; margin-bottom: 40px; }
.filter-button { background: #111; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; font-size: 0.95rem; }
.filter-button:hover { background: #f1c40f; color: #111; }
.filter-button.active { background: #f1c40f; color: #111; font-weight: 600; }
.gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.gallery-item { overflow: hidden; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); cursor: pointer; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; display: block; background: #fff; }
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: auto; max-height: 350px; object-fit: cover; transition: transform 0.4s ease; background: #f5f6fa; border-radius: 10px 10px 0 0; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.gallery-item:hover img { transform: scale(1.05); }
.item-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(17, 17, 17, 0.9); color: #fff; padding: 12px 15px; font-size: 0.9rem; text-align: left; transform: translateY(100%); transition: transform 0.4s ease; }
.gallery-item:hover .item-info { transform: translateY(0); }
.item-info strong { color: #f1c40f; display: block; margin-bottom: 4px; font-weight: 600; }

/* --- FORM STYLES --- */
.form-container { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
form { display: grid; gap: 15px; }
label { font-weight: 600; }
input, select, textarea { padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; transition: border 0.3s ease; width: 100%; font-family: 'Poppins', sans-serif; }
input:focus, select:focus, textarea:focus { border-color: #f1c40f; outline: none; }
button[type="submit"] { background: #111; color: #fff; padding: 14px; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; font-weight: 600; }
button[type="submit"]:hover { background: #f1c40f; color: #111; transform: translateY(-2px); }

/* --- REVIEWS SECTION --- */
.reviews { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); margin-top: 20px; }
.review { border-bottom: 1px solid #eee; padding: 15px 0; }
.review:last-child { border-bottom: none; }
.review strong { color: #111; }
.stars { color: #f1c40f; font-size: 1.2rem; display: inline-block; margin-left: 10px; }

/* --- CLIENTS & CERTIFICATES --- */
.clients, .certificates { display: grid; gap: 20px; justify-items: center; align-items: center; }
.clients { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.certificates { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.clients img, .certificates img { cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 10px; }
.clients img:hover, .certificates img:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.clients img { width: 100%; max-width: 150px; object-fit: contain; }
.certificates img { max-width: 250px; }

/* --- CONTACT INFO --- */
.contact-info { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); max-width: 800px; margin: auto; }
.contact-info p { margin: 12px 0; font-size: 1.05rem; color: #444; }
.contact-info a { color: #f1c40f; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* --- FOOTER --- */
footer { background: #111; color: #fff; padding: 40px 20px; text-align: center; }
footer p { margin: 10px 0; }
footer .sitemap { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; }
footer a { color: #f1c40f; text-decoration: none; font-size: 0.95rem; margin: 0 10px; }
footer a:hover { text-decoration: underline; }

/* --- UTILITY & MODAL STYLES --- */
#scrollTopBtn { position: fixed; bottom: 30px; right: 30px; z-index: 999; background: #111; color: #f1c40f; border: none; padding: 12px 16px; border-radius: 50%; cursor: pointer; font-size: 18px; display: none; transition: 0.3s; }
#scrollTopBtn:hover { background: #f1c40f; color: #111; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); align-items: center; justify-content: center; }
.modal-content { background: #fff; padding: 30px; border-radius: 12px; text-align: center; max-width: 90%; width: 400px; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.modal-content h3 { color: green; margin-bottom: 15px; font-weight: 600; }
.close-btn { margin-top: 10px; padding: 10px 18px; background: #111; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.close-btn:hover { background: #f1c40f; color: #111; }
#imageModal { background-color: rgba(0,0,0,0.9); }
#imageModal .modal-content { background: none; padding: 0; max-width: 95%; width: auto; height: auto; box-shadow: none; }
#modalImage { max-width: 100%; max-height: 90vh; display: block; border-radius: 10px; }
.close-img-btn { position: absolute; top: 15px; right: 25px; color: #f1c40f; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 1001; }
.close-img-btn:hover, .close-img-btn:focus { color: #fff; text-decoration: none; }

/* --- RESPONSIVENESS MEDIA QUERIES --- */
@media (max-width: 992px) {
    header h1 { font-size: 1.5rem; }
    header p { display: none; }
    section { padding: 50px 15px; }
    .form-container, .contact-info { padding: 30px; }
}

@media (max-width: 768px) {
    .header-title-container { flex-shrink: 1; min-width: 0; }
    header h1 { font-size: 1.1rem; white-space: normal; line-height: 1.3; }
    
    .nav-toggle { display: block; z-index: 1001; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #222;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    .nav-links.is-active { display: flex; }
    /* This mobile-specific rule is already strong and visible, no changes needed here */
    .nav-links a.active, .nav-links a:hover { background: #f1c40f; color: #111; }
    .nav-links a { padding: 15px 20px; width: 100%; text-align: center; border-radius: 0; margin: 0; }
    
    .nav-toggle.is-active .nav-toggle-icon { background: transparent; }
    .nav-toggle.is-active .nav-toggle-icon::before { transform: rotate(45deg) translate(5px, 6px); }
    .nav-toggle.is-active .nav-toggle-icon::after { transform: rotate(-45deg) translate(5px, -6px); }

    .gallery-container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
}

@media (max-width: 480px) {
    h2 { font-size: 1.6rem; }
    .about, .work-section p { font-size: 1rem; }
    section { padding: 40px 10px; }
    .work-section { padding: 20px; }

    .filter-button { flex: 1 1 120px; text-align: center; padding: 10px 5px; font-size: 0.9rem; }
    .gallery-item img { height: 220px; max-height: none; }
    input, select, textarea, button[type="submit"] { font-size: 0.95rem; padding: 12px; }
    .clients { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 15px; }
    .certificates { grid-template-columns: 1fr; gap: 15px; }
    .close-img-btn { top: 10px; right: 15px; font-size: 35px; }
}