@font-face {
    font-family: 'IRANSansWeb';
    src: url('../font/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #28b8f6;
    --primary-dark: #0777b8;
    --secondary: #7c4dff;
    --accent: #ffb703;
    --pink: #ff4f8b;
    --green: #1abc9c;
    --dark: #172033;
    --text: #344054;
    --muted: #667085;
    --light: #f4fbff;
    --white: #ffffff;
    --border: #d9edf8;
    --shadow: 0 18px 45px rgba(7, 119, 184, 0.15);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'IRANSansWeb', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(40, 184, 246, 0.18), transparent 32%),
        radial-gradient(circle at top left, rgba(124, 77, 255, 0.14), transparent 30%),
        #ffffff;
    line-height: 2;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

.topbar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--secondary));
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(40, 184, 246, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--primary-dark);
    font-size: 20px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow);
}

.menu-toggle {
    display: none;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 9px 13px;
    font-family: inherit;
    cursor: pointer;
}

.menu {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--dark);
    transition: 0.25s;
    font-size: 15px;
}

.menu a:hover,
.menu a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 25px rgba(40, 184, 246, 0.24);
}

.hero {
    padding: 78px 0 46px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 42px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f8ff;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 14px;
}

h1, h2, h3 {
    color: var(--dark);
    line-height: 1.6;
    margin-top: 0;
}

h1 {
    font-size: clamp(30px, 4vw, 52px);
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
}

h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.lead {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 24px;
}

.highlight {
    color: var(--primary-dark);
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--shadow);
}

.btn-outline {
    color: var(--primary-dark);
    border: 1px solid var(--primary);
    background: #fff;
}

.btn:hover {
    transform: translateY(-3px);
}

.hero-card {
    position: relative;
    padding: 18px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(40,184,246,0.18), rgba(124,77,255,0.12));
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 26px;
}

.float-box {
    position: absolute;
    right: -8px;
    bottom: 28px;
    background: #fff;
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: floaty 3.4s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.section {
    padding: 58px 0;
}

.section-soft {
    background: linear-gradient(180deg, #f3fbff, #ffffff);
}

.section-title {
    text-align: center;
    margin-bottom: 34px;
}

.section-title p {
    color: var(--muted);
    margin: 0 auto;
    max-width: 740px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 14px 32px rgba(7, 119, 184, 0.08);
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(40, 184, 246, 0.12);
    border-radius: 50%;
    top: -35px;
    left: -35px;
}

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

.icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    margin-bottom: 14px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
}

.image-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.image-stack img {
    height: 230px;
    width: 100%;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.image-stack img:nth-child(2) {
    margin-top: 38px;
}

.list {
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.list li {
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #f3fbff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.list li::before {
    content: "✓";
    color: var(--green);
    font-weight: bold;
    margin-left: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 250px;
    background: #eaf8ff;
    cursor: pointer;
}

.gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.4s;
}

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

.gallery-caption {
    position: absolute;
    inset-inline: 14px;
    bottom: 14px;
    color: #fff;
    background: rgba(23, 32, 51, 0.72);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 10px 14px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.video-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 14px 32px rgba(7, 119, 184, 0.08);
}

.video-box video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    background: #dff5ff;
}

.ajax-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-btn {
    border: 1px solid var(--border);
    background: #f4fbff;
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.25s;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.tab-content {
    min-height: 130px;
    animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-strip {
    background:
        linear-gradient(135deg, rgba(40,184,246,0.95), rgba(124,77,255,0.92)),
        url('../media/folder-3.jpg') center/cover;
    color: #fff;
    border-radius: 34px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.contact-strip h2,
.contact-strip h3 {
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 22px;
}

.contact-item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.footer {
    margin-top: 58px;
    background: #111827;
    color: #d1d5db;
    padding: 38px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
}

.footer h3 {
    color: #fff;
}

.footer a {
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 26px;
    padding-top: 16px;
    font-size: 14px;
    color: #9ca3af;
}

.breadcrumb {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.page-hero {
    padding: 58px 0 28px;
}

.content-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 14px 32px rgba(7,119,184,0.07);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

th, td {
    border: 1px solid var(--border);
    padding: 14px;
    text-align: right;
}

th {
    background: #e8f8ff;
    color: var(--primary-dark);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 950px) {
    .hero-grid,
    .split,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cards,
    .gallery,
    .video-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card img {
        height: 340px;
    }
}

@media (max-width: 720px) {
    .menu-toggle {
        display: inline-flex;
    }

    .menu {
        position: absolute;
        top: 78px;
        right: 16px;
        left: 16px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
        display: none;
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        display: block;
    }

    .cards,
    .gallery,
    .video-grid,
    .contact-grid,
    .image-stack {
        grid-template-columns: 1fr;
    }

    .image-stack img:nth-child(2) {
        margin-top: 0;
    }

    .topbar .container {
        flex-direction: column;
    }

    .hero {
        padding-top: 42px;
    }

    .contact-strip {
        padding: 24px;
        border-radius: 24px;
    }
}
