/* Custom Styles for U4Ea Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Hero Text Shadow */
.hero-text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Navigation Styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Background Slideshow */
.slideshow-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Wave Pattern Animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.wave-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: wave 10s ease-in-out infinite;
}

/* Parallax Effect */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateZ(-1px) scale(1.5);
    z-index: -1;
}

/* Chaos Waves Animation */
.chaos-waves {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCF7F, #4D96FF);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.chaos-waves::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.3) 10px,
        rgba(255, 255, 255, 0.3) 20px
    );
    animation: chaosAnimation 2s linear infinite;
}

@keyframes chaosAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50px, 50px) rotate(360deg);
    }
}

/* Smooth Waves Animation */
.smooth-waves {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #00AE64, #00A1E2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.smooth-waves::before,
.smooth-waves::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.2) 20px,
        rgba(255, 255, 255, 0.2) 40px
    );
}

.smooth-waves::before {
    animation: smoothWave 3s linear infinite;
}

.smooth-waves::after {
    animation: smoothWave 3s linear infinite reverse;
    opacity: 0.5;
}

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

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Button Styles */
.feeling-btn.selected,
.boost-btn.selected,
.activity-btn.selected {
    border-color: #00AE64;
    background: #00AE64;
    color: white;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    min-height: 400px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: #00AE64;
    transform: scale(1.3);
}

/* Sound Waves Canvas */
#sound-waves-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Scroll Arrow Styles */
.scroll-arrow {
    z-index: 10;
}

.scroll-arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.scroll-arrow-link:hover {
    transform: translateY(5px);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .testimonial-carousel {
        min-height: 450px;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00AE64, #00A1E2, #FE7100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Frequency Visualization */
.frequency-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.frequency-bar {
    width: 8px;
    background: linear-gradient(to top, #00AE64, #00A1E2);
    border-radius: 4px;
    animation: frequencyPulse 1.5s ease-in-out infinite;
}

.frequency-bar:nth-child(1) { animation-delay: 0s; }
.frequency-bar:nth-child(2) { animation-delay: 0.1s; }
.frequency-bar:nth-child(3) { animation-delay: 0.2s; }
.frequency-bar:nth-child(4) { animation-delay: 0.3s; }
.frequency-bar:nth-child(5) { animation-delay: 0.4s; }
.frequency-bar:nth-child(6) { animation-delay: 0.5s; }
.frequency-bar:nth-child(7) { animation-delay: 0.6s; }

@keyframes frequencyPulse {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 60px;
    }
}

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00AE64, #00A1E2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00A1E2, #00AE64);
}

/* Chakra Colors */
.chakra-root { color: #D83068; }
.chakra-sacral { color: #EF8D6D; }
.chakra-solar { color: #DDD033; }
.chakra-heart { color: #81C816; }
.chakra-throat { color: #06A1D4; }
.chakra-third-eye { color: #1D5EE4; }
.chakra-crown { color: #F355E2; }

/* Activity Colors */
.activity-beta { background: #D32F2F; }
.activity-alpha { background: #FB8C00; }
.activity-theta2 { background: #FBC02D; }
.activity-theta1 { background: #2E7D32; }
.activity-delta { background: #4B0082; }

/* Pulsing Circle Effect */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

.pulse-ring {
    animation: pulse-ring 3s ease-in-out infinite;
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .testimonial-carousel {
        min-height: 500px;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #00AE64;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Glowing Effect */
.glow {
    box-shadow: 0 0 20px rgba(0, 174, 100, 0.5);
}

/* Interactive Button Hover */
.interactive-btn {
    position: relative;
    overflow: hidden;
}

.interactive-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.interactive-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Sound Wave Animation */
@keyframes soundWave {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 50px;
    }
}

.sound-wave {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, #00AE64, #00A1E2);
    margin: 0 2px;
    border-radius: 2px;
    animation: soundWave 1.2s ease-in-out infinite;
}

.sound-wave:nth-child(1) { animation-delay: 0s; }
.sound-wave:nth-child(2) { animation-delay: 0.1s; }
.sound-wave:nth-child(3) { animation-delay: 0.2s; }
.sound-wave:nth-child(4) { animation-delay: 0.3s; }
.sound-wave:nth-child(5) { animation-delay: 0.4s; }

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00AE64, #00A1E2, #FE7100);
    border-radius: 20px;
    z-index: -1;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Card Flip */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Circular Progress */
.circular-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        #00AE64 0deg,
        #00A1E2 90deg,
        #FE7100 180deg,
        #F355E2 270deg,
        #00AE64 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 4s linear infinite;
}

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

.circular-progress::before {
    content: '';
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
}

/* Frosted Glass Effect */
.frosted {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Gradient Animation */
@keyframes textGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient-text {
    background: linear-gradient(90deg, #00AE64, #00A1E2, #FE7100, #F355E2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s ease infinite;
}

/* Intersection Observer Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Checkbox/Radio */
.custom-radio {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-radio:checked {
    background: linear-gradient(135deg, #00AE64, #00A1E2);
    border-color: #00AE64;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(17, 24, 39, 0.9);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::before {
    opacity: 1;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus Styles */
button:focus,
a:focus {
    outline: 2px solid #00A1E2;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .testimonial-carousel {
        min-height: 500px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .parallax-bg {
        transform: none;
    }
}

/* Tablet Optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .min-h-screen {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Additional Animation Classes */
.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

.animate-zoom-in {
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 174, 100, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 174, 100, 0.8);
    }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Rainbow Animation (for easter egg) */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Breathing Animation */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-flow {
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
}

/* Typewriter Effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #00AE64;
    white-space: nowrap;
    animation: typewriter 3s steps(40) 1s 1 normal both;
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00AE64;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover States for Better UX */
button:not(:disabled):hover {
    cursor: pointer;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #00A1E2;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background-color: #00AE64;
    color: white;
}

::-moz-selection {
    background-color: #00AE64;
    color: white;
}

