@font-face {
    font-family: 'IRANSans';
    src: url('font/woff2/IRANSansWeb.woff2') format('woff2'),
         url('font/woff/IRANSansWeb.woff') format('woff'),
         url('font/ttf/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-dark: #0b1a2f;
    --primary-gold: #b8914a;
    --bg-light: #f8f9fa;
    --text-dark: #333;
    --white: #fff;
    --black: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSans', sans-serif;
}

body {
    direction: rtl;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== نوار ناوبری ========== */
.navbar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: 0.3s;
    z-index: 1002;
}

.hamburger-btn:hover {
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    transition: all 0.3s ease;
    margin: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 1rem;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

/* ========== MASTER SLIDER ========== */
.master-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 350px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.ms-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ms-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
    overflow: hidden;
}

.ms-slide.active {
    opacity: 1;
    z-index: 2;
}

.ms-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: brightness(1) !important;
    -webkit-filter: brightness(1) !important;
}

.ms-prev,
.ms-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 95, 95, 0.15);
    border: none;
    color: var(--black);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    font-size: 1.3rem;
    transition: 0.3s;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ms-prev:hover,
.ms-next:hover {
    background: var(--primary-gold);
    transform: translateY(-50%) scale(1.1);
}

.ms-prev {
    left: 25px;
}
.ms-next {
    right: 25px;
}

.ms-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.ms-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.ms-dot.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

