
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn[wght].woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #111144;
    --surface: #223382;
    --blue: #9BACD8;
    --orange: #F98513;
    --white: #F4F1EC;
    --tan: #DAD1C8;

    --text: var(--white);
    --muted: rgba(244, 241, 236, 0.68);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    font-weight: 400;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

/* Main background */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    isolation: isolate;

    padding: 48px 24px;

    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(249, 133, 19, 0.10),
            transparent 32%
        ),
        radial-gradient(
            ellipse at 85% 80%,
            rgba(155, 172, 216, 0.13),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #111144 0%,
            #171b59 48%,
            #111144 100%
        );
}

/* Subtle background grid */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(155, 172, 216, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(155, 172, 216, 0.035) 1px,
            transparent 1px
        );

    background-size: 72px 72px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

/* Ambient light */

.background-glow {
    position: absolute;
    z-index: -1;

    width: 480px;
    height: 480px;

    border-radius: 50%;

    opacity: 0.22;
    pointer-events: none;
}

.glow-one {
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);

    top: -180px;
    right: -180px;

    animation: glow-float-one 18s ease-in-out infinite alternate;
}

.glow-two {
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);

    bottom: -220px;
    left: -180px;

    animation: glow-float-two 22s ease-in-out infinite alternate;
}

/* Main content */

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 820px;

    padding: 64px 48px;

    text-align: center;

    background: rgba(17, 17, 68, 0.72);

    border: 1px solid rgba(155, 172, 216, 0.16);
    border-radius: 28px;

    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(244, 241, 236, 0.04);

    animation: fade-up 0.9s ease both;
}

/* Event label */

.event-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    padding: 10px 18px;
    margin-bottom: 34px;

    border: 1px solid rgba(249, 133, 19, 0.28);
    background: rgba(249, 133, 19, 0.07);

    border-radius: 100px;

    color: var(--tan);
    font-size: 14px;
    font-weight: 500;
}

.label-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;

    background: var(--orange);
    border-radius: 50%;

    box-shadow: 0 0 14px rgba(249, 133, 19, 0.65);
}

/* Heading */

h1 {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -1.5px;

    margin-bottom: 24px;
}

h1 span {
    display: block;

    color: var(--blue);

    background: linear-gradient(
        110deg,
        #F4F1EC 0%,
        #9BACD8 55%,
        #F98513 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Description */

.hero-description {
    max-width: 560px;

    margin: 0 auto 38px;

    color: var(--muted);
    font-size: 16px;
    line-height: 2.2;
}

/* Registration button */

.start-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 62px;
    padding: 0 38px;

    overflow: hidden;

    background: var(--orange);
    color: #111144;

    text-decoration: none;

    border: 1px solid rgba(244, 241, 236, 0.22);
    border-radius: 14px;

    font-size: 16px;
    font-weight: 800;

    box-shadow:
        0 12px 32px rgba(249, 133, 19, 0.18),
        inset 0 1px 0 rgba(244, 241, 236, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.start-button::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(244, 241, 236, 0.25) 50%,
        transparent 80%
    );

    transform: translateX(120%);
    transition: transform 0.6s ease;
}

.start-button:hover {
    transform: translateY(-3px);

    background: #ff941f;

    box-shadow:
        0 18px 42px rgba(249, 133, 19, 0.28),
        inset 0 1px 0 rgba(244, 241, 236, 0.3);
}

.start-button:hover::before {
    transform: translateX(-120%);
}

.start-button:active {
    transform: translateY(0) scale(0.98);
}

.start-button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px;
}

/* Optional arrow */

.button-arrow {
    display: inline-block;
    font-size: 22px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.start-button:hover .button-arrow {
    transform: translateX(-5px);
}

/* Footer */

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 46px;

    color: rgba(155, 172, 216, 0.72);
    font-size: 13px;
}

.hero-footer::before,
.hero-footer::after {
    content: "";

    width: 28px;
    height: 1px;

    background: rgba(249, 133, 19, 0.45);
}

/* Decorative floating geometry */

.decorative-circle {
    position: absolute;
    z-index: 1;

    border: 1px solid rgba(155, 172, 216, 0.12);
    border-radius: 50%;

    pointer-events: none;
    will-change: transform;
}

.circle-one {
    width: 420px;
    height: 420px;

    top: -220px;
    left: 8%;

    animation: circle-drift-one 28s ease-in-out infinite alternate;
}

