/* --- Core Styling & Variables --- */
:root {
    --accent: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --card-bg: rgba(20, 20, 20, 0.8);
    --radius: 12px; /* The "Pretty Corners" */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: white;
    background-color: #4d4d4d;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Background Video & Overlay --- */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

#background-div {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: -1;
}

/* --- Navigation (Sticky & Responsive) --- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 5px 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

nav a:hover {
    color: #aaa;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* --- Hero Section --- */
#welcome {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.spacer{
    height: 10vh;
}

/* --- Typewriter Animation --- */
.typewriter {
    overflow: hidden;
    border-right: .15em solid white;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(80, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing { from { max-width: 0% } to { max-width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: white; } }

/* --- Content Sections --- */
.section {
    padding: 80px 10%;
    width: 100%;
}

.blackout {
    background-color: black;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sub-heading {
    font-size: 2rem;
    margin-bottom: 30px;
    border-left: 4px solid #fff;
    padding-left: 15px;
}

.quote {
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    max-width: 800px;
    text-align: center;
}

/* --- Services (Pretty Corners & Hover) --- */
.medium-buttons-div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.medium-button-a {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 30px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.medium-button-a:hover {
    transform: translateY(-10px);
    background: rgba(40, 40, 40, 0.9);
    border-color: #fff;
}

.medium-button-img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Keeps icons white/clean */
}

/* --- Footer (Flexbox Fix) --- */
footer {
    background: #000;
    padding: 50px 10%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    border-top: 1px solid #333;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-map {
    flex: 1;
    min-width: 300px;
    height: 350px;
}
/* Gallery Styles */
#gallery-div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* The Grid System */
.gallery-grid {
    display: grid;
    /* Adjust '250px' to make images larger or smaller */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Individual Item Styling */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the area without stretching */
    display: block;
    aspect-ratio: 4 / 3; /* Keeps gallery uniform even if original images vary */
}

footer iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    filter: grayscale(1) contrast(1.2) invert(0.9); /* Industrial map look */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .section { padding: 50px 5%; }
    
    footer {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .footer-info div {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .typewriter {
        white-space: normal; /* Wrap text on small phones */
        border-right: none;
        animation: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        gap: 15px;
    }
}