/* ==========================================================================
   UNIFIED STYLESHEET - Bytedz Website
   Combines: main.css, home-style.css, legal-style.css, product-style.css, terms-style.css
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES & FONTS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600&display=swap');

:root {
    --text-color: #2d3748;
    --text-light: #4a5568;
    --bg-color: #ffffff;
    --bg-secondary: #f7fafc;
    --border-color: #e2e8f0;
    --accent-color: #4299e1;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-height: 70px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e2e8f0;
        --text-light: #a0aec0;
        --bg-color: #1a202c;
        --bg-secondary: #2d3748;
        --border-color: #4a5568;
        --accent-color: #63b3ed;
    }
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, 'Noto Kufi Arabic', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding-top: var(--header-height);
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.home-container {
    max-width: 1100px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(5px);
    -webkit-backdrop-filter: saturate(180%) blur(5px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .main-header {
        background-color: rgba(26, 32, 44, 0.8);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-weight: 600;
    font-size: 1em;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link i:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-item {
    position: relative;
}

.nav-item.has-dropdown.is-active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 10px;
    margin-top: 10px;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-color);
        padding: 20px;
        transform: translateY(-105%);
        transition: transform 0.4s ease;
        z-index: 1050;
    }

    .nav-links-container.is-open {
        transform: translateY(0);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        margin-top: 10px;
        background-color: transparent;
    }

    .nav-link,
    .nav-item {
        width: 100%;
        text-align: center;
    }

    .main-nav a.nav-link {
        display: block;
        padding: 10px 0;
        font-size: 1.5rem;
    }

    .dropdown-menu a {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   LEGAL PAGE HEADER STYLES
   ========================================================================== */

.legal-header-group,
#lang-select {
    display: none;
}

.page-is-legal .nav-links-container {
    display: none;
}

.page-is-legal .legal-header-group,
.page-is-legal #lang-select {
    display: block;
}

.page-is-legal .legal-header-group {
    text-align: center;
    flex-grow: 1;
    min-width: 0;
    /* Allow flex item to shrink */
    overflow: hidden;
    /* Prevent overflow */
}

