
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #050b18;
    --secondary: #0b1830;
    --surface: #101f38;
    --blue: #168cff;
    --cyan: #42d9ff;
    --purple: #765cff;
    --text: #263449;
    --muted: #8293aa;
    --white: #ffffff;
    --background: #f4f8ff;
    --radius: 22px;
    --shadow: 0 15px 45px rgba(5, 25, 55, .12);
    --glow: 0 0 25px rgba(22,140,255,.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    background: var(--background);
    color: var(--text);
    line-height: 2;
    overflow-x: hidden;
}

::selection {
    background: var(--blue);
    color: white;
}

/* HEADER */

header {
    background: rgba(5, 11, 24, .85);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    color: white;
    padding: 16px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(66,217,255,.18);
    box-shadow: 0 8px 35px rgba(0,0,0,.18);
}

.logo {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(120deg, #fff, #42d9ff, #168cff);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientMove 5s ease infinite;
    letter-spacing: -1px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    color: #dce8f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 17px;
    border-radius: 12px;
    transition: .35s;
    position: relative;
}

nav a:hover,
nav a:focus-visible {
    color: var(--cyan);
    background: rgba(66,217,255,.12);
    box-shadow: inset 0 0 15px rgba(66,217,255,.06);
    transform: translateY(-3px);
}

/* HERO */

.hero {
    min-height: 650px;
    background:
        radial-gradient(circle at 20% 30%, rgba(22,140,255,.35), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(118,92,255,.22), transparent 35%),
        linear-gradient(135deg, rgba(3,10,25,.94), rgba(8,47,85,.78)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1800")
        center/cover fixed;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 80px 20px;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(3,10,25,.55)
    );
}

.hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(22,140,255,.17);
    filter: blur(100px);
    top: 10%;
    right: 10%;
    pointer-events: none;
}

.hero > div {
    position: relative;
    z-index: 2;
    max-width: 850px;
    animation: fadeUp 1s ease both;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 22px;
    background: linear-gradient(120deg, #fff, #42d9ff, #168cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 5px 20px rgba(22,140,255,.25));
}

.hero p {
    font-size: 19px;
    color: #dceeff;
    margin-bottom: 20px;
}

/* CONTAINER */

.container {
    width: 88%;
    max-width: 1250px;
    margin: 85px auto;
}

.section-title {
    text-align: center;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 900;
    margin-bottom: 45px;
    color: var(--primary);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    width: 90px;
    height: 5px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--purple));
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    box-shadow: 0 0 18px rgba(22,140,255,.5);
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .45s cubic-bezier(.2,.8,.2,1),
                box-shadow .45s;
    border: 1px solid rgba(22,140,255,.08);
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(66,217,255,.5), transparent, rgba(118,92,255,.3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-14px) scale(1.015);
    box-shadow: 0 25px 55px rgba(22,140,255,.2);
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.card:hover img {
    transform: scale(1.08);
}

.card-content {
    padding: 28px;
}

.card h3 {
    color: #087fc4;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
}

/* PAGE BANNER */

.page-banner {
    background:
        radial-gradient(circle at 20% 20%, rgba(66,217,255,.3), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(118,92,255,.25), transparent 35%),
        linear-gradient(135deg, #050b18, #104b80);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    font-size: clamp(30px, 5vw, 45px);
    font-weight: 900;
    margin-bottom: 12px;
}

.page-banner p {
    color: #d5efff;
}

/* ABOUT IMAGE */

.about-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 25px;
    margin: 30px 0;
    box-shadow: 0 20px 55px rgba(0,0,0,.15);
    transition: .5s;
}

.about-image:hover {
    transform: scale(1.015);
    box-shadow: 0 25px 60px rgba(22,140,255,.2);
}

/* NEWS */

.news-item {
    background: white;
    margin-bottom: 30px;
    padding: 24px;
    border-radius: 22px;
    display: flex;
    gap: 28px;
    align-items: center;
    box-shadow: var(--shadow);
    transition: .4s;
    border: 1px solid #edf2f7;
}

.news-item:hover {
    transform: translateX(-9px);
    box-shadow: 0 20px 45px rgba(22,140,255,.15);
}

.news-item img {
    width: 260px;
    height: 185px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
}

.news-item h3 {
    color: #087fc4;
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 800;
}

.news-item p {
    color: var(--muted);
    font-size: 14px;
}

/* FORMS */

form {
    background: rgba(255,255,255,.95);
    max-width: 720px;
    margin: auto;
    padding: 42px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(22,140,255,.1);
}

form label {
    display: block;
    margin: 17px 0 8px;
    font-weight: 800;
    color: var(--secondary);
}

form input,
form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #dce6f0;
    border-radius: 13px;
    font-family: inherit;
    font-size: 14px;
    background: #f7faff;
    outline: none;
    transition: .3s;
}

form input:focus,
form textarea:focus {
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 5px rgba(22,140,255,.12);
    transform: translateY(-2px);
}

form textarea {
    min-height: 160px;
    resize: vertical;
}

/* BUTTONS */

form button,
.btn {
    display: inline-block;
    background: linear-gradient(120deg, #168cff, #0872bd, #42d9ff);
    background-size: 200%;
    color: white;
    border: none;
    border-radius: 13px;
    padding: 14px 32px;
    margin-top: 22px;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .35s;
    box-shadow: 0 8px 25px rgba(22,140,255,.3);
}

form button:hover,
.btn:hover {
    background-position: 100%;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(22,140,255,.4);
}

/* CONTACT */

.contact-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border-right: 5px solid var(--blue);
    transition: .4s;
}

.contact-box:hover {
    transform: translateX(-8px);
    border-right-color: var(--cyan);
    box-shadow: 0 18px 40px rgba(22,140,255,.15);
}

.contact-box h3 {
    color: #087fc4;
    margin-bottom: 10px;
}

/* FOOTER */

footer {
    background:
        radial-gradient(circle at 50% 0%, rgba(22,140,255,.2), transparent 45%),
        linear-gradient(135deg, #030916, #102744);
    color: #c8d9eb;
    text-align: center;
    padding: 50px 20px;
    margin-top: 100px;
    border-top: 2px solid var(--blue);
    font-size: 14px;
}

/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ACCESSIBILITY */

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #eaf0f7;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#168cff, #42d9ff);
    border-radius: 20px;
}

/* RESPONSIVE */

@media(max-width: 900px) {
    .container {
        width: 92%;
    }

    .news-item img {
        width: 210px;
    }
}

@media(max-width: 700px) {
    header {
        justify-content: center;
        text-align: center;
        padding: 17px 4%;
    }

    nav {
        justify-content: center;
        gap: 5px;
    }

    nav a {
        font-size: 12px;
        padding: 7px 10px;
    }

    .hero {
        min-height: 450px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .page-banner {
        padding: 65px 15px;
    }

    .news-item {
        flex-direction: column;
        align-items: stretch;
    }

    .news-item img {
        width: 100%;
        height: 220px;
    }

    .container {
        margin: 50px auto;
    }

    form {
        padding: 25px;
    }

    .section-title {
        font-size: 25px;
    }
}

@media(prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
