/* ===== Global Styles ===== */
:root {
    --primary: #14bd00;
    --primary-dark: #0e8400;
    --primary-light: #6eff5d;
    --secondary: #00cec9;
    --dark: #2d3436;
    --dark-gray: #636e72;
    --medium-gray: #b2bec3;
    --light-gray: #dfe6e9;
    --light: #f5f6fa;
    --white: #ffffff;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

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

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 0;
    text-align: left;
    flex: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ===== Header ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #14bd00 41%, #0e8400 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    height: 30px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--primary);
}

.search-input {
    position: absolute;
    top: 40px;
    right: 0;
    width: 250px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    z-index: 100;
}

.search-input.active {
    transform: scaleY(1);
}


/* ===== Trending Apps Section ===== */
.trending-section {
    background-color: var(--white);
}

.trending-apps, .trending-games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .trending-apps, .trending-games {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.trending-app, .trending-game {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.trending-app:hover, .trending-game:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.app-image, .game-image {
    height: 120px;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

.app-image img, .game-image img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}

.app-category-label, .game-category-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.app-details, .game-details {
    padding: 15px;
    position: relative;
}

.app-details h3, .game-details h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.app-meta, .game-meta {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.app-version, .game-version {
    font-weight: 500;
}

.app-size, .game-size {
    font-weight: 500;
}

.app-description, .game-description {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Categories Section ===== */
.categories-section {
    background-color: var(--light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary);
    color: var(--white);
}

.category-card:hover .category-icon {
    color: var(--white);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

/* ===== Games Section ===== */
.games-section {
    background-color: var(--white);
}

/* ===== Features Section ===== */
.features-section {
    background-color: var(--light);
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: var(--white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-role {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    background-color: var(--light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* ===== New Footer Styles ===== */
footer {
    background-color: var(--white);
    color: var(--dark);
    padding: 30px 0 20px;
    text-align: center;
}

.social-links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--dark);
}

.social-links-container a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.copyright {
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.legal-links ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.85rem;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

@media (max-width: 576px) {
    .legal-links ul {
        gap: 10px 15px;
    }
    
    .social-links-container {
        gap: 15px;
    }
    
    .social-links-container a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1000;
        padding: 80px 30px 30px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .search-input {
        width: 200px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .trending-apps,
    .trending-games,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-details,
    .game-details {
        padding: 12px;
    }
    
    .app-description,
    .game-description {
        min-height: 36px;
        font-size: 0.8rem;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .footer-col h3 {
        font-size: 1rem;
    }

    .footer-col ul li a {
        font-size: 0.85rem;
    }

/* Remove header gap */
#apps.trending-section {
    padding-top: 0 !important;
    padding-bottom: 0; 
}

#apps.trending-section .section-header {
    margin-top: 10px;
    margin-bottom: 0;
}
#trending-games.trending-section {
    padding-top: 0;
    padding-bottom: 0;
}

#trending-games .section-header {
    margin-top: 10px;
    margin-bottom: 0;
}
/* Page Container */
.page-container {
    padding: 40px 0;
    min-height: 70vh;
}

/* Policy/Terms Sections */
.policy-section, .terms-section, .dmca-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-top: 40px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
}