/* ========== BASE STYLES ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(245, 197, 24, 0.3);
    color: #f5f0f7;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(26, 12, 32, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #F5C518;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* ========== MOBILE MENU ========== */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #F5C518;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 80%;
}

/* ========== HERO ========== */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(91, 44, 111, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ========== DEPARTMENT CARDS ========== */
.dept-card {
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0), transparent);
    transition: all 0.5s ease;
}

.dept-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.6), transparent);
}

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.2);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b619b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0c20;
}

::-webkit-scrollbar-thumb {
    background: #5B2C6F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7d3f7d;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .font-serif.text-4xl {
        font-size: 2rem;
        line-height: 1.15;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif.text-6xl {
        font-size: 3.5rem;
    }
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid rgba(245, 197, 24, 0.6);
    outline-offset: 2px;
}

/* ========== PRINT ========== */
@media print {
    #navbar, #backToTop, #contactForm {
        display: none;
    }

    body {
        background: white;
        color: #1a1a1a;
    }

    .bg-plum-950, .bg-plum-900, .bg-plum-950\/60 {
        background: white !important;
        color: #1a1a1a !important;
    }
}
