@font-face {
    font-family: 'Iransans';
    src: url('../font/Iransans.ttf') format('truetype'), url('../font/Iransans.woff') format('woff');
}

* {
    font-family: 'Vazirmatn', 'Iransans';
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary-rgb: 15, 118, 200;
    --color-primary: #4fb0ff;
    --color-primary-dark: #0a4a8a;
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-primary-r: 56;
    --color-primary-g: 189;
    --color-primary-b: 248;
}

html,
body {
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: #f0f0f0;
}

/* ========| Glow Utilities |======== */
.glow-sm {
    box-shadow: 0 0px 20px rgba(var(--color-primary-rgb), 0.25), 0 0px 40px rgba(0, 0, 0, 0.8);
}

.glow-md {
    box-shadow: 0 0px 40px rgba(var(--color-primary-rgb), 0.3), 0 0px 60px rgba(0, 0, 0, 0.9);
}

.glow-lg {
    box-shadow: 0 0px 60px rgba(var(--color-primary-rgb), 0.35), 0 0px 80px rgba(0, 0, 0, 1);
}

/* ========| Scrollbar |======== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ========| Hero Section |======== */
.hero-section {
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

/* ========| Animations |======== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0px 20px rgba(var(--color-primary-rgb), 0.4);
    }

    50% {
        box-shadow: 0 0px 40px rgba(var(--color-primary-rgb), 0.7);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-80px) translateX(20px);
        opacity: 0.1;
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

/* ========| Buttons |======== */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    transition: all 0.3s;
    animation: pulse-glow 3s infinite;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* ========| Glow Card |======== */
.glow-card {
    box-shadow: 0 0px 0px rgba(var(--color-primary-rgb), 0);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.glow-card:hover {
    box-shadow: 0 0px 30px rgba(var(--color-primary-rgb), 0.15);
    transform: translateY(-4px);
}

.card-border {
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    transition: border-color 0.3s ease;
}

.card-border:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* ========| Stats Band |======== */
.stat-value {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900;
    background: linear-gradient(120deg, var(--color-primary), #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.4;
}

/* ========| Story Video |========
   preload="none" on the <video> means zero video bytes are fetched until the
   user actually clicks play - only the poster image loads (and that's an
   asset already used elsewhere on the page, so it's already cached). */
.story-video-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.4);
}

.story-video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    background: #000;
}

.story-video-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.story-video-play-btn:hover {
    transform: scale(1.08);
    background: rgba(var(--color-primary-rgb), 0.75);
    border-color: rgba(var(--color-primary-rgb), 0.6);
}

.story-video-play-btn.hidden {
    display: none;
}

.story-video-play-btn svg {
    margin-inline-start: 3px;
}

/* ========| Values Icon Chip |======== */
.value-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.glow-card:hover .value-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.4);
}

/* ========| Timeline |======== */
.timeline {
    position: relative;
    padding-right: 1.75rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    right: 0.42rem;
    width: 2px;
    background: linear-gradient(180deg,
            rgba(var(--color-primary-rgb), 0.6),
            rgba(var(--color-primary-rgb), 0.08));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.25rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -1.75rem;
    top: 0.35rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 9999px;
    background: rgb(var(--color-surface));
    border: 2.5px solid var(--color-primary);
    box-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.55);
}

.timeline-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.12);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    border-radius: 9999px;
    padding: 0.2rem 0.85rem;
    margin-bottom: 0.6rem;
}

/* ========| Particles |======== */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 6s infinite ease-in-out;
}

/* ========| CTA |======== */

.CTA-section {
    position: relative;
    background: transparent;
    overflow: hidden;
    border-radius: 1.5rem;
}

.CTA-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/aboutUsBg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    z-index: -1;
    transform: scale(1.1);
}

.CTA-section > * {
    position: relative;
    z-index: 1;
}

/* ========| Certificates |======== */
.certificate-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9.5rem;
    height: 9.5rem;
    padding: 1rem;
    border: 1.5px dashed rgba(var(--color-primary-rgb), 0.4);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.certificate-box img,
.certificate-box iframe,
.certificate-box a {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.certificate-box:hover {
    border-color: rgba(var(--color-primary-rgb), 0.7);
    background: rgba(255, 255, 255, 0.04);
}
