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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

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

/* Ocean Beach Color Palette */
:root {
    --ocean-blue: #0066cc;
    --deep-blue: #004499;
    --light-blue: #4da6ff;
    --sand-beige: #f4e4bc;
    --warm-sand: #e6d3a3;
    --coral-pink: #ff6b6b;
    --seafoam-green: #4ecdc4;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --gradient-ocean: linear-gradient(135deg, #0066cc 0%, #4da6ff 50%, #4ecdc4 100%);
    --gradient-sand: linear-gradient(135deg, #f4e4bc 0%, #e6d3a3 100%);
}

/* Hero Section - Asymmetric Layout */
.hero {
    min-height: 100vh;
    background: var(--gradient-ocean);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

.hero-left {
    padding-right: 40px;
}

.logo-container {
    margin-bottom: 30px;
}

.game-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--sand-beige);
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-primary {
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffa8a8 100%);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #e55a5a 0%, #ff6b6b 50%, #ff8e8e 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 20px 50px;
    border: 2px solid var(--white);
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: transparent;
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--ocean-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* Phone Mockup */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--text-dark);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-ocean);
    border-radius: 25px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-screenshot {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.game-screenshot:hover {
    transform: scale(1.05);
}

/* Wave Decoration */
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.wave-decoration svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
}

/* Screenshots Gallery */
.screenshots-gallery {
    margin-bottom: 80px;
    text-align: center;
}

.screenshots-gallery h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 600;
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--ocean-blue) var(--sand-beige);
}

.screenshots-grid::-webkit-scrollbar {
    height: 8px;
}

.screenshots-grid::-webkit-scrollbar-track {
    background: var(--sand-beige);
    border-radius: 4px;
}

.screenshots-grid::-webkit-scrollbar-thumb {
    background: var(--ocean-blue);
    border-radius: 4px;
}

.screenshots-grid::-webkit-scrollbar-thumb:hover {
    background: var(--deep-blue);
}

.screenshot-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 200px;
}

.screenshot-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.1);
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--ocean-blue);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Game Features Detail */
.game-features {
    padding: 100px 0;
    background: var(--gradient-sand);
}

.game-features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 700;
}

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

.feature-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-detail-item:hover {
    transform: translateY(-5px);
}

.feature-image {
    width: 70px;
    height: 70px;
    background: var(--gradient-ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-image i {
    font-size: 1.8rem;
    color: var(--white);
}

.feature-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: var(--gradient-ocean);
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.download-content p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

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

.btn-download {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--white);
    color: var(--text-dark);
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-download i {
    font-size: 2rem;
}

.btn-download div {
    text-align: left;
}

.btn-download span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-download strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.download-footer {
    margin-top: 30px;
    text-align: center;
}

.download-footer p {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-footer a {
    color: var(--sand-beige);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.download-footer a:hover {
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #34495e;
    border-bottom: 1px solid #34495e;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-link:hover {
    background: var(--ocean-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

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

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-left p {
    color: var(--text-light);
}

.app-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    background: var(--white);
    padding: 10px;
}

.app-icon-img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left {
        padding-right: 0;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
        margin-top: 30px;
    }
    
    .btn-primary {
        padding: 16px 40px;
        font-size: 1.1rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .screenshots-grid {
        gap: 15px;
        padding: 10px 20px;
    }
    
    .screenshot-item {
        width: 150px;
        height: 225px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-detail {
        grid-template-columns: 1fr;
    }
    
    .feature-detail-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .app-icon-img {
        width: 60px;
        height: 60px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-link {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .screenshots-grid {
        gap: 10px;
        padding: 10px 15px;
    }
    
    .screenshot-item {
        width: 120px;
        height: 180px;
    }
    
    .screenshots-gallery h3 {
        font-size: 1.5rem;
    }
    
    .download-modal .modal-content {
        margin: 15px;
        max-width: 380px;
        border-radius: 20px;
    }
    
    .download-modal .modal-body {
        padding: 40px 25px 35px;
    }
    
    .download-modal .modal-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        margin-bottom: 20px;
    }
    
    .download-modal .modal-body h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .download-modal .modal-body p {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 280px;
    }
    
    .btn-confirm {
        padding: 14px 35px;
        font-size: 0.95rem;
    }
    
    .download-modal .modal-close {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* Download Modal */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.download-modal.show {
    display: flex;
}

.download-modal .modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.download-modal .modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.download-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-modal .modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--text-dark);
    transform: scale(1.1);
}

.download-modal .modal-body {
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
}

.download-modal .modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.download-modal .modal-icon:hover {
    transform: scale(1.05);
}

.download-modal .modal-body h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.download-modal .modal-body p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-confirm {
    background: var(--gradient-ocean);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-confirm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-confirm:hover::before {
    left: 100%;
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.4);
}

.btn-confirm:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.feature-card,
.feature-detail-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Extra small screens */
@media (max-width: 480px) {
    .download-modal .modal-content {
        margin: 10px;
        max-width: 320px;
        border-radius: 18px;
    }
    
    .download-modal .modal-body {
        padding: 35px 20px 30px;
    }
    
    .download-modal .modal-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        margin-bottom: 18px;
    }
    
    .download-modal .modal-body h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .download-modal .modal-body p {
        font-size: 0.9rem;
        margin-bottom: 25px;
        max-width: 250px;
    }
    
    .btn-confirm {
        padding: 12px 30px;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .download-modal .modal-close {
        top: 12px;
        right: 12px;
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 14px 35px;
        font-size: 0.95rem;
    }
}
