/* ========== VARIABLES ========== */
:root {
    --bg: #0b0b0b;
    --panel: #0f0f0f;
    --muted: #a6a6a6;
    --accent: #c6a667;
    --glass: rgba(255, 255, 255, 0.04);
    --sidebar-width: 220px;
    --gap: 18px;
    --radius: 6px;
    --glass-blur: 8px;
}

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

html, body {
    height: 100%;
    font-family: 'Vazirmatn', 'Vazir', sans-serif;
    background: #111;
    color: #fff;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    background: #090909;
}

/* ========== SIDEBAR ========== */
.side-nav {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 9999;
    transition: width 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.35s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
}

.side-nav.collapsed {
    width: 72px;
}

.side-nav .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.brand .title {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 600;
}

.brand .sub {
    font-size: 11px;
    color: var(--muted);
}

.side-nav.collapsed .brand .title,
.side-nav.collapsed .brand .sub {
    display: none;
}

/* ========== SIDEBAR ACTIONS ========== */
.side-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border-radius: 6px;
    padding: 8px;
}

.search input {
    background: transparent;
    border: 0;
    outline: 0;
    color: #eee;
    font-size: 13px;
    width: 100%;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    color: var(--muted);
    transition: all 0.3s;
}

.action-btn:hover {
    color: var(--accent);
    background: rgba(198, 166, 103, 0.1);
}

.action-btn:focus {
    outline: 2px solid rgba(198, 166, 103, 0.18);
}

/* ========== NAVIGATION MENU ========== */
nav.nav-menu {
    margin-top: 12px;
}

nav.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

nav.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.22s ease;
}

nav.nav-menu a i {
    width: 30px;
    text-align: center;
    font-size: 16px;
}

nav.nav-menu a:hover {
    color: #fff;
    transform: translateX(-6px);
}

nav.nav-menu a.active {
    background: linear-gradient(90deg, rgba(198, 166, 103, 0.12), rgba(198, 166, 103, 0.06));
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(198, 166, 103, 0.04);
}

.side-nav.collapsed nav.nav-menu a span.label {
    display: none;
}

/* ========== SIDEBAR FOOTER ========== */
.side-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s;
}

.socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* ========== SIDEBAR TOGGLE BUTTON ========== */
.sidebar-toggle {
    position: fixed;
    right: calc(var(--sidebar-width) + 18px);
    top: 6px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 10000;
    transition: right 0.35s ease;
    color: #fff;
}

.side-nav.collapsed + .sidebar-toggle {
    right: calc(72px + 18px);
}

/* ========== CONTENT AREA ========== */
.content {
    transition: margin-right 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
    margin-right: var(--sidebar-width);
}

.side-nav.collapsed ~ .content {
    margin-right: 72px;
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=2000') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.3));
}

.hero-box {
    position: relative;
    max-width: 650px;
    padding: 40px;
    margin-left: 40px;
    color: #fff;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.hero-box h1 {
    font-size: 46px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-box p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 14px 32px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    letter-spacing: 1px;
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent);
    color: #111;
}

.btn.btn-primary {
    background: var(--accent);
    color: #111;
}

.btn.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

/* ========== SECTIONS ========== */
section {
    padding: 120px 70px;
    position: relative;
}

.section-title {
    font-size: 34px;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: "";
    width: 70px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-top: 12px;
}

.section-desc {
    font-size: 17px;
    color: #aaa;
    max-width: 700px;
    margin-top: 15px;
}

/* ========== SERVICES GRID ========== */
.services-grid {
    margin-top: 70px;
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.service-icon {
    font-size: 38px;
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: #bbb;
    line-height: 1.7;
}

/* ========== PORTFOLIO CARDS ========== */
.portfolio-card {
    position: relative;
    height: 330px;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.portfolio-card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
    border-radius: 0 0 6px 6px;
}

.portfolio-card h3 {
    color: #fff;
    font-size: 20px;
}

/* ========== TEAM CARDS ========== */
.team-scroll {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 5px;
    scroll-behavior: smooth;
    white-space: nowrap;
}

.team-card {
    min-width: 320px;
    height: 380px;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.team-card-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}

.team-card h3 {
    color: #fff;
    margin-bottom: 5px;
}

.team-card p {
    color: var(--accent);
    font-size: 15px;
    margin: 0 0 8px 0;
}

.team-card a {
    color: var(--accent);
    font-size: 20px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-scroll {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 5px;
    scroll-behavior: smooth;
}

.testimonial-card {
    min-width: 480px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: center;
}

.testimonial-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 10px;
}

.testimonial-card hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.testimonial-card h4 {
    color: var(--accent);
    margin-bottom: 3px;
}

.testimonial-card .client-company {
    color: #888;
    font-size: 13px;
}

/* ========== BLOG POSTS ========== */
.blog-card {
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}

.blog-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 25px;
}

