/* ==========================================================================
   GPURUN Landing Page Style Sheet (Bilingual, Light/Dark, Blue Theme)
   ========================================================================== */

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

:root {
    /* Color Palette - Blue Theme */
    --primary: #2563eb;       /* Electric Blue */
    --primary-light: #60a5fa; /* Sky Blue */
    --primary-glow: rgba(37, 99, 235, 0.15);
    
    --secondary: #0ea5e9;     /* Cyan Accent */
    --secondary-light: #38bdf8;
    --secondary-glow: rgba(14, 165, 233, 0.15);
    
    --accent-green: #10b981;
    --accent-red: #ef4444;

    /* Dark Mode variables - Soft Neomorphism */
    --bg-main: #181b22;
    --bg-darker: #101217;
    --bg-card: #181b22;
    --border-color: rgba(255, 255, 255, 0.03);
    --border-color-hover: rgba(37, 99, 235, 0.25);
    
    --neo-shadow-dark: #0b0d10;
    --neo-shadow-light: #252934;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-main) 100%);
    
    /* Layout & Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-main: 8px 8px 16px var(--neo-shadow-dark), -8px -8px 16px var(--neo-shadow-light);
    --shadow-inset: inset 5px 5px 10px var(--neo-shadow-dark), inset -5px -5px 10px var(--neo-shadow-light);
    --shadow-glow: 0 0 40px -10px rgba(37, 99, 235, 0.15);
    
    --font-en: 'Outfit', sans-serif;
    --font-fa: 'Vazirmatn', sans-serif;
}

/* Light Mode Variables Override - Soft Light Neomorphism */
[data-theme="light"] {
    --bg-main: #e6ebf2;
    --bg-darker: #d4dae3;
    --bg-card: #e6ebf2;
    --border-color: rgba(15, 23, 42, 0.04);
    --border-color-hover: rgba(37, 99, 235, 0.25);
    
    --neo-shadow-dark: #beccd9;
    --neo-shadow-light: #ffffff;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dark: #64748b;
    
    --gradient-dark: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-main) 100%);
    --shadow-main: 8px 8px 16px var(--neo-shadow-dark), -8px -8px 16px var(--neo-shadow-light);
    --shadow-inset: inset 5px 5px 10px var(--neo-shadow-dark), inset -5px -5px 10px var(--neo-shadow-light);
    --shadow-glow: 0 0 40px -10px rgba(37, 99, 235, 0.08);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Language Alignment & Font Selection */
html[lang="fa"] body {
    font-family: var(--font-fa);
    direction: rtl;
    text-align: right;
}

html[lang="en"] body {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

/* Hide opposite language */
html[lang="fa"] .lang-en { display: none !important; }
html[lang="en"] .lang-fa { display: none !important; }

/* Background Glow Effects */
.bg-glow-1, .bg-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.bg-glow-1 {
    top: 10%;
    left: 5%;
    background: var(--primary);
}
.bg-glow-2 {
    bottom: 15%;
    right: 5%;
    background: var(--secondary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Container Utility */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typographic gradients */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* Glass panel cards */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
    border-radius: var(--radius-md);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.eng-text {
    font-family: var(--font-en);
    direction: ltr;
    display: inline-block;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled .nav-wrapper {
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: url(#logoGradient);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

html[lang="fa"] .nav-link::after {
    left: auto;
    right: 0;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

/* Control Controls (Toggles for Lang/Theme) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.05);
    }
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-en);
}

.control-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

.control-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.03);
    }
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 80px 0;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-val {
    font-family: var(--font-en);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

/* Hero Image & SVG container */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.visual-box {
    width: 100%;
    max-width: 400px;
    position: relative;
    perspective: 1000px;
    animation: imageFloat 6s ease-in-out infinite alternate;
    transition: background-color 0.3s ease;
}

[data-theme="light"] .visual-box {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: var(--radius-md);
    padding: 20px;
}

.visual-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.25));
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, filter 0.3s ease;
}

[data-theme="light"] .visual-image {
    filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.25)) drop-shadow(0 4px 12px rgba(15, 23, 42, 0.12));
}

@keyframes imageFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(1deg); }
}

/* Sections Configuration */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-muted);
}

/* GPU Catalog Tabs */
.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.03);
    }
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.05);
    }
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.toggle-label.active {
    color: var(--text-main);
}

.pricing-switch-wrapper {
    position: relative;
    width: 54px;
    height: 28px;
}

.pricing-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    [data-theme="light"] & {
        background-color: rgba(0, 0, 0, 0.05);
    }
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.pricing-switch:checked + .slider:before {
    transform: translateX(26px);
}

/* RTL Switch adjustments */
html[dir="rtl"] .slider:before {
    left: auto;
    right: 4px;
}

html[dir="rtl"] .pricing-switch:checked + .slider:before {
    transform: translateX(-26px);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.gpu-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gpu-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.15);
}

