/* css/shared.css */
/* ==========================================================================
   SHARED STYLESHEET - Bytedz Website
   Base styles, variables, fonts, header, and common components
   ========================================================================== */

/* ==========================================================================
   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;
    }
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */

.section-description {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 40px auto;
    color: var(--text-light);
    font-size: 1.1em;
}
 
/* Common Button Styles */
.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);
}

/* Animation Classes */
.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);
}/*
 ==========================================================================
   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;
}

/* css/home.css */
/* ==========================================================================
   HOME PAGE STYLES - Bytedz Website
   Hero, projects, and home-specific components
   ========================================================================== */

/* ==========================================================================
   HOME PAGE HERO
   ========================================================================== */

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects {
    padding: 60px 0;
}

/* ==========================================================================
   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: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.project-card {
    background: var(--bg-color);
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: none;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.project-card:first-child {
    border-top: none;
}

.project-card.featured-first {
    background: linear-gradient(135deg, var(--bg-color), var(--bg-secondary));
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.project-card.featured-first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.05), rgba(159, 122, 234, 0.05));
    pointer-events: none;
}

.project-card.featured-first .project-title {
    color: var(--accent-color);
    font-weight: 700;
}

.project-card.featured-badge {
    position: relative;
    overflow: hidden;
}

.project-card.featured-badge::after {
    content: 'FEATURED';
    position: absolute;
    top: 20px;
    right: -70px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
    padding: 8px 50px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    transform-origin: center center;
    box-shadow: 0 4px 12px rgba(0, 180, 148, 0.4);
    z-index: 10;
    text-align: center;
    width: 140px;
}



.project-card:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--bg-secondary);
}

.project-card-content {
    padding: 0;
    flex-grow: 1;
    min-width: 0;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.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: 0;
    background-color: transparent;
    border-top: none;
    border-radius: 0;
    flex-shrink: 0;
    margin-left: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.project-card-footer .project-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    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: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.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;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {

    .project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-card.featured-badge::after {
        top: 16px;
        right: -45px;
        padding: 6px 30px;
        font-size: 0.65em;
        width: 120px;
    }

    .project-card-footer {
        width: 100%;
        align-items: flex-start;
        margin-left: 0;
    }

    .project-card-footer .project-tags,
    .project-card-footer .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {

    .project-card.featured-badge::after {
        content: 'FEATURED';
        top: 12px;
        right: -30px;
        padding: 5px 30px;
        font-size: 0.6em;
        width: 80px;
    }
}

/* css/legal.css */
/* ==========================================================================
   LEGAL PAGE STYLES - Bytedz Website
   Legal page specific header modifications and layout
   ========================================================================== */

/* ==========================================================================
   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;
    overflow: hidden;
}

.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;
}

.lang-select:hover {
    border-color: var(--accent-color);
}

/* ==========================================================================
   LEGAL PAGE MOBILE STYLES
   ========================================================================== */

@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;
    }

    .page-is-legal .legal-header-group {
        text-align: center;
        margin: 0;
        flex-grow: 0;
        min-width: auto;
        order: 2;
    }

    .page-is-legal .logo {
        order: 1;
        font-size: 1.3em;
    }

    .page-is-legal .main-nav {
        order: 3;
    }

    .page-is-legal .legal-header-group h1 {
        font-size: 0.95em;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .page-is-legal .legal-header-group p {
        display: block;
        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 */
    body.page-is-legal {
        padding-top: 120px;
    }

    /* 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;
    }

    /* 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);
        backdrop-filter: saturate(180%) blur(5px);
        -webkit-backdrop-filter: saturate(180%) blur(5px);
        border-bottom: 1px solid var(--border-color);
        height: auto;
    }

    @media (prefers-color-scheme: dark) {
        .page-is-legal .main-header {
            background-color: rgba(26, 32, 44, 0.8);
            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;
    }

    .page-is-legal .sidebar {
        top: 130px;
    }
}

/* ==========================================================================
   LEGAL PAGE LAYOUT & CONTENT
   ========================================================================== */

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;
}

/* ==========================================================================
   RTL SUPPORT
   ========================================================================== */

[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;
    }
}

