/* Custom styles for Journey Martial Arts */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #a11436;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #841334;
}

/* Geometric background shapes */
.geo-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: #a11436;
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: #ff4d78;
    bottom: 20%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square {
    position: absolute;
    opacity: 0.06;
    background: #a11436;
    border-radius: 20px;
}

.geo-square--1 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    opacity: 0.05;
}

.geo-triangle--1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #ff4d78;
    top: 60%;
    right: 8%;
    animation: float-medium 18s ease-in-out infinite reverse;
}

.geo-dots {
    position: absolute;
    opacity: 0.04;
    background-image: radial-gradient(#a11436 2px, transparent 2px);
    background-size: 20px 20px;
}

.geo-dots--1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 40%;
}

/* Floating animation for stat cards */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-15px) rotate(20deg); }
}

.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

.card--top-right {
    animation-delay: 0s;
}

.card--bottom-left {
    animation-delay: 2s;
}

.card--mid-right {
    animation-delay: 4s;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(161, 20, 54, 0.08);
}

.nav-scrolled .nav-link {
    color: #3d0715 !important;
}

.nav-scrolled .logo-text {
    color: #3d0715 !important;
}

/* Program card hover effects */
.program-card {
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(161, 20, 54, 0.03) 0%, rgba(255, 77, 120, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1.5rem;
}

.program-card:hover::before {
    opacity: 1;
}

/* Intersection observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
        right: -50px;
    }
    
    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square--1 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle--1 {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 90px;
    }
    
    .card--mid-right {
        display: none;
    }
}

/* Selection color */
::selection {
    background: #a11436;
    color: white;
}
