/* --- Global Variables --- */
:root {
    --bg-overlay: rgba(15, 20, 28, 0.85);
    --card-bg: rgba(25, 30, 40, 0.9);
    --accent-color: #FF6B00;
    --accent-hover: #FFB020;
    --text-color: #E2E8F0;
    --text-dark: #94A3B8;
    --heading-color: #FFFFFF;

    --font-family: 'Helvetica', 'Arial', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    background-color: transparent;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
}

/* Fixed background image via pseudo-element prevents mobile scroll/zoom artifacts */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0b0e14 url('../img/background.png') no-repeat center center;
    background-size: cover;
    z-index: -10;
}

/* --- Layout Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography & Links --- */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3 {
    line-height: 1;
    margin-bottom: 20px;
    color: var(--heading-color);
}

/* Visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

h1 { font-size: 3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; text-transform: uppercase; }
h3 { font-size: 1.5rem; color: var(--accent-color); }

/* --- Section Formatting --- */
.content-section {
    padding: 60px 0;
    scroll-margin-top: 70px;
}

.section-box {
    background-color: var(--bg-overlay);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(11, 14, 20, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    flex-wrap: wrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-color);
}

.nav-logo img {
    height: 42px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: var(--border-radius);
}

nav ul li a:hover, nav ul li a.active {
    color: #111;
    background-color: var(--accent-color);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    padding: 20px;
}

.hero-background-logo {
    max-width: 90%;
    width: 1700px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* --- Buttons --- */
.cta-button {
    background-color: var(--accent-color);
    color: #111;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--accent-hover);
    box-shadow: 0 8px 20px rgba(255, 176, 32, 0.4);
}

/* --- About Section --- */
#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-left-color: var(--accent-hover);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.4);
}

/* --- Lightbox --- */
.lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background 0.2s, color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    color: #111;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info, .contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-detail {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--accent-color);
    margin-right: 8px;
}

/* Form Styling */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid #444;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-group-checkbox input { margin-right: 10px; }

.form-group-checkbox label {
    font-size: 0.9rem;
    color: var(--text-dark);
}

#form-status {
    margin-top: 15px;
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background-color: rgba(11, 14, 20, 0.95);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-socials a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    color: #111;
    transform: translateY(-4px);
}

.footer-text p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 5px 0;
}

.creator {
    font-size: 0.8rem !important;
    opacity: 0.7;
}

.creator a {
    color: var(--text-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.creator a:hover {
    color: var(--accent-color);
}

/* --- GDPR Modal --- */
.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 20px;
    padding: 40px;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius);
    max-width: 600px;
    position: relative;
    color: var(--text-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--heading-color);
}

.close-modal {
    color: var(--text-dark);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--accent-color);
    color: #111;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    #hero {
        padding-top: 90px;
    }

    .hero-background-logo {
        width: 95%;
        max-width: 500px;
        height: auto !important;
        display: block;
        margin: 0 auto 20px auto;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }

    header .container {
        height: auto;
        padding: 8px 15px;
        gap: 8px;
    }

    .nav-logo img {
        height: 34px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    nav ul li {
        margin: 4px;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}
