/* Base Styles */
:root {
    --primary: #8a8a8a;      /* نقره‌ای تیره متالیک */
    --secondary: #b8b8b8;    /* نقره‌ای متوسط براق */
    --dark: #5a5a5a;         /* نقره‌ای خیلی تیره */
    --light: #e8e8e8;        /* نقره‌ای روشن براق */
    --accent: #c0c0c0;       /* نقره‌ای کلاسیک (Silver) */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-weight: 100 !important;
}
/* دسکتاپ: نازک */


/* موبایل: کمی ضخیم‌تر برای خوانایی */
@media (max-width: 768px) {
    * {
        font-weight: 300 !important; /* یا ۴۰۰ */
        -webkit-font-smoothing: antialiased !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.insta-link{
    text-decoration: none;
    color: var(--dark);
        margin: 0;
    font-size: 1rem;
    font-weight: normal;
    color: #333; /* رنگ یکسان */
    
}

.contact-detail h4,
.contact-detail {
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
    color: #333; /* رنگ یکسان */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* ساختار جدید nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    padding: 0 2px;
    max-height: 100px;
    width: 80px;
    object-fit: contain;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* ریست کامل برای دکمه‌های زبان */
.language-switcher {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 50% !important; /* وسط - مهم! */
    top: 50% !important; /* وسط عمودی - مهم! */
    transform: translate(-50%, -50%) !important; /* دقیقاً وسط - مهم! */
    direction: ltr !important; /* همیشه چپ به راست - مهم! */
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.lang-btn:hover {
    background: var(--primary);
    color: white;
}

/* مهم: دکمه‌های زبان همیشه از چپ به راست */
.language-switcher {
    direction: ltr;
}

/* ===== HERO SLIDER STYLES ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* ساختار جدید برای محتوای اسلاید - دسکتاپ */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 100;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
}
.btn-slider {
     display: inline-block;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}
.btn-slider:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
}
.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--dark);
}

/* کنترل‌های اسلایدر */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* نشانگر اسلایدها */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: white;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    /* هیرو اسلایدر برای موبایل */
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content {
        height: 70vh;
        min-height: 500px;
        padding: 80px 15px 40px;
        justify-content: space-between;
    }
    
    .slide-content h1 {
        font-size: 2.2rem;
        margin-top: 40px;
        margin-bottom: 0;
        order: 1;
    }
    
    .slide-buttons {
        margin-top: 0;
        margin-bottom: 40px;
        order: 3;
        width: 100%;
    }
        .btn-slider {
     display: inline-block;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
        font-size: 0.85rem;
}
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 160px;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-prev,
    .slider-next {
        width: 45px;
        height: 45px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    /* تغییر عکس‌ها برای موبایل */
    .slide-image {
        background-image: var(--mobile-image) !important;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content {
        height: 60vh;
        min-height: 400px;
        padding: 60px 10px 30px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
        margin-top: 30px;
    }
    
    .slide-buttons {
        margin-bottom: 30px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .btn-slider {
     display: inline-block;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
        font-size: 0.85rem;
}
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 140px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
    }
    
    .slider-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 360px) {
    .slide-content h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        width: 130px;
    }
        .btn-slider {
     display: inline-block;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
        font-size: 0.85rem;
}
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: var(--light);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 10px 10px;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    background-color: white;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.portfolio-info p {
    color: #666;
    font-size: 0.9rem;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.portfolio-link:hover {
    color: inherit;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-info p {
    margin-bottom: 30px;
    color: #666;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-detail i {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: white;
    color: var(--dark);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    margin-right: 30px;
}

.footer-col:last-child {
    margin-right: 0;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
}

.footer-col p {
    margin-bottom: 20px;
    color: #bbb;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

.copyright .separator {
    margin: 0 15px;
    color: var(--accent);
}

.copyright .dev-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright .dev-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* استایل عمومی برای همه عکس‌ها */
.portfolio-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.hover-effect .img-normal,
.hover-effect .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hover-effect .img-hover {
    opacity: 0;
    transform: scale(1.1);
}

.hover-effect:hover .img-normal {
    opacity: 0;
}

.hover-effect:hover .img-hover {
    opacity: 1;
    transform: scale(1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Scroll Effect */
.header-scrolled {
    padding: 10px 0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Justify متن‌ها */
.about-text p,
.contact-info p,
.footer-col p,
.portfolio-info p {
    text-align: justify;
    text-justify: inter-word;
}

/* برای تیترها مرکز چین باشه */
.section-title h2,
.about-text h3,
.contact-info h3,
.footer-col h3 {
    text-align: center;
}

/* ===== RTL STYLES ===== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-right {
    direction: ltr; /* کل سمت راست هدر از چپ به راست باقی میمونه */
}

[dir="rtl"] .language-switcher {
    direction: ltr; /* دکمه‌های زبان همیشه از چپ به راست */
}

[dir="rtl"] .nav-links {
    direction: rtl; /* فقط منوی نویگیشن RTL بشه */
}

[dir="rtl"] .nav-links li {
    margin-left: 0;
    margin-right: 30px;
}

[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-col {
    margin-right: 0;
    margin-left: 30px;
}

[dir="rtl"] .footer-col:last-child {
    margin-left: 0;
}

[dir="rtl"] .footer-col h3::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-detail i {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .btn-outline {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .portfolio-filter {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* استایل‌های RTL برای اسلایدر */
[dir="rtl"] .slider-prev i {
    transform: rotate(180deg);
}

[dir="rtl"] .slider-next i {
    transform: rotate(180deg);
}

[dir="rtl"] .scroll-arrow {
    transform: rotate(-135deg);
}

[dir="rtl"] .scroll-arrow {
    animation: scrollBounceRTL 2s infinite;
}

@keyframes scrollBounceRTL {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-135deg) translateY(0);
    }
    40% {
        transform: rotate(-135deg) translateY(-10px);
    }
    60% {
        transform: rotate(-135deg) translateY(-5px);
    }
}

/* ریسپانسیو */
@media (max-width: 920px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-prev,
    .slider-next {
        width: 50px;
        height: 50px;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .slide-buttons .btn {
        width: 200px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-col {
        margin: 0 0 30px 0;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}
/* ===== HEADER RESPONSIVE FIX ===== */

@media (max-width: 768px) {
    header {
        position: relative;
        height: 70px !important;
    }
    
    nav {
        display: grid !important;
        grid-template-columns: auto auto auto !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 10px !important;
        gap: 5px !important;
    }
    
    /* لوگو - سمت چپ */
    .logo {
        justify-self: start !important;
        display: flex !important;
        align-items: center !important;
        max-width: 100px !important;
        overflow: hidden !important;
    }
    
    .logo img {
        width: 35px !important;
        height: 35px !important;
        flex-shrink: 0 !important;
    }
    
    .logo span {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: none !important; /* تو موبایل متن رو مخفی میکنیم */
    }
    
    /* دکمه زبان - وسط */
    .language-switcher {
        justify-self: center !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding: 3px 6px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 15px !important;
        gap: 4px !important;
        order: 2 !important;
    }
    
    .lang-btn {
        padding: 3px 6px !important;
        font-size: 9px !important;
        min-width: 45px !important;
        height: 22px !important;
    }
    
    /* منو - سمت راست */
    .menu-toggle {
        justify-self: end !important;
        order: 3 !important;
    }
}

/* برای نمایش لوگو در سایزهای بزرگتر */
@media (min-width: 769px) {
    .logo span {
        display: inline !important;
    }
}

