﻿@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #1b6ca8;
    --primary-light: #57a1d8;
    --accent: #55d17c;
    --dark: #0f172a;
    --dark-soft: #15233b;
    --text: #f5f7fa;
    --muted: #9ca9c7;
    --glass: rgba(13, 25, 46, 0.75);
    --shadow: 0 24px 60px rgba(6, 13, 28, 0.45);
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Vazirmatn", "Tahoma", sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
}
button,input,textarea{ font-family: "Vazirmatn", "Tahoma", sans-serif;}
img,
video {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.section {
    padding: clamp(72px, 12vw, 120px) 0;
    position: relative;
    overflow: hidden;
}

.section__heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto clamp(48px, 8vw, 64px);
}

.section__heading p {
    color: var(--muted);
}

.about__container {
    display: grid;
    gap: clamp(28px, 6vw, 40px);
    justify-items: flex-start;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(6, 12, 24, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -8px;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav a:hover,
.nav a:focus {
    color: var(--text);
}

.nav a:hover::after,
.nav a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    position: relative;
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
}

.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(140%);
    transform: scale(1.1);
}

.hero__overlay {
    position: relative;
    padding: clamp(120px, 20vh, 180px) 0 140px;
}

.hero__content {
    max-width: 680px;
}

.hero__content h1 {
    font-size: clamp(32px, 6vw, 48px);
    margin-bottom: 24px;
}

.hero__content p {
    color: var(--muted);
    margin-bottom: 32px;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text);
    box-shadow: 0 16px 30px rgba(27, 108, 168, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text);
    background: transparent;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn--light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero__stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero__stats strong {
    font-size: 22px;
    display: block;
}

.hero__stats span {
    color: var(--muted);
    font-size: 14px;
}


.about__content p {
    margin: 0 0 18px;
    color: var(--muted);
}

.about__content p+p {
    margin-top: 12px;
}

.about__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about__list-item {
    position: relative;
    padding: 16px 56px;
    border-radius: 20px;
    background: rgba(18, 28, 48, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    line-height: 1.8;
    backdrop-filter: blur(14px);
    overflow: hidden;
    z-index: 0;
    cursor: default;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about__list-item::before {
    content: "";
    position: absolute;
    inset-inline-start: 24px;
    inset-block-start: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(85, 209, 124, 0.15);
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.about__list-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(85, 209, 124, 0.08), transparent 70%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.about__list-item:hover,
.about__list-item:focus-within {
    border-color: rgba(85, 209, 124, 0.4);
    box-shadow: 0 14px 36px rgba(10, 25, 45, 0.35);
}

.about__list-item:hover::before,
.about__list-item:focus-within::before {
    transform: translateY(-50%) scale(1.15);
}

.about__list-item:hover::after,
.about__list-item:focus-within::after {
    opacity: 1;
}







.services {
    background: linear-gradient(180deg, rgba(20, 34, 56, 0.9), rgba(14, 22, 38, 0.95));
}

.services__grid {
    display: grid;
    gap: clamp(24px, 4vw, 32px);
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
}

.card {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: rgba(17, 27, 44, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 220px;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    inset-block-start: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(85, 209, 124, 0.25), transparent 60%);
    transform: rotate(25deg);
}

.card__icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    margin-bottom: 24px;
}

.card__icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.card p {
    color: var(--muted);
}

.services__shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.shape--pulse {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(27, 108, 168, 0.3), transparent 60%);
    inset-inline-start: 10%;
    inset-block-start: 20%;
    animation: pulse 6s ease-in-out infinite;
}

.shape--orbit {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    inset-inline-end: 8%;
    inset-block-end: 10%;
    animation: orbit 14s linear infinite;
}

.projects {
    background: radial-gradient(circle at top, rgba(27, 108, 168, 0.12), transparent 55%), var(--dark);
}

.projects__timeline {
    display: grid;
    gap: 24px;
}

.timeline-card {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: rgba(16, 28, 48, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.timeline-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 6px;
}

.timeline-card__badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(27, 108, 168, 0.18);
    border-radius: 999px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 16px;
}

.timeline-card p {
    color: var(--muted);
}

.projects__visual {
    position: relative;
    margin-top: 48px;
    height: 120px;
}

.projects__shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
}

.projects__shape--one {
    width: 240px;
    height: 80px;
    background: rgba(27, 108, 168, 0.4);
    inset-inline-start: 15%;
    animation: drift 12s ease-in-out infinite;
}

.projects__shape--two {
    width: 200px;
    height: 70px;
    background: rgba(85, 209, 124, 0.35);
    inset-inline-end: 10%;
    animation: drift 16s ease-in-out infinite reverse;
}

.cta {
    background: linear-gradient(135deg, rgba(27, 108, 168, 0.22), rgba(85, 209, 124, 0.18));
}

.cta__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: clamp(32px, 6vw, 40px);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta__content h2 {
    margin-bottom: 12px;
    font-size: clamp(26px, 4vw, 34px);
}

