/* Custom Styles for Cam Profit Academy */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body */
body {
    overflow-x: hidden;
}

/* Navbar transition */
nav {
    transition: transform 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Modal animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-modal {
    animation: modalFadeIn 0.3s ease-out;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #EC4899;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #DB2777;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button pulse effect */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Gradient backgrounds */
.bg-gradient-pink {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(236, 72, 153, 0.2);
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Success message */
.success-message {
    background: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation sticky effect */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Section fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Course card special effects */
.course-card {
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

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

/* Ensure course buttons are clickable */
.course-btn {
    position: relative;
    z-index: 10;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Background Video Hero Section */
#home {
    position: relative;
    min-height: 100vh;
}

#bgVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Ensure content is above video */
#home .container {
    position: relative;
    z-index: 10;
}

/* Scroll down indicator animation */
@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Enhanced text shadows for better readability on video */
#home h1, #home p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Video loading optimization */
video {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
}

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

.icon-bounce:hover {
    animation: bounce 0.5s ease;
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Testimonial card styling */
.testimonial-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Form focus effects */
input:focus,
textarea:focus,
select:focus {
    border-color: #EC4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Mobile menu transition */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.show {
    display: block;
}

/* Print styles */
@media print {
    nav,
    footer,
    #contact {
        display: none;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 2px solid #EC4899;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Additional utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.box-shadow-xl {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Responsive utilities */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.2s ease;
}

/* Custom placeholder color */
::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #9CA3AF;
}

::-ms-input-placeholder {
    color: #9CA3AF;
}
