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

html {
    scroll-behavior: smooth;
}

* {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-in {
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.8); }
}

.mobile-menu {
    position: fixed;
    top: 76px;
    right: 16px;
    z-index: 1200;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.24);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mobile-menu a {
    display: flex !important;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px !important;
    border-radius: 12px;
    color: #1f2937 !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    background: #f3e8ff;
    color: #7e22ce !important;
    outline: none;
    transform: translateX(2px);
}

.menu-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-icon:hover {
    background: #f9fafb;
    transform: translateY(-1px);
}

.menu-icon span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon.open .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.open .line2 {
    opacity: 0;
}

.menu-icon.open .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.floating-btn:hover {
    background: rgba(99, 102, 241, 1);
    transform: scale(1.1);
}

.floating-btn.audio-off {
    background: rgba(239, 68, 68, 0.8);
}

.floating-btn.audio-off:hover {
    background: rgba(239, 68, 68, 1);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 1500;
    max-width: min(90vw, 420px);
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.96);
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast.error {
    background: rgba(220, 38, 38, 0.94);
}

.toast.success {
    background: rgba(22, 163, 74, 0.96);
}

@media (min-width: 768px) {
    .toast {
        bottom: 24px;
    }
}