/* ==========================================================================
   LEGAL PAGE RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }

    .page-wrapper {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .legal-container {
        padding: 30px 25px;
    }
}

/* css/product.css */
/* ==========================================================================
   PRODUCT PAGE STYLES - Bytedz Website
   Product hero, features, gallery, downloads, and product-specific components
   ========================================================================== */

/* ==========================================================================
   PRODUCT HERO SECTION - CENTERED DESIGN
   ========================================================================== */

/* Centered Hero Section */
.product-hero-centered {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(-1.5 * var(--header-height));
    padding-top: var(--header-height);
    text-align: center;
}

.hero-container-centered {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-title-big {
    font-size: 5.5em;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: var(--text-color);
    /* Remove gradient text effect for better compatibility */
}

.hero-subtitle-big {
    font-size: 1.8em;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

.version-info {
    margin-top: 10px;
}

.version-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Product Image Section - Single Screenshot */
.product-image-section {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.product-screenshot {
    position: relative;
    padding: 20px;
}

.main-screenshot {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

/* Download Section in Hero - New Row Layout */
.download-section-hero {
    width: 100%;
    max-width: 900px;
}

.download-section-hero h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: var(--text-color);
}

.platform-buttons-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
}

.platform-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.platform-button-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    flex-shrink: 0;
}

.platform-button-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.platform-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1em;
}

.platform-type {
    color: var(--text-light);
    font-size: 0.85em;
}

.platform-arrow {
    color: var(--text-light);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* Platform Dropdown */

/* Platform Dropdown */

/* Product Description */
.product-description {
    max-width: 700px;
    text-align: center;
}

.product-description p {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Hero Actions */

/* Features Modern Section */
.features-modern {
    padding: 80px 0;
    /* background: var(--bg-secondary); */
}

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

.section-header-centered h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-color);
}

.section-header-centered 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: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-modern {
    background: var(--bg-color);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.feature-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
    font-size: 1.8em;
    box-shadow: 0 8px 16px rgba(66, 153, 225, 0.3);
}

.feature-card-modern h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.feature-card-modern p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 0.95em;
}

.feature-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ORIGINAL PRODUCT HERO SECTION (SPLIT LAYOUT)
   ========================================================================== */

/* GitHub Button in Hero */

/* Split Hero Section */

.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-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 Visual Elements */

/* ==========================================================================
   FEATURES OVERVIEW
   ========================================================================== */

.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
   ========================================================================== */

/* Carousel Gallery */
.carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 400px;
    transition: transform 250ms ease-in;
}

.carousel-button--left {
    left: -20px;
}

.carousel-button--right {
    right: -20px;
}

.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);
}

/* ==========================================================================
   DOWNLOADS MODERN
   ========================================================================== */

/* Professional Download Card Button Styles */

/* ==========================================================================
   TECH SPECS
   ========================================================================== */

/* ==========================================================================
   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 */

/* Collapsible Release Notes */

/* Info Section Compact */

/* GitHub Error Message */

/* Download Stats */

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Responsive for Centered Hero */
@media (max-width: 1200px) {
    .hero-title-big {
        font-size: 4.5em;
    }
}

@media (max-width: 968px) {
    .hero-title-big {
        font-size: 3.5em;
    }

    .hero-subtitle-big {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .hero-container-centered {
        padding: 40px 15px;
        gap: 30px;
    }

    .hero-title-big {
        font-size: 2.8em;
    }

    .hero-subtitle-big {
        font-size: 1.3em;
    }

    .product-description p {
        font-size: 1.1em;
    }

    .download-section-hero h3 {
        font-size: 1.3em;
    }

    .platform-buttons-row {
        flex-direction: column;
        align-items: center;
    }

    .platform-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .hero-title-big {
        font-size: 2.2em;
    }

    .hero-subtitle-big {
        font-size: 1.1em;
    }

    .features-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card-modern {
        padding: 24px 20px;
    }

    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .section-header-centered h2 {
        font-size: 2em;
    }

    .features-modern {
        padding: 60px 0;
    }
}

/* Original Split Layout Responsive */

@media (max-width: 768px) {

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-grid-modern {
        grid-template-columns: 1fr;
    }

    .carousel-button--left {
        left: 10px;
    }

    .carousel-button--right {
        right: 10px;
    }
}

@media (max-width: 600px) {
    .carousel-track {
        height: 300px;
    }
}

/* Dark mode support */

/* Prod
uct Description */
.product-description {
    max-width: 700px;
    text-align: center;
}

.product-description p {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Hero Actions */

/* Features Modern Section */
.features-modern {
    padding: 80px 0;
    /* background: var(--bg-secondary); */
}

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

.section-header-centered h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-color);
}

