/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #6366F1;
    --accent-color: #FFC947;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #FF6B9D 0%, #C084FC 100%);
    --gradient-secondary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.back-link {
    position: absolute;
    left: 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: var(--primary-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 auto;
}

.brand-icon {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #FFF5F7 0%, #F0F4FF 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    background: var(--text-dark);
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B9D 0%, #6366F1 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.preview-icons {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 80px;
    animation: iconBounce 2s ease-in-out infinite;
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   Features Section
   =========================== */
.features {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ===========================
   Skills Section
   =========================== */
.skills {
    background: linear-gradient(135deg, #F0F9FF 0%, #FFF5F7 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid #F3F4F6;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.skill-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
}

.skill-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.skill-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.skill-points {
    list-style: none;
    text-align: left;
    margin-top: 20px;
}

.skill-points li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
}

.skill-points li::before {
    margin-right: 8px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #F3F4F6;
}

.feature-card.featured {
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFFFF 100%);
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   Categories Section
   =========================== */
.categories {
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card.animals {
    border-color: #10B981;
}

.category-card.animals:hover {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.category-card.fruits {
    border-color: #F59E0B;
}

.category-card.fruits:hover {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.category-card.random {
    border-color: var(--secondary-color);
}

.category-card.random:hover {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.category-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.category-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.item {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ===========================
   Languages Section
   =========================== */
.languages {
    background: var(--bg-white);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.language-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #F3F4F6;
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.flag {
    font-size: 48px;
    margin-bottom: 12px;
}

.language-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.language-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

.language-note {
    margin-top: 50px;
    text-align: center;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.language-note p {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0;
}

.language-note strong {
    color: var(--primary-color);
}

/* ===========================
   Download Section
   =========================== */
.download {
    background: var(--gradient-primary);
    color: white;
}

.download-content {
    text-align: center;
}

.download .section-title,
.download .section-description {
    color: white;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.store-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.store-icon svg {
    width: 36px;
    height: 36px;
}

.store-text {
    text-align: left;
}

.store-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.download-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.check-icon {
    font-size: 24px;
    font-weight: bold;
    background: white;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #9CA3AF;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-keywords {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
}

.footer-keywords strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 4px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9CA3AF;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .nav-menu {
        display: none;
    }

    .features-grid,
    .skills-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