.legal-header-group h1 {
    font-size: 1.2em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.legal-header-group p {
    margin: 0;
    font-size: 0.85em;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.lang-select {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    flex-shrink: 0;
    /* Prevent language selector from shrinking */
}

.lang-select:hover {
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .page-is-legal .mobile-menu-toggle {
        display: none;
    }

    .page-is-legal .header-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px 20px;
        height: auto;
        min-height: var(--header-height);
        background: inherit;
        /* Ensure background is inherited */
    }

    .page-is-legal .legal-header-group {
        text-align: center;
        margin: 0;
        flex-grow: 0;
        min-width: auto;
        order: 2;
        /* Place title in middle */
    }

    .page-is-legal .logo {
        order: 1;
        /* Logo at top */
        font-size: 1.3em;
    }

    .page-is-legal .main-nav {
        order: 3;
        /* Language selector at bottom */
    }

    .page-is-legal .legal-header-group h1 {
        font-size: 0.95em;
        white-space: normal;
        /* Allow text wrapping */
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .page-is-legal .legal-header-group p {
        display: block;
        /* Show date again */
        font-size: 0.75em;
        margin: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        color: var(--text-light);
        background: transparent;
    }

    .page-is-legal .lang-select {
        padding: 6px 10px;
        font-size: 0.85em;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }

    /* Adjust body padding for taller header - use fixed value since header is now dynamic */
    body.page-is-legal {
        padding-top: 120px;
        /* Fixed padding for mobile vertical header */
    }

    /* Adjust page wrapper margin to account for taller header */
    .page-is-legal .page-wrapper {
        margin-top: 20px;
    }

    /* Adjust sidebar position for taller header */
    .page-is-legal .sidebar {
        top: 140px;
        /* Fixed position for mobile */
    }

    /* Ensure header background covers all elements with same glass effect as normal */
    .page-is-legal .main-header {
        background-color: rgba(255, 255, 255, 0.8);
        /* Match normal header opacity */
        backdrop-filter: saturate(180%) blur(5px);
        /* Match normal header blur */
        -webkit-backdrop-filter: saturate(180%) blur(5px);
        border-bottom: 1px solid var(--border-color);
        height: auto;
        /* Allow header to expand */
    }

    @media (prefers-color-scheme: dark) {
        .page-is-legal .main-header {
            background-color: rgba(26, 32, 44, 0.8);
            /* Match normal header opacity in dark mode */
            border-bottom-color: var(--border-color);
        }

        .page-is-legal .lang-select {
            background: var(--bg-secondary);
            border-color: var(--border-color);
            color: var(--text-color);
        }
    }
}

@media (max-width: 480px) {
    .page-is-legal .legal-header-group h1 {
        font-size: 0.85em;
    }

    .page-is-legal .legal-header-group p {
        font-size: 0.7em;
    }

    .lang-select {
        padding: 5px 8px;
        font-size: 0.8em;
    }

    /* Adjust spacing for smaller screens */
    body.page-is-legal {
        padding-top: 110px;
        /* Slightly less padding for smaller screens */
    }

    .page-is-legal .sidebar {
        top: 130px;
    }
}

/* ==========================================================================
   HOME PAGE STYLES
   ========================================================================== */

.hero {
    text-align: center;
    padding: 60px 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.8em;
}

.hero .description {
    font-size: 1.3em;
    max-width: 600px;
    margin: 20px auto;
    color: var(--text-light);
}

.projects {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    letter-spacing: -1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin: 0 auto 1.5em auto;
    max-width: 500px;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 40px auto;
    color: var(--text-light);
    font-size: 1.1em;
}

.page-section--light {
    background-color: var(--bg-secondary);
}

@media (prefers-color-scheme: dark) {
    .page-section--light {
        background-color: #111827;
    }
}

/* Showcase Section */
#showcase {
    background-color: #191724;
    border-radius: 24px;
    margin: 0 20px 80px 20px;
    position: relative;
    overflow: hidden;
}

#showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #4299e1, #9f7aea, #f56565, #4299e1);
    background-size: 400% 400%;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradientBorder 8s linear infinite;
    z-index: 0;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.showcase-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px 60px 20px;
    position: relative;
    z-index: 1;
}

.showcase-tag {
    position: absolute;
    top: 40px;
    left: -55px;
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9em;
    border-radius: 8px;
    transform: rotate(-90deg);
    transform-origin: bottom left;
    z-index: 2;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.showcase-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #4a417c;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.showcase-card:hover {
    transform: scale(1.03);
    background-color: #594e92;
}

.showcase-card-banner {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    font-size: 0.8em;
    font-weight: 600;
    border-top-right-radius: 11px;
    border-bottom-left-radius: 11px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.showcase-card-icon-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-card-icon {
    max-width: 100%;
    height: auto;
}

.showcase-card-title {
    font-size: 1.25em;
    font-weight: 600;
    margin: 0;
}

.showcase-card-description {
    font-size: 1em;
    margin: 4px 0 0 0;
    color: #d1cce8;
}

.showcase-explore-link {
    display: block;
    text-align: center;
    color: #d1cce8;
    font-weight: 600;
    text-decoration: none;
    margin-top: 60px;
}

.showcase-explore-link:hover {
    color: #fff;
}

/* Project Cards & Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.filter-btn:hover {
    background-color: var(--bg-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 6px -1px rgba(66, 153, 225, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

.project-grid.filtering {
    opacity: 0.5;
}

.project-card {
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .07);
}

.project-card-content {
    padding: 24px;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.project-card-image-container {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-footer {
    padding: 16px 24px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.project-card-footer .project-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.project-card-footer .project-tags li {
    background-color: var(--bg-color);
    color: var(--accent-color);
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.project-card-footer .project-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.project-card-footer .project-links a {
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.project-card-footer .learn-more-link {
    background-color: var(--accent-color);
    color: #fff;
}

.project-card-footer .github-link,
.project-card-footer .playstore-link,
.project-card-footer .privacy-link {
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

.project-card-footer .project-links a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-text {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.4s ease, margin-left 0.3s ease;
    white-space: nowrap;
}

.project-card-footer .project-links a:hover .btn-text {
    max-width: 100px;
    margin-left: 8px;
}

.hidden-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible-anim {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #showcase {
        margin: 0 10px 60px 10px;
    }

    .showcase-tag {
        display: none;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRODUCT PAGE STYLES
   ========================================================================== */

/* GitHub Button in Hero */
.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1em;
    background: #24292e;
    color: white;
    border: 2px solid #30363d;
}

