:root {
    --bg-dark: #0b1120;
    --bg-card: #151f32;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --accent: #60a5fa;
    --border: rgba(148, 163, 184, 0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --theme-transition:
        background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
        box-shadow 0.35s ease;

    /* Semantic tokens (dark defaults) */
    --bg-header: rgba(11, 17, 32, 0.75);
    --bg-surface: rgba(21, 31, 50, 0.5);
    --bg-footer: #050a15;
    --bg-card-icon: rgba(11, 17, 32, 0.7);
    --bg-animation-from: #1e293b;
    --bg-grid-line: rgba(255, 255, 255, 0.015);
    --bg-stats: rgba(255, 255, 255, 0.01);
    --bg-feature: rgba(255, 255, 255, 0.02);
    --bg-feature-hover: rgba(255, 255, 255, 0.05);
    --bg-social-link: rgba(255, 255, 255, 0.03);
    --bg-toggle: rgba(255, 255, 255, 0.05);
    --bg-problem: rgba(59, 130, 246, 0.05);
    --border-problem: rgba(59, 130, 246, 0.1);
    --img-white-bg: #fff;
    --shadow-card: rgba(0, 0, 0, 0.4);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --blob-opacity: 0.12;
    --card-hover-border: rgba(255, 255, 255, 0.15);
    --dot-bg: rgba(255, 255, 255, 0.4);
    --dot-active-bg: #fff;
    --dot-wrap-bg: rgba(0, 0, 0, 0.5);
    --bg-input: #151f32;
}

[data-theme="light"] {
    --bg-dark: #f0f4f8;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --border: rgba(15, 23, 42, 0.1);

    --bg-header: rgba(240, 244, 248, 0.92);
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-footer: #1e293b;
    --bg-card-icon: rgba(230, 238, 248, 0.9);
    --bg-animation-from: #cbd5e1;
    --bg-grid-line: rgba(15, 23, 42, 0.04);
    --bg-stats: rgba(0, 0, 0, 0.015);
    --bg-feature: rgba(15, 23, 42, 0.03);
    --bg-feature-hover: rgba(15, 23, 42, 0.07);
    --bg-social-link: rgba(15, 23, 42, 0.04);
    --bg-toggle: rgba(15, 23, 42, 0.06);
    --bg-problem: rgba(59, 130, 246, 0.06);
    --border-problem: rgba(59, 130, 246, 0.15);
    --img-white-bg: #f1f5f9;
    --shadow-card: rgba(15, 23, 42, 0.1);
    --shadow-medium: rgba(15, 23, 42, 0.08);
    --shadow-heavy: rgba(15, 23, 42, 0.15);
    --blob-opacity: 0.05;
    --card-hover-border: rgba(15, 23, 42, 0.15);
    --dot-bg: rgba(15, 23, 42, 0.25);
    --dot-active-bg: #0f172a;
    --dot-wrap-bg: rgba(255, 255, 255, 0.8);
    --bg-input: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazirmatn", sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    transition: var(--theme-transition);
}

body.splash-active {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 10px;
}
::selection {
    background: var(--primary);
    color: #fff;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(
        circle at top right,
        var(--bg-animation-from) 0%,
        var(--bg-dark) 60%
    );
}
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(var(--bg-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: var(--blob-opacity);
    animation: float 20s infinite ease-in-out;
}
.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -200px;
    left: -200px;
    animation-delay: 5s;
}
@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -30px) scale(1.1);
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: contain;
    transition: var(--transition);
    background: var(--img-white-bg);
    padding: 5px;
    box-shadow: 0 4px 15px var(--shadow-card);
}
.logo-container:hover .logo-icon {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--accent);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}
nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}
nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}
nav a:hover {
    color: var(--text-main);
}
nav a:hover::after {
    width: 100%;
}

