/* Global Reset & Base Styles */
:root {
    --primary-bg: #2b2b31;
    --secondary-bg: #28282d;
    --accent-color: #ff2a32;
    --gold-color: #ffd700;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --font-main: 'Inter', 'Ubuntu', sans-serif;
    --card-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.3);
    --transition: 0.4s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title b {
    font-weight: 700;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding: 0 30px;
    border-radius: 4px;
    background-image: linear-gradient(90deg, #ff2a32 0%, #ff5860 100%);
    box-shadow: 0 0 20px 0 rgba(255, 88, 96, 0.5);
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px 0 rgba(255, 88, 96, 0.6);
}

.btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(43, 43, 49, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    z-index: 101;
    /* Above mobile menu */
}

.logo span {
    color: var(--accent-color);
}

/* Desktop Nav */
.nav {
    margin-left: 30px;
    margin-right: 30px;
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.header__toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    background: radial-gradient(circle at top right, #393941 0%, #2b2b31 60%);
}

.hero__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero__content {
    max-width: 600px;
    z-index: 2;
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 42, 50, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* Safe wrapping for small screens */
}

.hero__phone {
    position: relative;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

.hero__phone img {
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    border-radius: 20px;
}

/* Catalog / Features Section */
.catalog {
    padding: 70px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns on desktop */
    gap: 30px;
}

.card {
    background-color: var(--secondary-bg);
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    background-color: #303036;
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* Premium Section */
.premium {
    padding: 100px 0;
    position: relative;
    background-color: var(--secondary-bg);
    /* Fallback */
}

.premium--bg {
    background: url('http://mdbtv.info/templates/mdb/img/section/section.jpg') no-repeat center/cover;
    position: relative;
}

.premium--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(43, 43, 49, 0.85);
    /* Overlay to ensure text readability */
}

.premium .container {
    position: relative;
    z-index: 2;
}

.premium-card {
    background: linear-gradient(135deg, #1f1f23 0%, #25252a 100%);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.premium-badge {
    background: var(--gold-color);
    color: #000;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 20px;
}

.premium-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.premium-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.premium-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.premium-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 24px;
    color: var(--gold-color);
}

.feature-item span {
    color: var(--text-muted);
}

/* Modal Changelog */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    /* Changed from pointer-events for better browser handling */
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--secondary-bg);
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    padding: 40px;
    z-index: 2;
    transform: translateY(50px);
    transition: var(--transition);
    max-height: 80vh;
    overflow-y: auto;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.changelog-item {
    padding-bottom: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 25px;
    position: relative;
}

.changelog-item:last-child {
    border-left: none;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

.changelog-version {
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: block;
}

.changelog-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.changelog-list li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.changelog-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    background-color: #1f1f23;
    text-align: center;
}

.footer-icon i {
    font-size: 40px;
    color: #a4c639;
    /* Android Green */
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    margin: 0 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Article / Blog Styles */
.page-header {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(to right, #2b2b31, #28282d);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumbs {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs span {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 50px 0;
}

/* Main Content */
.article-content {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.text-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 25px;
}

.text-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #fff;
}

.text-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: disc;
    color: var(--text-muted);
}

.text-content li {
    margin-bottom: 10px;
}

.text-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    font-style: italic;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

/* Sidebar */
.sidebar-widget {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.recent-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-posts li:last-child {
    margin: 0;
    padding: 0;
    border: none;
}

.rp-link {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.rp-link:hover {
    color: var(--accent-color);
}

.rp-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__title {
        font-size: 3rem;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header__toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background-color: rgba(43, 43, 49, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 30px 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 100;
    }

    .nav.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .hero__wrap {
        flex-direction: column;
        text-align: center;
    }

    .hero__btns {
        justify-content: center;
    }

    .hero__phone {
        margin-top: 50px;
        max-width: 80%;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .premium-features {
        flex-direction: column;
        gap: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* Header Button hiding on mobile to save space if needed, or keep it */
    .header__content .btn {
        display: none;
    }

    /* Hide 'Download' in header on mobile, rely on hero */
}

/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question i {
    font-size: 14px;
    transition: transform 0.4s ease;
    color: var(--accent-color);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 20px 15px;
        font-size: 14px;
    }
}
