/* Visual Enhancements for Gracie Barra Clermont
   ================================================
   Pure CSS design with icons and animations
   No images except logo
*/

/* ============================================
   ANIMATED BACKGROUNDS & PATTERNS
   ============================================ */

/* Gradient Mesh Background for Hero - DIAGONAL SHIFTING */
.hero-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--gb-red) 0%,
        var(--gb-almost-black) 50%,
        var(--gb-blue) 100%);
    background-size: 400% 400%;
    animation: gradientShift 16s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 18.75% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    50%, 68.75% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tatami Mat Pattern - Sits above everything for subtle texture */
.pattern-tatami {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        linear-gradient(90deg, #000 1px, transparent 1px),
        linear-gradient(180deg, #000 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 4;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Generate multiple particles - ENHANCED with more particles */
.particle:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; width: 5px; height: 5px; }
.particle:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; }
.particle:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; width: 5px; height: 5px; }
.particle:nth-child(6) { left: 60%; animation-duration: 8s; animation-delay: 3s; }
.particle:nth-child(7) { left: 70%; animation-duration: 10s; animation-delay: 2.5s; width: 5px; height: 5px; }
.particle:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 0.8s; }
.particle:nth-child(9) { left: 90%; animation-duration: 9s; animation-delay: 1.8s; width: 6px; height: 6px; }
.particle:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 2.8s; }
/* NEW particles for more density */
.particle:nth-child(11) { left: 15%; animation-duration: 10s; animation-delay: 1.2s; width: 5px; height: 5px; }
.particle:nth-child(12) { left: 25%; animation-duration: 9s; animation-delay: 2.1s; }
.particle:nth-child(13) { left: 35%; animation-duration: 11s; animation-delay: 0.7s; width: 6px; height: 6px; }
.particle:nth-child(14) { left: 45%; animation-duration: 8s; animation-delay: 1.9s; }
.particle:nth-child(15) { left: 55%; animation-duration: 12s; animation-delay: 0.3s; width: 5px; height: 5px; }
.particle:nth-child(16) { left: 65%; animation-duration: 9s; animation-delay: 2.7s; }
.particle:nth-child(17) { left: 75%; animation-duration: 10s; animation-delay: 1.4s; width: 6px; height: 6px; }
.particle:nth-child(18) { left: 85%; animation-duration: 11s; animation-delay: 0.9s; }
.particle:nth-child(19) { left: 5%; animation-duration: 8s; animation-delay: 2.3s; width: 5px; height: 5px; }
.particle:nth-child(20) { left: 92%; animation-duration: 10s; animation-delay: 1.6s; }

/* ============================================
   CUSTOM CSS ICONS
   ============================================ */

/* Martial Arts Belt */
.icon-belt {
    display: inline-block;
    width: 50px;
    height: 10px;
    background: linear-gradient(90deg,
        #2c2c2c 0%, #2c2c2c 15%,
        var(--belt-color, #8B4513) 15%, var(--belt-color, #8B4513) 85%,
        #2c2c2c 85%, #2c2c2c 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.icon-belt::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2c2c2c;
    border-radius: 50%;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
}

/* CSS Trophy Icon */
.icon-trophy {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
}

.icon-trophy::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 0 0 50% 50%;
    top: 5px;
    left: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.icon-trophy::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 5px;
    background: #333;
    bottom: 5px;
    left: 10px;
    border-radius: 2px;
}

/* Mat/Tatami Icon */
.icon-mat {
    display: inline-block;
    width: 40px;
    height: 40px;
    background:
        linear-gradient(90deg, #4a4a4a 2px, transparent 2px),
        linear-gradient(180deg, #4a4a4a 2px, transparent 2px),
        #e8e8e8;
    background-size: 10px 10px;
    border: 2px solid #333;
    border-radius: 4px;
}

/* ============================================
   ICON CONTAINERS & ANIMATIONS
   ============================================ */

/* Animated Icon Box */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--gb-red), var(--gb-blue));
    border-radius: 20%;
    color: white;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.icon-box:hover {
    transform: translateY(-5px) rotate(5deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.icon-box:hover::before {
    opacity: 1;
    animation: shimmer 0.5s ease;
}

@keyframes shimmer {
    from { transform: rotate(45deg) translateX(-100%); }
    to { transform: rotate(45deg) translateX(100%); }
}

/* Icon Pulse Animation */
.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Icon Bounce Animation */
.icon-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Icon Rotate Animation */
.icon-rotate {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.hero-enhanced {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gb-almost-black), var(--gb-dark-gray));
    overflow: hidden;
}

/* Geometric Shapes - ENHANCED for More Visibility */
.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid rgba(255, 34, 17, 0.2); /* Increased from 0.1 to 0.2 */
    animation: floatShape 15s ease-in-out infinite;
    filter: blur(1px); /* Slight blur for softer edges */
}

.shape-circle {
    position: absolute;
    width: 150px; /* Increased from 100px */
    height: 150px; /* Increased from 100px */
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 86, 173, 0.25), transparent); /* Increased from 0.2 */
    animation: floatShape 20s ease-in-out infinite reverse;
    filter: blur(2px);
}

