@font-face {
    font-family: Vazirmatn;
    src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: Vazirmatn;
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Root Variables - Light Mode */
:root {
    /* Light Mode Colors */
    --light-bg-primary: #faf9ff;
    --light-bg-secondary: #ffffff;
    --light-text-primary: #1a1a2e;
    --light-text-secondary: #666666;
    --light-card-bg: #ffffff;
    --light-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --light-border-color: rgba(119, 0, 97, 0.1);
    --light-modal-bg: rgba(255, 255, 255, .1);
    --light-modal-content-bg: #ffffff;
    --light-modal-border: #bf109f;
    --light-quick-btn-bg: #f5f5f5;
    --light-quick-btn-border: #e0e0e0;
    --light-quick-btn-text: #333333;
    --light-quick-btn-hover: #ffffff;
    --light-section-title: #770061;

    /* Common Colors */
    --green: #00a651;
    --green-dark: #008842;
    --purple: #770061;
    --purple-light: #bf109f;
    --purple-light2: #810069;
    --purple-dark: #6f045b;
    --purple-hover: #b60094;
    --purple-light-hover: #9e0d84;
    --website-btn: #770061;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Font */
    --font-main: 'Vazirmatn', Tahoma, sans-serif;
    --font-regular: 400;
    --font-medium: 500;
    --font-bold: 700;
    --font-extrabold: 900;

    /* Spacing */
    --container-width: 720px;
    --spacing: 1rem;
}

/* Dark Mode Colors - */
[data-theme="dark"] {
    /* Dark Mode Backgrounds */
    --light-bg-primary: #1a1a1a;
    --light-bg-secondary: #2d2d2d;
    --light-text-primary: #e8e8e8;
    --light-text-secondary: #b0b0b0;
    --light-card-bg: #242424;
    --light-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --light-border-color: rgba(133, 80, 187, 0.3);
    --light-modal-bg: rgba(0, 0, 0, 0.1);
    --light-modal-content-bg: #ffffff;
    --light-modal-border: #8550bb;
    --light-quick-btn-bg: #2d2d2d;
    --light-quick-btn-border: #3d3d3d;
    --light-quick-btn-text: #e0e0e0;
    --light-quick-btn-hover: #3a3a3a;
    --light-section-title: #b60094;

    /* Dark Mode Purple Accents - Using #8550bb as base */
    --purple: #b60094;
    --purple-light: #a78bfa;
    --purple-light2: #c4b5fd;
    --purple-dark: #6d28d9;
    --purple-hover: #b60094;
    --purple-light-hover: #b89eff;
    --website-btn: #770061;
}

/* Apply Light Mode Variables */
:root,
[data-theme="light"] {
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --card-bg: var(--light-card-bg);
    --card-shadow: var(--light-card-shadow);
    --border-color: var(--light-border-color);
    --modal-bg: var(--light-modal-bg);
    --modal-border: var(--light-modal-border);
    --quick-btn-bg: var(--light-quick-btn-bg);
    --quick-btn-border: var(--light-quick-btn-border);
    --quick-btn-text: var(--light-quick-btn-text);
    --quick-btn-hover: var(--light-quick-btn-hover);
    --section-title-color: var(--light-section-title);
}

/* Apply Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: var(--light-bg-primary);
    --bg-secondary: var(--light-bg-secondary);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --card-bg: var(--light-card-bg);
    --card-shadow: var(--light-card-shadow);
    --border-color: var(--light-border-color);
    --modal-bg: var(--light-modal-bg);
    --modal-border: var(--light-modal-border);
    --quick-btn-bg: var(--light-quick-btn-bg);
    --quick-btn-border: var(--light-quick-btn-border);
    --quick-btn-text: var(--light-quick-btn-text);
    --quick-btn-hover: var(--light-quick-btn-hover);
    --section-title-color: var(--light-section-title);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    padding: 0 2rem 1rem;
    font-weight: var(--font-regular);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}


/* Theme Dropdown (Not Fixed, Scrolls with page - Left aligned) */
.theme-dropdown {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    z-index: 1000;
    width: 100%;
    text-align: left;
}

.theme-dropdown-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 100%;
    padding: 0.6rem .6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    font-family: var(--font-main);
}

.theme-dropdown-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    color: #1e1e1e;
}

/* Fix hover text color for all elements inside button */
.theme-dropdown-btn:hover i,
.theme-dropdown-btn:hover span,
.theme-dropdown-btn:hover .dropdown-arrow {
    color: #1e1e1e;
}

.theme-dropdown-btn i,
.theme-dropdown-btn span,
.dropdown-arrow {
    transition: color 0.3s ease;
    color: inherit;
}

.theme-dropdown-btn span {
    font-family: var(--font-main);
    font-weight: var(--font-medium);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.theme-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 130px;
    box-shadow: var(--card-shadow);
    display: none;
    overflow: hidden;
    z-index: 1001;
}

.theme-dropdown-content.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.theme-option {
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: var(--font-medium);
    transition: all 0.2s ease;
    font-family: var(--font-main);
    text-align: right;
}