/* ========== پشتیبان اسلایدر ========== */
.master-slider-fallback {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 350px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.fallback-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* ========== کارت‌ها ========== */
.about-section {
    padding: 80px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.card-header.dark-bg {
    background: var(--primary-dark);
    color: var(--white);
}

.card-header i {
    font-size: 1.2rem;
}

.card-body {
    padding: 20px;
}

.card-body p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-items li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.list-items li::before {
    content: '•';
    color: var(--primary-gold);
    position: absolute;
    right: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.list-items li:last-child {
    margin-bottom: 0;
}

/* ========== لیست دو ستونه ========== */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    padding-right: 0;
    list-style: none;
}

.grid-2-col li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.grid-2-col li::before {
    content: '•';
    color: var(--primary-gold);
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}

/* ========== دکمه طلایی ========== */
.btn-gold {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    width: auto;
    text-align: center;
}

.btn-gold:hover {
    background: #a87a30;
    transform: translateY(-2px);
}

/* ========== درباره من ========== */
.about-main-section {
    padding: 40px 0 30px 0;
}

.about-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--primary-gold);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-bio-wrapper {
    text-align: right;
}

.about-bio-wrapper .bio-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.about-bio-wrapper .bio-subtitle {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-bio-wrapper .bio-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-align: justify;
}

/* ========== دکمه بازگشت ========== */
.about-btn-wrapper {
    text-align: center;
    margin: 10px 0 40px 0;
}

/* ========== فوتر ========== */
footer {
    background: #050e1a;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}

.footer-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-simple p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
    line-height: 2;
}

/* ========== عکس عمودی ========== */
.about-layout-big {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.about-image-big {
    flex: 0 0 350px;
    height: auto;
    min-height: 500px;
    position: relative;
}

.about-image-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-text-big {
    flex: 1;
    padding: 30px 40px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-big p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ======================================== */
/* ========== غیرفعال کردن کامل دارک مود ========== */
/* ======================================== */

html {
    color-scheme: light !important;
    forced-color-adjust: none !important;
}

.master-slider,
.ms-slide,
.ms-wrapper,
.ms-img,
.fallback-image,
.about-image-wrapper img,
img {
    filter: brightness(1) saturate(1) !important;
    -webkit-filter: brightness(1) saturate(1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    isolation: isolate !important;
    will-change: transform !important;
    transform: rotate(0.0001deg) !important;
}

/* جلوگیری از لایه‌های اضافی */
.ms-slide::before,
.ms-slide::after {
    display: none !important;
    content: none !important;
}

/* مخصوص سامسونگ اینترنت */
.ms-img {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    -webkit-mask-mode: none !important;
    mask-mode: none !important;
    -webkit-mask-composite: none !important;
    mask-composite: none !important;
}

/* ======================================== */
/* ========== ریسپانسیو ================== */
/* ======================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .hamburger-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 5px;
        background-color: var(--primary-dark);
        padding: 20px 25px;
        border-radius: 0 0 15px 15px;
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 1001;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        border-top: 3px solid var(--primary-gold);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: block;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .master-slider {
        height: 60vh;
        min-height: 300px;
    }
    .master-slider-fallback {
        height: 60vh;
        min-height: 300px;
    }
    .ms-prev,
    .ms-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .ms-prev {
        left: 10px;
    }
    .ms-next {
        right: 10px;
    }
    .ms-dots {
        bottom: 20px;
        gap: 8px;
    }
    .ms-dot {
        width: 10px;
        height: 10px;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .grid-2-boxes {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .about-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
        order: 1;
    }

    .about-bio-wrapper {
        order: 2;
        text-align: center;
    }

    .about-bio-wrapper .bio-text p {
        text-align: center;
    }

    .about-bio-wrapper .bio-title {
        font-size: 1.8rem;
    }

    .about-bio-wrapper .bio-subtitle {
        font-size: 1.1rem;
    }

    .about-image-big {
        flex: 0 0 250px;
        min-height: 350px;
    }
    .about-text-big {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hamburger-btn {
        font-size: 1.5rem;
    }

    .nav-links {
        top: 55px;
        padding: 15px 20px;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .master-slider {
        height: 50vh;
        min-height: 250px;
    }
    .master-slider-fallback {
        height: 50vh;
        min-height: 250px;
    }
    .ms-prev,
    .ms-next {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.4);
    }
    .ms-prev {
        left: 8px;
    }
    .ms-next {
        right: 8px;
    }
    .ms-dots {
        bottom: 15px;
        gap: 6px;
    }
    .ms-dot {
        width: 8px;
        height: 8px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-2-boxes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-main-section {
        padding: 20px 0 20px 0;
    }

    .about-image-wrapper {
        max-width: 220px;
        border-width: 3px;
    }

    .about-bio-wrapper .bio-title {
        font-size: 1.4rem;
    }

    .about-bio-wrapper .bio-subtitle {
        font-size: 0.95rem;
    }

    .about-bio-wrapper .bio-text p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .card-header {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .card-header i {
        font-size: 1rem;
    }

    .card-body {
        padding: 15px;
    }

    .list-items li {
        font-size: 0.85rem;
        padding-right: 16px;
        margin-bottom: 8px;
    }

    .btn-gold {
        padding: 10px 28px;
        font-size: 0.9rem;
    }

    .about-image-big {
        flex: 0 0 200px;
        min-height: 250px;
    }
    .about-text-big {
        padding: 20px;
    }
    .about-text-big p {
        font-size: 0.9rem;
    }

    .footer-simple p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .nav-links {
        top: 50px;
        padding: 12px 15px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    .master-slider {
        height: 40vh;
        min-height: 200px;
    }
    .master-slider-fallback {
        height: 40vh;
        min-height: 200px;
    }
    .ms-prev,
    .ms-next {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }

    .about-image-wrapper {
        max-width: 160px;
        border-width: 2px;
    }

    .about-bio-wrapper .bio-title {
        font-size: 1.1rem;
    }

    .about-bio-wrapper .bio-subtitle {
        font-size: 0.8rem;
    }

    .about-bio-wrapper .bio-text p {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .card-header {
        font-size: 0.8rem;
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .card-header i {
        font-size: 0.9rem;
    }

    .card-body {
        padding: 12px;
    }

    .list-items li {
        font-size: 0.75rem;
        padding-right: 14px;
        margin-bottom: 6px;
    }

    .btn-gold {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .about-image-big {
        flex: 0 0 150px;
        min-height: 200px;
    }
    .about-text-big {
        padding: 15px;
    }
    .about-text-big p {
        font-size: 0.8rem;
    }

    .footer-simple p {
        font-size: 0.7rem;
    }
}