@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2 supports variations'),
         url('../fonts/Vazirmatn-Bold.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gofteh';
    src: url('../fonts/GoftehWeb-Heavy.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors - Dark Theme (Default) */
    --color-bg: #0a0a0f;
    --color-text: #e0e0e8;
    --color-primary: #00ffa3;
    --color-secondary: #ff00ff;
    --color-accent: #00ffff;
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --font-english: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Gofteh', var(--font-primary);
    
    /* Shadows & Effects */
    --neon-glow-primary: 0 0 10px rgba(0, 255, 163, 0.5),
                        0 0 20px rgba(0, 255, 163, 0.3),
                        0 0 30px rgba(0, 255, 163, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Scrollbar */
    --scrollbar-width: 10px;
    --scrollbar-track-color: var(--color-bg);
    --scrollbar-thumb-color: var(--color-glass-border);
    --scrollbar-thumb-hover-color: var(--color-primary);
}

[data-theme="light"] {
    --color-bg: #f0f0f5;
    --color-text: #1a1a1f;
    --color-primary: #008c5e;
    --color-secondary: #b100b1;
    --color-accent: #008b8b;
    --color-glass: rgba(0, 0, 0, 0.05);
    --color-glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --neon-glow-primary: 0 0 10px rgba(0, 140, 94, 0.3),
                        0 0 20px rgba(0, 140, 94, 0.2),
                        0 0 30px rgba(0, 140, 94, 0.1);
}

::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
    border-radius: calc(var(--scrollbar-width) / 2);
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color);
    box-shadow: var(--neon-glow-primary);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--color-glass);
    border: 2px solid var(--color-glass-border);
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 4.2rem;
    height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                var(--neon-glow-primary);
}

.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
    opacity: 0.15;
}

.theme-toggle__icon {
    color: var(--color-text);
    font-size: 2.4rem !important;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.theme-toggle:hover .theme-toggle__icon {
    color: var(--color-primary);
    transform: scale(1.15) rotate(360deg);
}

[data-theme="light"] .theme-toggle {
    background: var(--color-glass);
    border-color: var(--color-glass-border);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: var(--color-primary);
}

[data-theme="light"] .theme-toggle::before {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        transparent 65%
    );
}

[data-theme="light"] .theme-toggle__icon {
    content: "dark_mode";
}

@media screen and (max-width: 768px) {
    .theme-toggle {
        width: 3.8rem;
        height: 3.8rem;
        padding: 0.6rem;
        border-width: 1.5px;
    }

    .theme-toggle__icon {
        font-size: 2.2rem !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem; /* Account for fixed nav */
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1.6rem;
    overflow-x: hidden;
}

[lang="en"],
.english {
    font-family: var(--font-english);
    direction: ltr;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-glass-border);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
}

[data-theme="light"] .nav {
    background: rgba(240, 240, 245, 0.8);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(240, 240, 245, 0.95);
}

.nav__content {
    max-width: 120rem;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.nav__logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav__logo:hover .nav__logo-img {
    transform: scale(1.05);
}

.nav__logo-img--light {
    display: none;
}

.nav__logo-img--dark {
    display: block;
}

[data-theme="light"] .nav__logo-img--light {
    display: block;
}

[data-theme="light"] .nav__logo-img--dark {
    display: none;
}

.nav__links {
    display: flex;
    gap: 3rem;
    margin-right: auto;
}

.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav__link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.nav__toggle span {
    display: block;
    width: 2.5rem;
    height: 0.2rem;
    margin: 0.5rem 0;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav__content {
        padding: 1rem 1.5rem;
    }

    .nav__toggle {
        display: block;
        order: 1;
    }

    .nav__logo {
        order: 2;
        font-size: 2rem;
    }

    .theme-toggle {
        order: 3;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 900;
        gap: 4rem;
        margin: 0;
    }

    .nav__links.active {
        right: 0;
    }

    .nav__link {
        font-size: 2.4rem;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(0.8rem, 0.6rem);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0.7rem, -0.5rem);
    }

    .nav__logo-img {
        height: 3.5rem;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media screen and (max-width: 768px) {
  .nav__content {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glass-card {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow), var(--neon-glow-primary);
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 10rem 2rem;
    gap: 4rem;
}

.hero__content {
    max-width: 80rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    animation: fadeInUp 1s ease-out forwards;
    grid-column: 1 / 2;
}

.hero__illustration {
    grid-column: 2 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-out forwards;
    position: relative;
}

.hero__image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 255, 163, 0.2));
    transition: transform 0.3s ease;
}



