:root {
    --bg-color: #fff8f0;
    --accent-1: #ff6b35;
    --accent-2: #ff8c00;
    --accent-3: #ffa500;
    --accent-4: #ffb347;
    --accent-orange: #ff7700;
    --text-dark: #2d3436;
    --chaos-hue: 0;
    --chaos-intensity: 0;
    --shake-intensity: 0px;
    --rotation: 0deg;
}

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

body {
    font-family: 'Caveat', cursive;
    background: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.3s ease;
    filter: hue-rotate(calc(var(--chaos-hue) * 1deg));
}

.chaos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    background: radial-gradient(circle, transparent 50%, rgba(255, 0, 255, 0.3));
    mix-blend-mode: overlay;
    transition: opacity 0.5s;
}

/* Logo */
.logo {
    position: fixed;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff5500 100%);
    color: #fff;
    padding: 8px 20px;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow: 4px 4px 0 #000;
    z-index: 100;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 2px 2px 0 #000;
}

.logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Chaos Meter */
.chaos-meter {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3436;
    color: #ffb347;
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid #ff8c00;
}

.chaos-value {
    margin-left: 8px;
    color: #ff6b35;
    font-weight: bold;
}

/* Navigation */
.nav-pills {
    position: fixed;
    top: 10px;
    right: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 600px;
    z-index: 100;
}

.nav-btn {
    background: #ffb347;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 8px 16px;
    font-family: 'Permanent Marker', cursive;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 #000;
}

.nav-btn:hover {
    transform: translateY(-3px) rotate(var(--rotation));
    box-shadow: 4px 4px 0 #000;
    background: #ff8c00;
    color: #fff;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 20px 40px;
    position: relative;
}


/* Rays */
.rays {
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 10deg,
        rgba(255, 140, 0, 0.15) 10deg 20deg
    );
    border-radius: 50%;
    animation: raysSpin 30s linear infinite;
    z-index: 0;
}

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

/* Wizard */
.wizard-container {
    position: relative;
    z-index: 1;
}

.wizard-img {
    width: clamp(350px, 50vw, 600px);
    height: auto;
    animation: wizardFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(255, 140, 0, 0.5));
    transition: all 0.3s ease;
}

.wizard-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 25px 60px rgba(255, 140, 0, 0.7));
}

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

.magic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Title */
.title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--text-dark);
    text-shadow: 3px 3px 0 #ff8c00, 6px 6px 0 rgba(0,0,0,0.1);
    margin-bottom: 10px;
    z-index: 1;
    animation: titlePulse 2s ease-in-out infinite;
}

.logo-img {
    width: clamp(280px, 50vw, 500px);
    height: auto;
    z-index: 1;
    animation: titlePulse 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 20px rgba(0, 255, 0, 0.3));
    margin-bottom: 10px;
}

.logo-img.side-logo {
    position: absolute;
    left: 20px;
    top: 120px;
    width: clamp(200px, 25vw, 350px);
    animation: logoFloat 4s ease-in-out infinite;
}

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

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 30px rgba(0, 255, 0, 0.5));
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.subtitle {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #ff8c00;
    margin-top: 10px;
    margin-bottom: 30px;
    z-index: 1;
    text-shadow: 2px 2px 0 #000;
}

