/* main.css - imports all block-specific styles using BEM organization */
@import url("/css/blocks/hero.css");
@import url("/css/blocks/header.css");
@import url("/css/blocks/services.css");
@import url("/css/blocks/about.css");
@import url("/css/blocks/contact.css");
@import url("/css/blocks/faq.css");
@import url("/css/blocks/gallery.css");
@import url("/css/blocks/dashboard.css");
@import url("/css/blocks/footer.css");

/* global resets and utilities */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #111418;
    --color-surface: #1a1f26;
    --color-surface-2: #232a33;
    --color-header: #161b22;
    --color-footer: #0f1318;
    --color-text: #e7edf4;
    --color-text-muted: #c4cfdb;
    --color-border: #343d48;
    --color-accent: #6da9ff;
}

:root[data-theme="light"] {
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-surface-2: #eef2f7;
    --color-header: #e9eef6;
    --color-footer: #dde5f1;
    --color-text: #1e2937;
    --color-text-muted: #3f4d60;
    --color-border: #c6d1e0;
    --color-accent: #0057b8;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.video-section {
    width: 100vw;
    height: min(300px, 56.25vw);
    max-height: 300px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.video-section iframe,
.video-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    border: 0;
    transform: translate(-50%, -50%);
}

.video-section iframe {
    pointer-events: none;
}


@keyframes shine {
    0% { filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)) brightness(1); }
    50% { filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)) brightness(1.3); }
    100% { filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)) brightness(1); }
}
/* modal overlay for full-view playback */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.video-modal__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-modal iframe,
.video-modal video {
    width: min(1200px, 90vw);
    aspect-ratio: 16 / 9;
    max-height: 90vh;
    position: static;
    transform: none;
    border: 0;
}

.video-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.video-modal__close:hover {
    background: rgba(255,255,255,0.9);
}
/* Page-specific layouts */
.services-page,
.about-page,
.contact-page {
    flex: 1;
}

.services-page {
    background-color: var(--color-surface);
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    padding: 2rem 1rem 1rem;
    color: var(--color-text);
}

@media (min-width: 769px) {
    .gallery-page .page-title {
        padding-top: 16px;
    }

    body > .about {
        padding-top: 24px;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 92%;
    }

    .page-title {
        font-size: 2.1rem;
    }

    .video-section {
        height: min(300px, 62vw);
    }
}

@media (max-width: 768px) {
    .container {
        width: 94%;
    }

    .page-title {
        font-size: 1.8rem;
        padding: 1.4rem 0.75rem 0.75rem;
    }

    .gallery-page .page-title {
        padding-top: 12px;
    }

    .services-page .page-title {
        padding-top: 30px;
        padding-bottom: 0;
    }

    .video-section {
        height: min(300px, 56.25vw);
    }

    .video-section iframe,
    .video-section video {
        inset: 0;
        top: auto;
        left: auto;
        width: 100%;
        height: 100%;
        min-height: 0;
        transform: none;
        display: block;
    }

    .faq-section__title {
        font-size: 1.7rem;
        margin-bottom: 1.6rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 0.9rem;
    }
}
