@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;
}

:root {
    --text-color: #1a1a1a;
    --background-start: #fcf8f3;
    --background-end: #f4e9df;
    --button-color: #ffffff;
    --accent-color: #4a4a4a;
    --brand-color: #8B4513;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Dynamic Background Animation --- */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    direction: rtl;
    background: linear-gradient(-45deg, var(--background-start), var(--background-end), var(--background-start));
    background-size: 300% 300%;
    animation: gradientShift 25s ease infinite;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 450px;
    padding: 20px 0;
}

/* --- Logo Section --- */
.logo-section {
    margin-bottom: 40px;
}

.logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-svg {
    width: 100px;
    height: 100px;
    display: block;
}

.brand-title {
    color: var(--text-color);
    font-size: 2.2rem;
    margin: 0;
    font-weight: 900;
}

.brand-slogan {
    color: var(--accent-color);
    font-size: 1.0rem;
    margin-top: 5px;
    font-weight: 300;
}

/* --- Buttons Section --- */
.buttons-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--button-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 16px 25px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    box-shadow: var(--shadow);
}

/* New Class for Button SVG Icons */
.btn-svg {
    width: 1.4em;
    height: 1.4em;
    margin-left: 10px;
    /* Space to the left because of RTL direction */
    fill: var(--text-color);
    /* Default color matches text */
    transition: fill 0.2s;
}

.buttons-section a:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Hover Colors for specific buttons */
.btn-instagram:hover .btn-svg {
    fill: #E1306C;
}

.btn-telegram:hover .btn-svg {
    fill: #0088CC;
}

.btn-call:hover .btn-svg {
    fill: #4CAF50;
}

/* --- Footer --- */
.footer {
    width: 100%;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #eee;
}

.developer-link {
    display: block;
    margin-top: 10px;
}

.footer-svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #777;
    transition: fill 0.2s;
    margin-left: 0;
    /* No margin needed for standalone icon */
}

.developer-link:hover .footer-svg {
    fill: var(--text-color);
}

/* --- Responsiveness --- */
@media (max-width: 480px) {
    .brand-title {
        font-size: 2rem;
    }

    .brand-slogan {
        font-size: 0.9rem;
    }

    .buttons-section a {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

/* --- Double Button Row --- */
.double-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.double-row a {
    flex: 1;
    margin-bottom: 0;
    padding: 14px 10px;
    font-size: 1rem;
}

/* Hover Colors */
.btn-eitaa:hover .btn-svg {
    fill: #f57c00;

}

.btn-rubika:hover .btn-svg {
    fill: #00c853;

}

.btn-telegram-shimmer {
    position: relative;
    overflow: hidden;

    background: linear-gradient(135deg,
            #ffffff 0%,
            #f4f9ff 45%,
            #e9f3ff 100%);

    border: 1px solid rgba(0, 136, 255, 0.18);

    color: inherit;
    isolation: isolate;
}

/* Keep text + icon stable */
.btn-telegram-shimmer span,
.btn-telegram-shimmer .btn-svg {
    position: relative;
    z-index: 2;
}

.btn-telegram-shimmer .btn-svg {
    fill: var(--text-color);
    /* fill: #0088cc; */
}

.btn-telegram-shimmer:hover .btn-svg {
    fill: #0088CC;
}

/* Bluish shimmer layer */
.btn-telegram-shimmer::before {
    content: "";
    position: absolute;

    top: 0;
    right: -120%;
    width: 120%;
    height: 100%;

    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(180, 220, 255, 0.9) 45%,
            rgba(0, 136, 255, 0.25) 50%,
            rgba(180, 220, 255, 0.9) 55%,
            rgb(64, 0, 255) 100%);

    transform: skewX(-18deg);

    animation: shimmerBlueRTL 8s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(0.6px);
}

@keyframes shimmerBlueRTL {
    from {
        transform: translateX(200%) skewX(-18deg);
    }

    to {
        transform: translateX(-200%) skewX(-18deg);
    }
}

/* Hover polish */
.btn-telegram-shimmer:hover {
    box-shadow:
        0 14px 45px rgba(0, 136, 255, 0.18),
        0 6px 18px rgba(0, 136, 255, 0.12);
}