/* Hero Section Styles */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
	font-family: "All Round Gothic", sans-serif;
    font-weight: 900;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#cursorCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.fizzy-text {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.0em;
    line-height: 1.3;
    -webkit-text-stroke: 4px rgba(255, 255, 255, 1.0);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.fizzy-word {
    display: inline-block;
    margin: 0 -1.0rem;
    opacity: 0;
    transform: translateY(150vh);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

/* Independent word animations */
.fizzy-word:nth-child(1) {
    animation: fly-in-word 1.8s ease-out 0s forwards,
               float-bob 3.5s ease-in-out infinite 1.8s,
               pulse-subtle 2.8s ease-in-out infinite 1.8s;
}

.fizzy-word:nth-child(2) {
    animation: fly-in-word 1.8s ease-out 0.3s forwards,
               float-bob 4.2s ease-in-out infinite 2.1s,
               pulse-subtle 3.2s ease-in-out infinite 2.1s;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00CED1, #1E90FF);
    color: #fff;
    width: clamp(3rem, 10vw, 8rem);
    height: clamp(3rem, 10vw, 8rem);
    border-radius: 50%;
    font-size: clamp(1.5rem, 5vw, 4rem);
	-webkit-text-stroke: 0px rgba(255, 255, 255, 0.0);
	letter-spacing: 0.1rem;
    font-weight: bold;
    margin-left: 1rem;
    vertical-align: middle;
    border: 4px solid #fff;
	box-shadow: 0 0 40px rgba(30, 144, 255, 1.0), 0 0 40px rgba(30, 144, 255, 1.0), 0 0 20px rgba(30, 144, 255, 1.0), 0 0 10px rgba(30, 144, 255, 1.0), 0 0 5px rgba(30, 144, 255, 1.0);
    opacity: 0;
    transform: translateY(150vh);
    animation: fly-in-word 1.8s ease-out 0.6s forwards,
               float-bob 3.8s ease-in-out infinite 2.4s,
               pulse-badge 2.5s ease-in-out infinite 2.4s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.fizzy {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 215, 0, 1.0), 0 0 30px rgba(255, 215, 0, 1.0), 0 0 10px rgba(255, 215, 0, 1.0), 0 0 5px rgba(255, 215, 0, 1.0);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: glow-yellow 3s ease-in-out infinite;
}

.twist {
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 50%, #FFB6C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 20, 147, 1.0), 0 0 30px rgba(255, 20, 147, 1.0), 0 0 10px rgba(255, 20, 147, 1.0), 0 0 5px rgba(255, 20, 147, 1.0);
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
    animation: glow-pink 3s ease-in-out infinite 0.5s;
}

.tagline {
    font-size: clamp(1.5rem, 4.5vw, 3rem);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
	text-shadow: 0 0 5px rgba(0, 0, 0, 1.0), 0 0 4px rgba(0, 0, 0, 1.0), 0 0 3px rgba(0, 0, 0, 1.0), 0 0 2px rgba(0, 0, 0, 1.0), 0 0 1px rgba(0, 0, 0, 1.0); 
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(50px);
    animation: fade-in-tagline 1s ease-out forwards 2.2s,
               float-bob 4.5s ease-in-out infinite 3.2s,
               pulse-subtle 3.5s ease-in-out infinite 3.2s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.subTagline {
    font-size: clamp(0.56rem, 1.87vw, 1.12rem);
    font-weight: 100;
    margin-top: 0;
    color: #fff;
	text-shadow: 0 0 5px rgba(0, 0, 0, 1.0), 0 0 4px rgba(0, 0, 0, 1.0), 0 0 3px rgba(0, 0, 0, 1.0), 0 0 2px rgba(0, 0, 0, 1.0), 0 0 1px rgba(0, 0, 0, 1.0); 
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(50px);
    animation: fade-in-tagline 1s ease-out forwards 2.4s,
               float-bob 4.5s ease-in-out infinite 3.4s,
               pulse-subtle 3.5s ease-in-out infinite 3.4s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

/* Game Stats */
.game-stats {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    white-space: nowrap;
    pointer-events: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
}

.stat-value {
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    min-width: 3rem;
    text-align: center;
}

.reset-btn {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.reset-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

.reset-btn:active {
    transform: scale(0.95);
}

.reset-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.reset-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.game-over-message {
    position: absolute;
    bottom: 11rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 20;
}

.game-over-message.show {
    opacity: 1;
}

/* Animations */
@keyframes fly-in-word {
    0% {
        opacity: 0;
        transform: translateY(150vh);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-tagline {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.03) translateY(-10px);
    }
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 0 40px rgba(30, 144, 255, 1.0), 0 0 40px rgba(30, 144, 255, 1.0), 0 0 20px rgba(30, 144, 255, 1.0), 0 0 10px rgba(30, 144, 255, 1.0), 0 0 5px rgba(30, 144, 255, 1.0);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
        box-shadow: 0 0 60px rgba(30, 144, 255, 1.0), 0 0 50px rgba(30, 144, 255, 1.0), 0 0 30px rgba(30, 144, 255, 1.0), 0 0 15px rgba(30, 144, 255, 1.0), 0 0 8px rgba(30, 144, 255, 1.0);
    }
}

@keyframes glow-yellow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1)); }
}

