/* KPA Homepage Custom Styles */

/* Additional animations and effects */
.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-image {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced card hover effects */
.card-custom {
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card-custom:hover::before {
    left: 100%;
}

/* Enhanced button effects */
.btn-primary-custom,
.btn-secondary-custom {
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before,
.btn-secondary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover::before,
.btn-secondary-custom:hover::before {
    left: 100%;
}

/* Loading animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    z-index: 9999;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff6b35);
    width: var(--scroll-percent, 0%);
    transition: width 0.1s ease;
}

/* Enhanced navbar */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .card-custom {
        margin-bottom: 2rem;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card-custom {
        border: 1px solid #ddd !important;
        background: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00bfff;
        --secondary-color: #ff4500;
        --text-light: #ffffff;
        --text-muted: #ffffff;
        --text-white: #ffffff;
    }
}

/* Enhanced white text visibility */
.text-muted {
    color: var(--text-white) !important;
    opacity: 0.9;
}

.card-body p {
    color: var(--text-white) !important;
}

.schedule-instructor {
    color: var(--text-white) !important;
}

.footer p, .footer li {
    color: var(--text-white) !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