.shape-square {
    position: absolute;
    width: 100px; /* Increased from 80px */
    height: 100px; /* Increased from 80px */
    background: rgba(255, 255, 255, 0.08); /* Increased from 0.05 */
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Position shapes */
.shape-triangle:nth-of-type(1) { top: 10%; left: 10%; animation-delay: 0s; }
.shape-triangle:nth-of-type(2) { bottom: 20%; right: 15%; animation-delay: 5s; }
.shape-circle:nth-of-type(1) { top: 50%; left: 5%; animation-delay: 2s; }
.shape-circle:nth-of-type(2) { bottom: 10%; left: 50%; animation-delay: 7s; }
.shape-square:nth-of-type(1) { top: 20%; right: 20%; animation-delay: 3s; }
.shape-square:nth-of-type(2) { bottom: 30%; left: 30%; animation-delay: 8s; }

/* ============================================
   ENHANCED PROGRAM CARDS
   ============================================ */

.program-card-enhanced {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.program-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gb-red), var(--gb-blue));
}

.program-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Card Headers with Unique Gradients */
.program-header-adult {
    background: linear-gradient(135deg, #FF2211, #8B0000);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.program-header-kids {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.program-header-women {
    background: linear-gradient(135deg, #FF69B4, #C71585);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Card Icon Container */
.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Ribbon Badge */
.ribbon-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gb-red);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ============================================
   WAVE DIVIDER - ENHANCED with Color Variants
   ============================================ */

.wave-divider {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.wave-divider::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(
        0 70%,
        10% 60%, 20% 65%, 30% 60%, 40% 65%, 50% 60%,
        60% 65%, 70% 60%, 80% 65%, 90% 60%, 100% 70%,
        100% 100%, 0% 100%
    );
    animation: wave 10s ease-in-out infinite;
}

/* Wave Color Variants */
.wave-red-to-white::before {
    background: linear-gradient(90deg, var(--gb-red), var(--gb-blue));
}

.wave-white-to-gray::before {
    background: #f8f9fa;
}

.wave-white-to-gradient::before {
    background: linear-gradient(135deg, var(--gb-red), var(--gb-blue));
}

.wave-gray-to-white::before {
    background: var(--white);
}

@keyframes wave {
    0%, 100% {
        clip-path: polygon(
            0 70%,
            10% 60%, 20% 65%, 30% 60%, 40% 65%, 50% 60%,
            60% 65%, 70% 60%, 80% 65%, 90% 60%, 100% 70%,
            100% 100%, 0% 100%
        );
    }
    50% {
        clip-path: polygon(
            0 60%,
            10% 70%, 20% 65%, 30% 70%, 40% 65%, 50% 70%,
            60% 65%, 70% 70%, 80% 65%, 90% 70%, 100% 60%,
            100% 100%, 0% 100%
        );
    }
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.btn-icon {
    position: relative;
    overflow: hidden;
}

.btn-icon i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-icon:hover i {
    transform: translateX(5px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-group-icon {
    position: relative;
}

.form-group-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gb-gray);
    pointer-events: none;
}

.form-group-icon .form-control {
    padding-left: 45px;
}

.form-group-icon .form-control:focus + i {
    color: var(--gb-blue);
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

.loader-dots {
    display: inline-flex;
    gap: 5px;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gb-red);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimization */
.will-animate {
    will-change: transform, opacity;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .program-icon {
        font-size: 2rem;
    }

    .hero-enhanced {
        min-height: 60vh;
    }

    .shape-triangle,
    .shape-circle,
    .shape-square {
        display: none; /* Hide decorative shapes on mobile for performance */
    }
}

@media (max-width: 576px) {
    .particles {
        display: none; /* Disable particles on small screens */
    }

    .wave-divider {
        height: 50px;
    }
}