.circle-two {
    width: 620px;
    height: 620px;

    bottom: -470px;
    right: 4%;

    border-color: rgba(249, 133, 19, 0.10);

    animation: circle-drift-two 32s ease-in-out infinite alternate;
}

/* Animations */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow-float-one {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-70px, 90px) scale(1.12);
    }
}

@keyframes glow-float-two {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(80px, -70px) scale(1.08);
    }
}

@keyframes circle-drift-one {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(35px, 45px) rotate(8deg);
    }
}

@keyframes circle-drift-two {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(-35px, -30px) rotate(-6deg);
    }
}

/* Tablet */

@media (max-width: 768px) {
    .hero {
        padding: 32px 20px;
    }

    .hero-content {
        max-width: 600px;
        padding: 52px 32px;
        border-radius: 24px;
    }

    .event-label {
        font-size: 13px;
        margin-bottom: 28px;
    }

    h1 {
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 2.1;
        margin-bottom: 32px;
    }

    .start-button {
        min-height: 60px;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .hero {
        padding: 24px 16px;
    }

    .hero-content {
        padding: 40px 22px;
        border-radius: 20px;
    }

    .event-label {
        gap: 9px;
        padding: 9px 14px;
        font-size: 12px;
        margin-bottom: 24px;
    }

    h1 {
        font-size: clamp(36px, 10vw, 46px);
        line-height: 1.5;
        letter-spacing: -0.8px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 2.1;
        margin-bottom: 28px;
    }

    .start-button {
        width: 100%;
        max-width: 320px;
        min-height: 58px;
        padding: 0 20px;
        font-size: 15px;
    }

    .hero-footer {
        gap: 10px;
        margin-top: 34px;
        font-size: 12px;
    }

    .hero-footer::before,
    .hero-footer::after {
        width: 18px;
    }

    .background-glow {
        width: 300px;
        height: 300px;
    }

    .circle-one {
        width: 280px;
        height: 280px;
    }

    .circle-two {
        width: 380px;
        height: 380px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



/* Animated background gradient */
.hero {
    background-size: 140% 140%;
}

/* Additional ambient light */
.hero::after {
    content: "";
    position: absolute;

    width: 600px;
    height: 600px;

    top: 15%;
    left: 25%;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(249, 133, 19, 0.09) 0%,
        rgba(155, 172, 216, 0.05) 35%,
        transparent 70%
    );

    pointer-events: none;
    z-index: -1;
}

/* Slow gradient movement */
@keyframes hero-background-shift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Slow ambient light movement */
@keyframes ambient-light-drift {
    0% {
        transform: translate(-60px, -30px) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: translate(100px, 80px) scale(1.2);
        opacity: 1;
    }
}

/* Mobile optimization */
@media (max-width: 480px) {
    .hero::after {
        width: 350px;
        height: 350px;
    }
}



/* Subtle ambient glow around the hero card */
.hero-content {
    animation: fade-up 0.9s ease both;
}

@keyframes card-glow {
    0% {
        box-shadow:
            0 32px 100px rgba(0, 0, 0, 0.18),
            0 0 25px rgba(155, 172, 216, 0.04),
            inset 0 1px 0 rgba(244, 241, 236, 0.04);
        border-color: rgba(155, 172, 216, 0.16);
    }

    100% {
        box-shadow:
            0 32px 100px rgba(0, 0, 0, 0.22),
            0 0 45px rgba(249, 133, 19, 0.09),
            inset 0 1px 0 rgba(244, 241, 236, 0.06);
        border-color: rgba(249, 133, 19, 0.22);
    }
}

/* Automatic button shine */
.start-button::before {
    animation: button-shine 8s ease-in-out infinite;
}

@keyframes button-shine {
    0%,
    78%,
    100% {
        transform: translateX(120%);
    }

    88% {
        transform: translateX(-120%);
    }
}

/* Soft pulse on the event label dot */
.label-dot {
    animation: label-dot-pulse 3s ease-in-out infinite;
}

@keyframes label-dot-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .start-button::before,
    .label-dot {
        animation: none !important;
    }
}


/* Floating glowing particles on homepage */
.hero {
    position: relative;
    overflow: hidden;
}

.background-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.background-particles span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;

    background: #9BACD8;
    box-shadow: 0 0 8px rgba(155, 172, 216, 0.6);

    animation: particle-float 3s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

/* Particle positions */

.background-particles span:nth-child(1) {
    left: 8%;
    top: 15%;
}

.background-particles span:nth-child(2) {
    left: 22%;
    top: 65%;
    background: #F98513;
    box-shadow: 0 0 8px rgba(249, 133, 19, 0.6);
    animation-delay: -3s;
}

.background-particles span:nth-child(3) {
    left: 38%;
    top: 30%;
    animation-delay: -6s;
}

.background-particles span:nth-child(4) {
    left: 55%;
    top: 80%;
    background: #F98513;
    box-shadow: 0 0 8px rgba(249, 133, 19, 0.6);
    animation-delay: -2s;
}

.background-particles span:nth-child(5) {
    left: 68%;
    top: 20%;
    animation-delay: -4s;
}

.background-particles span:nth-child(6) {
    left: 79%;
    top: 55%;
    background: #F98513;
    box-shadow: 0 0 8px rgba(249, 133, 19, 0.6);
    animation-delay: -1s;
}

.background-particles span:nth-child(7) {
    left: 91%;
    top: 35%;
    animation-delay: -2s;
}

.background-particles span:nth-child(8) {
    left: 96%;
    top: 85%;
    background: #F98513;
    box-shadow: 0 0 8px rgba(249, 133, 19, 0.6);
    animation-delay: -4s;
}

/* Smooth vertical movement */

@keyframes particle-float {
    from {
        transform: translateY(-20px);
    }

    to {
        transform: translateY(20px);
    }
}

/* Keep homepage content above particles */

.hero-content {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .background-particles span {
        animation: none;
    }
}


/* Logo background box */
.logo-container {
    position: relative;

    width: 230px;
    height: 230px;

    margin: 0 auto 24px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 28px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0.06)
    );

    border: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Logo */