.blog-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.blog-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.blog-card a {
    color: var(--accent);
    font-size: 15px;
    text-decoration: none;
}

/* ========== FOOTER ========== */
footer {
    background: #050505;
    padding: 110px 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 5;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #777;
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #666;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .side-nav {
        transform: translateX(110%);
        width: 280px;
    }
    
    .side-nav.open {
        transform: translateX(0);
    }
    
    .side-nav.collapsed {
        width: 280px;
    }
    
    .sidebar-toggle {
        right: 18px;
    }
    
    .content {
        margin-right: 0;
    }
    
    section {
        padding: 80px 40px;
    }
    
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-box {
        margin: 0 30px;
    }
    
    .hero-box h1 {
        font-size: 32px;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.mt-45 {
    margin-top: 45px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-70 {
    margin-top: 70px;
}

.mt-80 {
    margin-top: 80px;
}

/* ========== ACCESSIBILITY ========== */
a:focus,
button:focus {
    outline: 2px solid rgba(198, 166, 103, 0.18);
    outline-offset: 2px;
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

/* ==================== THEME VARIABLES ==================== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --accent-color: #c6a667;
    --accent-hover: #d4b97a;
    --border-color: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.68);
    --overlay-darker: rgba(0, 0, 0, 0.72);
    --card-bg: #111111;
    --sidebar-bg: #0a0a0a;
}

body[data-theme="light"] {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #444444;
    --text-tertiary: #666666;
    --accent-color: #c6a667;
    --accent-hover: #b39658;
    --border-color: rgba(0, 0, 0, 0.1);
    --overlay-dark: rgba(255, 255, 255, 0.85);
    --overlay-darker: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;
    --sidebar-bg: #f8f8f8;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== SIDEBAR ==================== */
.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.side-nav.collapsed {
    transform: translateX(100%);
}

.brand .title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.brand .sub {
    color: var(--text-tertiary);
    font-size: 13px;
    letter-spacing: 1px;
}

.nav-menu {
    margin-top: 60px;
    flex: 1;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent-color);
    color: #000000;
    transform: translateX(-5px);
}

.nav-menu a i {
    font-size: 18px;
    width: 20px;
}

/* ==================== SIDEBAR ACTIONS ==================== */
.side-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--accent-color);
    color: #000000;
    border-color: var(--accent-color);
}

/* ==================== SIDEBAR TOGGLE BUTTON ==================== */
.sidebar-toggle {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
}

