@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Cosplay Culture';
    src: url('../fonts/Cosplay Culture.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cosmic Culture';
    src: url('../fonts/CosmicCulture.woff2') format('woff2'),
         url('../fonts/CosmicCulture.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

/* Apply Cosplay Culture font to all headers */
h1,h2, h3{
    font-family: 'Cosplay Culture', 'Cosmic Culture', 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}

/* Apply slide-in-left animation to all h1 elements */
h1 {
    animation: slide-in-left 1s ease-out forwards;
}

/* Apply slide-in-left animation with delay to all h2 elements (subtitles) */
h2 {
    animation: slide-in-left 1s ease-out 0.2s forwards;
    opacity: 0;
}

/* Apply animation to header images that don't already have animation classes */
header img:not([class*="animate-"]) {
    animation: slide-in-right 1s ease-out 0.3s forwards;
    opacity: 0;
}

.invert-n {
    display: inline-block;
    transform: scaleX(-1);
}

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Animation classes */
@keyframes slide-in-left {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes custom-bounce {
    0%, 100% {
        transform: translateY(-8%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-slide-in-left {
    animation: slide-in-left 1s ease-out forwards;
}

.animate-slide-in-left-delay-300 {
    animation: slide-in-left 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-slide-in-left-delay-600 {
    animation: slide-in-left 1s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-slide-in-left-delay-900 {
    animation: slide-in-left 1s ease-out 0.9s forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slide-in-right 1s ease-out 1.2s forwards;
    opacity: 0;
}

.animate-bounce-5s {
    animation: custom-bounce 5s infinite;
}

/* Scroll-triggered animation classes */
.animate-on-scroll-left {
    animation: slide-in-left 2.25s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateX(-50px);
}

.animate-on-scroll-right {
    animation: slide-in-right 2.25s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateX(50px);
}

/* Active page indicator styles */
.active-nav-item {
    position: relative;
    font-weight: bold;
    color: #EC5E3E !important;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(236, 94, 62, 0.2);
}

/* Enhanced social media icons for all screen sizes */
.social-icons-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fade-in 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icons-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.social-icons-title:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(236, 94, 62, 0.7);
    border-radius: 2px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 5px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-icons:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: scale(1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: rgba(236, 94, 62, 0.2);
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(236, 94, 62, 0.3);
    animation: pulse 1.5s infinite;
    border-color: rgba(236, 94, 62, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 94, 62, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(236, 94, 62, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 94, 62, 0);
    }
}

.social-icons svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.social-icons a:hover svg {
    color: #EC5E3E;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(236, 94, 62, 0.3));
}

.active-page-indicator {
    width: 45px;
    height: 30px;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .active-page-indicator {
        width: 25px;
        height: 25px;
    }

    .active-nav-item {
        padding: 0.3rem 0.6rem;
    }

    /* Hide logo, title, and contact info in mobile menu */
    #mobile-menu .flex.items-center.justify-center.mb-6 {
        display: none;
    }

    #mobile-menu .mt-8.pt-6.border-t.border-gray-200 {
        display: none;
    }

    /* Adjust spacing for social media icons in mobile menu */
    #mobile-menu .flex.justify-center.space-x-4.mt-6 {
        margin-top: 0;
        padding-top: 1rem;
    }
}

/* Mobile footer overrides */
@media (max-width: 640px) {
    footer p, 
    footer a, 
    footer span, 
    footer li, 
    footer input, 
    footer button {
        font-size: 12px !important;
    }

    footer h4 {
        font-size: 14px !important;
    }

    footer .social-icons svg {
        width: 20px !important;
        height: 20px !important;
    }

    footer .footer-padding {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    footer .footer-spacing {
        margin-bottom: 4px !important;
    }

    /* Hide logo and briefing section in mobile view */
    footer .lg\:col-span-1 > div:first-child,
    footer .lg\:col-span-1 > p {
        display: none !important;
    }

    /* Hide social media icons in mobile view */
    footer .social-icons-container,
    footer .social-icons,
    footer .social-icons-title,
    footer .lg\:col-span-1 > .flex.space-x-4 {
        display: none !important;
    }

    /* 
    The following styles for social media icons are commented out 
    since the icons are now hidden on mobile view

    footer .social-icons-container {
        align-items: center !important;
    }

    footer .social-icons-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    footer .social-icons-title:after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 30px !important;
    }

    footer .social-icons {
        justify-content: center !important;
        margin-top: 15px !important;
        padding: 8px !important;
        gap: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    footer .social-icons a {
        width: 36px !important;
        height: 36px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
    }

    footer .social-icons svg {
        width: 18px !important;
        height: 18px !important;
        filter: none !important;
    }

    footer .social-icons a:hover svg {
        transform: none !important;
        filter: none !important;
    }

    footer .social-icons a:hover {
        transform: scale(1.05) !important;
        background: rgba(236, 94, 62, 0.15) !important;
        animation: pulse-mobile 1.2s infinite !important;
    }
    */

    @keyframes pulse-mobile {
        0% {
            box-shadow: 0 0 0 0 rgba(236, 94, 62, 0.3);
        }
        70% {
            box-shadow: 0 0 0 6px rgba(236, 94, 62, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(236, 94, 62, 0);
        }
    }
}
