/* ====== Material Icons Setup ====== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ====== Scroll Reveal Animations ====== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Staggered Delays ====== */
.stagger-1 {
    transition-delay: 0.1s;
}
.stagger-2 {
    transition-delay: 0.2s;
}
.stagger-3 {
    transition-delay: 0.3s;
}
.stagger-4 {
    transition-delay: 0.4s;
}

/* ====== Navigation Glass Effect ====== */
.nav-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ====== Navigation Link Animations ====== */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: scale(1.05);
}

.nav-link.active {
    background: #001e40;
    color: #ffffff;
    border-radius: 9999px;
}

.nav-link.active:hover {
    transform: scale(1.05);
}

.nav-underline {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #001e40;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-underline {
    width: 16px;
}

.nav-link.active .nav-underline {
    display: none;
}

/* ====== Logo Animation ====== */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-seal {
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-seal:hover {
    animation: none;
    transform: scale(1.15) rotate(-5deg);
}

/* ====== Navbar Entrance Animation ====== */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

#main-header {
    animation: navSlideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ====== DEPARTMENT CARD ANIMATIONS ====== */
.dept-card {
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: #735c00;
}

/* Department Image Zoom */
.dept-image {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.dept-card:hover .dept-image {
    transform: scale(1.1);
}

/* Department Tags */
.dept-tag {
    transition: all 0.3s ease;
}

.dept-card:hover .dept-tag {
    background: #001e40;
    color: #ffffff;
}

/* Department Button */
.dept-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dept-btn:hover {
    background: #735c00;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.dept-btn:active {
    transform: scale(0.95);
}

/* Department Icon Box */
.dept-card .absolute {
    transition: all 0.3s ease;
}

.dept-card:hover .absolute {
    transform: scale(1.1) rotate(-5deg);
}

/* ====== NEWS CARD ANIMATIONS ====== */
.news-card {
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.news-card .news-tag {
    transition: all 0.3s ease;
}

.news-card:hover .news-tag {
    background: #001e40;
    color: #ffffff;
}

.news-card .news-link {
    position: relative;
}

.news-card .news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #735c00;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-link::after {
    width: 100%;
}

/* ====== FLOATING PILL NAVIGATION ====== */
.floating-pill-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.floating-pill-nav a {
    transition: all 0.3s ease;
}

.floating-pill-nav a:hover {
    transform: scale(1.1);
}

.floating-pill-nav a:hover span {
    opacity: 1 !important;
}

.floating-pill-nav a.active-pill {
    background: #001e40;
    color: #ffffff;
}

/* ====== BENTO GRID ====== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* ====== LINE CLAMP ====== */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== HERO PARALLAX ====== */
.hero-parallax {
    will-change: transform;
}

/* ====== SECTION GAP ====== */
.mt-section-gap {
    margin-top: 80px;
}

.mb-section-gap {
    margin-bottom: 80px;
}

/* ====== FASHION DESIGN PAGE SPECIFIC STYLES ====== */

/* Staggered Entrance Animation */
.stagger-in > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-in.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Image Zoom Effect */
.image-zoom:hover img {
    transform: scale(1.05);
}

/* Active Pill Navigation */
.active-pill {
    background-color: #001e40;
    color: white;
}

/* Mission Section Cards */
.mission-card {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Atelier Feature Cards */
.atelier-card {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.atelier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.atelier-card .atelier-image {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.atelier-card:hover .atelier-image {
    transform: scale(1.1);
}

.atelier-card .atelier-overlay {
    transition: all 0.4s ease;
}

.atelier-card:hover .atelier-overlay {
    opacity: 1;
}

/* Runway Section */
.runway-featured {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.runway-featured:hover {
    transform: scale(1.02);
}

.runway-featured .runway-image {
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.runway-featured:hover .runway-image {
    transform: scale(1.05);
}

/* Stats Section */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.03);
}

.stat-item .stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: #ffe088;
}

/* CTA Form */
.cta-input {
    transition: all 0.3s ease;
}

.cta-input:focus {
    border-color: #001e40;
    outline: none;
}

/* Button Animations */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    transition: all 0.3s ease;
}

.btn-outline:hover {
    transform: scale(1.05);
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 768px) {
    .px-margin-desktop {
        padding-left: 20px;
        padding-right: 20px;
    }

    .py-section-gap {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .mt-section-gap {
        margin-top: 48px;
    }
    
    .mb-section-gap {
        margin-bottom: 48px;
    }

    /* Mobile Nav Adjustments */
    header .nav-glass {
        padding: 8px;
    }

    header nav a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }

    header nav a .material-symbols-outlined {
        font-size: 16px;
    }

    header nav a span {
        font-size: 12px;
    }

    header nav a .nav-underline {
        display: none;
    }

    /* Card adjustments */
    .dept-card {
        border-radius: 16px;
    }

    .dept-card .absolute {
        width: 48px;
        height: 48px;
    }

    .dept-card .absolute .material-symbols-outlined {
        font-size: 24px;
    }

    .news-card {
        border-radius: 16px;
    }

    /* Main content padding for mobile */
    main {
        padding-top: 100px;
    }

    /* Floating pill nav on mobile */
    .floating-pill-nav {
        padding: 8px 16px;
        gap: 12px;
        bottom: 1rem;
    }

    .floating-pill-nav a span {
        font-size: 16px;
    }

    .floating-pill-nav a .text-\[9px\] {
        font-size: 7px;
    }

    .floating-pill-nav .w-\[1px\] {
        height: 20px;
    }

    /* Fashion page specific */
    #hero .lg\\:col-span-6 {
        margin-top: 2rem;
    }

    .mission-card {
        padding: 1.5rem;
    }
}

/* Desktop main content padding */
@media (min-width: 769px) {
    main {
        padding-top: 110px;
    }
}

/* ====== SCROLLBAR STYLING ====== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #001e40;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #735c00;
}

/* ====== SELECTION COLOR ====== */
::selection {
    background: #ffe088;
    color: #001e40;
}

/* ====== FOCUS RING ====== */
*:focus-visible {
    outline: 2px solid #001e40;
    outline-offset: 2px;
}

/* ====== SMOOTH SCROLL BEHAVIOR ====== */
html {
    scroll-behavior: smooth;
}