.main-logo {
    width: 210px;
    max-width: 90%;
    height: auto;
    object-fit: contain;

    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.35));

    transition: transform 0.5s ease;
}

.main-logo:hover {
    transform: scale(1.04);
}

/* Mobile */
@media (max-width: 600px) {
    .logo-container {
        width: 190px;
        height: 190px;
        border-radius: 24px;
    }

    .main-logo {
        width: 175px;
    }
}



/* Smooth glow on hover */
.main-logo:hover {
    filter:
        drop-shadow(0 0 14px rgba(167, 139, 250, 0.90))
        drop-shadow(0 0 32px rgba(139, 92, 246, 0.65))
        drop-shadow(0 0 55px rgba(139, 92, 246, 0.40));
}


.logo-container {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.20),
        rgba(255, 255, 255, 0.12)
    );

    border: 1px solid rgba(255, 255, 255, 0.24);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}


.logo-container {
    background: linear-gradient(
        145deg,
        rgba(196, 181, 253, 0.24),
        rgba(167, 139, 250, 0.16)
    );

    border: 1px solid rgba(196, 181, 253, 0.30);

    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}



/* Animated purple glow behind logo */
.logo-container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* Moving light */
.logo-container::before {
    content: "";

    position: absolute;
    width: 180%;
    height: 180%;

    top: -40%;
    left: -40%;

    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.35) 0%,
        rgba(139, 92, 246, 0.18) 30%,
        transparent 65%
    );

    z-index: -1;
    pointer-events: none;

    animation: logoGlowMove 4s ease-in-out infinite alternate;
}

/* Slow light movement */
@keyframes logoGlowMove {
    0% {
        transform: translate(-12%, -8%);
    }

    50% {
        transform: translate(8%, 5%);
    }

    100% {
        transform: translate(-5%, 12%);
    }
}


/* Logo box */
.logo-container {
    width: 230px;
    height: 230px;
    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 28px;

    background: linear-gradient(
        145deg,
        rgba(196, 181, 253, 0.24),
        rgba(167, 139, 250, 0.16)
    );

    border: 1px solid rgba(196, 181, 253, 0.30);

    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    overflow: hidden;
    position: relative;
}

/* Logo image */
.main-logo {
    display: block;

    width: 210px;
    max-width: 90%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 0 8px rgba(139, 92, 246, 0.35));

    transition: transform 0.5s ease;
}

/* Mobile */
@media (max-width: 600px) {
    .logo-container {
        width: 190px;
        height: 190px;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .main-logo {
        width: 175px;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .logo-container {
        width: 165px;
        height: 165px;
        border-radius: 20px;
    }

    .main-logo {
        width: 150px;
    }
}

/* Performance: drop decorative motion/paint on touch & small screens */
@media (max-width: 600px), (prefers-reduced-motion: reduce) {
    .background-particles,
    .decorative-circle,
    .background-glow,
    .hero::after,
    .label-dot,
    .start-button::before {
        animation: none !important;
    }
}