/* Color Palette */
:root {
    --primary-purple: #3B1E54;
    --medium-purple: #9B7EBD;
    --light-purple: #D4BEE4;
    --light-gray: #EEEEEE;
    --white: #FFFFFF;
    --black: #000000;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--primary-purple);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--light-purple) 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--light-purple);
    z-index: 1000;
    transition: all 0.3s ease;
}
img.cartoon-image {
    width: 800px;
    height: 300px;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left .menu-items {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover {
    color: var(--medium-purple);
    background: rgba(155, 126, 189, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--medium-purple);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Logo Styles */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-purple);
    position: relative;
}

.logo-text {
    z-index: 2;
    position: relative;
}

.logo-shapes {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 10px;
}

.shape-1, .shape-2, .shape-3 {
    position: absolute;
    border-radius: 50%;
    animation: logoFloat 3s ease-in-out infinite;
}

.shape-1 {
    width: 20px;
    height: 20px;
    background: var(--medium-purple);
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.shape-2 {
    width: 15px;
    height: 15px;
    background: var(--light-purple);
    top: 10px;
    right: 0;
    animation-delay: 0.5s;
}

.shape-3 {
    width: 12px;
    height: 12px;
    background: var(--primary-purple);
    bottom: 0;
    left: 15px;
    animation-delay: 1s;
}

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

/* Search Styles */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(212, 190, 228, 0.3);
    border-radius: 25px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-container:hover {
    background: rgba(212, 190, 228, 0.5);
    transform: scale(1.05);
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    outline: none;
    color: var(--primary-purple);
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: var(--medium-purple);
}

.search-btn {
    background: var(--medium-purple);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-purple);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--medium-purple) 50%, var(--light-purple) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-large {
    width: 300px;
    height: 300px;
    background: rgba(212, 190, 228, 0.4);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-medium {
    width: 200px;
    height: 200px;
    background: rgba(155, 126, 189, 0.4);
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.shape-small {
    width: 100px;
    height: 100px;
    background: rgba(238, 238, 238, 0.4);
    top: 30%;
    left: 20%;
    animation-delay: 4s;
}

.flowing-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: flowLine 8s linear infinite;
}

.line-1 {
    width: 100%;
    top: 25%;
    animation-delay: 0s;
}

.line-2 {
    width: 100%;
    bottom: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

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

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.title-word {
    display: inline-block;
    animation: wordReveal 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.4s; }
.title-word:nth-child(3) { animation-delay: 0.6s; }
.title-word:nth-child(4) { animation-delay: 0.8s; }
.title-word:nth-child(5) { animation-delay: 1s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: white;
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.cta-button:active .button-ripple {
    width: 300px;
    height: 300px;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-purple);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--medium-purple), var(--light-purple));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Features Section */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(212, 190, 228, 0.1), rgba(155, 126, 189, 0.1));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 30, 84, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(155, 126, 189, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.feature-icon {
    margin-bottom: 2rem;
}

.icon-abstract {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.icon-1 {
    background: linear-gradient(45deg, var(--primary-purple), var(--medium-purple));
}

.icon-2 {
    background: linear-gradient(45deg, var(--medium-purple), var(--light-purple));
}

.icon-3 {
    background: linear-gradient(45deg, var(--light-purple), var(--primary-purple));
}

.feature-card:hover .icon-abstract {
    transform: rotate(15deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.feature-card p {
    color: var(--medium-purple);
    line-height: 1.8;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--light-gray) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.manifesto-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-purple);
    line-height: 1.8;
}

.manifesto-text blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--medium-purple);
    border-left: 4px solid var(--medium-purple);
    padding-left: 2rem;
    margin: 2rem 0;
}

.cartoon-illustration {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.illustration-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--medium-purple));
    border-radius: 20px;
}

.character-main {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: var(--light-gray);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.character-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.char-shape-1, .char-shape-2, .char-shape-3 {
    position: absolute;
    border-radius: 50%;
    animation: charFloat 4s ease-in-out infinite;
}

.char-shape-1 {
    width: 60px;
    height: 60px;
    background: rgba(238, 238, 238, 0.8);
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.char-shape-2 {
    width: 40px;
    height: 40px;
    background: rgba(212, 190, 228, 0.8);
    bottom: 30%;
    right: 25%;
    animation-delay: 1s;
}

.char-shape-3 {
    width: 30px;
    height: 30px;
    background: rgba(155, 126, 189, 0.8);
    top: 30%;
    right: 30%;
    animation-delay: 2s;
}

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

/* Games Section */
.games {
    background: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 30, 84, 0.3);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 30, 84, 0.3), rgba(155, 126, 189, 0.3));
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 2rem;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
}

.game-info p {
    color: var(--medium-purple);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.play-button {
    background: linear-gradient(135deg, var(--primary-purple), var(--medium-purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 30, 84, 0.4);
}

.play-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.play-button:active .play-ripple {
    width: 300px;
    height: 300px;
}

/* Disclaimer Section */
.disclaimer {
    background: linear-gradient(135deg, var(--light-purple), var(--light-gray));
    text-align: center;
}

.disclaimer h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-purple);
}

.disclaimer p {
    font-size: 1.1rem;
    color: var(--medium-purple);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-purple);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer p {
    margin-bottom: 1rem;
}

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

.footer-link {
    color: var(--light-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo-container {
        position: static;
        transform: none;
    }
    
    .nav-left .menu-items {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

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

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

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