/* Join Button */
.join-btn {
    background: linear-gradient(180deg, #ffb347 0%, #ff8c00 100%);
    border: 3px solid #000;
    border-radius: 15px;
    padding: 15px 50px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.2s;
    z-index: 1;
    animation: btnGlow 2s ease-in-out infinite;
}

.join-btn-link {
    display: inline-block;
    z-index: 1;
    transition: all 0.3s ease;
}

.join-btn-img {
    width: clamp(150px, 25vw, 250px);
    height: auto;
    filter: drop-shadow(5px 5px 0 rgba(0,0,0,0.3));
    transition: all 0.3s ease;
    animation: btnFloat 2s ease-in-out infinite;
}

.join-btn-link:hover .join-btn-img {
    transform: translateY(-8px) rotate(-5deg) scale(1.1);
    filter: drop-shadow(8px 12px 0 rgba(0,0,0,0.4));
}

@keyframes btnFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 5px 5px 0 #000, 0 0 20px rgba(255, 140, 0, 0.3); }
    50% { box-shadow: 5px 5px 0 #000, 0 0 40px rgba(255, 140, 0, 0.6); }
}

.join-btn:hover {
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 8px 8px 0 #000;
}

/* Meme Text */
.meme-text {
    margin-top: 40px;
    text-align: center;
    z-index: 1;
}

.floating-text {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 10px 0;
    animation: floatText 3s ease-in-out infinite;
}

.floating-text.delay-1 { animation-delay: 1s; }
.floating-text.delay-2 { animation-delay: 2s; }

@keyframes floatText {
    0%, 100% { transform: translateX(-10px); opacity: 0.8; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    top: 0;
    left: 0;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatAround 10s ease-in-out infinite;
}

.float-item:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.float-item:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.float-item:nth-child(3) { top: 60%; left: 8%; animation-delay: 2s; }
.float-item:nth-child(4) { top: 70%; right: 5%; animation-delay: 3s; }
.float-item:nth-child(5) { top: 40%; left: 3%; animation-delay: 4s; }
.float-item:nth-child(6) { top: 80%; left: 15%; animation-delay: 5s; }
.float-item:nth-child(7) { top: 30%; right: 3%; animation-delay: 6s; }
.float-item:nth-child(8) { top: 90%; right: 15%; animation-delay: 7s; }

@keyframes floatAround {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: translate(20px, -30px) rotate(90deg); 
    }
    50% { 
        transform: translate(-10px, -50px) rotate(180deg); 
    }
    75% { 
        transform: translate(30px, -20px) rotate(270deg); 
    }
}

/* Chaos Messages */
.chaos-messages {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
    top: 0;
    left: 0;
}

.chaos-msg {
    position: absolute;
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #ff00ff;
    text-shadow: 2px 2px 0 #00ffff, -2px -2px 0 #ffff00;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* Chaos Levels */
body.chaos-1 {
    --chaos-hue: 10;
}

body.chaos-2 {
    --chaos-hue: 30;
    animation: bgPulse 3s ease-in-out infinite;
}

body.chaos-3 {
    --chaos-hue: 60;
    animation: bgPulse 2s ease-in-out infinite;
}

body.chaos-4 {
    --chaos-hue: 90;
}

body.chaos-5 {
    --chaos-hue: 120;
}

body.chaos-5 .wizard-img {
    animation: wizardCrazy 0.5s ease-in-out infinite;
}

body.chaos-6 {
    --chaos-hue: 180;
}

body.chaos-6 .title {
    animation: titleCrazy 0.3s ease-in-out infinite;
}

body.chaos-7 {
    --chaos-hue: 240;
}

body.chaos-7 .nav-btn {
    animation: btnCrazy 0.4s ease-in-out infinite;
}

body.chaos-8 {
    --chaos-hue: 300;
}

body.chaos-8 .floating-elements .float-item {
    animation: itemsCrazy 0.3s ease-in-out infinite;
}

body.chaos-9 {
    animation: fullChaos 0.2s ease-in-out infinite;
}

body.chaos-10 {
    animation: ultimateChaos 0.1s linear infinite;
}

body.chaos-10 .chaos-overlay {
    opacity: 0.5;
    animation: overlayFlash 0.1s linear infinite;
}

body.chaos-10 * {
    animation-duration: 0.2s !important;
}

@keyframes bgPulse {
    0%, 100% { background-color: var(--bg-color); }
    50% { background-color: #ffe4e1; }
}

@keyframes wizardCrazy {
    0% { transform: rotate(-10deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(0.9); }
    75% { transform: rotate(15deg) scale(1.05); }
    100% { transform: rotate(-10deg) scale(1); }
}

@keyframes titleCrazy {
    0% { transform: skewX(-5deg); color: #ff0000; }
    33% { transform: skewX(5deg); color: #00ff00; }
    66% { transform: skewX(-3deg); color: #0000ff; }
    100% { transform: skewX(5deg); color: #ff00ff; }
}

@keyframes btnCrazy {
    0% { transform: rotate(-5deg) translateY(-5px); background: #ff6b6b; }
    50% { transform: rotate(5deg) translateY(5px); background: #4ecdc4; }
    100% { transform: rotate(-5deg) translateY(-5px); background: #ffe66d; }
}

@keyframes itemsCrazy {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

@keyframes fullChaos {
    0% { 
        filter: hue-rotate(0deg) saturate(1); 
        transform: translateX(0);
    }
    25% { 
        filter: hue-rotate(90deg) saturate(2); 
        transform: translateX(-5px);
    }
    50% { 
        filter: hue-rotate(180deg) saturate(1.5); 
        transform: translateX(5px);
    }
    75% { 
        filter: hue-rotate(270deg) saturate(2); 
        transform: translateX(-3px);
    }
    100% { 
        filter: hue-rotate(360deg) saturate(1); 
        transform: translateX(0);
    }
}

@keyframes ultimateChaos {
    0% { 
        filter: hue-rotate(0deg) saturate(3) brightness(1.2); 
        transform: scale(1) rotate(0deg);
    }
    25% { 
        filter: hue-rotate(90deg) saturate(2) brightness(0.8); 
        transform: scale(1.02) rotate(1deg);
    }
    50% { 
        filter: hue-rotate(180deg) saturate(4) brightness(1.5); 
        transform: scale(0.98) rotate(-1deg);
    }
    75% { 
        filter: hue-rotate(270deg) saturate(2.5) brightness(1); 
        transform: scale(1.01) rotate(0.5deg);
    }
    100% { 
        filter: hue-rotate(360deg) saturate(3) brightness(1.2); 
        transform: scale(1) rotate(0deg);
    }
}

@keyframes overlayFlash {
    0% { background: radial-gradient(circle, transparent 50%, rgba(255, 0, 255, 0.5)); }
    33% { background: radial-gradient(circle, transparent 50%, rgba(0, 255, 255, 0.5)); }
    66% { background: radial-gradient(circle, transparent 50%, rgba(255, 255, 0, 0.5)); }
    100% { background: radial-gradient(circle, transparent 50%, rgba(255, 0, 255, 0.5)); }
}

/* Glitch effect for high chaos */
body.chaos-8::before,
body.chaos-9::before,
body.chaos-10::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1001;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Custom Wand Cursor */
body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">🪄</text></svg>') 4 4, auto;
}

button, a, .nav-btn, .join-btn, .cta-btn, .ai-card, .meme-card, .spell {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="24" font-size="24">✨</text></svg>') 4 4, pointer;
}

/* AI Section */
.ai-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-color) 0%, #e8e0c8 100%);
    position: relative;
    overflow: hidden;
}

.section-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 15deg,
        rgba(255, 140, 0, 0.1) 15deg 30deg
    );
    border-radius: 50%;
    animation: raysSpin 40s linear infinite;
    z-index: 0;
}

.section-title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    color: var(--text-dark);
    text-shadow: 2px 2px 0 var(--accent-3);
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.ai-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ai-card {
    background: #fff9e6;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 6px 6px 0 #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 10px 10px 0 #000;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 230, 109, 0.3) 50%,
        transparent 70%
    );
    animation: cardShine 3s ease-in-out infinite;
    transform: rotate(45deg);
}

@keyframes cardShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ai-card h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.ai-card p {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #555;
    line-height: 1.4;
}

.card-sparkle {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

/* Meme Section */
.meme-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #e8e0c8 0%, #ddd5bd 100%);
}

.meme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.meme-card {
    background: #fff;
    border: 4px solid #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.3s ease;
}

.meme-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.meme-image {
    font-size: 5rem;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
    border-bottom: 3px solid #000;
}

.meme-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 3px solid #000;
    transition: all 0.3s ease;
}

.meme-card:hover .meme-image-img {
    transform: scale(1.05);
}

.meme-caption {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    padding: 20px;
    text-align: center;
    color: var(--text-dark);
}

/* Spellbook Section */
.spellbook-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #ddd5bd 0%, #d4cbb0 100%);
    display: flex;
    justify-content: center;
}

.spellbook {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    border: 5px solid #000;
    border-radius: 10px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 10px 10px 0 #000, inset 0 0 50px rgba(0,0,0,0.3);
    position: relative;
}

.spellbook::before {
    content: '📜';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    animation: scrollFloat 2s ease-in-out infinite;
}

@keyframes scrollFloat {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.book-cover h2 {
    font-family: 'Permanent Marker', cursive;
    color: #ff8c00;
    text-align: center;
    font-size: 2rem;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 30px;
}

.spells-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spell {
    background: rgba(255, 140, 0, 0.1);
    border: 2px solid #ff8c00;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.spell:hover {
    background: rgba(255, 140, 0, 0.3);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.spell-name {
    font-family: 'Courier New', monospace;
    color: #ffb347;
    font-size: 1.1rem;
    font-weight: bold;
}

.spell-effect {
    font-family: 'Caveat', cursive;
    color: #fff;
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #d4cbb0 0%, var(--bg-color) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
    border: 4px solid #000;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) rotate(-3deg);
}

.stat-number {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: #fff;
    text-shadow: 3px 3px 0 #000;
}

.stat-label {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    color: #000;
    margin-top: 10px;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: #fff;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 5px 5px 0 #000;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: rotate(-1deg) scale(1.02);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: #ff8c00;
    font-family: serif;
    line-height: 1;
}

.testimonial-avatar {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.testimonial-text {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
    padding: 0 20px;
}

.testimonial-author {
    display: block;
    font-family: 'Permanent Marker', cursive;
    font-size: 1rem;
    color: #888;
    text-align: right;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff5500 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '✨';
    position: absolute;
    font-size: 20rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ctaStar 3s ease-in-out infinite;
}

@keyframes ctaStar {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
}

.cta-content h2 {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 20px;
}

.cta-content > p {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-btn {
    padding: 15px 40px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    border: 3px solid #000;
    border-radius: 15px;
    box-shadow: 5px 5px 0 #000;
    transition: all 0.2s ease;
}

.cta-btn.primary {
    background: #ffe66d;
    color: #000;
}

.cta-btn.secondary {
    background: #4ecdc4;
    color: #000;
}

.cta-btn.tertiary {
    background: #ff6b6b;
    color: #fff;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 #000;
}

.disclaimer {
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* Footer */
.footer {
    padding: 50px 20px;
    background: #2d3436;
    text-align: center;
    color: #fff;
}

.footer-wizard-img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    animation: wizardFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 140, 0, 0.5));
}

.footer p {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.twitter-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.twitter-link:hover {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 6px 8px 0 #000;
    background: linear-gradient(135deg, #0d8ecf 0%, #1da1f2 100%);
}

.twitter-icon {
    font-size: 1.8rem;
    animation: tweetBounce 1s ease-in-out infinite;
}

@keyframes tweetBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.footer-meme {
    font-size: 1rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-pills {
        top: auto;
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }
    
    .chaos-meter {
        top: 15px;
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .wizard {
        font-size: 5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .logo-img.side-logo {
        position: relative;
        left: auto;
        top: auto;
        width: clamp(200px, 60vw, 300px);
        margin-bottom: 20px;
    }
    
    .wizard-img {
        width: clamp(250px, 70vw, 400px);
    }
    
    .ai-section,
    .meme-section,
    .spellbook-section,
    .stats-section,
    .testimonials-section,
    .cta-section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .ai-cards,
    .meme-gallery,
    .stats-grid,
    .testimonials {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .spellbook {
        padding: 20px;
    }
    
    .spell {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}