.gpu-card-body {
    padding: 28px;
}

.gpu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gpu-name-group {
    display: flex;
    flex-direction: column;
}

.gpu-tag {
    font-size: 10px;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--secondary-light);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.gpu-name {
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 700;
}

.gpu-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
}

.gpu-badge.inquiry {
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary-light);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.gpu-specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.spec-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-line label {
    color: var(--text-muted);
    font-size: 13px;
}

.spec-line span {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
}

.gpu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gpu-price-group {
    display: flex;
    flex-direction: column;
}

.price-sub {
    font-size: 11px;
    color: var(--text-dark);
}

.gpu-price {
    font-size: 16px;
    font-weight: 700;
}

.gpu-price .num {
    font-family: var(--font-en);
    font-size: 20px;
}

/* Brand Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.advantage-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-glow);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.advantage-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
    stroke-width: 1.5;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Use Cases Section */
.usecases-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.usecase-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.usecase-tab:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.usecase-tab.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    border-color: var(--primary);
}

.usecase-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.usecase-panel.active {
    display: block;
}

.usecase-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.usecase-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.usecase-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.usecase-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.usecase-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.usecase-features li svg {
    color: var(--accent-green);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.usecase-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

/* FAQ Accordion Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    user-select: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.01);
    }
}

.faq-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    stroke: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--border-color-hover);
}

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

.faq-item.active .faq-answer {
    max-height: 800px;
    padding-bottom: 20px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* About & Operator Company Section */
.about-operator {
    background: var(--gradient-dark);
    border-top: 1px solid var(--border-color);
}

.about-operator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.operator-info h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
}

.operator-info p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.operator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.operator-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.operator-visual svg {
    max-width: 70%;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        transform: scale(0.98);
        filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.2));
    }
    100% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.4));
    }
}

/* Map buttons styling */
.maps-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.map-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Footer Section */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-col p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-light);
    stroke-width: 1.8;
    flex-shrink: 0;
    margin-top: 2px;
}

.namad-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.namad-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.02);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.02);
    }
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.namad-box:hover {
    background: rgba(255, 255, 255, 0.05);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.05);
    }
    border-color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.copyright {
    font-size: 12px;
    color: var(--text-dark);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    [data-theme="light"] & {
        background: rgba(0, 0, 0, 0.03);
    }
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 11px;
}

