/* Modern Richmond College Landing Page Styles */
html {
    scroll-behavior: smooth;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern animations */
@keyframes animate-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-from-left-5 {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-from-right-5 {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-from-bottom-5 {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Accordion content transition */
.accordion-content {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Animation classes */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 4s ease-in-out infinite 1s; }
.animate-pulse-slow { animation: pulse-slow 2s ease-in-out infinite; }
.animate-scroll-left { animation: scroll-left 30s linear infinite; }
.animate-scroll-right { animation: scroll-right 40s linear infinite; }

/* Animation utilities with delays */
.animate-in { animation: animate-in 0.6s ease-out forwards; }
.slide-in-from-left-5 { animation: slide-in-from-left-5 0.6s ease-out forwards; }
.slide-in-from-right-5 { animation: slide-in-from-right-5 0.6s ease-out forwards; }
.slide-in-from-bottom-5 { animation: slide-in-from-bottom-5 0.6s ease-out forwards; }

.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-450 { animation-delay: 450ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-750 { animation-delay: 750ms; }


@media (max-width: 768px) {
    .animate-scroll-left { animation: scroll-left 20s linear infinite; }
}

/* Modern scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #3b82f6, #8b5cf6); border-radius: 10px; border: 2px solid #f1f5f9; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #2563eb, #7c3aed); }

/* Enhanced selection */
::selection { background-color: #3b82f6; color: white; }
::-moz-selection { background-color: #3b82f6; color: white; }