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

:root {
    --red: #FF6B6B;
    --yellow: #FFD93D;
    --blue: #4ECDC4;
    --green: #6BCF7F;
    --purple: #A78BFA;
    --orange: #FF9F66;
    --pink: #FF8CC8;
    --white: #FFFFFF;
    --light-bg: #FFF9E6;
    --dark-text: #2D3436;
    --light-gray: #F5F5F5;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    background: var(--light-bg);
    position: relative;
}

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

/* Animated Background Blocks */
.background-blocks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-block {
    position: absolute;
    border-radius: 12px;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.block-1 {
    width: 80px;
    height: 80px;
    background: var(--red);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.block-2 {
    width: 60px;
    height: 60px;
    background: var(--yellow);
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.block-3 {
    width: 100px;
    height: 100px;
    background: var(--blue);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.block-4 {
    width: 70px;
    height: 70px;
    background: var(--green);
    top: 60%;
    right: 10%;
    animation-delay: 6s;
}

.block-5 {
    width: 90px;
    height: 90px;
    background: var(--purple);
    bottom: 10%;
    right: 25%;
    animation-delay: 8s;
}

.block-6 {
    width: 50px;
    height: 50px;
    background: var(--orange);
    top: 15%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--yellow);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-text);
    font-family: 'Fredoka One', cursive;
}

.logo-block {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background: linear-gradient(135deg, var(--red), var(--yellow), var(--blue), var(--green));
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: logo-rotate 3s infinite;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes logo-rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--blue);
    background: rgba(78, 205, 196, 0.1);
}

.nav-menu a:hover::before {
    width: 80%;
}

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

.hamburger span {
    width: 25px;
    height: 4px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE5E5 50%, #E5F5FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-blocks {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    animation: bounce-in 1s ease-out;
}

@keyframes bounce-in {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    60% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-block {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: block-pulse 2s infinite;
}

.hero-block.red {
    background: var(--red);
    animation-delay: 0s;
}

.hero-block.yellow {
    background: var(--yellow);
    animation-delay: 0.2s;
}

.hero-block.blue {
    background: var(--blue);
    animation-delay: 0.4s;
}

.hero-block.green {
    background: var(--green);
    animation-delay: 0.6s;
}

@keyframes block-pulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-10px);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--red), var(--yellow), var(--blue), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 3s infinite;
}

@keyframes title-shimmer {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(90deg);
    }
}

.hero-tagline {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    line-height: 1.8;
    opacity: 0.9;
}

.hero-description-secondary {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    color: var(--dark-text);
    line-height: 1.8;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--yellow));
    color: var(--white);
    border: 3px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-text);
    border: 3px solid var(--blue);
}

.btn-secondary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screenshots {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.hero-screenshot {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 217, 61, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
    border: 4px solid var(--yellow);
    background: var(--white);
    padding: 5px;
}

.hero-screenshot:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 217, 61, 0.5);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--dark-text);
    font-family: 'Fredoka One', cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-block {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-block;
}

.title-block.red {
    background: var(--red);
}

.title-block.blue {
    background: var(--blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 4px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--yellow);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-block {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.icon-block.red {
    background: var(--red);
}

.icon-block.yellow {
    background: var(--yellow);
}

.icon-block.blue {
    background: var(--blue);
}

.icon-block.green {
    background: var(--green);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--white);
    position: relative;
    z-index: 2;
    transform: rotate(-45deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
    font-family: 'Fredoka One', cursive;
}

.feature-card p {
    color: var(--dark-text);
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: var(--light-bg);
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid transparent;
    background: var(--white);
    padding: 5px;
}

.screenshot-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--yellow);
}

.screenshot-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFE5E5 0%, #E5F5FF 100%);
    position: relative;
    z-index: 1;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.about-blocks {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.about-block {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: block-rotate 3s infinite;
}

.about-block.purple {
    background: var(--purple);
    animation-delay: 0s;
}

.about-block.orange {
    background: var(--orange);
    animation-delay: 0.3s;
}

.about-block.pink {
    background: var(--pink);
    animation-delay: 0.6s;
}

@keyframes block-rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(135deg, var(--red), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--dark-text);
    line-height: 1.8;
    opacity: 0.9;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    font-family: 'Fredoka One', cursive;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.download-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--dark-text);
    font-weight: 600;
}

.download-info i {
    color: var(--green);
    font-size: 1.2rem;
}

/* Download Toast */
.download-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(135deg, var(--red), var(--yellow));
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 1rem;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    border: 3px solid var(--white);
}

.download-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    border-top: 4px solid var(--yellow);
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Fredoka One', cursive;
}

.footer-logo .logo-block,
.footer-logo .logo-img {
    margin-right: 12px;
}

.footer-content p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

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

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-link:hover {
    opacity: 1;
    color: var(--yellow);
    transform: translateY(-2px);
}

.footer-link i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 4px solid var(--yellow);
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.4rem;
    }
    
    .hero-description,
    .hero-description-secondary {
        font-size: 0.95rem;
    }
    
    .hero-screenshots {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-screenshot {
        max-width: 300px;
        width: 100%;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1.5rem;
    }
    
    .download-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .download-toast {
        top: 90px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        text-align: center;
    }
    
    .download-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-screenshot {
        max-width: 250px;
        width: 100%;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-blocks {
        justify-content: center;
    }
    
    .hero-block {
        width: 40px;
        height: 40px;
    }
}

