/**
 * Professional Minimal Animations Module
 * Matches SSPU Alumni Portal color scheme and design
 * Compatible with Bootstrap 4.5 and Creative theme
 */

/* ===== ANIMATION VARIABLES ===== */
:root {
    /* Animation timings */
    --animation-fast: 0.2s;
    --animation-normal: 0.3s;
    --animation-slow: 0.5s;
    --animation-extra-slow: 0.8s;
    
    /* Easing functions */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Color scheme (matching existing theme) */
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: rgba(0, 123, 255, 0.1);
    --primary-glow: rgba(0, 123, 255, 0.3);
    --dark-overlay: rgba(0, 0, 0, 0.1);
    --light-overlay: rgba(255, 255, 255, 0.05);
    
    /* Professional Typography */
    --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* ===== ENTRANCE ANIMATIONS ===== */

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== LOADING ANIMATIONS ===== */

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 0 10px transparent;
    }
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== ANIMATION CLASSES ===== */

/* Base animation class */
.animate {
    animation-fill-mode: both;
    animation-timing-function: var(--ease-out-quart);
}

/* Entrance animations */
.animate-fade-in-up {
    animation: fadeInUp var(--animation-slow) var(--ease-out-quart);
}

.animate-fade-in-left {
    animation: fadeInLeft var(--animation-slow) var(--ease-out-quart);
}

.animate-fade-in-right {
    animation: fadeInRight var(--animation-slow) var(--ease-out-quart);
}

.animate-scale-in {
    animation: scaleIn var(--animation-normal) var(--ease-out-back);
}

.animate-slide-down {
    animation: slideDown var(--animation-normal) var(--ease-out-quart);
}

/* Animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ===== PROFESSIONAL TYPOGRAPHY ===== */

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

/* Base typography improvements */
body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: var(--font-weight-bold); }
h2 { font-size: 2rem; font-weight: var(--font-weight-semibold); }
h3 { font-size: 1.75rem; font-weight: var(--font-weight-semibold); }
h4 { font-size: 1.5rem; font-weight: var(--font-weight-medium); }
h5 { font-size: 1.25rem; font-weight: var(--font-weight-medium); }
h6 { font-size: 1.125rem; font-weight: var(--font-weight-medium); }

/* Paragraph text */
p {
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    /* Removed global color to prevent overriding specific styles */
}

/* Small text */
small {
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
}

/* ===== PROFESSIONAL BUTTONS ===== */

/* Base button styling */
.btn {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    border-radius: 8px;
    padding: 12px 24px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--animation-normal) var(--ease-out-quart);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #004085 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Outline button */
.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* Large buttons */
.btn-lg {
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: var(--font-weight-semibold);
}

/* Small buttons */
.btn-sm {
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 6px;
}

/* Professional button effects */
.btn-professional {
    position: relative;
    overflow: hidden;
    transition: all var(--animation-normal) var(--ease-out-quart);
}

.btn-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--animation-slow) var(--ease-out-quart);
}

.btn-professional:hover::before {
    left: 100%;
}

/* Button icons */
.btn i {
    font-size: 0.9em;
    transition: transform var(--animation-fast) var(--ease-out-back);
}

.btn:hover i {
    transform: scale(1.1);
}

/* Special button variants */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Enhanced glow effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
    transition: box-shadow var(--animation-normal) var(--ease-out-quart);
}

.glow-primary:hover {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5), 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Loading button state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* ===== HOVER EFFECTS ===== */

/* Smooth hover transitions */
.hover-lift {
    transition: transform var(--animation-normal) var(--ease-out-quart),
                box-shadow var(--animation-normal) var(--ease-out-quart);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ===== PROFESSIONAL CARDS ===== */

.card-professional {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--animation-normal) var(--ease-out-quart);
    overflow: hidden;
}

.card-professional:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 123, 255, 0.2);
}

.card-professional .card-body {
    padding: 1.5rem;
}

.card-professional .card-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.card-professional .card-text {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* ===== PROFESSIONAL FORMS ===== */

.form-control-professional {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all var(--animation-normal) var(--ease-out-quart);
    background: white;
}

.form-control-professional:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
    transform: scale(1.01);
}

/* ===== PROFESSIONAL BADGES ===== */

.badge {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.badge-lg {
    font-size: 0.875rem;
    padding: 8px 16px;
}

/* ===== MICRO-INTERACTIONS ===== */

/* Smooth focus states */
.form-control-professional {
    transition: all var(--animation-normal) var(--ease-out-quart);
    border: 2px solid transparent;
}

.form-control-professional:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
    transform: scale(1.02);
}