.view {
    display: none;
    min-height: 100vh;
    padding-top: 100px;
}
.view.active {
    display: block;
    animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5% 2rem;
    gap: 4rem;
    flex-wrap: wrap;
}
.hero-text {
    flex: 1;
    min-width: 300px;
}
.hero h1 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 2.5rem;
    line-height: 2;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: "Vazirmatn";
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.slider-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform: scale(1.05);
}
.slide.active {
    opacity: 1;
    transform: scale(1);
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1rem 1.2rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.slide-caption-fixed {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
}
.slider-dots {
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    background: var(--dot-bg);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background: var(--dot-active-bg);
    transform: scale(1.2);
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding: 3rem 5%;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-stats);
    margin-bottom: 5rem;
}
.stat-item {
    text-align: center;
}
.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}
.stat-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tilt-card {
    position: relative;
    min-height: 400px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}
.tilt-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glow-tracker {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--card-color) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
    mix-blend-mode: soft-light;
    transform: translate(-50%, -50%);
}
.tilt-card:hover .glow-tracker {
    opacity: 0.4;
}

.card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    overflow: hidden;
    z-index: 0;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}
.tilt-card:hover .card-image-wrapper img {
    opacity: 0.7;
    transform: scale(1.05);
    filter: grayscale(0%);
}
.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-card) 100%);
    z-index: 1;
}

.card-content-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.card-icon-3d {
    width: 50px;
    height: 50px;
    background: var(--bg-card-icon);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--card-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}
.tilt-card:hover .card-icon-3d {
    background: var(--card-color);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px var(--card-color);
    border-color: transparent;
}
.tilt-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.tilt-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}
.card-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.tilt-card:hover .card-explore-btn {
    color: var(--card-color);
    gap: 12px;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5% 5rem;
}
.back-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: "Vazirmatn", sans-serif;
    font-size: 0.95rem;
}
.back-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: transparent;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    flex-wrap: wrap;
}
.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.header-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 800;
}
.header-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.cta-demo {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}
.cta-demo:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.infographic-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    overflow: hidden;
}
.infographic-box h4 {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.infographic-box img {
    max-width: 100%;
    max-height: 450px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    background: var(--img-white-bg);
    padding: 10px;
}

.infographic-anim-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    background: var(--bg-dark);
    overflow: hidden;
}

.infographic-anim-wrapper .anim-stage {
    min-height: 380px;
    border-radius: 12px;
}

.problem-solution {
    background: var(--bg-problem);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-problem);
    border-right: 4px solid var(--primary);
}
.problem-solution h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.problem-solution p {
    color: var(--text-muted);
    line-height: 2;
    font-size: 1rem;
    text-align: justify;
}

.product-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.content-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.content-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
}
.content-box h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-feature);
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.feature-item:hover {
    background: var(--bg-feature-hover);
    border-color: var(--border);
}
.feature-item i {
    color: var(--primary);
    font-size: 1rem;
}
.feature-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.benefit-list p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.benefit-list p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.benefit-list i {
    color: #10b981;
    font-size: 0.9rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5% 5rem;
}
.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}
.animated-logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 30px;
    filter: blur(30px);
    opacity: 0.3;
    animation: pulse-glow 4s infinite ease-in-out;
}
.logo-ring {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin-ring 15s linear infinite;
}
.animated-logo {
    width: 90px;
    height: 90px;
    background: var(--img-white-bg);
    border-radius: 22px;
    object-fit: contain;
    padding: 10px;
    box-shadow: 0 10px 30px var(--shadow-card);
    position: relative;
    z-index: 2;
}
@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.15);
    }
}
@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.contact-hero h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 800;
}
.contact-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-info-box,
.qr-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
}
.info-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.info-item:last-child {
    margin-bottom: 0;
}
.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info-item h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-weight: 700;
}
.info-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.qr-box h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.qr-code-wrapper {
    background: var(--img-white-bg);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
}
.qr-code-wrapper:hover {
    transform: scale(1.05);
}
.qr-code-wrapper img {
    width: 180px;
    height: 180px;
    display: block;
}
.qr-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.qr-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.qr-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: transparent;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-social-link);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 1.1rem;
}
.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.map-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.map-section h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-section h3 i {
    color: var(--primary);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px var(--shadow-medium);
    border: 1px solid var(--border);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.map-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

footer {
    background: var(--bg-footer);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}
footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.footer-links a {
    color: var(--text-muted);
    margin: 0 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}
.footer-links a:hover {
    color: var(--accent);
}

.lang-toggle {
    background: var(--bg-toggle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.lang-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    gap: 2rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.toolbar-actions {
    display: flex;
    gap: 1rem;
    position: relative;
}

.tool-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tool-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--accent);
}

.toolbar-search {
    flex: 1;
    max-width: 400px;
}

.search-box {
    width: 100%;
    padding: 0.7rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box::placeholder {
    color: var(--text-muted);
}

.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 180px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    display: flex;
    flex-direction: column;
    z-index: 101;
}

.share-menu.hidden {
    display: none;
}

.share-menu a {
    padding: 0.7rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.share-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

.no-results-message {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 3rem 5%;
}

.no-results-message.hidden {
    display: none;
}

.version-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 5%;
    border-top: 1px solid var(--border);
    background: var(--bg-stats);
}

.qr-code-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: fit-content;
    margin: 0 auto;
}

