/* Showreel Theme Custom Styles */

html { scroll-behavior: smooth; }

body { margin: 0; background: #000; color: white; overflow-x: hidden; }

/* --- ЕДИНАЯ АДАПТИВНАЯ ТИПОГРАФИКА --- */

/* Главный заголовок на первом экране */
/* #showreel h1 {
    font-size: clamp(3rem, 9vw, 12rem) !important;
    line-height: 0.9;
    margin-bottom: 2vw;
} */

/* Заголовки разделов (About, Contact) */
.section-title {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(2.5rem, 7vw, 10rem) !important;
    line-height: 1;
    margin-bottom: 1.5vw;
}

/* Основной текст */
.section-text, .section-text p {
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    font-size: clamp(1.0rem, 1.1vw, 1.4rem) !important;
}


/* Фалбэк для текста в Showreel */
/* #showreel p {
    font-size: clamp(1.2rem, 1.5vw, 2.2rem) !important;
    line-height: 1.5;
    max-width: 60vw;
    margin: 0 auto;
} */

@media (max-aspect-ratio: 1.1/1) {
    .section-text {
        max-width: 85vw;
    }
    #showreel p {
        max-width: 90vw;
    }
}

/* Typography */
.font-bebas { font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; }
.font-roboto { font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; }


/* --- RESPONSIVE TYPOGRAPHY & LAYOUT --- */

/* Desktop / Landscape (> 1.1 aspect ratio) */
@media (min-aspect-ratio: 1.1/1) {
    #showreel .prose h1 { 
        font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; 
        font-size: 7rem; 
        line-height: 0.9; 
        margin-bottom: 2rem;
        text-transform: uppercase;
        background: linear-gradient(to bottom, #ffffff 70%, #dddddd 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 15px 20px rgba(0,0,0,0.6));
    }
    #showreel .prose p { 
        font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; 
        font-weight: 300; 
        font-size: 1.3rem; 
        line-height: 1.0 !important;
        opacity: 0.9;
        max-width: 750px;
        margin: 0 auto;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    }


    #about h2 { font-size: 8rem; }

    #about .prose p { line-height: 1.1;}

    #contacts h2 {
        font-size: 8rem;
    }
    
    /* Layout: Две колонки */
    .about-section-layout {
        flex-direction: row;
        justify-content: flex-end; /* Текст справа */
    }
    .about-text-container {
        width: 40%; /* Текст занимает 40% справа */
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }
}

/* Mobile / Portrait / Square (<= 1.1 aspect ratio) */
@media (max-aspect-ratio: 1.1/1) {
    #showreel .prose h1 { 
        font-size: 5rem; 
        line-height: 1; 
        margin-bottom: 1.2rem;
        background: linear-gradient(to bottom, #ffffff 60%, #cccccc 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    }
    #showreel .prose p { 
        font-size: 1rem; 
        line-height: 1.0;
        max-width: 100%;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    }

    #about h2 {
        font-size: 5rem; /* Smaller heading on mobile */
    }
    #about .prose p {
        font-size: 0.8rem;
        line-height: 1.0;
    }
    #contacts .prose p {
        font-size: 1.2rem;
        line-height: 1.0;
    }
    #contacts h2 {
        font-size: 5rem;
    }
    
    /* Layout: Одна колонка (стек) */
    .about-section-layout {
        flex-direction: column;
        justify-content: center;
    }
    .about-text-container {
        width: 100%;
        max-width: 600px; /* Чтобы не растягивался на планшетах */
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        padding: 1rem;
        border-radius: 1.5rem;
    }
}


/* Custom Utilities */
.text-accent { color: var(--accent-color); }
.bg-accent { background-color: var(--accent-color); }
.fill-accent { fill: var(--accent-color); }
.fill-white { fill: white; }
.hover\:fill-white:hover { fill: white; }

/* Menu Underline Animation */
.menu-link { position: relative; }
.menu-link::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 1px;
    background-color: var(--accent-color); transition: width 0.3s ease, left 0.3s ease;
}
.menu-link:hover::after { width: 100%; left: 0; }
.menu-link.active { color: white; }

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 999px; 
    padding: 0.75rem 1.5rem;
}

/* Settings Panel Transition */
.settings-panel-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    #settings-panel-wrapper {
        transform: scale(0.65);
        transform-origin: bottom left;
    }
}

/* Loader Bar Styles */
#loader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 8px auto;
    position: relative;
    overflow: hidden;
}

#loader-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.3s ease;
}

.loader-text-small {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
}


#cancel-load-btn {
    font-size: 9px;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

#cancel-load-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}


/* Social Media Panel */
.social-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 44px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 999px !important;
    padding: 1rem 0.5rem;
}

.social-icon-img {
    width: calc(var(--base-size) * 1.2);
    height: calc(var(--base-size) * 1.2);
}

@media (orientation: landscape) {
    .social-icon-img {
        width: var(--base-size);
        height: var(--base-size);
    }
    .social-panel {
        min-width: 44px;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-panel:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Interactive Button */
.interactive-btn {
    background: linear-gradient(to top, #0099CC, var(--accent-color));
    position: relative;
    overflow: hidden;
    transition: all 0.1s ease;
    /* Emboss эффект (нижняя кромка) - уменьшено смещение */
    box-shadow: 0px 4px 0px #007ea8, 0 10px 20px rgba(0,0,0,0.3);
    border-radius: 25px;
}
.interactive-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px #007ea8, 0 15px 25px rgba(0,0,0,0.4);
}
.interactive-btn:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px #007ea8, 0 5px 10px rgba(0,0,0,0.4);
}
.interactive-btn::before {
    content: '';
    position: absolute;
    top: var(--y, 50%); left: var(--x, 50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: overlay;
}
.interactive-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 80%;
    height: 40%;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.7;
    mix-blend-mode: overlay;
}
/* Текст кнопки с градиентом */
.btn-text {
    background: linear-gradient(to bottom, #4a5568, #1a202c); /* Gray-700 to Gray-900 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback color */
    color: #1a202c; 
}

/* Static Background */
#static-bg {
position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
background-size: cover; background-position: center;
filter: brightness(0.4); 
transition: opacity 1s ease;
}


/* Dim Overlay */
/* По дефолту затемнено. Класс .active убирает затемнение (включает свет) */
#dim-overlay { opacity: 1; transition: opacity 0.5s ease; }
#dim-overlay.active { opacity: 0; }

/* YouTube Modal */
#video-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#video-modal.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#video-modal.visible { opacity: 1; visibility: visible; pointer-events: auto; }

/* Loader */
#loader-ui { pointer-events: auto; }


/* PNG Icons Hover & Active Effect */
.icon-img {
    transition: filter 0.3s ease;
    filter: none; /* Исходный цвет */
}
button:hover .icon-img,
button.active .icon-img {
    filter: brightness(0) invert(1); /* Белый */
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}