/* Import Google Fonts (Outfit) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Color Variables & Theme Tokens */
:root {
    --bg-gradient: linear-gradient(180deg, #120004 0%, #1d0008 40%, #2a000a 100%);
    --accent-gold: #ffb300;
    --btn-gradient: linear-gradient(90deg, #ff004f, #ff7b00);
    --btn-hover-gradient: linear-gradient(90deg, #ff3370, #ff9433);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-backdrop: blur(20px);
    --card-border: 1px solid rgba(255, 179, 0, 0.3);
    --card-border-hover: 1px solid rgba(255, 179, 0, 0.7);
    --card-radius: 20px;
    --card-shadow: 0 0 20px rgba(255, 179, 0, 0.15);
    --card-shadow-hover: 0 0 30px rgba(255, 179, 0, 0.3);
    --neon-glow: 0 0 15px rgba(255, 0, 79, 0.4);
    --neon-glow-strong: 0 0 25px rgba(255, 0, 79, 0.8);
    --text-white: #ffffff;
    --text-muted: #e0cfd3;
    --font-primary: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for sticky download button on mobile */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #120004;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffdb4d;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1000px; /* Mobile App Look is cleaner when narrower on desktop */
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Card Common Utility */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--card-backdrop);
    -webkit-backdrop-filter: var(--card-backdrop);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    border: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* Buttons */
.btn-neon {
    background: var(--btn-gradient);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 50px;
    padding: 15px 36px;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: var(--neon-glow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-30deg);
    transition: 0.75s;
    opacity: 0;
}

.btn-neon:hover::before {
    left: 150%;
    opacity: 1;
}

.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow-strong);
    background: var(--btn-hover-gradient);
}

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

/* Sticky Floating Download Button Container */
.sticky-download-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 0, 4, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 179, 0, 0.2);
    padding: 14px 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-download-container .btn-neon {
    width: 100%;
    max-width: 450px;
    padding: 14px 24px;
    font-size: 1rem;
    animation: btnPulse 2s infinite ease-in-out;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 12px rgba(255, 0, 79, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 79, 0.8);
    }
    100% {
        box-shadow: 0 0 12px rgba(255, 0, 79, 0.4);
    }
}

/* Header / Navigation */
.main-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 179, 0, 0.1);
    margin-bottom: 30px;
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
}

.header-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.header-logo-text span {
    color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
    padding: 50px 0 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    position: relative;
    margin-bottom: 25px;
    display: inline-block;
}

.hero-logo-wrapper::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--accent-gold);
    border-radius: 50%;
    animation: rotateBorder 20s linear infinite;
    opacity: 0.5;
}

@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3.5px solid var(--accent-gold);
    box-shadow: 0 0 25px rgba(255, 179, 0, 0.4);
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 60%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 30px;
    font-weight: 300;
}

/* Sections Common */
section {
    margin-bottom: 45px;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* Screenshot Gallery */
.gallery-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.gallery-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-item {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: 20px;
    border: 1px solid rgba(255, 179, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.4);
    aspect-ratio: 9 / 16;
}

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

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 179, 0, 0.7);
    box-shadow: 0 0 25px rgba(255, 179, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Info Table Styling */
.table-card {
    padding: 0;
    overflow: hidden;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.info-table tr {
    border-bottom: 1px solid rgba(255, 179, 0, 0.15);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th, .info-table td {
    padding: 15px 20px;
    font-size: 1rem;
}

.info-table th {
    color: var(--accent-gold);
    font-weight: 600;
    width: 40%;
    background: rgba(255, 179, 0, 0.04);
}

.info-table td {
    color: var(--text-white);
    font-weight: 400;
}

/* About Section */
.about-text {
    font-size: 1.05rem;
    color: var(--text-white);
    line-height: 1.8;
    text-align: justify;
}

/* More APK Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.apk-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.1);
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.apk-card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(255, 179, 0, 0.7);
    box-shadow: 0 0 25px rgba(255, 179, 0, 0.25);
}

.card-logo-container {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #32000c 0%, #150005 100%);
    border: 1.5px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.card-logo-placeholder {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.rating-stars {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.btn-card-download {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(255, 0, 79, 0.3);
}

.btn-card-download:hover {
    background: var(--btn-hover-gradient);
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(255, 0, 79, 0.6);
}

/* FAQ Styling */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 179, 0, 0.2);
    border-radius: 15px;
    padding: 18px 22px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 179, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: #120004;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-weight: 800;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Form Styles for Contact Page */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 179, 0, 0.15);
    margin-top: 60px;
    background: rgba(18, 0, 4, 0.7);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 25px;
}

.footer-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-nav-link:hover {
    color: var(--accent-gold);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.footer-disclaimer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.icon-18plus {
    background: #ff004f;
    color: #ffffff;
    font-weight: 800;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.5);
}

.footer-copyright {
    margin-top: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Policy Page specific formatting */
.policy-card {
    margin-top: 20px;
    margin-bottom: 40px;
}

.policy-card h1 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.policy-card h2 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-top: 25px;
    margin-bottom: 12px;
}

.policy-card p {
    margin-bottom: 15px;
    color: var(--text-white);
    font-size: 1rem;
    line-height: 1.7;
}

.policy-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.policy-card li {
    margin-bottom: 8px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.btn-back-home:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* Responsive Breakpoints (Tablet: min-width 600px) */
@media screen and (min-width: 600px) {
    .hero-title {
        font-size: 2.7rem;
    }
    
    .gallery-track {
        padding-bottom: 15px;
    }
    
    .gallery-item {
        flex: 0 0 240px;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Responsive Breakpoints (Desktop: min-width: 1024px) */
@media screen and (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }
    
    .hero-section {
        padding: 70px 0 45px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }

    /* Grid layout for gallery on desktop */
    .gallery-track {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 10px 0;
    }
    
    .gallery-item {
        flex: unset;
        width: 100%;
        aspect-ratio: 9 / 16;
    }

    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    
    /* Sticky button position on desktop: floating bottom right badge */
    .sticky-download-container {
        width: auto;
        left: unset;
        right: 40px;
        bottom: 40px;
        border-radius: 50px;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .sticky-download-container .btn-neon {
        padding: 16px 36px;
        width: auto;
        font-size: 1.1rem;
    }
}