.hero__title {
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 800;
    text-align: center;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: var(--font-display);
}

.hero__description {
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.9;
    max-width: 60rem;
    margin: 0 auto;
}

.hero__cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn--secondary {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn--secondary:hover {
    background: var(--color-secondary);
    color: var(--color-bg);
}

@media screen and (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 8rem 2rem;
    }

    .hero__content {
        grid-column: 1 / -1;
        text-align: center;
        margin: 0 auto;
    }

    .hero__illustration {
        grid-column: 1 / -1;
        margin-top: -2rem;
        order: -1;
    }

    .hero__image {
        max-width: 80%;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem;
    }

    .hero__content {
        gap: 2rem;
    }

    .hero__image {
        max-width: 90%;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .hero__social {
        margin-bottom: 8rem;
    }

    .scroll-prompt {
        bottom: 6rem;
    }
}

@media screen and (min-width: 769px) {
    .hero__social {
        position: fixed;
        left: 3rem;
        bottom: 50%;
        transform: translateY(50%);
        flex-direction: column;
        width: auto;
        margin: 0;
        padding: 0;
    }

    .scroll-prompt {
        bottom: 5rem;
    }
}

@media screen and (max-height: 600px) {
    .hero {
        padding: 6rem 1.5rem;
    }

    .hero__illustration {
        display: none;
    }

    .scroll-prompt {
        display: none;
    }
}

.section {
    padding: 10rem 5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.section__title {
    font-size: 3.2rem;
    margin-bottom: 6rem;
    text-align: center;
    color: var(--color-text);
    position: relative;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-family: var(--font-display);
}

.section__title::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1rem;
    background: var(--color-primary);
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1rem;
    background: var(--color-primary);
}

.section__title span {
    display: inline-block;
    position: relative;
    padding: 0 2rem;
}

.section__title span::before,
.section__title span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 1px;
    background: var(--color-primary);
}

.section__title span::before {
    right: 100%;
}

.section__title span::after {
    left: 100%;
}