.contact__container {
    display: grid;
    gap: clamp(32px, 6vw, 56px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.contact__intro h2 {
    font-size: clamp(28px, 4vw, 34px);
    margin-bottom: 18px;
}

.contact__intro p {
    color: var(--muted);
    margin-bottom: 20px;
}

.contact__intro p + p {
    margin-top: -4px;
}

.contact__details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.contact__details strong {
    color: var(--text);
    margin-inline-start: 4px;
}

.contact__details a {
    color: var(--primary-light);
    text-decoration: none;
}

.contact__details a:hover,
.contact__details a:focus {
    text-decoration: underline;
}

.contact {
    position: relative;
}


.contact__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.contact__shape {
    position: absolute;
    display: block;
    opacity: 0.5;
}

.contact__shape--ring {
    width: 260px;
    height: 260px;
    border: 2px solid rgba(87, 161, 216, 0.25);
    border-radius: 50%;
    inset-inline-end: 8%;
    inset-block-start: -120px;
    opacity: 0.45;
    animation: ringPulse 14s ease-in-out infinite;
}

.contact__shape--ring::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    border: 2px solid rgba(85, 209, 124, 0.35);
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(12deg);
}

.contact__shape--bubble {
    width: 200px;
    height: 200px;
    inset-inline-start: -80px;
    inset-block-end: -40px;
    background: radial-gradient(circle at 30% 30%, rgba(85, 209, 124, 0.4), rgba(27, 108, 168, 0.15));
    border-radius: 50%;
    animation: floatSoft 11s ease-in-out infinite;
}

.contact__shape--bubble::after {
    content: "";
    position: absolute;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at 40% 40%, rgba(85, 209, 124, 0.45), rgba(27, 108, 168, 0.2));
    border-radius: 16px 16px 16px 6px;
    inset-inline-end: 12%;
    inset-block-end: 8%;
    transform: rotate(35deg);
    opacity: 0.85;
}

.contact__shape--signal {
    width: 160px;
    height: 160px;
    inset-inline-end: 16%;
    inset-block-end: 20%;
    border-radius: 32px;
    background: rgba(21, 35, 58, 0.72);
    border: 1px solid rgba(87, 161, 216, 0.18);
    overflow: hidden;
    transform: rotate(-10deg);
    animation: floatSoft 15s ease-in-out infinite reverse;
}

.contact__shape--signal::before,
.contact__shape--signal::after {
    content: "";
    position: absolute;
    inset-inline-start: 24px;
    inset-inline-end: 24px;
    border-radius: 50%;
    border: 2px solid rgba(87, 161, 216, 0.35);
    border-bottom-color: transparent;
    border-left-color: transparent;
}

.contact__shape--signal::before {
    inset-block-start: 24px;
    inset-block-end: 24px;
}

.contact__shape--signal::after {
    inset-block-start: 42px;
    inset-block-end: 42px;
    border-color: rgba(85, 209, 124, 0.35);
    border-bottom-color: transparent;
    border-left-color: transparent;
}


.contact__form {
    display: block;
    padding: clamp(28px, 5vw, 36px);
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group textarea {resize: none;}
.form-group--captcha {
    display: grid;
    gap: 12px;
}

.captcha-shell {
    display: grid;
    grid-template-columns: max-content 150px 1fr;
    grid-template-areas: "btn img input";
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 18px 34px rgba(10, 18, 32, 0.32);
}

.captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius:0 16px 16px 0 ;
    border: 1px solid rgba(87, 161, 216, 0.45);
    background: linear-gradient(135deg, rgba(87, 161, 216, 0.22), rgba(27, 108, 168, 0.18));
    color: var(--text);
    cursor: pointer;
    transition:  background 0.3s ease, border-color 0.3s ease;
    grid-area: btn;
}

.captcha-refresh svg {
    width: 20px;
    height: 20px;
}

.captcha-refresh:hover,
.captcha-refresh:focus {
    background: linear-gradient(135deg, rgba(87, 161, 216, 0.3), rgba(27, 108, 168, 0.24));
    border-color: rgba(87, 161, 216, 0.65);
}


.captcha-shell img {
    grid-area: img;
    height: 50px;
    width: 150px;
}

.captcha-input {
    grid-area: input;
    padding: 12px 16px;
    border-radius: 12px;
    height: 50px;
    border: none;
    background: transparent;
    color: var(--text);
    letter-spacing: 0.3em;
    text-align: center;
    border-radius: 16px 0 0 16px !important;
}

.captcha-input::placeholder {
    letter-spacing: normal;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(87, 161, 216, 0.15);
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #ff7a7a;
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: var(--accent);
}

.form-hint {
    min-height: 18px;
    font-size: 13px;
    color: #ff9a9a;
}

.form-group.valid .form-hint {
    color: var(--accent);
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-status {
    font-size: 14px;
    color: var(--muted);
}

.footer {
    padding: 32px 0;
    background: rgba(6, 12, 24, 0.84);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.back-to-top {
    color: var(--primary-light);
    text-decoration: none;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.35;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

@keyframes ringPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@media (max-width: 960px) {
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        justify-content: space-between;
    }
}

@media (max-width: 780px) {
    .nav {
        position: fixed;
        inset-inline-start: 0;
        inset-block-start: 72px;
        width: 100%;
        background: rgba(10, 18, 32, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        transform: translateY(calc(-100% - 72px));
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta__container {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact__container {
        gap: clamp(24px, 8vw, 40px);
    }

    .contact__shapes {
        opacity: 0.55;
    }
}

@media (max-width: 520px) {
    .hero__content h1 {
        font-size: 28px;
    }

    .card,
    .timeline-card {
        padding: 24px;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__stats {
        width: 100%;
    }

    .contact__form {
        padding: 24px;
    }

    .contact__shapes {
        display: none;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }
}



@media (max-width: 420px) {
   .captcha-shell{grid-template-columns: max-content 1fr;    grid-template-areas: "btn img" "input input";width: max-content;margin: 0 auto;}
   .captcha-refresh{    border-radius: 0 16px 0px 0;}
   .captcha-shell img{    border-radius: 16px 0  0  0;}
   .captcha-input{    border-radius: 0 0 16px 16px !important;max-width: 200px;}
}