.qr-code-hero img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.qr-label {
    text-align: center;
}

.qr-label p {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.qr-label small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.detail-actions {
    display: flex;
    gap: 0.7rem;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--accent);
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-size: 1.2rem;
}

.back-to-top-btn.show {
    display: flex;
}

.back-to-top-btn:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.theme-toggle {
    background: var(--bg-toggle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

/* ========================================
   SPLASH SCREEN - CREATIVE & FUTURISTIC
   ======================================== */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #0f1729, #050a14);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
    animation: splashFadeIn 0.6s ease-out;
}

.splash-screen.fade-out {
    animation: splashFadeOut 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

[data-theme="light"] .splash-screen {
    background: radial-gradient(circle at 50% 50%, #f0f4f8, #dbe4ec);
}

/* Particles Canvas Background */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Glowing Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 2;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    bottom: -80px;
    right: -80px;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

[data-theme="light"] .orb {
    opacity: 0.08;
}

.splash-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: contentZoomIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

/* Logo Container with 3D Effects */
.logo-container-splash {
    position: relative;
    margin: 0 auto 4rem;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.logo-ring-outer,
.logo-ring-middle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
}

.logo-ring-outer {
    width: 320px;
    height: 320px;
    border-color: rgba(59, 130, 246, 0.3);
    animation: ringRotate 10s linear infinite;
}

.logo-ring-middle {
    width: 260px;
    height: 260px;
    border-color: rgba(139, 92, 246, 0.3);
    animation: ringRotate 8s linear infinite reverse;
}

.logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat3D 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.logo-glow-effect {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.4),
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(30px);
    animation: glowPulse 2s ease-in-out infinite;
}

.splash-logo {
    width: 180px;
    height: auto;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8));
    animation: logoEntrance 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55)
        backwards;
    transition: transform 0.3s ease;
}

.splash-logo:hover {
    transform: scale(1.1) rotateY(180deg);
}

[data-theme="light"] .splash-logo {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

/* Animated Text */
.splash-text-wrapper {
    margin-bottom: 3rem;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.title-word {
    display: inline-block;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleWordPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55)
        backwards;
    animation-delay: var(--delay);
}

.splash-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.subtitle-letter {
    display: inline-block;
    animation: letterBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55)
        backwards;
    animation-delay: calc(var(--i, 0) * 0.05s);
}