@media screen and (max-width: 768px) {
    html {
        font-size: 56.25%;
    }

    .section {
        padding: 8rem 2rem;
    }

    .hero__title {
        font-size: 6rem;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .hero__title {
        font-size: 4rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.typewriter__subtitle {
    display: block;
    font-size: 2.4rem;
    margin-top: 1rem;
    color: var(--color-text);
    opacity: 0.8;
}

.typewriter__container {
    min-height: 4.8rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter__text {
    display: inline-block;
    color: var(--color-primary);
    font-size: 2.2rem;
    line-height: 1.5;
    min-height: 3.3rem;
    position: relative;
    padding-right: 1rem;
    white-space: nowrap;
}

.typewriter__text::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--color-primary);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

@media screen and (max-width: 768px) {
    .typewriter__container {
        min-height: 7.2rem;
    }

    .typewriter__text {
        font-size: 1.8rem;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .typewriter__container {
        min-height: 6rem;
    }

    .typewriter__text {
        font-size: 1.6rem;
    }
}

.social-link__icon {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.social-link__icon::before {
    font-family: 'Material Icons Round';
    font-size: 2rem;
}

.social-link__icon:contains('GitHub')::before {
    content: 'code';
}

.social-link__icon:contains('LinkedIn')::before {
    content: 'business_center';
}

.social-link__icon:contains('Telegram')::before {
    content: 'send';
}

.social-link__icon:contains('Email')::before {
    content: 'email';
}

.skill-tag {
    position: relative;
}

.skill-tag::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    padding: 0.5rem 1rem;
    background: var(--color-glass);
    border: 1px solid var(--color-primary);
    border-radius: 0.5rem;
    color: var(--color-text);
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tag:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.scroll-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background: var(--color-glass);
    border: none;
    border-radius: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-glass-border);
}

.scroll-top.visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-top .material-icons-round {
    font-size: 2.4rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background: var(--color-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 255, 163, 0.2);
    border-color: var(--color-primary);
}

.scroll-top:hover .material-icons-round {
    color: var(--color-bg);
    transform: translateY(-2px);
}

.scroll-top:active {
    transform: translateY(-2px) scale(0.95);
}

@media screen and (max-width: 768px) {
    .scroll-top {
        bottom: 2rem;
        right: 2rem;
        width: 4.5rem;
        height: 4.5rem;
    }

    .scroll-top .material-icons-round {
        font-size: 2.2rem;
    }
}

@media (hover: none) {
    .scroll-top:hover {
        transform: scale(1);
        box-shadow: none;
    }
    
    .scroll-top:active {
        transform: scale(0.9);
        background: var(--color-primary);
    }
    
    .scroll-top:active .material-icons-round {
        color: var(--color-bg);
    }
}

.skills__container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills__category {
    padding: 3rem;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 1rem;
}

.skills__category-title {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.skills__category-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 1px;
    background: var(--color-primary);
    opacity: 0.5;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.skill-item {
    padding: 2rem;
    background: transparent;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.skill-item__icon {
    display: block;
    font-size: 3rem !important;
    margin: 0 auto;
    color: var(--color-primary);
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 0.8;
}

.skill-item:hover .skill-item__icon {
    transform: translateY(-2px);
    opacity: 1;
    color: var(--color-secondary);
}

.skill-item__name {
    font-size: 1.4rem;
    color: var(--color-text);
    text-align: center;
    margin: 1rem 0;
    opacity: 0.9;
}

.skill-item__bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.skill-item__progress {
    height: 100%;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width 1s ease;
}

@media screen and (max-width: 768px) {
    .skills__container {
        gap: 4rem;
        padding: 0 1.5rem;
    }

    .skills__category {
        padding: 2rem;
    }

    .skills__grid {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 1.5rem;
    }

    .section__title {
        font-size: 2.8rem;
        margin-bottom: 5rem;
    }

    .section__title span::before,
    .section__title span::after {
        width: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .skills__container {
        gap: 3rem;
    }

    .section__title {
        font-size: 2.4rem;
        margin-bottom: 4rem;
    }

    .section__title span {
        padding: 0 1rem;
    }

    .section__title span::before,
    .section__title span::after {
        width: 1.5rem;
    }

    .skills__category-title {
        font-size: 1.8rem;
    }

    .skill-item {
        padding: 1.5rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 12px;
    background: transparent;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    gap: 1rem;
    min-width: 160px;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 163, 0.15);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover span {
    color: var(--color-bg);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-bg);
}

.btn--primary::before {
    background: var(--color-bg);
}

.btn--primary:hover span {
    color: var(--color-primary);
}

.btn--secondary {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn--secondary::before {
    background: var(--color-secondary);
}

.btn--secondary:hover {
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.15);
}

.btn .material-icons-round {
    font-size: 2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover .material-icons-round {
    transform: translateX(3px);
}

@media screen and (max-width: 768px) {
    .btn {
        padding: 1rem 2.4rem;
        font-size: 1.4rem;
        min-width: 140px;
    }
}

@media (hover: none) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .btn::before {
        display: none;
    }
    
    .btn--primary:active {
        background: var(--color-bg);
        color: var(--color-primary);
    }
    
    .btn--secondary:active {
        background: var(--color-secondary);
        color: var(--color-bg);
    }
}

html {
    scroll-behavior: smooth;
}

.nav__link,
.social-link,
.btn {
    transition: all 0.3s ease;
}

.nav__link:hover,
.social-link:hover {
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav__link:hover,
    .social-link:hover,
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Scroll Prompt */
.scroll-prompt {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-prompt:hover {
    opacity: 1;
}

.scroll-prompt__text {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    color: var(--color-text);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.scroll-prompt__icon {
    width: 2rem;
    height: 3rem;
    border: 2px solid var(--color-primary);
    border-radius: 1rem;
    position: relative;
    background: var(--color-glass);
    backdrop-filter: blur(5px);
}

.scroll-prompt__icon::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.4rem;
    height: 0.4rem;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: scrollDown 1.5s infinite;
    box-shadow: 0 0 10px var(--color-primary);
}

@keyframes scrollDown {
    0% { 
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, 1.5rem);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media screen and (max-width: 768px) {
    .scroll-prompt {
        bottom: 3rem;
    }

    .scroll-prompt__text {
        font-size: 1.2rem;
    }

    .scroll-prompt__icon {
        width: 1.8rem;
        height: 2.8rem;
    }
}

@media screen and (max-height: 600px) {
    .scroll-prompt {
        display: none;
    }
}

/* Hero Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 1.2rem;
    min-width: 12rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 255, 163, 0.1);
}

.stat-item__number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-display);
    min-width: 3.5em;
    display: inline-block;
    text-align: center;
}

.stat-item__label {
    font-size: 1.4rem;
    color: var(--color-text);
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .hero__stats {
        gap: 2rem;
    }

    .stat-item {
        padding: 1.2rem;
        min-width: 10rem;
    }

    .stat-item__number {
        font-size: 2.8rem;
    }

    .stat-item__label {
        font-size: 1.2rem;
    }
}

/* Story Section */
.story {
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--color-glass) 50%,
        transparent 100%
    );
    overflow: hidden;
}

.story__subtitle {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 8rem;
    opacity: 0.9;
    position: relative;
}

.story__subtitle::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 1px;
    background: var(--color-primary);
    opacity: 0.5;
}

.story__description {
    max-width: 90rem;
    margin: 8rem auto 0;
    padding: 4rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.story__description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-glass);
    border-radius: inherit;
    z-index: -1;
    backdrop-filter: blur(10px);
}

.story__description p {
    margin-bottom: 2rem;
    font-size: 1.7rem;
    text-align: justify;
    position: relative;
}

/* Timeline */
.timeline {
    max-width: 120rem;
    margin: 0 auto;
    position: relative;
    padding: 0 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    height: calc(100% - 8rem);
    background: linear-gradient(to bottom,
        transparent,
        var(--color-primary) 10%,
        var(--color-primary) 90%,
        transparent
    );
    right: calc(50% - 2px);
    top: 4rem;
    opacity: 0.3;
    border-radius: 4px;
}

.timeline__item {
    display: flex;
    justify-content: flex-start;
    padding-right: calc(50% + 4rem);
    position: relative;
    margin-bottom: 8rem;
}

.timeline__item:nth-child(even) {
    justify-content: flex-end;
    padding-right: 0;
    padding-left: calc(50% + 4rem);
}

.timeline__content {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 1.6rem;
    padding: 3rem;
    width: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.timeline__content::before {
    content: '';
    position: absolute;
    width: 3rem;
    height: 3rem;
    background: var(--color-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--color-primary);
}

.timeline__item:nth-child(odd) .timeline__content::before {
    right: -7rem;
}

.timeline__item:nth-child(even) .timeline__content::before {
    left: -7rem;
}

.timeline__content::after {
    content: '';
    position: absolute;
    width: 4rem;
    height: 2px;
    background: var(--color-primary);
    top: 50%;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.timeline__item:nth-child(odd) .timeline__content::after {
    right: -4rem;
}

.timeline__item:nth-child(even) .timeline__content::after {
    left: -4rem;
}

.timeline__date {
    color: var(--color-primary);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    text-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

.timeline__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-weight: 700;
}

.timeline__description {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.9;
}

.timeline__content:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: var(--neon-glow-primary);
}

.timeline__content:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 30px var(--color-primary);
}

.timeline__content:hover::after {
    opacity: 0.6;
    width: 6rem;
}

/* Timeline Responsive */
@media screen and (max-width: 768px) {
    .timeline::before {
        right: 2rem;
        height: calc(100% - 4rem);
        top: 2rem;
    }

    .timeline__item,
    .timeline__item:nth-child(even) {
        padding: 0 0 0 4rem;
        justify-content: flex-start;
    }

    .timeline__content {
        width: 100%;
        padding: 2rem;
    }

    .timeline__content::before {
        right: -3rem !important;
        left: auto !important;
        width: 2rem;
        height: 2rem;
    }

    .timeline__content::after {
        display: none;
    }

    .story__subtitle {
        font-size: 1.6rem;
        margin-bottom: 4rem;
    }

    .story__description {
        margin-top: 4rem;
        padding: 2rem;
    }

    .story__description p {
        font-size: 1.4rem;
    }

    .timeline__date {
        font-size: 2rem;
    }

    .timeline__title {
        font-size: 1.8rem;
    }

    .timeline__description {
        font-size: 1.4rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-glass-border);
    padding: 5rem 0 2rem;
    margin-top: 8rem;
}

.footer__content {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
}

.footer__section {
    padding: 2rem;
}

.footer__title {
    font-size: 2.2rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    position: relative;
    font-weight: 600;
    font-family: var(--font-display);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    right: 0;
    width: 3rem;
    height: 2px;
    background: var(--color-primary);
    opacity: 0.7;
}

.footer__links,
.footer__contact {
    list-style: none;
    padding: 0;
}

.footer__links li,
.footer__contact-item {
    margin-bottom: 1.5rem;
}

.footer__link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.6rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer__link:hover {
    color: var(--color-primary);
    opacity: 1;
    transform: translateX(-5px);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__contact-item .material-icons-round {
    color: var(--color-primary);
    font-size: 2.2rem;
}

.footer__bottom {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-glass-border);
}

.footer__copyright {
    font-size: 1.5rem;
    color: var(--color-text);
    opacity: 0.7;
}

/* Footer Responsive Styles */
@media screen and (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
        margin-top: 6rem;
    }

    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer__section {
        padding: 1.5rem;
    }

    .footer__title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .footer__link {
        font-size: 1.4rem;
    }

    .footer__bottom {
        margin-top: 3rem;
        padding: 1.5rem;
    }

    .footer__copyright {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .footer__title {
        font-size: 1.6rem;
    }

    .footer__link {
        font-size: 1.3rem;
    }

    .footer__contact-item .material-icons-round {
        font-size: 1.8rem;
    }

    .footer__copyright {
        font-size: 1.2rem;
    }
}

/* RTL Support for Footer Links */
[dir="rtl"] .footer__link:hover {
    transform: translateX(5px);
}

/* FAQ Section Styles - Minimal & Responsive */
.faq {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    background: none;
    border: none;
    border-radius: 1.2rem;
    box-shadow: none;
    padding: 2rem 0 1rem 0;
    backdrop-filter: none;
}

.faq__container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq__item {
    background: var(--color-glass);
    border-radius: 0.8rem;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
    border: none;
    border-bottom: none;
    transition: box-shadow 0.2s;
}

.faq__item + .faq__item {
    margin-top: 0.5rem;
}

.faq__question {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.faq__question::after {
    content: '\25BC';
    font-size: 1.2rem;
    margin-right: 0.7rem;
    transition: transform 0.3s;
}

.faq__item.active .faq__question::after {
    transform: rotate(180deg);
}

.faq__answer {
    font-size: 1.3rem;
    color: var(--color-text);
    line-height: 2;
    opacity: 0.97;
    text-align: justify;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    opacity: 0;
    padding: 0 0;
}

.faq__item.active .faq__answer {
    max-height: 300px;
    opacity: 1;
    padding: 0.5rem 0 0.5rem 0;
}

.faq__answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s;
    word-break: break-all;
}

.faq__answer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .faq {
        padding: 1.2rem 1.5rem 0.5rem 1.5rem;
        max-width: 98vw;
        margin-bottom: 2rem;
    }
    .faq__item {
        padding: 0.7rem 0.7rem;
    }
    .faq__question {
        font-size: 1.3rem;
    }
    .faq__answer {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .faq {
        max-width: 100vw;
        padding: 0.5rem 1rem 0.2rem 1rem;
        margin-bottom: 2rem;
    }
}

.section.faq {
    min-height: 450px;
    padding-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
    .section.faq {
        min-height: 320px;
        padding-bottom: 0.5rem;
    }
}

.hero .scroll-prompt {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.telegram-btn {
  padding: 0.6rem 2.4rem;
  border: 2px solid var(--color-primary);
  border-radius: 1.2rem;
  background: transparent;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  box-shadow: 0 0 0 0 rgba(0,255,163,0.2);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.telegram-btn:hover, .telegram-btn:focus {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 8px 2px rgba(0,255,163,0.15);
  text-decoration: none;
}