/* Icon animations */
.icon-bounce {
    transition: transform var(--animation-fast) var(--ease-out-back);
}

.icon-bounce:hover {
    transform: scale(1.2);
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-100%);
    animation: textReveal 1s var(--ease-out-quart) forwards;
}

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

/* ===== LOADING STATES ===== */

/* Shimmer loading */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Pulse loading */
.loading-pulse {
    animation: pulseGlow 2s infinite;
}

/* Floating elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== SECTION-SPECIFIC ANIMATIONS ===== */

/* Navigation animations */
.navbar {
    transition: all var(--animation-normal) var(--ease-out-quart);
}

.navbar.scrolled {
    background: #0088cc !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-nav .nav-link {
    position: relative;
    transition: all var(--animation-normal) var(--ease-out-quart);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--animation-normal) var(--ease-out-quart);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
}

/* ===== SMOOTH HERO ANIMATIONS ===== */

/* Ensure smooth carousel transitions */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

/* Base state for all hero elements */
.hero-title,
.hero-subtitle,
.hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active slide animations - smooth and sequential */
.carousel-item.active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.carousel-item.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.carousel-item.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Smooth exit for non-active slides */
.carousel-item:not(.active) .hero-title,
.carousel-item:not(.active) .hero-subtitle,
.carousel-item:not(.active) .hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0s;
}

/* ===== SMOOTH SECTION ANIMATIONS ===== */

/* Gallery section - smooth fade in */
.gallery-showcase-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-showcase-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Event cards - smooth staggered entrance */
.event-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delays for event cards */
.event-card:nth-child(1).in-view { transition-delay: 0.1s; }
.event-card:nth-child(2).in-view { transition-delay: 0.2s; }
.event-card:nth-child(3).in-view { transition-delay: 0.3s; }
.event-card:nth-child(4).in-view { transition-delay: 0.4s; }

/* ===== SECTION-SPECIFIC TYPOGRAPHY ===== */

/* Gallery section styling */
.section-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 2.5rem;
    color: #1a202c;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Event section styling */
.event-card h3 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.event-card p {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

.event-card small {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    color: #718096;
}

/* Navigation improvements */
.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

/* ===== PROFESSIONAL FOOTER ===== */

.professional-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.5), transparent);
}

/* Footer Sections */
.footer-section {
    padding: 0 1rem;
}

.footer-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 1px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--animation-normal) var(--ease-out-quart);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--animation-normal) var(--ease-out-quart);
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width var(--animation-normal) var(--ease-out-quart);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(4px);
}

.footer-links a:hover::before {
    width: 100%;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all var(--animation-normal) var(--ease-out-quart);
}

.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 0.95rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: color var(--animation-normal) var(--ease-out-quart);
}

.contact-value:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #a0aec0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--animation-normal) var(--ease-out-quart);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom-links .separator {
    color: #4a5568;
    font-size: 0.8rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .copyright {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .professional-footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-bottom-links .separator {
        display: none;
    }
}

/* ===== RESPONSIVE ANIMATIONS ===== */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating,
    .loading-pulse {
        animation: none !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hover-lift:hover,
    .card-professional:hover,
    .btn-professional:hover {
        transform: none;
    }
    
    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-duration: var(--animation-normal);
    }
    
    /* Mobile typography adjustments */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .btn-lg {
        font-size: 1rem;
        padding: 14px 28px;
    }
    
    .card-professional .card-body {
        padding: 1.25rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.15rem;
    }
}

/* ===== UTILITY CLASSES ===== */

/* Animation states */
.animate-paused {
    animation-play-state: paused !important;
}

.animate-running {
    animation-play-state: running !important;
}

/* Visibility helpers */
.fade-in {
    opacity: 0;
    transition: opacity var(--animation-slow) var(--ease-out-quart);
}

.fade-in.visible {
    opacity: 1;
}

/* Transform helpers */
.scale-hover {
    transition: transform var(--animation-normal) var(--ease-out-quart);
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* Glow effects */
.glow-primary {
    box-shadow: 0 0 20px var(--primary-glow);
    transition: box-shadow var(--animation-normal) var(--ease-out-quart);
}

.glow-primary:hover {
    box-shadow: 0 0 30px var(--primary-glow);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* GPU acceleration for smooth animations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Contain layout shifts */
.animation-container {
    contain: layout style paint;
}

/* ===== INTERSECTION OBSERVER CLASSES ===== */

/* Elements that animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--animation-slow) var(--ease-out-quart);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