.section-header-centered 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: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-modern {
    background: var(--bg-color);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.feature-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
    font-size: 1.8em;
    box-shadow: 0 8px 16px rgba(66, 153, 225, 0.3);
}

.feature-card-modern h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.feature-card-modern p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 0.95em;
}

.feature-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Responsive for Centered Hero */
@media (max-width: 1200px) {
    .hero-title-big {
        font-size: 4.5em;
    }
}

@media (max-width: 968px) {
    .hero-title-big {
        font-size: 3.5em;
    }

    .hero-subtitle-big {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .hero-container-centered {
        padding: 40px 15px;
        gap: 30px;
    }

    .hero-title-big {
        font-size: 2.8em;
    }

    .hero-subtitle-big {
        font-size: 1.3em;
    }

    .product-description p {
        font-size: 1.1em;
    }

    .download-section-hero h3 {
        font-size: 1.3em;
    }

    .platform-buttons-row {
        flex-direction: column;
        align-items: center;
    }

    .platform-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .hero-title-big {
        font-size: 2.2em;
    }

    .hero-subtitle-big {
        font-size: 1.1em;
    }

    .features-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card-modern {
        padding: 24px 20px;
    }

    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .section-header-centered h2 {
        font-size: 2em;
    }

    .features-modern {
        padding: 60px 0;
    }
}

/* Fi
x dropdown z-index issue */

/* Reduce spacing between hero and features */
.hero-container-centered {
    padding-bottom: 60px !important;
}

/* Ensure features section doesn't overlap */
.features-modern {
    position: relative;
    z-index: 1;
}

/* 
GitHub button styling */

/* Direct 
Download Buttons - Remove dropdown styling */
.platform-button {
    text-decoration: none;
    color: inherit;
}

.platform-button:hover {
    text-decoration: none;
    color: inherit;
}

/* Remove GitHub-specific styling since all buttons are now the same */
.platform-button .platform-button-icon {
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
}

.platform-button:hover .platform-button-icon {
    background: linear-gradient(135deg, #3182ce, #805ad5);
}

/* GitHub button gets dark theme */
.platform-button[href*="github"] .platform-button-icon {
    background: #24292e;
}

.platform-button[href*="github"]:hover .platform-button-icon {
    background: #1b1f23;
}

/* View All Releases Button */

/* Releases Table Section */
.releases-table-section {
    padding: 80px 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.releases-table-container {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.releases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.releases-table th {
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Removed hover effect from table rows */

/* Platform column styling */

/* Package column styling */

/* Size column */

/* Checksum column */

/* Hide/Show Releases Actions */

/* Responsive Design for Table */
@media (max-width: 768px) {
    .releases-table-container {
        overflow-x: auto;
    }

    .releases-table {
        min-width: 600px;
    }

    .releases-table th {
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    .releases-table {
        min-width: 500px;
    }

    .releases-table th {
        padding: 10px 12px;
    }
}

/* Re
sponsive design for single screenshot */
@media (max-width: 768px) {
    .product-screenshot {
        padding: 15px;
    }

    .main-screenshot {
        border-radius: 12px;
    }
}

@media (max-width: 600px) {
    .product-screenshot {
        padding: 10px;
    }

    .main-screenshot {
        border-radius: 8px;
    }
}

/* Re
duce spacing between sections */
.features-modern {
    padding: 40px 0 !important;
}

.releases-table-section {
    padding: 40px 0 !important;
}

/* ==
========================================================================
   USE CASES SECTION
   ========================================================================== */

.use-cases-section {
    padding: 80px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.use-case-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #9f7aea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: white;
    font-size: 1.5em;
}

.use-case-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.use-case-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */

.how-it-works-section {
    padding: 80px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.step-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Featured Download Button */
.featured-download {
    background: linear-gradient(135deg, var(--accent-color), #9f7aea) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3) !important;
}

.featured-download:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(66, 153, 225, 0.4) !important;
}

.featured-download .platform-button-info .platform-name,
.featured-download .platform-button-info .platform-type {
    color: white !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .use-case-card,
    .step-card {
        padding: 20px;
    }

    .use-case-icon,
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
}

/* ======
====================================================================
   MOBILE APP SCREENSHOT STYLING
   ========================================================================== */

/* Style for phone screenshots - make them smaller and centered */
.product-screenshot .main-screenshot[src*="bulk-renamer-main"] {
    max-width: 300px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

/* General mobile screenshot styling */
.mobile-screenshot {
    max-width: 300px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .product-screenshot .main-screenshot[src*="bulk-renamer-main"] {
        max-width: 250px;
        max-height: 500px;
    }

    .mobile-screenshot {
        max-width: 250px;
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .product-screenshot .main-screenshot[src*="bulk-renamer-main"] {
        max-width: 200px;
        max-height: 400px;
    }

    .mobile-screenshot {
        max-width: 200px;
        max-height: 400px;
    }
}

/* ==
========================================================================
   PREMIUM FEATURES SECTION
   ========================================================================== */

/* Mobile responsiveness for premium features */

/* ========
==================================================================
   MATERIAL ESTIMATORS SECTION
   ========================================================================== */

.material-estimators-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.estimators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.estimator-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.estimator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.estimator-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.estimator-icon i {
    font-size: 1.5em;
    color: white;
}

.estimator-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.estimator-card p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}

.estimator-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estimator-badge.free {
    background: #e8f5e8;
    color: #2e7d32;
}

.estimator-badge.premium {
    background: #fff3e0;
    color: #f57c00;
}

/* ==========================================================================
   WHY CHOOSE SECTION
   ========================================================================== */

.why-choose-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.advantage-icon i {
    font-size: 1.8em;
    color: white;
}

.advantage-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

/* Mobile responsiveness for new sections */
@media (max-width: 768px) {
    .estimators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .estimator-card {
        padding: 25px 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantage-card {
        padding: 30px 15px;
    }
}

/* =====
=====================================================================
   MATERIAL ESTIMATORS SECTION - Same design as features-modern
   ========================================================================== */

.material-estimators-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.estimators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.estimator-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.estimator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.estimator-card:hover::before {
    opacity: 0.05;
}

.estimator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.2);
}

.estimator-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.estimator-icon i {
    font-size: 2em;
    color: white;
}

.estimator-card h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.estimator-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.estimator-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.estimator-badge.free {
    background: #e8f5e8;
    color: #2e7d32;
}

.estimator-badge.premium {
    background: #fff3e0;
    color: #f57c00;
}

/* ==========================================================================
   WHY CHOOSE SECTION - Same design as features-modern
   ========================================================================== */

.why-choose-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.advantage-card:hover::before {
    opacity: 0.05;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.2);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
}

.advantage-icon i {
    font-size: 2em;
    color: white;
}

.advantage-card h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Mobile responsiveness for new sections */
@media (max-width: 768px) {
    .estimators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .estimator-card {
        padding: 30px 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantage-card {
        padding: 30px 20px;
    }
}/* ======
====================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

/* Mission Section */

/* What We Do Section */

/* Technology Stack Section */

/* Values Section */

/* Contact CTA Section */

/* Active navigation link */
.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Mobile responsiveness for About page */

/* css/loading.css */
/* ==========================================================================
   LOADING ANIMATION - Lightweight CSS for immediate loading display
   ========================================================================== */

/* CSS Variables for loading (minimal set) */
:root {
    --loading-bg: #ffffff;
    --loading-text: #4a5568;
    --loading-border: #e2e8f0;
    --loading-accent: #4299e1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --loading-bg: #1a202c;
        --loading-text: #a0aec0;
        --loading-border: #4a5568;
        --loading-accent: #63b3ed;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--loading-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--loading-border);
    border-top: 3px solid var(--loading-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Loading text */
.loading-text {
    color: var(--loading-text);
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Hide content while loading */
body.loading .main-header,
body.loading main,
body.loading .page-wrapper,
body.loading .main-footer {
    visibility: hidden;
}