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

:root {
    --primary-color: #FF6D00;
    --primary-gradient: linear-gradient(135deg, #FF6D00 0%, #FF9E40 100%);
    --secondary-color: #00E676;
    --secondary-gradient: linear-gradient(135deg, #00E676 0%, #76FF03 100%);
    --accent-color: #FF1744;
    --accent-gradient: linear-gradient(135deg, #FF1744 0%, #FF5252 100%);
    --background-color: #000;
    --text-color: #fff;
    --white: #fff;
    --neon-shadow: 0 0 10px #00E676, 0 0 20px #00E676, 0 0 30px #00E676;
    --neon-text-shadow: 0 0 5px #FF1744, 0 0 10px #FF1744, 0 0 20px #FF1744;
    --card-shadow: 0 10px 20px rgba(255, 109, 0, 0.4);
    --hover-transform: translateY(-8px) scale(1.05) rotate(2deg);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); text-shadow: var(--neon-text-shadow); }
    50% { transform: scale(1.1); text-shadow: 0 0 15px #FF1744, 0 0 30px #FF1744, 0 0 40px #FF1744; }
    100% { transform: scale(1); text-shadow: var(--neon-text-shadow); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes rainbow {
    0% { color: red; }
    14% { color: orange; }
    28% { color: yellow; }
    42% { color: green; }
    57% { color: blue; }
    71% { color: indigo; }
    85% { color: violet; }
    100% { color: red; }
}

@keyframes bgRainbow {
    0% { background-color: rgba(255, 0, 0, 0.7); }
    14% { background-color: rgba(255, 127, 0, 0.7); }
    28% { background-color: rgba(255, 255, 0, 0.7); }
    42% { background-color: rgba(0, 255, 0, 0.7); }
    57% { background-color: rgba(0, 0, 255, 0.7); }
    71% { background-color: rgba(75, 0, 130, 0.7); }
    85% { background-color: rgba(148, 0, 211, 0.7); }
    100% { background-color: rgba(255, 0, 0, 0.7); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes disco {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

body {
    font-family: 'Bungee', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 109, 0, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(0, 230, 118, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(255, 23, 68, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 70% 90%, rgba(255, 109, 0, 0.2) 0%, transparent 20%);
    overflow-x: hidden;
}

/* Stylish Header */
header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 109, 0, 0.8);
    animation: disco 10s infinite linear;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    z-index: -1;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 2px;
    text-shadow: var(--neon-text-shadow);
    animation: pulse 3s infinite, rainbow 8s infinite;
    cursor: pointer;
}

.logo span {
    display: inline-block;
    font-size: 2.8rem;
    animation: float 5s ease-in-out infinite;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
    padding: 8px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 20px;
}

nav a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--white);
}

nav a:hover::before {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 230, 118, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero img {
    position: absolute;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7) contrast(1.2) saturate(1.5);
    transform-style: preserve-3d;
    transform: translateZ(-50px);
    animation: disco 30s infinite linear;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 4rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
    border: 4px solid;
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    z-index: 2;
    transform-style: preserve-3d;
    transform: translateZ(50px);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: var(--neon-text-shadow);
    background: linear-gradient(90deg, #FF6D00, #00E676, #FF1744, #FF6D00);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shimmer 5s linear infinite;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: pulse 5s infinite;
}

.btn {
    display: inline-block;
    background: var(--secondary-gradient);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 230, 118, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.5);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse 3s infinite;
}

.btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: all 0.5s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.7);
    color: var(--white);
    text-shadow: 0 0 10px var(--white);
}

.btn:hover::before {
    left: 0;
}

.btn:hover i {
    transform: translateX(10px) scale(1.2);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 8rem;
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    padding: 3.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid;
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color)) 1;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--secondary-gradient);
    z-index: 1;
}

section::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.1) 0%, rgba(0, 230, 118, 0.1) 100%);
    pointer-events: none;
}

section:hover {
    transform: var(--hover-transform);
    box-shadow: 0 20px 40px rgba(255, 109, 0, 0.6);
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-size: 3rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
    text-shadow: var(--neon-shadow);
    animation: pulse 5s infinite;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
    border-radius: 5px;
    box-shadow: var(--neon-shadow);
}

/* Facts Grid */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.fact-card {
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    transform-style: preserve-3d;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(255, 109, 0, 0.1), 
        transparent, 
        rgba(0, 230, 118, 0.1), 
        transparent
    );
    animation: spin 8s linear infinite;
    z-index: -1;
}

