/* 
 * BIUU Styles
 * Main stylesheet for BIUU website
 */

/* Font definitions */
@font-face {
    font-family: 'Andale Mono';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: local('Andale Mono'), url('andale_mono.woff') format('woff');
}

@font-face {
    font-family: 'Avenir Next Cyr';
    font-style: italic;
    font-weight: bold;
    font-display: swap;
    src: local('Avenir Next Cyr'), url('avenir_next_italic.woff') format('woff');
}

/* CSS Variables */
:root {
    --color-primary: #165dff;
    --color-secondary: #36cfc9;
    --color-accent: #722ed1;
    --color-dark: #1d2129;
    --color-light: #f2f3f5;
    --color-muted: #86909c;
}

/* Base styles */
body {
    font-family: "Andale Mono", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    background-color: #f2f3f5;
    color: #1d2129;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 768px) {
    nav {
        height: 3.5rem;
    }
}

.hidden {
    display: none;
}

/* Navigation link styles */
.nav-link-hover {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.25rem;
    color: #374151;
    transition: color 0.2s;
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.2s;
    color: #374151;
}

.nav-link-hover:hover::after {
    background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.5px);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    color: #374151;
}

.nav-link-hover:hover {
    color: #374151;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #374151;
    z-index: 9999;
    transform: translateX(-100%);
}

.loading-indicator.active {
    animation: loading 2s ease-in-out forwards;
}

#page-loader.loading-indicator {
    background-color: gray;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(-10%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Video container styles */
.video-container {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out;
}

.video-container.loaded {
    opacity: 1;
}

.video-container.menu-active {
    transform: translateY(150px);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.2),
            transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
}

.video-overlay:hover {
    opacity: 1;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
}

.logo-container img {
    height: 50%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-container {
        display: none;
    }
}

/* Utility classes */
.scale-hover {
    transition: transform 0.3s;
}

.scale-hover:hover {
    transform: scale(1.05);
}

.aspect-video {
    aspect-ratio: 16/9;
}

.menu-push {
    transition: transform 0.3s ease-in-out;
}

.writing-vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.content-auto {
    content-visibility: auto;
}

.dropdown-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Media queries */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:h-14 {
        height: 3.5rem;
    }

    .md\:text-base {
        font-size: 1rem;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile styles for footer */
@media (max-width: 767px) {
    footer {
        padding-top: 3rem !important;
        padding-bottom: 1rem !important;
    }
    
    footer .space-y-4 > li {
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    footer .space-y-4 {
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    footer a {
        font-size: 0.875rem !important;
    }
    
    footer .gap-10 {
        gap: 0.5rem !important;
    }
}