@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #a4c9d7;
    /* Soft Blue from Logo */
    --accent-color: #e3a6a1;
    /* Soft Peach or muted red */
    --bg-main: #e3d8c6;
    /* Requested Cozy Beige */
    --bg-card: #ffffff;
    --text-main: #4a3f35;
    /* Soft Brown instead of Black */
    --text-muted: #6e6052;
    /* Increased contrast from #8c7e6d */
    --border-radius: 24px;
    /* More rounded for cozy feel */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #d4c7b2;
    border-radius: 10px;
    border: 3px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(227, 216, 198, 0.85);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(74, 63, 53, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    /* Increased from 50px */
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    /* Increased from 2rem */
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    /* Increased weight */
    font-size: 1.1rem;
    /* Increased from 0.95rem */
    transition: var(--transition-smooth);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(2px);
    animation: float 10s ease-in-out infinite alternate;
}

@keyframes float {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(20px, 40px) rotate(10deg);
    }
}

.hero-content {
    text-align: center;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 18px rgba(74, 63, 53, 0.25);
    /* Darker, more contrasty shadow */
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(74, 63, 53, 0.35);
}

/* Games Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(74, 63, 53, 0.03);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 63, 53, 0.08);
}

.game-image {
    width: 100%;
    height: 200px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
}

.game-info {
    padding: 0 1rem 1rem;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.cute-blob {
    width: 100%;
    max-width: 350px;
    height: 350px;
    background: var(--primary-color);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(74, 63, 53, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column-reverse;
    }
}