/* --- Variables & Reset --- */
:root {
    /* Deep Navy Blue for Dark Mode */
    --bg-color: #050b15;
    --text-color: #e6f1ff;
    --accent-color: #8892b0;
    --border-color: #050b15;
    --fog-opacity: 0.3;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
    --bg-color: #f4f4f4;
    --text-color: #0a192f;
    --accent-color: #555;
    --border-color: #ccc;
    --fog-opacity: 0.15;
}

* { box-sizing: border-box; margin: 0; padding: 0; transition: background 0.3s ease, color 0.3s ease; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 100%;
    margin: 0;
}

/* --- Fog Animation --- */
.fog-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.fog-layer {
    position: absolute;
    width: 200%; height: 100%;
    /* Adjusted gradient to be subtle on navy */
    background: linear-gradient(90deg, transparent 0%, rgba(200,200,200,0.1) 50%, transparent 100%);
    opacity: var(--fog-opacity);
}

.fog-layer-1 { animation: fogMove 25s linear infinite; }
.fog-layer-2 { animation: fogMove 35s linear infinite reverse; top: 20%; }

@keyframes fogMove {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* --- Intro Overlay --- */
#intro-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    z-index: 100;
    transition: opacity 0.2s ease; /* Reduced to half (was 0.4s) */}

#intro-overlay h1 {
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.5rem;
    animation: fadeIn 0.5s ease forwards; /* Reduced to half (was 1s) */
}

.hidden { opacity: 0; pointer-events: none; }

/* --- Layout & Nav --- */
#app-container {
    opacity: 0;
    transition: opacity 0.25s ease; /* Reduced to half (was 0.5s) */
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

#app-container.visible { opacity: 1; }

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 2rem 0; /* Tighten the top padding */
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.logo { font-weight: 700; letter-spacing: 1px; }

nav button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    margin-left: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav button:hover, nav button.active { color: var(--text-color); }

/* --- Main Content (Tabs) --- */
main { flex-grow: 1; padding-top: 3rem; }

.page-section {
    display: none;
    animation: slideUp 0.4s ease;
}

.page-section.active-section { display: block; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 { font-weight: 300; font-size: 2.5rem; margin-bottom: 2rem; }
.lead { font-size: 1.2rem; margin-bottom: 1rem; color: var(--accent-color); }

/* --- Services Grid (Updated) --- */
.service-list { 
    list-style: none;
    display: grid;
    /* 4 items per row */
    grid-template-columns: repeat(4, 1fr); 
    gap: 1rem;
}

.service-list li {
    padding: 0;
    border: none;
}

/* Button/Label Styling */
.service-link {
    width: 100%;
    padding: 1.5rem 1rem;
    background: var(--text-color); /* Inverse of BG */
    color: var(--bg-color); /* Inverse of Text */
    border: 1px solid var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item { cursor: default; /* No pointer since lightbox is gone */ }
.gallery-item span { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--accent-color); }

.img-box {
    width: 100%; height: 200px;
    background-color: #222;
    background-image: url('https://source.unsplash.com/random/800x600?architecture,bw');
    background-size: cover;
    background-position: center;
    /* Removed Grayscale filter */
    border-radius: 4px;
}

.show { display: block !important; }

/* --- Contact Form --- */
.minimal-form { max-width: 500px; }
.form-group { margin-bottom: 1.5rem; }

label { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

input, select, textarea { /* Increased padding and font size for better usability */
    width: 100%;
    background: transparent; /* Removed border for a cleaner look */
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color); /* Kept text color for readability */
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 1rem;
}

/* Specific fix for dropdown options visibility */
select option {
    background-color: var(--bg-color); /* Matches theme background */
    color: var(--text-color); /* Matches theme text */
}

input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--text-color); } /* Increased hit area and added font weight for better visibility */

.btn-submit {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-weight: 700;
    margin-top: 1rem;
}

/* --- Privacy Policy Specific Styling --- */
.policy-text {
    max-width: 800px; /* Limits width for better readability */
    line-height: 1.8; /* Increases vertical space between lines */
    color: var(--accent-color);
    font-size: 1rem;
}

.policy-date {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.policy-group {
    margin-bottom: 3rem; /* Significant gap between sections */
}

.policy-text h3 {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.policy-text p {
    font-weight: 300; /* Ensures no bold content */
    margin-bottom: 1.5rem;
}

/* Ensure no bold tags survive in policy text */
.policy-text strong, 
.policy-text p {
    font-weight: 300 !important;
}

/* --- Footer (Updated) --- */
footer {
    margin-top: auto;
    padding: 4rem 0 2rem 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Increased gap between nav and copyright - was 2.5rem */
    align-items: center;
    text-align: center;
}

.footer-center {
    display: flex;
    gap: 15px; /* Increased gap between nav links - was 2rem */
    justify-content: center;
    flex-wrap: wrap;
    color: var(--accent-color); /* Same color as nav */
}

.footer-center:last-child {
    opacity: 0.6; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px;
    gap: 0.4rem; /* Tightens the space around the copyright symbol and year */
}

.nav-link-footer {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem; /* Increase hit area */
    transition: color 0.3s ease;
}

.nav-link-footer:hover {
    color: var(--text-color);
}

.footer-copy {
    color: var(--accent-color);
    font-size: 0.8rem;
    opacity: 0.8;
}

.sub-copy {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    opacity: 0.5;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    header { flex-direction: column; align-items: flex-start; }
    nav { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 10px; }
    nav button { margin-left: 0; margin-right: 15px; }
    
    /* Responsive Grid for Services */
    .service-list {
        grid-template-columns: repeat(2, 1fr); /* 2x4 on tablet */
    }
}

@media (max-width: 480px) {
    .service-list {
        grid-template-columns: 1fr; /* Stack on small mobile */
    }
    .footer-nav a {
        display: block;
        margin: 0.7rem 0;
    }
}