.subtitle-letter:nth-child(1) {
    --i: 0;
}
.subtitle-letter:nth-child(2) {
    --i: 1;
}
.subtitle-letter:nth-child(3) {
    --i: 2;
}
.subtitle-letter:nth-child(4) {
    --i: 3;
}
.subtitle-letter:nth-child(5) {
    --i: 4;
}
.subtitle-letter:nth-child(6) {
    --i: 5;
}
.subtitle-letter:nth-child(7) {
    --i: 6;
}
.subtitle-letter:nth-child(8) {
    --i: 7;
}
.subtitle-letter:nth-child(9) {
    --i: 8;
}
.subtitle-letter:nth-child(10) {
    --i: 9;
}
.subtitle-letter:nth-child(11) {
    --i: 10;
}
.subtitle-letter:nth-child(12) {
    --i: 11;
}
.subtitle-letter:nth-child(13) {
    --i: 12;
}
.subtitle-letter:nth-child(14) {
    --i: 13;
}
.subtitle-letter:nth-child(15) {
    --i: 14;
}

.tagline-animated {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    opacity: 0;
    animation: taglineFadeIn 1s ease-out 1.5s forwards;
}

/* Futuristic Loading Bar */
.loading-container {
    max-width: 400px;
    margin: 0 auto;
}

.loading-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.loading-label {
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loading-percentage {
    font-weight: 700;
    color: var(--accent);
    font-family: "Courier New", monospace;
}

.loading-bar-futuristic {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        #3b82f6 0%,
        #60a5fa 25%,
        #8b5cf6 50%,
        #a78bfa 75%,
        #3b82f6 100%
    );
    background-size: 200% 100%;
    border-radius: 10px;
    animation:
        loadingFillProgress 2.5s ease-in-out forwards,
        gradientShift 1.5s linear infinite;
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.8),
        0 0 40px rgba(139, 92, 246, 0.4);
}

.loading-glow {
    position: absolute;
    left: -100px;
    top: -5px;
    width: 100px;
    height: 18px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    filter: blur(10px);
    animation: glowSweep 2s ease-in-out infinite;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 1.5rem;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ========================================
   ANIMATIONS - CREATIVE & FUTURISTIC
   ======================================== */

@keyframes splashFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(20px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(0);
    }
}

@keyframes splashFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.2) rotate(10deg);
        filter: blur(10px);
    }
}

@keyframes contentZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.15;
    }
    50% {
        transform: translate(50px, -50px);
        opacity: 0.25;
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat3D {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: translateY(-15px) rotateX(0deg) rotateY(10deg);
    }
    75% {
        transform: translateY(-10px) rotateX(-5deg) rotateY(5deg);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-360deg);
        filter: blur(20px);
    }
    70% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes titleWordPop {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-50px) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes letterBounce {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
    60% {
        transform: translateY(5px) scale(1.1);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes taglineFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 20px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0;
    }
}

@keyframes loadingFillProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes glowSweep {
    0% {
        left: -100px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes dotBounce {
    0%,
    80%,
    100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2) translateY(-15px);
        opacity: 1;
    }
}

/* Responsive Splash Screen */
@media (max-width: 768px) {
    .logo-container-splash {
        width: 240px;
        height: 240px;
        margin-bottom: 3rem;
    }

    .logo-ring-outer {
        width: 240px;
        height: 240px;
    }

    .logo-ring-middle {
        width: 200px;
        height: 200px;
    }

    .logo-wrapper {
        width: 150px;
        height: 150px;
    }

    .splash-logo {
        width: 130px;
    }

    .logo-glow-effect {
        width: 180px;
        height: 180px;
    }

    .splash-title {
        font-size: 1.8rem;
        gap: 0.5rem;
    }

    .splash-subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .tagline-animated {
        font-size: 0.9rem;
    }

    .loading-container {
        max-width: 300px;
    }

    .orb {
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    nav {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 2rem 5%;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(20px);
    }
    nav.active {
        transform: translateY(0);
    }
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    .product-header {
        flex-direction: column;
        text-align: center;
    }
    .product-content-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .stats-bar {
        gap: 2rem;
    }
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .toolbar {
        flex-direction: column;
    }
    .toolbar-search {
        max-width: 100%;
    }
    .tool-btn span {
        display: none;
    }
    .product-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    .map-container {
        height: 300px;
    }
    .map-section {
        padding: 1.5rem;
    }
    .map-section h3 {
        font-size: 1.1rem;
    }
}
