@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.pulse-badge {
    animation: pulseBadge 2s infinite;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */

/* Form Inputs */
#contact-form input,
#contact-form textarea {
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#contact-form input.error,
#contact-form textarea.error {
    animation: shake 0.5s;
}

/* Help Options */
.help-option input:checked + span {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
    transform: scale(1.05);
}

.help-option span {
    display: inline-block;
    transition: all 0.3s ease;
}

.help-option span:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

/* Submit Button */
#contact-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#contact-form button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#contact-form button[type="submit"]:hover::after {
    width: 300px;
    height: 300px;
}

/* Success Message Animation */
.success-message {
    animation: slideDown 0.5s ease-out;
}

/* ============================================
   CHANNEL CARDS
   ============================================ */

.channel-card {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
    transition: all 0.3s ease;
}

.channel-card:nth-child(1) { animation-delay: 0.1s; }
.channel-card:nth-child(2) { animation-delay: 0.2s; }
.channel-card:nth-child(3) { animation-delay: 0.3s; }

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   FAQ STYLES
   ============================================ */

.faq-item {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

.faq-toggle {
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}

/* ============================================
   PRIVACY POLICY STYLES
   ============================================ */

/* Sidebar Navigation */
.sidebar-link {
    transition: all 0.3s ease;
    color: #78716c;
}

.sidebar-link:hover {
    background: #f5f5f4;
    color: #1c1917;
}

.sidebar-link.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* Section Animations */
section[id] {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

section[id]:nth-child(1) { animation-delay: 0.1s; }
section[id]:nth-child(2) { animation-delay: 0.2s; }
section[id]:nth-child(3) { animation-delay: 0.3s; }
section[id]:nth-child(4) { animation-delay: 0.4s; }
section[id]:nth-child(5) { animation-delay: 0.5s; }
section[id]:nth-child(6) { animation-delay: 0.6s; }
section[id]:nth-child(7) { animation-delay: 0.7s; }
section[id]:nth-child(8) { animation-delay: 0.8s; }

/* Section Hover Effect */
section[id] {
    transition: all 0.3s ease;
}

section[id]:hover {
    transform: translateY(-2px);
}

/* ============================================
   SCROLL REVEAL DELAYS
   ============================================ */

[data-delay] {
    animation-delay: calc(var(--delay) * 1ms);
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */

.input-error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fadeIn 0.3s ease-out;
}

.input-success {
    border-color: #10b981 !important;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .fade-in-up {
        animation-duration: 0.6s;
    }
    
    .channel-card:hover {
        transform: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #1f2937;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: #10b981;
}

.toast-error {
    background: #ef4444;
}

.toast-warning {
    background: #f59e0b;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .pulse-badge,
    button,
    .faq-toggle,
    .sidebar-link {
        animation: none !important;
    }
    
    .faq-answer {
        max-height: none !important;
        display: block !important;
    }
    
    section[id] {
        page-break-inside: avoid;
    }
}
