/* --- CSS VARIABLES FOR THEMEING --- */
:root {
    /* Colors derived from the new logo */
    --primary-color: #005696;
    /* Brand Blue */
    --secondary-color: #f37021;
    /* Brand Orange */
    --accent-color: #fff200;
    /* Brand Yellow */
    --spray-color: #00aeef;
    /* Spray Light Blue */
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --font-stack: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- GLOBAL STYLES --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: var(--spray-color);
    border: 2px solid var(--spray-color);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 86, 150, 0.4);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--bg-white);
}

/* --- NAVIGATION --- */
header {
    background-color: var(--bg-white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    /* Slightly smaller to fit with text */
    width: auto;
    display: block;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 80vh;
    /* Fixed height for better video framing */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--bg-white);
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    cursor: pointer;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 150, 0.4);
    /* Brand Blue with alpha */
    background: linear-gradient(135deg, rgba(0, 86, 150, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.slogan {
    color: var(--bg-white);
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin: 0 auto 1.5rem auto;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p:not(.slogan) {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mute-hint {
    margin-top: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    transition: opacity 0.5s ease;
}

.mute-hint.fade-out {
    opacity: 0.3;
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background-color: #000;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 86, 150, 0.5);
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- SERVICES SECTION --- */
.services {
    padding: 5rem 5%;
    background-color: var(--bg-white);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

/* --- ABOUT SECTION --- */
.about {
    padding: 5rem 5%;
    background-color: var(--bg-white);
}

.about .container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-main);
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p strong {
    color: var(--primary-color);
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- CLIENTS SECTION --- */
.clients {
    padding: 5rem 5%;
    background-color: var(--bg-light);
    text-align: center;
}

.clients h2 {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.05);
}

.logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    border-radius: 4px;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #fff;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 51, 102, 0.9));
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* --- WHY US SECTION --- */
.why-us {
    padding: 5rem 5%;
    background-color: var(--bg-white);
}

.why-us ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.why-us li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.why-us li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 5rem 5%;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.contact h2 {
    color: var(--bg-white);
}

.contact-info {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 1rem;
    border-top: 5px solid var(--accent-color);
}

.developer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.developer-credit a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1.5rem;
    }

    .logo a {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
        padding: 0;
    }

    nav a {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 2rem;
    }

    .hero-content p:not(.slogan) {
        font-size: 1.2rem;
    }

    .company-name {
        font-size: 1.2rem;
    }
}

.card.residential-card {
    border-top: 4px solid var(--accent-color);
}