/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.cookie-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.cookie-content p {
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.btn-accept {
    background: #F2A599;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-accept:hover {
    background: #e89489;
}

.btn-settings {
    background: transparent;
    color: #F2A599;
    border: 2px solid #F2A599;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-settings:hover {
    background: #F2A599;
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(242, 165, 153, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-brand a {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: #F2A599;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background-image: url(./assets/bg.png);
    background-size: cover;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 80px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-image {
    width: 140px;
    height: 140px;
}

.cat-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 6px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title {
    color: #F4E76E;
    font-weight: 300;
    line-height: 0.85;
}

.title-line-1 .title-a {
    font-size: 8rem;
    display: block;
}

.title-line-2 .title-little {
    font-size: 5rem;
    display: block;
}

.title-line-3 {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.title-to,
.title-the {
    font-size: 2.2rem;
    color: white;
    font-weight: 300;
}

.title-left {
    font-size: 5rem;
    font-weight: 300;
}

.app-downloads {
    display: flex;
    gap: 20px;
}

.download-btn img {
    height: 60px;
    transition: transform 0.3s ease;
}

.download-btn:hover img {
    transform: scale(1.05);
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-cover {
    width: 420px;
    height: 420px;
    background: #F4E76E;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
}

.cover-title {
    color: #333;
    font-weight: 700;
    line-height: 0.8;
}

.cover-line-1 .cover-a {
    font-size: 4.5rem;
    display: block;
}

.cover-line-2 .cover-little {
    font-size: 3.2rem;
    display: block;
}

.cover-line-3 .cover-to {
    font-size: 1.8rem;
    display: block;
}

.cover-line-4 {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.cover-the {
    font-size: 1.8rem;
}

.cover-left {
    font-size: 3.2rem;
}

.cover-subtitle {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cupboards {
    font-size: 1.8rem;
    color: #E91E63;
    font-weight: 700;
}

.and {
    font-size: 1.4rem;
    color: #E91E63;
    font-weight: 400;
}

.drawers {
    font-size: 1.8rem;
    color: #E91E63;
    font-weight: 700;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-pencils {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 120px;
    opacity: 0.8;
}

.decoration-scissors {
    position: absolute;
    bottom: 25%;
    right: 8%;
    width: 90px;
    opacity: 0.8;
}

.decoration-tape {
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 70px;
    opacity: 0.8;
}

.decoration-books {
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 100px;
    opacity: 0.6;
}

/* About Section */
.about {
    padding: 120px 0;
    background: #A4C79A;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-left {
    flex: 0 0 400px;
}

.game-icon img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-right {
    flex: 1;
}

.about-right h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 40px;
    font-weight: 600;
    line-height: 1.2;
}

.about-right p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: #E91E63;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 100px;
    font-weight: 600;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 100px;
}

.feature-card {
    text-align: left;
}

.feature-image {
    width: 220px;
    height: 220px;
    margin-bottom: 40px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.feature-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

/* Game End Section */
.game-end {
    padding: 120px 0;
    background: #7B68EE;
}

.game-end h2 {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 80px;
    font-weight: 600;
    line-height: 1.2;
}

.game-end-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.game-end-text {
    flex: 2;
}

.game-end-text p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.8;
}

.game-end-image {
    flex: 1;
    text-align: center;
}

.game-end-image img {
    max-width: 300px;
    height: auto;
}

/* Reviews Section */
.reviews {
    padding: 120px 0;
    background: #F2A599;
}

.reviews h2 {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 100px;
    font-weight: 600;
    line-height: 1.2;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
}

.review-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.reviewer-avatar {
    flex: 0 0 80px;
    height: 80px;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.review-content {
    flex: 1;
}

.review-content p {
    font-size: 1.1rem;
    color: white;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: #4169E1;
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 80px;
    font-weight: 600;
    line-height: 1.2;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.3s ease;
    border: 2px solid transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: #F2A599;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: none;
}

.submit-btn:hover {
    background: #e89489;
}

/* Footer */
.footer {
    background: #2C3E50;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .navbar {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 60px;
        padding: 0 30px;
    }
    
    .game-cover {
        width: 380px;
        height: 380px;
        padding: 40px 35px;
    }
    
    .cover-line-1 .cover-a {
        font-size: 4rem;
    }
    
    .cover-line-2 .cover-little,
    .cover-line-4 .cover-left {
        font-size: 2.8rem;
    }
    
    .features-grid {
        gap: 60px 80px;
    }
    
    .about-content,
    .game-end-content {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 88px;
        flex-direction: column;
        background-color: rgba(242, 165, 153, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        gap: 30px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding: 60px 20px 0;
    }
    
    .hero-left {
        align-items: center;
    }
    
    .title-line-1 .title-a {
        font-size: 5rem;
    }
    
    .title-line-2 .title-little {
        font-size: 3.5rem;
    }
    
    .title-line-3 {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .title-to,
    .title-the {
        font-size: 1.8rem;
    }
    
    .title-left {
        font-size: 3.5rem;
    }
    
    .game-cover {
        width: 320px;
        height: 320px;
        padding: 30px 25px;
        transform: rotate(0deg);
    }
    
    .cover-line-1 .cover-a {
        font-size: 3rem;
    }
    
    .cover-line-2 .cover-little,
    .cover-line-4 .cover-left {
        font-size: 2.2rem;
    }
    
    .cover-line-3 .cover-to,
    .cover-line-4 .cover-the {
        font-size: 1.4rem;
    }
    
    .cupboards,
    .drawers {
        font-size: 1.4rem;
    }
    
    .and {
        font-size: 1.1rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .about-left {
        flex: none;
        max-width: 300px;
    }
    
    .about-right h2,
    .section-title,
    .game-end h2,
    .reviews h2,
    .contact h2 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .feature-image {
        margin: 0 auto 30px;
    }
    
    .game-end-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        gap: 30px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 90px;
    }
    
    .hero-content {
        padding: 40px 15px 0;
    }
    
    .title-line-1 .title-a {
        font-size: 4rem;
    }
    
    .title-line-2 .title-little {
        font-size: 2.8rem;
    }
    
    .title-left {
        font-size: 2.8rem;
    }
    
    .title-to,
    .title-the {
        font-size: 1.5rem;
    }
    
    .game-cover {
        width: 280px;
        height: 280px;
        padding: 25px 20px;
    }
    
    .cover-line-1 .cover-a {
        font-size: 2.5rem;
    }
    
    .cover-line-2 .cover-little,
    .cover-line-4 .cover-left {
        font-size: 1.8rem;
    }
    
    .cover-line-3 .cover-to,
    .cover-line-4 .cover-the {
        font-size: 1.1rem;
    }
    
    .cupboards,
    .drawers {
        font-size: 1.1rem;
    }
    
    .and {
        font-size: 0.9rem;
    }
    
    .app-downloads {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .download-btn img {
        height: 50px;
    }
    
    .about-right h2,
    .section-title,
    .game-end h2,
    .reviews h2,
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .feature-image {
        width: 180px;
        height: 180px;
    }
    
    .review-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .reviewer-avatar {
        flex: none;
        align-self: center;
        width: 60px;
        height: 60px;
    }
    
    .cookie-content {
        padding: 20px;
    }
    
    .cookie-content h3 {
        font-size: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-left > * {
    opacity: 0;
}

.loaded .hero-left > * {
    opacity: 1;
}