:root {
    --primary-color: #ff8fb1;
    --secondary-color: #a2d2ff;
    --accent-color: #ffd6e0;
    --text-color: #333333;
    --text-color-light: #666666;
    --background-color: #fef6f8;
    --glass-background: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    cursor: url('../assets/images/cursor.png'), auto;
    background: linear-gradient(
        135deg,
        var(--background-color) 0%,
        var(--accent-color) 100%
    );
    min-height: 100vh;
}

.cursor-follower {
    width: 20px;
    height: 20px;
    background: url('../assets/images/cursor.png') no-repeat center center;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.header {
    background: var(--glass-background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    position: fixed;
    width: 100%;
    z-index: 100;
    border-radius: 0 0 20px 20px;
    padding: 1rem;
}

.nav {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: var(--glass-background);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
}

.nav-item:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.title {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: bounce 2s infinite;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    letter-spacing: 2px;
}

.games-section, .about-section {
    padding: 4rem 2rem;
    text-align: center;
}

.games-container {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
}

.game-card {
    flex: 1;
    max-width: 400px;
    min-width: 280px;
    background: var(--glass-background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px 0 var(--glass-shadow);
}

.game-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--text-color-light);
}

.profile-card {
    background: var(--glass-background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    max-width: 600px;
    margin: 2rem auto;
}

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-window {
    background: var(--glass-background);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    max-width: 90%;
    width: 600px;
    text-align: center;
    position: relative;
}

.game-window.click-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-height: 400px;
    background: linear-gradient(
        135deg,
        var(--background-color) 0%,
        var(--accent-color) 100%
    );
}

.game-window.memory-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 450px;
    max-width: 450px;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 243, 248, 0.9) 0%,
        rgba(255, 214, 224, 0.9) 100%
    );
    position: relative;
    overflow: hidden;
}

.game-window.memory-game::before,
.game-window.memory-game::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
}

.game-window.memory-game::before {
    background: var(--primary-color);
    top: -20px;
    left: -20px;
}

.game-window.memory-game::after {
    background: var(--secondary-color);
    bottom: -20px;
    right: -20px;
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-item {
    background: var(--glass-background);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-size: 1.2rem;
    color: var(--text-color);
    box-shadow: 0 4px 15px var(--glass-shadow);
    font-weight: 500;
}

.game-area {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--glass-background);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

#target {
    width: 60px;
    height: 60px;
    position: absolute;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: targetPulse 1s infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

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

.game-controls {
    display: flex;
    gap: 1rem;
}

.game-controls button {
    min-width: 120px;
}

.score-popup {
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    pointer-events: none;
    animation: scoreFloat 1s forwards;
}

@keyframes scoreFloat {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background: var(--primary-color);
    transition: width 0.1s linear;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 400px;
}

.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.memory-card.matched .card-inner {
    animation: cardSuccess 0.5s ease forwards;
}

@keyframes cardSuccess {
    0% {
        transform: rotateY(180deg) scale(1);
        box-shadow: 0 4px 15px rgba(162, 210, 255, 0.3);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
        box-shadow: 0 8px 25px rgba(162, 210, 255, 0.5);
    }
    100% {
        transform: rotateY(180deg) scale(1);
        box-shadow: 0 4px 15px rgba(162, 210, 255, 0.3);
    }
}

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

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--glass-shadow);
    transition: all 0.3s ease;
}

.card-front {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        rgba(255, 143, 177, 0.8) 100%
    );
    box-shadow: 0 4px 15px rgba(255, 143, 177, 0.3);
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        rgba(162, 210, 255, 0.8) 100%
    );
    box-shadow: 0 4px 15px rgba(162, 210, 255, 0.3);
    font-size: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.memory-stats {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

.memory-stat-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.memory-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.memory-controls {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.memory-controls button {
    min-width: 100px;
    padding: 8px 16px;
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        135deg,
        rgba(255, 243, 248, 0.95) 0%,
        rgba(255, 214, 224, 0.95) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    animation: popIn 0.5s ease forwards;
    z-index: 1100;
    max-width: 300px;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.success-message h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 500;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .nav {
        justify-content: space-around;
        padding: 0 1rem;
    }

    .games-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .game-card {
        width: 90%;
        min-width: auto;
    }

    .title {
        font-size: 2rem;
        text-align: center;
    }

    .nav-item {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }

    .game-window.memory-game {
        max-width: 95%;
        padding: 1rem;
    }

    .game-window.memory-game::before,
    .game-window.memory-game::after {
        width: 100px;
        height: 100px;
        filter: blur(30px);
    }

    .memory-stat-item:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .memory-grid {
        gap: 0.5rem;
    }

    .memory-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .memory-stat-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .card-front {
        font-size: 1.8rem;
    }

    .card-back {
        font-size: 2.2rem;
    }
} 