.btn-github:hover {
    background: #30363d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 41, 46, 0.3);
}

.btn-github i {
    color: #ffd700;
}

/* Split Hero Section */
.product-hero-split {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: calc(-1.5 * var(--header-height));
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    z-index: -2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(66, 153, 225, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(159, 122, 234, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: center;
    min-height: 100vh;
}

.hero-left {
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.hero-title {
    font-size: 4.5em;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.1;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0 0 25px 0;
}

.hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.hero-features-quick {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.quick-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-weight: 500;
}

.quick-feature i {
    color: var(--accent-color);
    width: 20px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 5px;
}

.hero-right {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 600px;
}

.device-mockup {
    position: relative;
    width: 100%;
    height: 100%;
}

.phone-frame {
    position: absolute;
    top: 50px;
    right: 100px;
    width: 200px;
    height: 400px;
    background: #1f2937;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-frame {
    position: absolute;
    top: 150px;
    left: 50px;
    width: 300px;
    height: 200px;
    background: #374151;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.desktop-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.desktop-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.connection-path {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent, var(--accent-color));
    position: relative;
    animation: pulse-line 2s ease-in-out infinite;
}

.connection-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: -3px;
}

.connection-dot.start {
    left: -4px;
}

.connection-dot.end {
    right: -4px;
}

.connection-label {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
}

.floating-features {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.floating-feature {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.floating-feature i {
    color: var(--accent-color);
}

.floating-feature:nth-child(1) {
    animation-delay: 0s;
}

.floating-feature:nth-child(2) {
    animation-delay: 1s;
}

.floating-feature:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse-line {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(66, 153, 225, 0.4);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Features Overview */
.features-overview {
    padding: 20px 0;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card-modern {
    background: var(--bg-secondary);
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: white;
    font-size: 1.5em;
}

.feature-card-modern h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.feature-card-modern p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 12px 0;
    font-size: 0.95em;
}

.feature-highlight {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Gallery Modern */
.gallery-modern {
    padding: 20px 0;
    background: var(--bg-secondary);
}

.gallery-container {
    max-width: 900px;
    margin: 0 auto;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 30px 30px 30px;
    border-radius: 0 0 12px 12px;
}

.slide-caption h4 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.slide-caption p {
    margin: 0;
    opacity: 0.9;
}

/* Downloads Modern */
.downloads-modern {
    padding: 20px 0;
    background: var(--bg-color);
}

.downloads-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    /* max-width: 450px; */
    margin: 0 auto;
}

.download-card-modern {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.download-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.download-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3em;
}

.download-info h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.download-type {
    color: var(--text-light);
    font-size: 0.85em;
    margin: 0;
}

.download-badge {
    margin-left: auto;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 600;
    background: #10b981;
    color: white;
}

.download-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.download-description {
    margin-bottom: 18px;
}

.download-description p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95em;
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-color);
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.8em;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.feature-tag i {
    color: var(--accent-color);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.btn-download.primary {
    background: var(--accent-color);
    color: white;
}

.btn-download.secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-download.playstore {
    background: #34a853;
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Tech Specs */
.tech-specs {
    padding: 20px 0;
    background: var(--bg-secondary);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.spec-category {
    background: var(--bg-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.spec-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-color);
}

.spec-category h3 i {
    color: var(--accent-color);
}

.spec-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-category li {
    padding: 6px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95em;
}

.spec-category li:last-child {
    border-bottom: none;
}

.spec-category strong {
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: 3.5em;
    }

    .hero-visual {
        height: 500px;
    }

    .phone-frame {
        width: 160px;
        height: 320px;
        right: 80px;
    }

    .desktop-frame {
        width: 240px;
        height: 160px;
        left: 40px;
    }
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
    }

    .hero-title {
        font-size: 3em;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-item {
        text-align: center;
    }

    .hero-features-quick {
        align-items: center;
    }

    .hero-visual {
        height: 400px;
    }

    .phone-frame {
        width: 140px;
        height: 280px;
        right: 60px;
        top: 30px;
    }

    .desktop-frame {
        width: 200px;
        height: 130px;
        left: 30px;
        top: 120px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 20px;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary,
    .btn-github {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .phone-frame {
        width: 120px;
        height: 240px;
        right: 40px;
        top: 20px;
    }

    .desktop-frame {
        width: 160px;
        height: 100px;
        left: 20px;
        top: 100px;
    }

    .floating-feature {
        font-size: 0.7em;
        padding: 6px 10px;
    }

    .features-grid-modern {
        grid-template-columns: 1fr;
    }

    .downloads-grid-modern {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .btn-download {
        flex: none;
    }
}

.product-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.product-hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.product-hero h1 {
    font-size: 3em;
    margin-bottom: 16px;
}

.product-hero .description {
    font-size: 1.2em;
    max-width: 650px;
    color: var(--text-light);
}

.page-section {
    padding: 60px 0 20px 0;
}

.page-section:first-child {
    padding-top: 20px;
}

.page-section h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5em;
    margin: 0 auto 1.5em auto;
    max-width: 400px;
}

/* Downloads Section */
.downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.download-card {
    background-color: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.software-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.software-card-icon {
    font-size: 1.5em;
    color: var(--accent-color);
}

.download-card h3 {
    font-size: 1.3em;
    margin: 0;
    font-weight: 600;
}

.download-card p {
    margin: 0 0 20px 0;
    color: var(--text-light);
    flex-grow: 1;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button-group a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    background: var(--text-color);
    color: var(--bg-color);
}

.button-group a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button-group a.playstore {
    background-color: #00b894;
    color: #fff;
}

.button-group a.secondary {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}



/* Carousel Gallery */
.carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 400px;
    transition: transform 250ms ease-in;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 1;
}

.carousel-button:hover {
    background: #fff;
}

.carousel-button--left {
    left: -20px;
}

.carousel-button--right {
    right: -20px;
}

.carousel-button.is-hidden {
    display: none;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.carousel-dot {
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
}

.carousel-dot.is-selected {
    background: var(--accent-color);
}

@media (max-width: 768px) {
    .product-hero h1 {
        font-size: 2.8em;
    }

    .carousel-button--left {
        left: 10px;
    }

    .carousel-button--right {
        right: 10px;
    }
}

@media (max-width: 600px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .carousel-track {
        height: 300px;
    }
}

/* ==========================================================================
   LEGAL PAGE STYLES
   ========================================================================== */

body.page-is-legal {
    background-color: var(--bg-secondary);
}

.page-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 50px;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    width: 280px;
    flex-shrink: 0;
    height: calc(100vh - var(--header-height) - 80px);
    overflow-y: auto;
}

.sidebar .nav-link {
    display: block;
    padding: 10px 16px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.sidebar .nav-link.active {
    color: var(--accent-color);
    background-color: var(--bg-color);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

[dir="rtl"] .sidebar .nav-link {
    border-left: none;
    border-right: 3px solid transparent;
}

[dir="rtl"] .sidebar .nav-link.active {
    border-right-color: var(--accent-color);
}

.legal-container {
    flex-grow: 1;
    max-width: 800px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    counter-reset: section-counter;
}

/* Legal Content Typography */
section {
    padding-top: 10px;
    margin-bottom: 40px;
    scroll-margin-top: calc(var(--header-height) + 40px);
}

section h2 {
    font-size: 1.6em;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

section h2::before {
    counter-increment: section-counter;
    content: counter(section-counter) ". ";
    color: var(--accent-color);
}

section h3 {
    font-size: 1.2em;
    color: var(--text-color);
    margin: 25px 0 15px 0;
}

section p,
section div {
    line-height: 1.8;
    color: var(--text-light);
}

section ul {
    padding-left: 25px;
    list-style-type: disc;
}

section li {
    margin-bottom: 10px;
}

[dir="rtl"] section ul {
    padding-left: 0;
    padding-right: 25px;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px dashed var(--border-color);
}

.contact-section h2::before {
    content: none;
}

.contact-section h2 {
    border-bottom: none;
}

.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    background-color: var(--accent-color);
    border-radius: 8px;
    transition: var(--transition);
}

.btn-support:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: var(--shadow);
    color: #fff !important;
}

.btn-support i {
    font-size: 1.1em;
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .page-wrapper {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .legal-container {
        padding: 30px 25px;
    }
}

/* ==========================================================================
   TERMS PAGE SPECIFIC STYLES
   ========================================================================== */

.terms-header {
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 999;
}

.terms-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.terms-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

/* Terms page specific overrides */
body.terms-page {
    padding-top: 60px;
}

.terms-page .sidebar {
    top: 150px;
    width: 250px;
    height: calc(100vh - 170px);
}

.terms-page .page-wrapper {
    max-width: 1100px;
    margin: 20px auto;
    gap: 40px;
}

.terms-page .terms-container {
    flex-grow: 1;
    max-width: 800px;
}

.terms-page section h2 {
    font-size: 1.8em;
}

.terms-page section ul {
    padding-left: 20px;
}

[dir="rtl"].terms-page section ul {
    padding-left: 0;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .terms-header {
        top: 60px;
    }

    .terms-header-content {
        justify-content: center;
    }
}

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .page-wrapper {
    flex-direction: row-reverse;
}

/* RTL Support for Legal Page Sidebar */
[dir="rtl"] .sidebar {
    text-align: right;
}

[dir="rtl"] .sidebar .nav-link {
    border-left: none;
    border-right: 3px solid transparent;
    text-align: right;
}

[dir="rtl"] .sidebar .nav-link.active {
    border-left: none;
    border-right-color: var(--accent-color);
}

/* RTL Support for Legal Content */
[dir="rtl"] .legal-container {
    text-align: right;
}

[dir="rtl"] section ul {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] section h2::before {
    margin-left: 8px;
    margin-right: 0;
}

/* RTL Support for Header */
[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .legal-header-group {
    text-align: center;
}

[dir="rtl"] .nav-links-container {
    flex-direction: row-reverse;
}

/* RTL Support for Mobile Legal Header */
@media (max-width: 768px) {
    [dir="rtl"].page-is-legal .legal-header-group {
        text-align: right;
        margin-right: -10px;
        margin-left: 0;
    }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    font-size: 0.9em;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.6em;
    margin: 0 12px;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

.main-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.main-footer a:hover {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}
/* ==
========================================================================
   PCLINK GITHUB INTEGRATION STYLES
   ========================================================================== */

/* Version Badge */
.version-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.version-badge i {
    font-size: 0.7rem;
}

/* Release Notes Section */
.release-notes-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.releases-container {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.release-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.release-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
}

.release-card.latest {
    border-color: var(--accent-color);
    box-shadow: 0 4px 6px -1px rgba(66, 153, 225, 0.2);
}

.release-card.latest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #667eea);
    border-radius: 16px 16px 0 0;
}

.release-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.release-version {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.release-version h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.latest-badge {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.release-date {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.release-body {
    margin-bottom: 20px;
    line-height: 1.6;
}

.release-body h2,
.release-body h3,
.release-body h4 {
    color: var(--text-color);
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.release-body h2 {
    font-size: 1.125rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 4px;
}

.release-body h3 {
    font-size: 1rem;
}

.release-body h4 {
    font-size: 0.925rem;
}

.release-body ul {
    margin: 12px 0;
    padding-left: 20px;
}

.release-body li {
    margin: 6px 0;
    color: var(--text-light);
}

.release-body p {
    margin: 12px 0;
    color: var(--text-light);
}

.release-body code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-color);
}

.release-body strong {
    color: var(--text-color);
    font-weight: 600;
}

.release-assets {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.assets-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.assets-count i {
    color: var(--accent-color);
}

.release-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.release-link:hover {
    color: #2b6cb0;
    text-decoration: none;
}

.view-all-releases {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design for Release Notes */
@media (max-width: 768px) {
    .release-notes-modern {
        padding: 60px 0;
    }
    
    .release-card {
        padding: 20px;
    }
    
    .release-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .release-version {
        width: 100%;
    }
    
    .release-assets {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Dark mode support for release notes */
@media (prefers-color-scheme: dark) {
    .release-notes-modern {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    
    .release-card {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .release-card.latest {
        border-color: var(--accent-color);
        box-shadow: 0 4px 6px -1px rgba(99, 179, 237, 0.2);
    }
    
    .release-body code {
        background: #4a5568;
    }
}/* 
Download Stats */
.download-stats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.stat-item i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Enhanced download buttons with version info */
/* Enhanced download buttons - removed conflicting pseudo-elements */
.btn-download {
    position: relative;
}/*
 GitHub Error Message */
.github-error-message {
    margin-top: 20px;
    padding: 16px;
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    text-align: center;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #c53030;
}

.error-content i {
    font-size: 1.1rem;
}

.error-content p {
    margin: 0;
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    .github-error-message {
        background: #742a2a;
        border-color: #c53030;
    }
    
    .error-content {
        color: #feb2b2;
    }
}/* Ref
resh button */
.view-all-releases {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.refresh-releases {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.refresh-releases:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

.refresh-releases i.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}/* H
ero CTA Button Consistency Fixes */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 32px;
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary,
.hero-cta .btn-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    min-height: 48px;
    box-sizing: border-box;
}

.hero-cta .btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.hero-cta .btn-primary:hover {
    background: #2b6cb0;
    border-color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
}

.hero-cta .btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.hero-cta .btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-cta .btn-github {
    background: #24292e;
    color: white;
    border-color: #24292e;
}

.hero-cta .btn-github:hover {
    background: #30363d;
    border-color: #30363d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 41, 46, 0.3);
}

.hero-cta .btn-github i {
    color: #ffd700;
}

/* Download Card Consistency Fixes */
.download-card-modern {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.download-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    min-height: 60px;
}

.download-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-color), #667eea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon i {
    font-size: 1.5rem;
    color: white;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.download-type {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.download-badge {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.download-badge.premium {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.download-description {
    flex: 1;
    margin-bottom: 20px;
}

.download-description p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.feature-tag i {
    font-size: 0.75rem;
    color: var(--accent-color);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    position: relative;
}

.btn-download.primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-download.primary:hover {
    background: #2b6cb0;
    border-color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

.btn-download.secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-download.secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-download.playstore {
    background: #34a853;
    color: white;
    border-color: #34a853;
}

.btn-download.playstore:hover {
    background: #2d8f47;
    border-color: #2d8f47;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 168, 83, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary,
    .hero-cta .btn-github {
        width: 100%;
        justify-content: center;
        max-width: none;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .btn-download {
        flex: none;
        width: 100%;
    }
    
    .download-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
    }
    
    .download-info {
        text-align: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .download-card-modern {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .feature-tag {
        background: #4a5568;
        color: var(--text-light);
    }
}/* Downl
oads Grid Layout Fix */
.downloads-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .downloads-grid-modern {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .downloads-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}/* Downloa
d Link Status Indicators */
.btn-download[data-filename]::after {
    content: "Direct Download";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #48bb78;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.btn-download[data-filename]:hover::after {
    opacity: 1;
}

.btn-download:not([data-filename])::after {
    content: "GitHub Release";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ed8936;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.btn-download:not([data-filename]):hover::after {
    opacity: 1;
}

/* Debug info display */
.debug-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    color: #4a5568;
    display: none;
}

.debug-info.show {
    display: block;
}

.debug-info h4 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #2d3748;
}

.debug-info pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

@media (prefers-color-scheme: dark) {
    .debug-info {
        background: #2d3748;
        border-color: #4a5568;
        color: #a0aec0;
    }
    
    .debug-info h4 {
        color: #e2e8f0;
    }
}/*
 ==========================================================================
   PROFESSIONAL PCLINK REDESIGN
   ========================================================================== */

/* Compact Features Section */
.features-compact {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.feature-item span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Demo Section */
.demo-section {
    padding: 80px 0;
    background: white;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.demo-left p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.demo-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.demo-right {
    position: relative;
}

.demo-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.primary-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overlay-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overlay-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(-5px);
}

.overlay-item i {
    font-size: 0.9rem;
}

.overlay-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Professional Downloads Section */
.downloads-professional {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.download-header-main {
    text-align: center;
    margin-bottom: 50px;
}

.download-header-main h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.download-header-main p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.download-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.download-card-pro {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.download-card-pro:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #667eea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.card-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.free {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.card-badge.premium {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.card-content {
    flex: 1;
    margin-bottom: 25px;
}

.card-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.requirements span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 12px;
}

.requirements i {
    color: #48bb78;
    font-size: 0.8rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-source,
.btn-playstore,
.btn-apk {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.btn-source {
    background: #24292e;
    color: white;
    border: 2px solid #24292e;
}

.btn-source:hover {
    background: #30363d;
    border-color: #30363d;
    transform: translateY(-2px);
}

.btn-playstore {
    background: #34a853;
    color: white;
    border: 2px solid #34a853;
}

.btn-playstore:hover {
    background: #2d8f47;
    border-color: #2d8f47;
    transform: translateY(-2px);
}

.btn-apk {
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-apk:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Compact Info Section - One Line */
.info-section-compact {
    padding: 30px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.info-item i {
    font-size: 1rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .feature-item i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .feature-item span {
        font-size: 0.8rem;
    }
    
    .info-bar {
        gap: 20px;
        justify-content: space-around;
    }
    
    .info-item {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .info-item span {
        font-size: 0.8rem;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .demo-left h2 {
        font-size: 2rem;
    }
    
    .demo-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .download-grid-pro {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .download-header-main h2 {
        font-size: 2rem;
    }
    
    .info-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-source,
    .btn-playstore,
    .btn-apk {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .features-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-item i {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .feature-item span {
        font-size: 0.75rem;
    }
    
    .info-section-compact {
        padding: 20px 0;
    }
    
    .info-bar {
        gap: 10px;
    }
    
    .info-item {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .info-item i {
        font-size: 0.9rem;
    }
    
    .info-item span {
        font-size: 0.75rem;
    }
    
    .demo-section,
    .downloads-professional {
        padding: 50px 0;
    }
    
    .download-card-pro {
        padding: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .features-compact,
    .info-section-compact {
        background: var(--bg-secondary);
    }
    
    .feature-item,
    .info-item,
    .download-card-pro {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .demo-section {
        background: var(--bg-color);
    }
    
    .downloads-professional {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    
    .requirements span {
        background: #4a5568;
    }
}/*
 Active state for demo overlay items */
.overlay-item.active {
    background: var(--accent-color);
    color: white;
    transform: translateX(-5px);
}

/* Smooth transition for screenshot changes */
.primary-screenshot {
    transition: opacity 0.3s ease;
}/ *   T e s t   c o m m e n t   * / 
 
 