.fact-card:hover {
    transform: translateY(-20px) scale(1.1) rotate(3deg);
    box-shadow: 0 15px 30px rgba(255, 23, 68, 0.4);
    background-color: rgba(70, 70, 70, 0.9);
}

.fact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 0 5px rgba(255, 109, 0, 0.5);
}

.fact-card h3::before {
    content: '🦫';
    font-size: 2rem;
    animation: bounce 3s ease-in-out infinite;
    display: inline-block;
}

.fact-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Image Sections */
.image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.image-section img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.8s ease;
    transform-style: preserve-3d;
    border: 5px solid;
    border-image: linear-gradient(to bottom, var(--primary-color), var(--accent-color)) 1;
    filter: contrast(1.1) saturate(1.3);
}

.image-section:hover img {
    transform: perspective(1000px) rotateY(10deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 109, 0, 0.4);
    filter: contrast(1.2) saturate(1.5) brightness(1.1);
}

.image-section-content {
    padding: 1.5rem;
}

.image-section-content p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.9;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Glowing text */
.glow-text {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color);
    font-weight: bold;
    animation: pulse 4s infinite;
}

/* Highlight effect */
.highlight {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0) 70%);
    padding: 15px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 230, 118, 0.2);
    position: relative;
    overflow: hidden;
}

.highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.1), transparent);
    animation: shimmer 3s infinite;
}

/* Footer */
footer {
    background: var(--primary-gradient);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 6rem;
    position: relative;
    box-shadow: 0 -10px 30px rgba(255, 109, 0, 0.3);
    animation: disco 15s infinite linear;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(45deg, transparent 33.33%, var(--primary-color) 33.33%, var(--primary-color) 66.66%, transparent 66.66%), linear-gradient(-45deg, transparent 33.33%, var(--primary-color) 33.33%, var(--primary-color) 66.66%, transparent 66.66%);
    background-size: 20px 40px;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--white);
    font-size: 2rem;
    transition: all 0.4s;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-10px) scale(1.2) rotate(15deg);
    color: var(--white);
    text-shadow: 0 0 10px var(--white);
    box-shadow: 0 10px 25px rgba(255, 23, 68, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

/* Animated elements */
.animated-element {
    animation: fadeIn 1s ease-out;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid #222;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient);
}

/* Floating Elements */
.floating-facts {
    animation: bgRainbow 10s infinite;
    border: 3px solid;
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

/* Confetti background */
.confetti {
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    opacity: 0.6;
    border-radius: 3px;
    animation: float 8s infinite ease-in-out;
    z-index: -1;
    pointer-events: none;
}

/* Cursor trail effect */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s, opacity 0.5s;
    transform: translate(-50%, -50%);
    opacity: 0;
    background: radial-gradient(circle, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 15px var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 550px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .image-section {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    section {
        padding: 2.5rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Extra animations for elements */
.capybara-emoji {
    display: inline-block;
    animation: bounce 3s infinite;
}

/* Rainbow text */
.rainbow-text {
    animation: rainbow 8s infinite;
    font-weight: bold;
}

/* 3D text effect */
.text-3d {
    text-shadow: 
        1px 1px 0 var(--primary-color),
        2px 2px 0 var(--primary-color),
        3px 3px 0 var(--primary-color),
        4px 4px 0 var(--primary-color),
        5px 5px 0 var(--primary-color),
        6px 6px 10px rgba(0,0,0,0.7);
    color: var(--white);
    transform: perspective(500px) rotateX(10deg);
    display: inline-block;
}

/* Blink effect */
.blink {
    animation: pulse 1s infinite;
}

/* Marquee style */
.marquee {
    overflow: hidden;
    position: relative;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.marquee-item {
    margin: 0 30px;
}

/* Blinking borders */
.blinking-border {
    border: 4px solid var(--accent-color);
    animation: colorChange 2s infinite;
}

@keyframes colorChange {
    0% { border-color: var(--primary-color); }
    33% { border-color: var(--secondary-color); }
    66% { border-color: var(--accent-color); }
    100% { border-color: var(--primary-color); }
}

/* Sparkle effect */
.sparkle {
    position: relative;
    display: inline-block;
}

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 1.5em;
    animation: pulse 2s infinite;
}

/* Party mode toggle */
.party-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.party-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.party-mode {
    animation: bgRainbow 10s infinite;
}