@keyframes glow-pink {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 20, 147, 1)); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fizzy-text {
        font-size: clamp(4.5rem, 15vw, 12rem);
    }

    .fizzy-word {
        display: block;
        margin: 0.5rem 0;
    }

    .ai-badge {
        display: inline-flex;
        margin: 1rem auto 0;
        width: clamp(3rem, 18vw, 6rem);
        height: clamp(3rem, 18vw, 6rem);
        font-size: clamp(1.25rem, 7vw, 2.5rem);
    }
}

/* Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    pointer-events: none;
    z-index: 15;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    z-index: 16;
}

.carousel-slide.slide-left {
    transform: translateX(-100%);
}

.carousel-slide.slide-right {
    transform: translateX(100%);
}

/* Carousel Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
}

.carousel-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

@media (max-width: 768px) {
    .carousel-dots {
        bottom: 8rem !important;
        gap: 2rem;
        padding: 0.5rem 0.75rem;
    }

    .carousel-dot {
        width: 16px;
        height: 16px;
    }

    /* Mobile: Game controls - full size */
    .game-stats {
        bottom: 1.5rem;
        /* transform: translateX(-50%) scale(1.0); */
        gap: 2rem;
        padding: 0.75rem 0.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-value {
        font-size: 1rem;
        min-width: 2rem;
    }

    .reset-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Mobile: Game over message */
    .game-over-message {
        bottom: 4.25rem !important;
        font-size: 0.9rem;
    }
}

/* Tablet: Medium-sized controls and positioning */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-dots {
        bottom: 9rem;
        gap: 2rem;
        padding: 0.5rem 0.75rem;
    }

    .carousel-dot {
        width: 16px;
        height: 16px;
    }

    .game-stats {
        bottom: 1.5rem;
		/* transform: translateX(-50%) scale(0.9); */
        gap: 2rem;
        padding: 0.75rem 0.75rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.1rem;
        min-width: 2.5rem;
    }

    .reset-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .game-over-message {
        bottom: 4.25rem;
        font-size: 0.95rem;
    }
}

/* Desktop: Smaller game controls and positioning */
@media (min-width: 1025px) {
	    .carousel-dots {
        bottom: 10rem;
        gap: 2rem;
        padding: 0.5rem 0.75rem;
    }

    .carousel-dot {
        width: 16px;
        height: 16px;
    }
    .game-stats {
        bottom: 1.5rem;
		gap: 2rem;
		padding: 0.75rem 1.0rem;
        /* transform: translateX(-50%) scale(0.8); */
    }

    .game-over-message {
        bottom: 5rem;
        font-size: 1rem;
    }
}