.sidebar-toggle i {
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-toggle:hover i {
    color: #000000;
}

/* ==================== MAIN CONTENT ==================== */
.content {
    margin-right: 280px;
    min-height: 100vh;
    transition: margin-right 0.3s ease;
}

.content.expanded {
    margin-right: 0;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=2000') center/cover no-repeat;
    opacity: 0.08;
    filter: grayscale(100%);
}

body[data-theme="light"] .hero::before {
    opacity: 0.05;
}

.hero-box {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.hero p {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* ==================== SECTIONS ==================== */
section {
    padding: 140px 70px;
    background: var(--bg-primary);
}

.section-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 650px;
    margin: 0 auto;
}

/* ==================== CARDS ==================== */
.service-card,
.team-card,
.blog-card,
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover,
.team-card:hover,
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .service-card:hover,
body[data-theme="light"] .team-card:hover,
body[data-theme="light"] .blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--bg-secondary);
    padding: 100px 70px 40px;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-title {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(198, 166, 103, 0.3);
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(198, 166, 103, 0.5);
}

/* ==================== ADDITIONAL ELEMENTS ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 70px;
}

.team-scroll,
.testimonial-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 40px 0;
    scroll-behavior: smooth;
}

.team-card {
    min-width: 280px;
    height: 380px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.team-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
}

body[data-theme="light"] .team-card-info {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.95), transparent);
}

.team-card-info h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 8px;
}

.team-card-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.team-card-info a {
    color: var(--accent-color);
    margin-top: 10px;
    display: inline-block;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-card-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.blog-card-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.blog-card-content a:hover {
    color: var(--accent-hover);
}

.testimonial-card {
    min-width: 450px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.testimonial-card hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}

.testimonial-card h4 {
    color: var(--text-primary);
    font-size: 17px;
    margin-bottom: 5px;
}

.testimonial-card .client-company {
    color: var(--text-tertiary);
    font-size: 13px;
}

.socials {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.socials a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000000;
    transform: translateY(-3px);
}

/* Override inline styles from HTML */
section[id="services"] > div:first-child {
    background: var(--overlay-dark) !important;
}

section[id="about"] > div:first-child {
    background: var(--bg-secondary) !important;
}

body[data-theme="light"] section[id="about"] {
    background: var(--bg-secondary) !important;
}

/* Fix text colors in sections */
section h2,
section h3 {
    color: var(--text-primary) !important;
}

section p {
    color: var(--text-secondary) !important;
}

section .section-desc {
    color: var(--text-secondary) !important;
}

/* Footer overrides */
footer h2,
footer h3 {
    color: var(--text-primary) !important;
}

footer p,
footer a {
    color: var(--text-tertiary) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .side-nav {
        width: 250px;
    }
    
    .content {
        margin-right: 250px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    section {
        padding: 100px 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .side-nav {
        transform: translateX(100%);
    }
    
    .side-nav.collapsed {
        transform: translateX(0);
    }
    
    .content {
        margin-right: 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    section {
        padding: 80px 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 320px;
    }
}
/*  */
/* ==================== THEME COLOR OVERRIDES ==================== */
/* این فایل رنگ‌های inline در HTML رو override می‌کنه */

/* Section Backgrounds */
section[id="services"] {
    background-color: var(--bg-secondary) !important;
}

section[id="about"] {
    background-color: var(--bg-secondary) !important;
}

section[id="portfolio"] {
    background-color: var(--bg-primary) !important;
}

section[id="team"] {
    background-color: var(--bg-primary) !important;
}

section[id="events"] {
    background-color: var(--bg-secondary) !important;
}

section[id="testimonials"] {
    background-color: var(--bg-primary) !important;
}

/* Override all inline background colors */
section[style*="background:#0a0a0a"],
section[style*="background:#0f0f0f"],
section[style*="background:#000"] {
    background: var(--bg-secondary) !important;
}

/* Overlay backgrounds */
section > div[style*="background:rgba(0,0,0"] {
    background: var(--overlay-dark) !important;
}

body[data-theme="light"] section > div[style*="background:rgba(0,0,0"] {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Text Colors - Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

[style*="color:#fff"],
[style*="color:white"],
[style*="color:#ffffff"] {
    color: var(--text-primary) !important;
}

/* Text Colors - Paragraphs */
p[style*="color:#ccc"],
p[style*="color:#aaa"],
p[style*="color:#999"],
p[style*="color:#777"] {
    color: var(--text-secondary) !important;
}

/* Service Cards in Grid */
.services-grid > div[style*="background:url"] {
    filter: brightness(0.9);
}

body[data-theme="light"] .services-grid > div[style*="background:url"] {
    filter: brightness(1);
}

/* Service Card Overlays */
.services-grid > div > div[style*="background:linear-gradient"] {
    background: linear-gradient(0deg, var(--overlay-darker), transparent) !important;
}

/* About Section Grid */
section[id="about"] > div > div[style*="display:grid"] > div {
    color: var(--text-primary);
}

section[id="about"] p[style*="color:#ccc"] {
    color: var(--text-secondary) !important;
}

section[id="about"] p[style*="color:#999"] {
    color: var(--text-tertiary) !important;
}

/* About Image Container */
section[id="about"] > div > div > div[style*="height:460px"] h3 {
    color: #ffffff !important;
}

/* Blog Cards */
.blog-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.blog-card-content h3 {
    color: var(--text-primary) !important;
}

.blog-card-content p {
    color: var(--text-secondary) !important;
}

/* Portfolio Cards */
.service-card[style*="background:url"] > div {
    background: linear-gradient(0deg, var(--overlay-darker), transparent) !important;
}

.service-card h3[style*="color:#fff"] {
    color: #ffffff !important;
}

.service-card p[style*="color:#ccc"] {
    color: #cccccc !important;
}

/* Footer */
footer {
    background: var(--bg-secondary) !important;
}

footer h2[style*="color:#fff"] {
    color: var(--text-primary) !important;
}

footer h3.footer-title {
    color: var(--text-primary) !important;
}

footer p[style*="color:#aaa"] {
    color: var(--text-secondary) !important;
}

footer a[style*="color:#777"] {
    color: var(--text-tertiary) !important;
}

footer .copyright {
    color: var(--text-tertiary) !important;
}

/* CTA Section */
section[style*="text-align:center"] h2[style*="color:#fff"] {
    color: #ffffff !important;
}

section[style*="text-align:center"] p[style*="color:#ccc"] {
    color: #eeeeee !important;
}

body[data-theme="light"] section[style*="text-align:center"] {
    position: relative;
}

body[data-theme="light"] section[style*="text-align:center"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

body[data-theme="light"] section[style*="text-align:center"] > div {
    position: relative;
    z-index: 2;
}

body[data-theme="light"] section[style*="text-align:center"] h2 {
    color: var(--text-primary) !important;
}

body[data-theme="light"] section[style*="text-align:center"] p {
    color: var(--text-secondary) !important;
}

/* Services Section with Background Image */
section[id="services"] > div[style*="position:relative"] h2,
section[id="services"] > div[style*="position:relative"] h3 {
    color: #ffffff !important;
}

section[id="services"] > div[style*="position:relative"] p {
    color: #cccccc !important;
}

body[data-theme="light"] section[id="services"] > div[style*="position:relative"] h2,
body[data-theme="light"] section[id="services"] > div[style*="position:relative"] h3 {
    color: var(--text-primary) !important;
}

body[data-theme="light"] section[id="services"] > div[style*="position:relative"] p {
    color: var(--text-secondary) !important;
}

/* Events/Blog Section */
section[id="events"] > div > div h3 {
    color: var(--text-primary) !important;
}

section[id="events"] > div > div p {
    color: var(--text-secondary) !important;
}

/* Empty State Messages */
p[style*="color:#ccc"] {
    color: var(--text-secondary) !important;
}

/* Sidebar Social Links */
.socials a i {
    color: var(--text-primary);
}

.socials a:hover i {
    color: #000000;
}

/* Fix for images with dark overlay - keep them visible in light theme */
body[data-theme="light"] div[style*="filter:brightness(0.85)"] {
    filter: brightness(1) !important;
}

body[data-theme="light"] div[style*="filter:grayscale(100%)"] {
    filter: grayscale(100%) !important;
    opacity: 0.15 !important;
}

/* Service section specific fix */
body[data-theme="light"] section[id="services"] > div[style*="position:absolute"] {
    background: rgba(255, 255, 255, 0.88) !important;
}


/* Brand Section با لوگو */
.side-nav .brand {
    padding: 40px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(198, 166, 103, 0.1);
    border: 2px solid rgba(198, 166, 103, 0.2);
    padding: 8px;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    border-color: #c6a667;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(198, 166, 103, 0.2);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    text-align: center;
    width: 100%;
}

.brand-text .title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.brand-text .sub {
    font-size: 12px;
    color: #c6a667;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* حالت بسته سایدبار */
.side-nav.collapsed .brand {
    padding: 30px 20px;
}

.side-nav.collapsed .brand-logo {
    width: 50px;
    height: 50px;
}

.side-nav.collapsed .brand-text {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .brand-logo {
        width: 70px;
        height: 70px;
    }
    
    .brand-text .title {
        font-size: 20px;
    }
    
    .brand-text .sub {
        font-size: 11px;
    }
}

/* اگر سایدبار خیلی باریک شد */
@media (max-width: 480px) {
    .side-nav .brand {
        padding: 30px 20px;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
    }
}