/*
Theme Name: Herzen Theme
Theme URI: https://herzen.uz
Description: Custom theme for Herzen University Tashkent Branch
Author: Antigravity
Version: 1.0
Text Domain: herzen-theme
*/

/* Global Reset & Texture */
html {
    /* Firefox Scrollbar Support */
    scrollbar-width: thin;
    scrollbar-color: #003896 #F8F9FA;
}

body {
    background-color: #F8F9FA;
    color: #1F2937;
    position: relative;
    transition: filter 0.3s ease;
}

/* Accessibility Mode */
body.access-mode {
    filter: grayscale(100%) contrast(120%);
}

body.access-mode .noise-overlay {
    display: none;
}

/* Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 30; /* Below Header (50) and Menu (40) */
}

/* Custom Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
}

::-webkit-scrollbar-thumb {
    background: #003896;
    border-radius: 10px;
}

/* Hide Scrollbar for Sliders */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Custom Scrollbar for Program Lists */
.program-scroll::-webkit-scrollbar {
    width: 4px;
}
.program-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.program-scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
.program-scroll::-webkit-scrollbar-thumb:hover {
    background: #003896;
}


/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Active Nav State */
.nav-link.active {
    color: #C29D59 !important; /* Gold for active state on dark bg */
    font-weight: 700;
}

/* Dropdown Animation */
.dropdown-menu {
    transform-origin: top center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(74, 108, 155, 0.15);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #003896;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.loader-line {
    width: 0;
    height: 3px;
    background: #C29D59;
    animation: load 1.5s ease-in-out forwards;
}

@keyframes load {
    0% { width: 0; }
    100% { width: 200px; }
}

/* Horizontal Scroll Snap */
.snap-x-mandatory {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Tabs Animation */
.tab-content, .program-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}
.tab-content.active, .program-tab-content.active {
    display: block;
}
.tab-btn.active {
    background-color: #003896;
    color: white;
    border-color: #003896;
}
.program-tab-btn.active {
    background-color: #003896;
    color: white;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

p {
	margin-bottom:10px;
}
