:root {
    --primary: #f2b705;
    --primary-dark: #e0a904;
    --dark: #111;
    --darker: #000;
    --muted: #555;
    --light: #f6f6f6;
    --bg: #fafafa;
    --white: #fff;
    --container: 1100px;
    --radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);

    --logo-size: clamp(80px, 8vw, 120px);
    --gallery-height: clamp(250px, 30vw, 350px);
    --article-img-height: clamp(200px, 25vw, 280px);
    --certificate-size: clamp(70px, 7vw, 90px);
    --icon-size: clamp(80px, 8vw, 100px);
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn.woff2') format('woff2');
  font-display: swap;
}


@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    font-display: swap;
    overflow-x: hidden;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
    font-weight: 700;
}

p {
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--light);
    padding: 10px 12px;
    z-index: 1001;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    height: 62px;
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 70px;
    min-height: 42px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    font-family: inherit;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:active {
    background: rgba(242, 183, 5, 0.1);
    transform: scale(0.95);
}

.mobile-bottom-nav .nav-item i {
    font-size: 18px;
    color: var(--muted);
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item.active i,
.mobile-bottom-nav .nav-item:active i {
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-item span {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item.active span,
.mobile-bottom-nav .nav-item:active span {
    color: var(--primary);
    font-weight: 600;
}

.mobile-bottom-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item.active::after {
    width: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    min-height: 42px;
    font-family: "Vazirmatn", sans-serif;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 13px;
}

.btn:active {
    transform: scale(0.96);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--darker);
    box-shadow: 0 3px 10px rgba(242, 183, 5, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242, 183, 5, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.96);
}

.btn-outline {
    background: transparent;
    border-color: var(--dark);
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: var(--dark);
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 8px;
}

.btn-outline:hover,
.btn-outline:focus {
    color: var(--white);
    border-color: var(--dark);
}

.btn-outline:hover::after,
.btn-outline:focus::after {
    width: 100%;
}

.btn-outline:active {
    transform: scale(0.96);
}

.btn.full {
    display: block;
    width: 100%;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    padding: 2px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.main-nav {
    display: none;
    gap: 15px;
    align-items: center;
}

.main-nav a {
    position: relative;
    padding: 12px 8px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}
.site-header span[itemprop="name"] {
    color: var(--dark);
    font-weight: 600;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a:active {
    transform: scale(0.95);
}

.header-actions {
    display: none;
}

.mobile-menu-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    z-index: 2000;
    padding: 20px 16px 30px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    overflow-y: auto;
    touch-action: pan-y;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    display: block;
    visibility: hidden;
}

.mobile-menu-modal.open {
    transform: translateY(0);
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.mobile-menu-close {
    background: transparent;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--dark);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: var(--light);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-nav a {
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition);
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-nav a i {
    width: 20px;
    font-size: 18px;
    color: var(--primary);
}

.mobile-menu-nav a.active {
    background: rgba(242, 183, 5, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
    background: var(--light);
    transform: translateX(-4px);
}

.mobile-menu-nav a:active {
    transform: translateX(-4px) scale(0.98);
}

.mobile-menu-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 400px;
    display: block;
    touch-action: pan-y pinch-zoom;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: scale(1.02);
    background-repeat: no-repeat;
    will-change: opacity;
    height: auto;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.hero-content {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
    padding: 20px;
    border-radius: 10px;
    max-width: 550px;
    margin-inline-start: auto;
    margin-inline-end: 0;
    text-align: right;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 24px;
    margin: 0 0 6px 0;
    font-family: "Vazirmatn", sans-serif;
    line-height: 1.3;
}

.hero-content p {
    margin: 0 0 12px;
    color: var(--muted);
    font-family: "Vazirmatn", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slider-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 8px;
    border: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.slider-dots button:hover,
.slider-dots button:focus {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.slider-dots button:active {
    transform: scale(0.9);
}

.slider-dots button.active {
    background: var(--primary);
    transform: scale(1.2);
}

.section-title {
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    font-family: "Vazirmatn", sans-serif;
    padding-bottom: 6px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 4px auto 0;
    border-radius: 2px;
}

.activities {
    padding: 30px 0;
    background: transparent;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.activity-card {
    background: var(--white);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 110px;
}

.activity-card:hover,
.activity-card:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.activity-card:active {
    transform: translateY(-1px) scale(0.98);
}

.activity-icon {
    margin-bottom: 8px;
}

.activity-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
    flex-shrink: 0;
}

.activity-card:hover .activity-icon img {
    transform: scale(1.05) rotate(3deg);
}

.activity-title {
    margin-top: 4px;
    font-weight: 600;
    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    line-height: 1.3;
}

.why-section {
    min-height: 420px;
    margin-top: 20px;
    background: var(--white);
    padding: 18px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.why-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.why-section h3 {
    margin: 0 0 12px 0;
    color: var(--dark);
    font-family: "Vazirmatn", sans-serif;
    font-size: 16px;
    line-height: 1.3;
}

.why-section ul {
    margin: 0;
    padding: 0 15px;
    list-style: none;
    color: var(--muted);
    text-align: right;
}

.why-section li {
    padding: 4px 0;
    position: relative;
    font-family: "Vazirmatn", sans-serif;
    transition: var(--transition);
    font-size: 12px;
    line-height: 1.4;
}

.why-section li:hover {
    color: var(--dark);
    transform: translateX(-4px);
}

.why-section li::before {
    content: '✔';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    right: -14px;
    font-size: 13px;
}

.projects-section {
    padding: 40px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
  min-height: 180px;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 110px;
    position: relative;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.project-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.project-item:active {
    transform: scale(1.02);
}

.project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.client-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.project-item:hover .client-logo {
    transform: scale(1.08) rotate(2deg);
}

.client-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    margin-top: 6px;
    font-family: "Vazirmatn", sans-serif;
    line-height: 1.3;
}

.gallery-section {
    padding: 40px 0;
    background: var(--bg);
}

.modern-gallery {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    touch-action: pan-y pinch-zoom;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 140px;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:active {
    transform: translateY(-1px) scale(0.98);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 12px;
    margin-bottom: 3px;
    font-family: "Vazirmatn", sans-serif;
}

.gallery-description {
    font-size: 10px;
    opacity: 0.9;
    font-family: "Vazirmatn", sans-serif;
}

.articles-section {
    padding: 40px 0;
    background: var(--bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
}

.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-card:active {
    transform: translateY(-1px) scale(0.99);
}

.article-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-content {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-title {
    font-size: 14px;
    line-height: 1.3;
    color: var(--dark);
    font-family: "Vazirmatn", sans-serif;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    font-family: "Vazirmatn", sans-serif;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--muted);
    font-family: "Vazirmatn", sans-serif;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--light);
}

.read-more {
    color: #8a6500;
    font-weight: 600;
    font-size: 11px;
    transition: var(--transition);
    font-family: "Vazirmatn", sans-serif;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    -webkit-tap-highlight-color: transparent;
}

.read-more:hover {
    color: var(--primary-dark);
    background: rgba(242, 183, 5, 0.1);
}

.read-more:active {
    transform: scale(0.95);
}

.article-card.full-article {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 700px;
    height: auto;
    max-height: 85vh;
    z-index: 1000;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: articleExpand 0.3s ease-out;
}

@keyframes articleExpand {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.article-card.full-article .article-image {
    display: none;
}

.article-card.full-article .article-content {
    padding: 20px;
    gap: 12px;
}

.article-card.full-article .article-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 8px;
    -webkit-line-clamp: unset;
}

.article-card.full-article .article-excerpt {
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
    -webkit-line-clamp: unset;
    color: var(--dark);
    margin-bottom: 8px;
}

.article-full-content {
    display: none;
}

.article-card.full-article .article-full-content {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    text-align: justify;
    margin-top: 12px;
}

.article-card.full-article .article-full-content p {
    margin-bottom: 12px;
}

.article-card.full-article .article-meta {
    justify-content: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--light);
    flex-direction: column;
    gap: 6px;
}

.article-card.full-article .article-meta .back-to-list {
    margin-top: 8px;
    display: block;
}

.article-card:not(.full-article) .article-meta .back-to-list {
    display: none;
}

.back-to-list {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: "Vazirmatn", sans-serif;
    margin-top: 6px;
    font-size: 11px;
    -webkit-tap-highlight-color: transparent;
    display: none;
}

.back-to-list:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.back-to-list:active {
    transform: translateY(-1px) scale(0.98);
}

.article-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    backdrop-filter: blur(5px);
}

.article-overlay.active {
    display: block;
    animation: overlayFade 0.3s ease-out;
}

@keyframes overlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 30px 0 80px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ffd700);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.footer-col {
    text-align: right;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    font-family: "Vazirmatn", sans-serif;
    color: var(--white);
    text-align: center;
    display: inline-block;
    width: 100%;
}

@media (min-width: 901px) {
    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
    }
}

.footer-col p {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #ccc;
    font-family: "Vazirmatn", sans-serif;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 5px 14px rgba(242, 183, 5, 0.3);
}

.social-links a:active {
    transform: translateY(-1px) scale(1.05);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 10px;
    position: relative;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-family: "Vazirmatn", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.footer-links a::before {
    content: '›';
    margin-left: 5px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 10px;
}

.footer-links a:active {
    transform: translateX(-2px);
}

.footer-links a:hover::before {
    transform: translateX(-4px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.contact-item:active {
    transform: translateY(-2px) scale(0.99);
}

.contact-item i {
    color: var(--primary);
    font-size: 16px;
}

.contact-item p {
    margin: 0;
    line-height: 1.4;
    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    text-align: center;
}

.contact-item strong {
    color: var(--white);
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.certificates-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.certificates-section h4 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--white);
    font-size: 16px;
    font-family: "Vazirmatn", sans-serif;
    position: relative;
    padding-bottom: 8px;
}

.certificates-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 0 auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    justify-items: center;
}

.certificate-item {
    text-align: center;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.certificate-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.certificate-item:active {
    transform: translateY(-2px) scale(0.98);
}

.certificate-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.certificate-item:hover img {
    transform: scale(1.08) rotate(2deg);
}

.certificate-item span {
    display: block;
    color: #ddd;
    font-size: 10px;
    font-family: "Vazirmatn", sans-serif;
    margin-top: 6px;
    font-weight: 500;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
    color: #aaa;
    font-family: "Vazirmatn", sans-serif;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

@media (min-width: 901px) {
    .hero-slider {
        height: 450px;
    }

    .hero-content {
        max-width: 600px;
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .activities {
        padding: 60px 0;
    }

    .activity-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .activity-card {
        min-height: 150px;
        padding: 20px;
    }

    .activity-icon img {
        width: 70px;
        height: 70px;
    }

    .activity-title {
        font-size: 16px;
    }

    .why-section {
        padding: 24px;
        text-align: right;
    }

    .why-section h3 {
        font-size: 20px;
        text-align: right;
    }

    .why-section li {
        font-size: 15px;
        padding: 6px 0;
    }

    .projects-section {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    .project-item {
        padding: 20px;
        min-height: 150px;
    }

    .client-logo {
        width: 70px;
        height: 70px;
    }

    .client-name {
        font-size: 16px;
    }

    .gallery-section {
        padding: 60px 0;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-title {
        font-size: 16px;
    }

    .gallery-description {
        font-size: 12px;
    }

    .articles-section {
        padding: 60px 0;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }

    .article-image {
        height: 200px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-excerpt {
        font-size: 14px;
    }

    .article-meta {
        font-size: 12px;
    }

    .read-more {
        font-size: 13px;
    }

    .site-footer {
        padding: 50px 0 100px;
    }

    .footer-col h3 {
        font-size: 20px;
        text-align: right;
    }

    .footer-col p {
        font-size: 15px;
        text-align: right;
    }

    .footer-links {
        text-align: right;
    }

    .footer-links a {
        font-size: 15px;
        justify-content: flex-start;
    }

    .contact-info {
        text-align: right;
    }

    .contact-item {
        flex-direction: row;
        text-align: right;
        align-items: flex-start;
    }

    .contact-item p {
        font-size: 15px;
        text-align: right;
    }

    .contact-item strong {
        font-size: 16px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .social-links a {
        width: 45px;
        height: 45px;
    }

    .certificates-section {
        padding: 30px;
    }

    .certificate-item img {
        width: 70px;
        height: 70px;
    }

    .certificate-item span {
        font-size: 14px;
    }

    .copyright {
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        min-height: 48px;
        font-size: 15px;
    }

    .logo img {
        height: 50px;
    }

    .main-nav {
        display: flex;
    }

    .header-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .site-footer {
        padding-bottom: 90px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3 {
        text-align: center;
    }

    .footer-col p {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-item {
        align-items: center;
        text-align: center;
    }

    .contact-item p {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .section-title {
        text-align: center;
    }

    .section-title::after {
        margin: 4px auto 0;
    }

    .why-section {
        text-align: center;
    }

    .why-section h3 {
        text-align: center;
    }

    .why-section ul {
        text-align: right;
        padding: 0 20px;
    }
}

@media (max-width: 700px) {
    .hero-slider {
        height: 260px;
    }

    .hero-content {
        padding: 16px;
        margin: 0 10px;
        max-width: 320px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero-cta {
        gap: 6px;
        justify-content: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 200px;
        padding: 8px 12px;
        min-height: 38px;
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item {
        height: 120px;
    }

    .activity-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .activity-card {
        min-height: 100px;
        padding: 10px;
    }

    .activity-icon img {
        width: 40px;
        height: 40px;
    }

    .activity-title {
        font-size: 11px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .project-item {
        padding: 10px;
        min-height: 100px;
    }

    .client-logo {
        width: 40px;
        height: 40px;
        background: var(--primary);
        padding: 8px;
        border-radius: 8px;
    }

    .client-name {
        font-size: 11px;
    }

    .article-image {
        height: 120px;
    }

    .article-content {
        padding: 12px;
        gap: 6px;
    }

    .article-title {
        font-size: 13px;
    }

    .article-excerpt {
        font-size: 10px;
    }

    .article-meta {
        font-size: 9px;
    }

    .read-more {
        font-size: 10px;
    }

    .why-section {
        padding: 14px;
    }

    .why-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .why-section li {
        font-size: 11px;
        padding: 3px 0;
    }

    .why-section li::before {
        right: -12px;
        font-size: 9px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .activities,
    .projects-section,
    .gallery-section,
    .articles-section {
        padding: 25px 0;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        padding: 8px;
        margin-bottom: 12px;
    }

    .contact-item i {
        margin: 0;
    }

    .contact-item p {
        font-size: 11px;
    }

    .contact-item strong {
        font-size: 12px;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 9px;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 16px;
    }

    .mobile-bottom-nav {
        height: 62px;
        padding: 10px 12px;
    }

    .mobile-bottom-nav .nav-item {
        padding: 5px 8px;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 220px;
    }

    .hero-content {
        max-width: 280px;
        padding: 12px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 16px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .gallery-item {
        height: 100px;
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .activity-card {
        min-height: 90px;
    }

    .activity-icon img {
        width: 35px;
        height: 35px;
    }

    .activity-title {
        font-size: 10px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .project-item {
        min-height: 90px;
        padding: 8px;
    }

    .client-logo {
        width: 35px;
        height: 35px;
    }

    .client-name {
        font-size: 10px;
    }

    .article-image {
        height: 200px;
    }

    .article-title {
        font-size: 12px;
    }

    .why-section h3 {
        font-size: 13px;
    }

    .why-section li {
        font-size: 10px;
    }

    .section-title {
        font-size: 16px;
    }

    .mobile-bottom-nav .nav-item span {
        display: block;
    }

    .mobile-bottom-nav .nav-item {
        padding: 6px;
        justify-content: center;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 16px;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .certificate-item {
        padding: 8px;
    }

    .certificate-item img {
        width: 45px;
        height: 45px;
    }

    .certificate-item span {
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .hero-slider {
        height: 200px;
    }

    .hero-content {
        max-width: 250px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 14px;
    }

    .hero-content p {
        font-size: 10px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        min-height: 80px;
        padding: 8px;
    }

    .activity-icon img {
        width: 30px;
        height: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .project-item {
        min-height: 80px;
        padding: 6px;
    }

    .client-logo {
        width: 30px;
        height: 30px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gallery-item {
        height: 120px;
    }

    .article-image {
        height: 90px;
    }

    .article-title {
        font-size: 11px;
    }

    .article-excerpt {
        font-size: 9px;
    }

    .why-section {
        padding: 12px;
    }

    .why-section h3 {
        font-size: 12px;
    }

    .why-section li {
        font-size: 9px;
    }

    .mobile-bottom-nav {
        height: 60px;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 15px;
    }

    .mobile-bottom-nav .nav-item span {
        font-size: 8px;
    }
}

@media (hover: none) and (pointer: coarse) {

    .activity-card:active,
    .project-item:active,
    .gallery-item:active,
    .btn:active,
    .social-links a:active,
    .certificate-item:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    .activity-card:hover,
    .project-item:hover,
    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:hover .gallery-overlay {
        transform: translateY(100%);
    }

    .gallery-item:active .gallery-overlay {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --dark: #f0f0f0;
        --darker: #ffffff;
        --muted: #aaa;
        --light: #2a2a2a;
        --bg: #1a1a1a;
        --white: #222;
    }

    body {
        background: var(--bg);
        color: var(--dark);
    }

    .site-header,
    .activity-card,
    .project-item,
    .article-card,
    .why-section {
        background: var(--white);
    }

    .hero-content {
        background: linear-gradient(90deg, rgba(34, 34, 34, 0.92), rgba(34, 34, 34, 0.76));
        color: var(--dark);
    }

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

    .btn-outline::after {
        background: var(--dark);
    }

    .btn-outline:hover,
    .btn-outline:focus {
        color: var(--white);
    }
}
/* Force Font Awesome to use swap */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/assets/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/webfonts/fa-brands-400.woff2") format("woff2");
}
.site-header a,
.site-header span {
    color: var(--dark);
}

.site-header a:hover,
.site-header a.active {
    color: var(--primary);
}