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

:root {
    --primary-color: #FFD700;
    --secondary-color: #FF6B35;
    --accent-blue: #4ECDC4;
    --accent-pink: #FF69B4;
    --accent-purple: #9B59B6;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --light-text: #ffffff;
    --gray-text: #b8b8b8;
    --gradient-1: linear-gradient(135deg, #FFD700 0%, #FF6B35 100%);
    --gradient-2: linear-gradient(135deg, #4ECDC4 0%, #45B7D1 100%);
    --gradient-3: linear-gradient(135deg, #FF69B4 0%, #FF6B35 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switch {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold !important;
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.lang-switch:hover {
    background: var(--primary-color) !important;
    color: var(--dark-bg) !important;
    -webkit-text-fill-color: var(--dark-bg) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
    background: radial-gradient(ellipse at center, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234ECDC4' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--dark-bg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--darker-bg);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--gray-text);
    line-height: 1.8;
}

/* Gameplay Section */
.gameplay {
    padding: 100px 0;
    background: var(--dark-bg);
}

.gameplay-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.gameplay-section.reverse {
    direction: rtl;
}

.gameplay-section.reverse .gameplay-content {
    direction: ltr;
}

.gameplay-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-pink);
}

.gameplay-list {
    list-style: none;
}

.gameplay-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--gray-text);
    line-height: 1.8;
}

.gameplay-list li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.gameplay-list strong {
    color: var(--light-text);
}

/* Mock Board */
.mock-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid var(--accent-blue);
}

.board-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
}

.board-cell.start {
    background: var(--gradient-1);
    color: var(--dark-bg);
}

.board-cell.target {
    background: var(--gradient-2);
    color: var(--dark-bg);
}

.board-cell.obstacle {
    background: #ff4757;
    color: white;
}

.board-cell.turn {
    background: var(--accent-pink);
    color: white;
}

.board-cell.flip {
    background: var(--accent-purple);
    color: white;
}

.board-cell.jump {
    background: #2ed573;
    color: white;
}

.board-cell.teleport {
    background: #1e90ff;
    color: white;
}

.board-cell.empty {
    background: rgba(255, 255, 255, 0.1);
}

/* Arrow Demo */
.arrow-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid var(--accent-pink);
}

.arrow-path {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: moveArrow 2s ease-in-out infinite;
}

@keyframes moveArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
}

.path-line {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    position: relative;
}

.path-turn {
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-pink);
    border-radius: 50%;
}

.target-reach {
    font-size: 2rem;
    color: var(--accent-blue);
}

/* Tools Display */
.tools-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tool-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.tool-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.tool-name {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 500;
}

/* Levels Section */
.levels {
    padding: 100px 0;
    background: var(--darker-bg);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.level-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.level-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.level-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.level-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.level-card p {
    color: var(--gray-text);
    margin-bottom: 25px;
    line-height: 1.8;
}

.level-difficulty {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.diff-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.diff-dot.active {
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--dark-bg);
}

.download-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 50px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light-text);
    color: var(--dark-bg);
    padding: 15px 35px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.platform-icon {
    font-size: 2.5rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-small {
    font-size: 0.8rem;
    color: var(--dark-bg);
}

.btn-large {
    font-size: 1.3rem;
    font-weight: bold;
}

.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.info-value {
    display: block;
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

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

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-label {
    color: var(--gray-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-email:hover {
    color: var(--accent-blue);
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .gameplay-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gameplay-section.reverse {
        direction: ltr;
    }

    .section-title {
        font-size: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-contact {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.level-card,
.tool-item {
    animation: fadeIn 0.6s ease-out;
}
