/* فونت‌ها */
@font-face {
    font-family: 'Far_Roya';
    src: url('../font/Far_Roya/Far_Roya.ttf') format('truetype');
    font-weight: normal;
}

/* استایل‌های پایه */
:root {
    --primary-font: 'Far_Roya', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: #122E34;
    background-color: #122E34;
}

/* تایپوگرافی */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--primary-font);
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* استایل‌های خاص */
.navbar-nav {
    font-family: var(--primary-font);
    font-weight: 500;
}

.nav-link {
    font-size: 1.1rem;
}

.hero-text {
    font-weight: bold;
}

.form-floating label {
    font-family: var(--primary-font);
}

.btn {
    font-family: var(--primary-font);
    font-weight: 500;
}

/* رنگ‌های اصلی */
.main-color {
    background-color: #122E34;
}

.item {
    background-color: #586b75;
}

.border {
    border-color: #AFB3B7 !important;
    border-width: 2px !important;
}

/* نوبار شیشه‌ای */
.glass-navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
}

.glass-navbar .nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

.glass-navbar .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.glass-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.glass-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* اسکرول شده */
.glass-navbar.scrolled {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* تنظیمات ریسپانسیو */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.1rem;
    }
}

/* Loading Screen Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: #000;
    z-index: 9999;
    transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}

.loading-left {
    left: 0;
    transform: translateX(0);
}

.loading-right {
    left: 50%;
    transform: translateX(0);
}

.loaded .loading-left {
    transform: translateX(-100%);
}

.loaded .loading-right {
    transform: translateX(100%);
}

/* Fix mobile overflow */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure loading screens cover full width on mobile */
    .loading-screen {
        width: 50%;
    }

    .loading-right {
        left: 50%;
    }

    /* Adjust animation distance for mobile */
    .animate-section {
        transform: translateX(30px);
    }

    .animate-section.from-left {
        transform: translateX(-30px);
    }
}

/* Scroll Animations */
.animate-section {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.animate-section.from-left {
    transform: translateX(-50px);
}

.animate-section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* استایل مهارت‌ها */
.skill-item {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: default;
    padding: 5px 10px;
}

.skill-item:hover {
    transform: translateY(-5px);
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius-lg) !important;
}

/* موشن حرکت نرم */
.jump-up:hover {
    transition: transform 0.3s ease, color 0.3s ease;
}

.jump-up:hover {
    transform: translateY(-5px);
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius-lg) !important;
}

/* اضافه کردن smooth scroll برای لینک‌های داخل صفحه */
html {
    scroll-behavior: smooth;
}

/* استایل‌های دکمه‌های تماس */
.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn i {
    margin-left: 0.5rem;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* استایل‌های اضافی */
.navbar {
    padding: 1rem 0;
}

.header-img {
    width: 50px;
    height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #718096 !important;
}

@media (max-width: 992px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .nav-item {
        text-align: right;
    }
}

main {
    margin-top: 130px;
}

.btn-theme {
    background-color: #718096 !important;
}