.social-link:hover {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal triggers */
.js-enabled .scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-enabled .scroll-reveal.reveal-up {
    transform: translateY(40px);
}

.js-enabled .scroll-reveal.reveal-left {
    transform: translateX(40px);
}

.js-enabled .scroll-reveal.reveal-right {
    transform: translateX(-40px);
}

.js-enabled .scroll-reveal.reveal-scale {
    transform: scale(0.95);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive configurations */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    html[lang="en"] .hero-grid {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-operator-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .usecase-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 24px;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: 32px;
        min-height: auto; /* Prevent vertical stretching on tall 19.3:9 screens */
    }
    
    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 16px;
    }
    
    .visual-box {
        max-width: 260px;
        margin: 0 auto;
    }
    
    .hero-stats {
        flex-direction: row !important;
        justify-content: space-around;
        width: 100%;
        gap: 12px;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
        margin-top: 16px;
    }
    
    .stat-item {
        align-items: center;
        text-align: center;
    }
    
    .stat-val {
        font-size: 20px !important;
    }
    
    .stat-lbl {
        font-size: 9px !important;
    }

    /* Group Logo on right/left and Toggles + Hamburger on opposite side */
    .logo {
        order: 1;
    }
    .nav-controls {
        order: 2;
        gap: 8px;
    }
    .nav-cta {
        display: none !important; /* Hide CTA in header on mobile */
    }
    .menu-toggle {
        order: 3;
        display: block !important;
        margin-left: 8px;
    }
    html[lang="fa"] .menu-toggle {
        margin-left: 0;
        margin-right: 8px;
    }
    
    .control-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 11px !important;
    }
    
    .mobile-only-cta {
        display: block !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        padding: 40px 24px;
        align-items: flex-start;
        transition: left 0.4s ease;
        border-top: 1px solid var(--border-color);
        z-index: 999;
        gap: 20px;
    }
    
    html[lang="fa"] .nav-menu {
        left: auto;
        right: -100%;
        transition: right 0.4s ease;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    html[lang="fa"] .nav-menu.open {
        right: 0;
        left: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: row !important;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }
    
    .stat-val {
        font-size: 16px !important;
    }
    
    .stat-lbl {
        font-size: 8px !important;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .maps-wrapper {
        flex-direction: column;
    }
    
    .map-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Neomorphism (Soft UI) Core Overrides
   ========================================================================== */

/* 1. GPURUN Typographic Logo Styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-en);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.logo-text:hover {
    filter: brightness(1.2);
    letter-spacing: 0.5px;
}

/* 2. Theme Switcher Icon Styles (feather-style icons) */
.theme-toggle-btn svg {
    stroke-width: 2px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(20deg);
}

/* 3. Neomorphic Primary Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 4px 4px 10px var(--neo-shadow-dark), 
                -4px -4px 10px var(--neo-shadow-light), 
                inset 1px 1px 2px rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 6px 6px 15px var(--neo-shadow-dark), 
                -6px -6px 15px var(--neo-shadow-light), 
                0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-primary:active {
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

/* 4. Neomorphic Secondary Buttons & Tabs */
.btn-secondary, .map-btn {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    box-shadow: 4px 4px 8px var(--neo-shadow-dark), 
                -4px -4px 8px var(--neo-shadow-light) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
}

.btn-secondary:hover, .map-btn:hover {
    box-shadow: inset 3px 3px 6px var(--neo-shadow-dark), 
                inset -3px -3px 6px var(--neo-shadow-light) !important;
    transform: none !important;
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

/* 5. Tab Buttons */
.tab-btn, .usecase-tab {
    background: var(--bg-card) !important;
    box-shadow: 4px 4px 8px var(--neo-shadow-dark), 
                -4px -4px 8px var(--neo-shadow-light) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tab-btn:hover, .usecase-tab:hover {
    color: var(--text-main);
    background: var(--bg-card);
}

.tab-btn.active, .usecase-tab.active {
    box-shadow: inset 4px 4px 8px var(--neo-shadow-dark), 
                inset -4px -4px 8px var(--neo-shadow-light) !important;
    color: var(--primary-light) !important;
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

/* 6. Pricing switch track (Sunken) */
.slider {
    background: var(--bg-card) !important;
    box-shadow: inset 3px 3px 6px var(--neo-shadow-dark), 
                inset -3px -3px 6px var(--neo-shadow-light) !important;
    border: 1px solid var(--border-color) !important;
}

.slider:before {
    background: var(--gradient-primary) !important;
    box-shadow: 2px 2px 4px var(--neo-shadow-dark);
}

/* 7. Card pop out adjustments on hover */
.gpu-card:hover, .advantage-card:hover {
    box-shadow: 12px 12px 24px var(--neo-shadow-dark), 
                -12px -12px 24px var(--neo-shadow-light) !important;
    border-color: var(--border-color-hover) !important;
    transform: translateY(-2px) !important;
}

/* 8. FAQ active sunken look */
.faq-item.active {
    box-shadow: inset 4px 4px 8px var(--neo-shadow-dark), 
                inset -4px -4px 8px var(--neo-shadow-light) !important;
}

.faq-item.active .faq-question:hover {
    background: transparent;
}

/* 9. Social links & Namad boxes */
.social-link, .namad-box {
    background: var(--bg-card) !important;
    box-shadow: 4px 4px 8px var(--neo-shadow-dark), 
                -4px -4px 8px var(--neo-shadow-light) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-link:hover, .namad-box:hover {
    box-shadow: inset 3px 3px 6px var(--neo-shadow-dark), 
                inset -3px -3px 6px var(--neo-shadow-light) !important;
    background: var(--bg-card) !important;
    color: var(--primary-light) !important;
    transform: scale(0.97) !important;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* 10. Floating header Neomorphism */
header.scrolled {
    background: var(--bg-card);
    box-shadow: 4px 4px 12px var(--neo-shadow-dark), 
                -4px -4px 12px var(--neo-shadow-light);
    border-bottom: 1px solid var(--border-color);
}

/* 11. Header CTA alignment */
.nav-cta {
    height: 38px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 30px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.contact-info .contact-list {
    align-self: center;
    width: fit-content;
}

/* Fix Desktop CTA Alignment */
.nav-cta {
    height: 38px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide Mobile CTA on Desktop */
.mobile-only-cta {
    display: none;
}

/* Theme Adaptive Arisa Logo */
.arisa-logo-dark {
    display: block;
}
.arisa-logo-light {
    display: none;
}
[data-theme="light"] .arisa-logo-dark {
    display: none;
}
[data-theme="light"] .arisa-logo-light {
    display: block;
}

/* Arisa Logo Floating & Glowing Animations */
.logo-animate {
    animation: logoFloat 4s ease-in-out infinite alternate;
    transition: filter 0.3s ease;
}

.arisa-logo-dark.logo-animate {
    filter: drop-shadow(0px 0px 10px rgba(37, 99, 235, 0.2)) drop-shadow(0px 0px 3px rgba(37, 99, 235, 0.1));
}

[data-theme="light"] .arisa-logo-light.logo-animate {
    filter: drop-shadow(0px 0px 10px rgba(29, 78, 216, 0.1)) drop-shadow(0px 0px 3px rgba(29, 78, 216, 0.05));
}

@keyframes logoFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

/* Justify Long Texts */
p, .faq-answer {
    text-align: justify;
    text-justify: inter-word;
}