.theme-option i {
    font-size: 1rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.theme-option span {
    color: var(--text-primary);
    font-family: var(--font-main);
}

.theme-option:hover {
    background: var(--purple);
}

.theme-option:hover i,
.theme-option:hover span {
    color: #1e1e1e;
}

/* Light mode specific overrides */
[data-theme="light"] .theme-dropdown-content {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="light"] .theme-option i,
[data-theme="light"] .theme-option span {
    color: #1a1a2e;
}

.theme-option:hover {
    background: var(--purple);
}

[data-theme="light"] .theme-option:hover i,
[data-theme="light"] .theme-option:hover span {
    color: white;
}

/* Dark mode specific overrides */
[data-theme="dark"] .theme-dropdown-content {
    background: #242424;
    border-color: rgba(133, 80, 187, 0.4);
}

[data-theme="dark"] .theme-option i,
[data-theme="dark"] .theme-option span {
    color: #e8e8e8;
}


[data-theme="dark"] .theme-option:hover i,
[data-theme="dark"] .theme-option:hover span {
    color: #ffffff;
}

[data-theme="dark"] .theme-dropdown-btn i,
[data-theme="dark"] .theme-dropdown-btn span {
    color: #e8e8e8;
}

[data-theme="dark"] .theme-dropdown-btn:hover,
[data-theme="dark"] .theme-dropdown-btn:hover i,
[data-theme="dark"] .theme-dropdown-btn:hover span {
    color: #ffffff;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: var(--purple-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(119, 0, 97, 0.3);
}

.back-to-top.show {
    display: flex;
}


/* Top Section with SVG Background */
/* Top Section with SVG Background */
.top-section {
    position: relative;
    text-align: center;
    padding: 1rem 0 2rem 0;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

/* Light mode background */
.top-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/trunk-pattern-light.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    border-radius: 0 0 50% 50%;
    box-shadow: inset 0 0 60px 20px var(--bg-primary);
}

/* Dark mode background */
[data-theme="dark"] .top-section::before {
    background-image: url('/assets/images/trunk-pattern-dark.svg');
    opacity: 1;
}

/* Content stays above background */
.top-section .logo-wrapper,
.top-section .company-name,
.top-section .company-tagline {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 640px) {
    .top-section::before {
        max-width: 280px;
        max-height: 280px;
    }

    .top-section {
        padding: 0.5rem 0 1.5rem 0;
    }
}


/* Logo Section */
.logo-wrapper {
    text-align: center;
    margin-bottom: .25rem;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(119, 0, 97, 0.2);
    border: 3px solid var(--purple);
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(119, 0, 97, 0.3);
}

.company-name {
    font-size: 1.8rem;
    font-weight: var(--font-extrabold);
    text-align: center;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.company-tagline {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: var(--font-regular);
    margin-bottom: 2rem;
    text-shadow: 0 0px 10px var(--bg-primary);
}

/* Website Button with Continuous Shimmer Effect (Right to Left) */
.website-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--website-btn);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-extrabold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--website-btn);
    position: relative;
    overflow: hidden;
}

.website-btn:hover {
    background: var(--purple-hover);
    border-color: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(119, 0, 97, 0.4);
}

/* Continuous Shimmer Effect - Always visible, Right to Left, Slower */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer-slow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer-slow {
    0% {
        right: -100%;
    }

    25% {
        right: 100%;
    }

    100% {
        right: 100%;
    }
}

.website-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.website-btn span {
    position: relative;
    z-index: 1;
}

/* Section */
.section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.section-title {
    font-size: 1.3rem;
    font-weight: var(--font-extrabold);
    color: var(--section-title-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--purple);
    display: inline-block;
}

/* Social Links Grid - 3 in a row */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: var(--font-medium);
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--purple);
    color: white;
    border-color: var(--purple);
}

.social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease-in-out;
}

.social-link:hover i {
    transform: scale(1.1);
}

.social-link span {
    font-weight: var(--font-medium);
}

/* Quick Links - Same style as social */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-link-btn {
    text-align: center;
    padding: 0.8rem 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: var(--font-medium);
    font-size: 0.9rem;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--border-color);
}

.quick-link-btn:hover {
    transform: translateY(-3px);
    color: var(--purple);
    border-color: var(--purple);
    background: transparent;
}

/* Support Chat Section */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem 0.6rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-bold);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid;
}

.telegram-support {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.telegram-support:hover {
    background: #006699;
    border-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.ble-support {
    background: #00B894;
    color: white;
    border-color: #00B894;
}

.ble-support:hover {
    background: #00997a;
    border-color: #00997a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.support-btn i {
    font-size: 1.3rem;
}

/* Address Cards */
.address-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease, border-color 1s ease;
}

.address-card:last-child {
    margin-bottom: 0;
}

.address-card:hover {
    transform: translateY(-2px);
    border-color: var(--purple);
}

.address-card h3 {
    color: var(--purple);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-regular);
}

.address-card .postal-code,
.address-card .phone {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.tel-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
}

.tel-link:hover {
    color: var(--purple-light);
    text-decoration: underline;
}

.map-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.map-link:hover {
    color: var(--purple-light);
    transform: translateY(-2px);
    border-color: var(--purple);
}

/* Footer */
.footer {
    max-width: var(--container-width);
    margin: 2rem auto 0;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: var(--font-regular);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    opacity: .5;
}

.github-link:hover {
    color: var(--purple-light);
    transform: translateY(-2px);
}

.github-link i {
    font-size: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: var(--light-modal-content-bg);
    padding: .25rem;
    border-radius: var(--radius-xl);
    max-width: 85%;
    max-height: 85%;
    animation: modalFadeIn 0.3s ease;
    border: 3px solid var(--modal-border);
    box-shadow: 0 0 30px rgba(133, 80, 187, 0.3);
}

.modal-logo {
    width: 400px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-xl);
}

.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--purple);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--modal-border);
}

.close-modal:hover {
    transform: scale(1.1);
    background: var(--purple-light);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 0 1rem 1rem;
    }

    .theme-dropdown-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .logo {
        width: 110px;
        height: 110px;
    }

    .company-name {
        font-size: 1.4rem;
    }

    .section {
        padding: 1rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .modal-logo {
        width: 250px;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .close-modal {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .website-btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .map-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .map-link {
        justify-content: center;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-logo {
        width: 350px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}