/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        'IRANSansX',
        sans-serif;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(55, 200, 170, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(40, 150, 230, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f7ffff,
            #eef9f7,
            #f8fbff
        );

    min-height: 100vh;

    color: #173b4d;
}



@font-face {
    font-family: "IRANSansX";
    src: url("PeydaWeb-Bold.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("PeydaWeb-Bold.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("PeydaWeb-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================
   VARIABLES
========================================= */

:root {

    --blue:
        #3fa9d9;

    --blue-dark:
        #277ea8;

    --green:
        #50c9a5;

    --green-dark:
        #279b7c;

    --gold:
        #d8aa45;

    --gold-light:
        #f0cf79;

    --white:
        #ffffff;

    --glass:
        rgba(255, 255, 255, 0.62);

    --glass-border:
        rgba(255, 255, 255, 0.75);

    --text:
        #183d4d;

    --muted:
        #6d8a95;

    --shadow:
        0 15px 45px rgba(39, 126, 168, 0.12);
}


/* =========================================
   NAVBAR
========================================= */

.navbar {

    position: fixed;

    top: 18px;
    right: 0;
    left: 0;

    width: min(1400px, calc(100% - 32px));

    margin: auto;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.60);

    border:
        1px solid var(--glass-border);

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);

    box-shadow:
        var(--shadow);

    border-radius:
        22px;

    transition:
        0.35s ease;
}


/* وقتی اسکرول شده */

.navbar.scrolled {

    top: 10px;

    background:
        rgba(255, 255, 255, 0.82);

    box-shadow:
        0 18px 50px rgba(31, 110, 145, 0.17);

}


/* =========================================
   CONTAINER
========================================= */

.nav-container {

    width: 100%;

    min-height: 76px;

    padding:
        10px 20px;

    display: flex;

    align-items: center;

    gap: 25px;
}


/* =========================================
   LOGO
========================================= */

.logo {

    display: flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;

    flex-shrink: 0;
}


.logo-icon {

    width: 48px;
    height: 48px;

    border-radius: 15px;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 14px;

    font-weight: 900;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--green)
        );

    box-shadow:
        0 8px 20px rgba(63, 169, 217, 0.28);
}


.logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1.4;
}


.logo-text strong {

    color: var(--text);

    font-size: 15px;
}


.logo-text span {

    color: var(--gold);

    font-size: 10px;

    direction: ltr;
}


/* =========================================
   DESKTOP MENU
========================================= */

.nav-menu {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    flex: 1;
}


.nav-link {

    position: relative;

    display: flex;

    align-items: center;

    gap: 5px;

    padding:
        12px 14px;

    text-decoration: none;

    color: var(--text);

    font-size: 13px;

    font-weight: 600;

    border-radius: 12px;

    transition:
        0.3s ease;
}


.nav-link i {

    font-size: 15px;

    color: var(--gold);

    transition:
        0.3s ease;
}


.nav-link:hover {

    color: var(--blue-dark);

    background:
        rgba(63, 169, 217, 0.08);
}


.nav-link:hover i {

    transform:
        rotate(180deg);
}


.nav-link.active {

    color: var(--blue-dark);

    background:
        linear-gradient(
            135deg,
            rgba(63, 169, 217, 0.11),
            rgba(80, 201, 165, 0.11)
        );
}


/* خط زیر آیتم */

.nav-link.active::after {

    content: "";

    position: absolute;

    bottom: 3px;

    right: 50%;

    transform:
        translateX(50%);

    width: 18px;

    height: 2px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--green)
        );
}


/* =========================================
   ACTIONS
========================================= */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


/* =========================================
   ICON BUTTON
========================================= */

.nav-icon {

    width: 43px;
    height: 43px;

    border: none;

    border-radius: 13px;

    display: flex;

    justify-content: center;
    align-items: center;

    cursor: pointer;

    position: relative;

    background:
        rgba(255, 255, 255, 0.65);

    border:
        1px solid rgba(255,255,255,0.8);

    color: var(--text);

    transition:
        0.3s ease;
}


.nav-icon svg {

    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.nav-icon:hover {

    transform:
        translateY(-2px);

    color: var(--blue-dark);

    background:
        rgba(255,255,255,0.95);

    box-shadow:
        0 8px 20px rgba(63,169,217,0.13);
}


/* =========================================
   NOTIFICATION
========================================= */

.notification-dot {

    position: absolute;

    top: 8px;
    right: 8px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--gold);

    box-shadow:
        0 0 0 3px rgba(216,170,69,0.12);
}


/* =========================================
   LOGIN
========================================= */

.login-btn {

    height: 43px;

    padding:
        0 17px;

    display: flex;

    align-items: center;

    gap: 8px;

    text-decoration: none;

    color: white;

    font-size: 12px;

    font-weight: 700;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--green)
        );

    box-shadow:
        0 8px 20px rgba(63,169,217,0.20);

    transition:
        0.3s ease;
}


.login-btn svg {

    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.login-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px rgba(63,169,217,0.28);
}


/* =========================================
   MOBILE BUTTON
========================================= */

.menu-toggle {

    display: none;

    width: 43px;
    height: 43px;

    border: none;

    border-radius: 13px;

    background:
        rgba(255,255,255,0.7);

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;
}


.menu-toggle span {

    width: 21px;

    height: 2px;

    border-radius: 10px;

    background:
        var(--blue-dark);

    transition:
        0.3s ease;
}


/* تبدیل همبرگر به X */

.menu-toggle.active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {

    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {

    position: fixed;

    top: 105px;

    right: 16px;
    left: 16px;

    z-index: 999;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-15px)
        scale(0.98);

    transition:
        0.3s ease;

    background:
        rgba(255,255,255,0.78);

    border:
        1px solid rgba(255,255,255,0.85);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    border-radius:
        22px;

    box-shadow:
        0 20px 50px rgba(30,100,130,0.18);
}


.mobile-menu.open {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


.mobile-menu-inner {

    padding:
        15px;
}


/* =========================================
   MOBILE LINKS
========================================= */

.mobile-link {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding:
        15px;

    margin-bottom: 5px;

    border-radius: 14px;

    color: var(--text);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        0.25s ease;
}


.mobile-link:hover {

    background:
        rgba(63,169,217,0.08);

    color:
        var(--blue-dark);

    padding-right: 19px;
}


.mobile-link.active {

    color:
        var(--blue-dark);

    background:
        linear-gradient(
            135deg,
            rgba(63,169,217,0.10),
            rgba(80,201,165,0.10)
        );
}


.mobile-link span:last-child {

    color:
        var(--gold);

    font-size: 18px;
}


/* =========================================
   DIVIDER
========================================= */

.mobile-divider {

    height: 1px;

    margin:
        10px 5px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(63,169,217,0.20),
            transparent
        );
}


/* =========================================
   MOBILE LOGIN
========================================= */

.mobile-login {

    height: 48px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    text-decoration: none;

    color: white;

    font-size: 13px;

    font-weight: 700;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--green)
        );
}


.mobile-login svg {

    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;
}


/* =========================================
   OVERLAY
========================================= */

.menu-overlay {

    position: fixed;

    inset: 0;

    z-index: 998;

    background:
        rgba(20,70,85,0.12);

    backdrop-filter:
        blur(3px);

    opacity: 0;

    visibility: hidden;

    transition:
        0.3s ease;
}


.menu-overlay.active {

    opacity: 1;

    visibility: visible;
}


/* =========================================
   DEMO CONTENT
========================================= */

.demo-content {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 120px 20px 40px;
}


.hero-card {

    width: min(700px, 100%);

    padding: 70px 30px;

    text-align: center;

    border-radius: 30px;

    background:
        rgba(255,255,255,0.55);

    border:
        1px solid rgba(255,255,255,0.8);

    backdrop-filter:
        blur(20px);

    box-shadow:
        var(--shadow);
}


.hero-badge {

    display: inline-block;

    padding:
        8px 15px;

    margin-bottom: 20px;

    border-radius: 30px;

    color:
        var(--green-dark);

    background:
        rgba(80,201,165,0.10);

    font-size: 12px;
}


.hero-card h1 {

    margin-bottom: 15px;

    font-size:
        clamp(25px, 5vw, 48px);

    background:
        linear-gradient(
            90deg,
            var(--blue-dark),
            var(--green-dark),
            var(--gold)
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;
}


.hero-card p {

    color:
        var(--muted);

    font-size:
        14px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .nav-menu {

        gap: 0;
    }

    .nav-link {

        padding:
            11px 9px;

        font-size:
            12px;
    }

    .logo-text {

        display: none;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 850px) {

    .navbar {

        top: 10px;

        width:
            calc(100% - 20px);

        border-radius:
            18px;
    }


    .nav-container {

        min-height:
            68px;

        padding:
            8px 12px;
    }


    .nav-menu {

        display: none;
    }


    .nav-actions {

        margin-right: auto;
    }


    .search-btn,
    .notification-btn,
    .login-btn {

        display: none;
    }


    .menu-toggle {

        display: flex;
    }


    .logo-icon {

        width: 44px;
        height: 44px;

        border-radius:
            13px;
    }


    .logo-text {

        display: flex;
    }


    .mobile-menu {

        top: 88px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .navbar {

        width:
            calc(100% - 14px);

        top: 7px;
    }


    .nav-container {

        padding:
            7px 9px;
    }


    .logo-text strong {

        font-size:
            13px;
    }


    .logo-text span {

        font-size:
            9px;
    }


    .logo-icon {

        width: 41px;
        height: 41px;
    }


    .menu-toggle {

        width: 41px;
        height: 41px;
    }


    .mobile-menu {

        top: 80px;

        right: 7px;
        left: 7px;
    }

}


/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;
    }

}


/* =====================================
   RESET
===================================== */




/* =====================================
   SLIDER SECTION
===================================== */

.slider-section {

    width: 100%;

    padding: 20px 0;

}


/* =====================================
   SLIDER
===================================== */

.slider {

    position: relative;

    width: 100%;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #e9f8f7,
            #eef8fc
        );

    border-radius: 0;

}


/* =====================================
   SLIDES
===================================== */

.slides {

    position: relative;

    width: 100%;

    display: flex;

    overflow: hidden;
}


.slide {

    min-width: 100%;

    position: relative;

    display: none;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    animation: fadeIn 0.7s ease;

}


.slide.active {

    display: flex;

}


/*
   مهم:
   تصویر بریده نمی‌شود
*/

.slide img {

    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    object-fit: contain;

}


/* =====================================
   ANIMATION
===================================== */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform:
            scale(1.015);

    }

    to {

        opacity: 1;

        transform:
            scale(1);

    }

}


/* =====================================
   BUTTONS
===================================== */

.slider-btn {

    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    width: 48px;

    height: 48px;

    border: 1px solid
        rgba(255,255,255,0.75);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    color: #ffffff;

    background:
        rgba(35, 130, 160, 0.55);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    font-size: 20px;

    z-index: 10;

    transition:
        0.3s ease;

}


.slider-btn:hover {

    background:
        rgba(35, 130, 160, 0.85);

    transform:
        translateY(-50%)
        scale(1.08);

    box-shadow:
        0 8px 25px
        rgba(35,130,160,0.25);

}


.slider-btn:active {

    transform:
        translateY(-50%)
        scale(0.95);

}


.prev {

    right: 22px;

}


.next {

    left: 22px;

}


/* =====================================
   DOTS
===================================== */

.slider-dots {

    position: absolute;

    bottom: 18px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 10px;

    border-radius: 30px;

    background:
        rgba(255,255,255,0.45);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    z-index: 20;

}


.dot {

    width: 8px;

    height: 8px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.75);

    cursor: pointer;

    transition:
        0.3s ease;

}


.dot.active {

    width: 25px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #3fa9d9,
            #50c9a5
        );

}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .slider-section {

        padding: 10px 0;

    }


    .slider {

        border-radius: 0;

    }


    .slider-btn {

        width: 38px;

        height: 38px;

        font-size: 16px;

    }


    .prev {

        right: 10px;

    }


    .next {

        left: 10px;

    }


    .slider-dots {

        bottom: 10px;

    }

}


/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 480px) {

    .slider-btn {

        width: 34px;

        height: 34px;

        font-size: 14px;

    }


    .slider-dots {

        bottom: 7px;

        gap: 6px;

        padding:
            5px 8px;

    }


    .dot {

        width: 6px;

        height: 6px;

    }


    .dot.active {

        width: 19px;

    }

}



/* =========================================
   HERO VARIABLES
========================================= */

:root {

    --hero-blue:
        #4aaed6;

    --hero-green:
        #55cbaa;

    --hero-gold:
        #e0b650;

    --hero-white:
        #ffffff;

}


/* =========================================
   HERO
========================================= */

.hero {

    position: relative;

    width: 100%;

    min-height:
        clamp(620px, 90vh, 850px);

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    isolation: isolate;

}


/* =========================================
   BACKGROUND
========================================= */

.hero-background {

    position: absolute;

    inset: 0;

    z-index: -3;

}


.hero-image,
.hero-video {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

}


/* =========================================
   OVERLAY
========================================= */

.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: -2;

    background:

        linear-gradient(
            90deg,
            rgba(7, 35, 48, 0.72),
            rgba(8, 60, 72, 0.45),
            rgba(7, 35, 48, 0.68)
        ),

        linear-gradient(
            180deg,
            rgba(0,0,0,0.10),
            rgba(4,35,45,0.60)
        );

}


/* =========================================
   HERO CONTENT
========================================= */

.hero-content {

    position: relative;

    z-index: 5;

    width:
        min(850px, 90%);

    text-align: center;

    margin-top: 35px;

}


.hero-label {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        9px 17px;

    border:
        1px solid rgba(255,255,255,0.25);

    border-radius: 50px;

    background:
        rgba(255,255,255,0.10);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    color:
        rgba(255,255,255,0.90);

    font-size: 13px;

    margin-bottom: 24px;

}


.label-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background:
        var(--hero-green);

    box-shadow:
        0 0 0 5px rgba(85,203,170,0.14),
        0 0 15px rgba(85,203,170,0.8);

}


/* =========================================
   TITLE
========================================= */

.hero-title {

    margin: 0;

    font-size:
        clamp(42px, 7vw, 82px);

    line-height:
        1.15;

    font-weight:
        900;

    letter-spacing:
        -2px;

    text-shadow:
        0 8px 35px rgba(0,0,0,0.30);

}


.hero-title span {

    display: inline-block;

    margin:
        0 8px;

    background:
        linear-gradient(
            90deg,
            var(--hero-green),
            var(--hero-blue),
            var(--hero-gold)
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


/* =========================================
   DESCRIPTION
========================================= */

.hero-description {

    width:
        min(650px, 100%);

    margin:
        25px auto 0;

    color:
        rgba(255,255,255,0.82);

    font-size:
        clamp(14px, 2vw, 17px);

    line-height:
        2;

}


/* =========================================
   BUTTONS
========================================= */

.hero-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-top: 32px;

}


.hero-btn {

    min-width: 155px;

    height: 52px;

    padding:
        0 22px;

    border-radius:
        15px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        0.3s ease;

}


.hero-btn.primary {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--hero-blue),
            var(--hero-green)
        );

    box-shadow:
        0 12px 30px
        rgba(75,180,180,0.28);

}


.hero-btn.primary span {

    font-size: 20px;

    transition:
        0.3s ease;

}


.hero-btn.primary:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 17px 35px
        rgba(75,180,180,0.40);

}


.hero-btn.primary:hover span {

    transform:
        translateX(-5px);

}


.hero-btn.secondary {

    color:
        #ffffff;

    border:
        1px solid rgba(255,255,255,0.35);

    background:
        rgba(255,255,255,0.10);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

}


.hero-btn.secondary:hover {

    background:
        rgba(255,255,255,0.18);

    transform:
        translateY(-3px);

}


/* =========================================
   FLOATING GLASS CARDS
========================================= */

.hero-card {

    position: absolute;

    z-index: 6;

    min-width: 235px;

    padding:
        15px 18px;

    display: flex;

    align-items: center;

    gap: 13px;

    border:
        1px solid rgba(255,255,255,0.24);

    border-radius:
        18px;

    background:
        rgba(255,255,255,0.12);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.18);

}


.hero-card strong {

    display: block;

    font-size: 13px;

    margin-bottom: 5px;

}


.hero-card span {

    display: block;

    color:
        rgba(255,255,255,0.65);

    font-size: 10px;

}


.card-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    color:
        var(--hero-gold);

    background:
        rgba(224,182,80,0.15);

    font-size: 20px;

}


.card-icon.green {

    color:
        var(--hero-green);

    background:
        rgba(85,203,170,0.15);

}


/* Right Card */

.card-right {

    top: 32%;

    right:
        clamp(25px, 7vw, 110px);

    animation:
        floatingRight 4s ease-in-out infinite;

}


/* Left Card */

.card-left {

    bottom: 27%;

    left:
        clamp(25px, 7vw, 110px);

    animation:
        floatingLeft 4.5s ease-in-out infinite;

}


@keyframes floatingRight {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-12px);

    }

}


@keyframes floatingLeft {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(10px);

    }

}


/* =========================================
   STATS
========================================= */

.hero-stats {

    position: absolute;

    bottom: 55px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 6;

    display: flex;

    align-items: center;

    gap: 25px;

    padding:
        13px 25px;

    border:
        1px solid rgba(255,255,255,0.20);

    border-radius:
        20px;

    background:
        rgba(255,255,255,0.10);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

}


.stat {

    min-width: 80px;

    text-align: center;

}


.stat strong {

    display: block;

    color:
        #ffffff;

    font-size: 18px;

}


.stat span {

    display: block;

    margin-top: 4px;

    color:
        rgba(255,255,255,0.60);

    font-size: 9px;

}


.stat-line {

    width: 1px;

    height: 28px;

    background:
        rgba(255,255,255,0.22);

}


/* =========================================
   SCROLL
========================================= */

.hero-scroll {

    position: absolute;

    bottom: 18px;

    left: 25px;

    z-index: 8;

    display: flex;

    align-items: center;

    gap: 9px;

    color:
        rgba(255,255,255,0.60);

    font-size: 9px;

}


.scroll-line {

    width: 30px;

    height: 1px;

    background:
        rgba(255,255,255,0.5);

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .hero-card {

        min-width: 200px;

    }


    .card-right {

        right: 25px;

    }


    .card-left {

        left: 25px;

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .hero {

        min-height:
            650px;

        align-items:
            center;

    }


    .hero-overlay {

        background:

            linear-gradient(
                180deg,
                rgba(5,35,45,0.45),
                rgba(5,35,45,0.72)
            );

    }


    /*
       کارت‌های دسکتاپ
       در موبایل حذف می‌شوند
    */

    .hero-card {

        display: none;

    }


    .hero-content {

        width:
            calc(100% - 30px);

        margin-top:
            10px;

    }


    .hero-label {

        font-size: 11px;

        padding:
            8px 14px;

    }


    .hero-title {

        font-size:
            clamp(36px, 12vw, 54px);

        line-height:
            1.3;

        letter-spacing:
            -1px;

    }


    .hero-title span {

        display: block;

        margin:
            3px 0;

    }


    .hero-description {

        font-size: 13px;

        line-height:
            2;

        margin-top:
            18px;

    }


    .hero-buttons {

        flex-direction:
            column;

        width: 100%;

        margin-top:
            25px;

    }


    .hero-btn {

        width:
            min(100%, 320px);

        height:
            50px;

    }


    .hero-stats {

        bottom:
            25px;

        width:
            calc(100% - 30px);

        justify-content:
            space-around;

        gap:
            5px;

        padding:
            11px 10px;

    }


    .stat {

        min-width:
            65px;

    }


    .stat strong {

        font-size:
            15px;

    }


    .stat span {

        font-size:
            8px;

    }


    .stat-line {

        height:
            24px;

    }


    .hero-scroll {

        display:
            none;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .hero {

        min-height:
            620px;

    }


    .hero-content {

        width:
            calc(100% - 24px);

    }


    .hero-description {

        font-size:
            12px;

    }


    .hero-stats {

        width:
            calc(100% - 20px);

        bottom:
            15px;

    }


    .stat strong {

        font-size:
            14px;

    }

}




.quick-actions {

    width: 100%;

    padding: 20px 15px;

    background:
        linear-gradient(
            180deg,
            #f7ffff,
            #eef9f7
        );

}


.quick-actions-scroll {

    width: 100%;

    max-width: 1200px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    overflow-x: auto;

    padding: 5px;

    scrollbar-width: none;

    -ms-overflow-style: none;

}


.quick-actions-scroll::-webkit-scrollbar {

    display: none;

}


/* =================================
   ACTION BUTTON
================================= */

.quick-action {

    width: 82px;

    height: 82px;

    min-width: 82px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 6px;

    text-decoration: none;

    border-radius: 18px;

    border:
        1px solid
        rgba(255,255,255,0.85);

    background:
        rgba(255,255,255,0.68);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 8px 25px
        rgba(50,130,150,0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

}


/* =================================
   ICON
================================= */

.quick-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    font-size: 20px;

    color:
        #3fa9d9;

    background:
        linear-gradient(
            135deg,
            rgba(63,169,217,0.12),
            rgba(80,201,165,0.12)
        );

    transition:
        0.3s ease;

}


/* =================================
   TEXT
================================= */

.quick-title {

    color:
        #285467;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;

}


/* =================================
   HOVER
================================= */

.quick-action:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 14px 30px
        rgba(50,130,150,0.17);

    background:
        rgba(255,255,255,0.92);

}


.quick-action:hover .quick-icon {

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #3fa9d9,
            #50c9a5
        );

    transform:
        scale(1.08)
        rotate(-3deg);

}


/* =================================
   ACTIVE
================================= */

.quick-action.active {

    background:
        linear-gradient(
            135deg,
            rgba(63,169,217,0.12),
            rgba(80,201,165,0.12)
        );

    border-color:
        rgba(63,169,217,0.25);

}


/* =================================
   MOBILE
================================= */

@media (max-width: 700px) {

    .quick-actions {

        padding:
            14px 8px;

    }


    .quick-actions-scroll {

        justify-content:
            flex-start;

        gap:
            10px;

        padding:
            4px 7px 9px;

    }


    .quick-action {

        width:
            72px;

        height:
            72px;

        min-width:
            72px;

        border-radius:
            16px;

    }


    .quick-icon {

        width:
            34px;

        height:
            34px;

        font-size:
            18px;

        border-radius:
            10px;

    }


    .quick-title {

        font-size:
            9px;

    }

}


/* =================================
   SMALL MOBILE
================================= */

@media (max-width: 400px) {

    .quick-action {

        width:
            68px;

        height:
            68px;

        min-width:
            68px;

    }

}


/* =========================================
   PRODUCTS
========================================= */

.products-section {

    width: 100%;

    padding:
        90px 0;

    background:

        radial-gradient(
            circle at 10% 20%,
            rgba(80,201,165,0.10),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 70%,
            rgba(63,169,217,0.10),
            transparent 30%
        ),

        #f7fcfb;

}


.products-container {

    width:
        min(1250px, calc(100% - 30px));

    margin:
        auto;

}


/* =========================================
   HEADER
========================================= */

.products-header {

    display:

        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        30px;

    margin-bottom:
        35px;

}


.section-label {

    display:
        inline-block;

    margin-bottom:
        10px;

    color:
        #299b7c;

    font-size:
        12px;

    font-weight:
        700;

}


.products-header h2 {

    margin:
        0;

    color:
        #193f50;

    font-size:
        clamp(28px, 4vw, 44px);

    line-height:
        1.3;

}


.products-header h2 span {

    background:
        linear-gradient(
            90deg,
            #3fa9d9,
            #50c9a5,
            #d8aa45
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


.products-header p {

    max-width:
        600px;

    margin-top:
        12px;

    color:
        #78919a;

    font-size:
        13px;

    line-height:
        2;

}


.all-products {

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        12px 18px;

    border:
        1px solid rgba(63,169,217,0.18);

    border-radius:
        13px;

    text-decoration:
        none;

    color:
        #287e9e;

    background:
        rgba(255,255,255,0.65);

    font-size:
        12px;

    font-weight:
        700;

    transition:
        0.3s ease;

}


.all-products:hover {

    transform:
        translateY(-3px);

    background:
        #ffffff;

    box-shadow:
        0 10px 25px
        rgba(50,130,150,0.10);

}


/* =========================================
   WRAPPER
========================================= */

.products-wrapper {

    position:
        relative;

}


/* =========================================
   SCROLL
========================================= */

.products-scroll {

    display:
        flex;

    gap:
        20px;

    overflow-x:
        auto;

    padding:
        10px 5px 25px;

    scroll-behavior:
        smooth;

    scroll-snap-type:
        x mandatory;

    scrollbar-width:
        none;

}


.products-scroll::-webkit-scrollbar {

    display:
        none;

}


/* =========================================
   CARD
========================================= */

.product-card {

    position:
        relative;

    flex:
        0 0 290px;

    scroll-snap-align:
        start;

    overflow:
        hidden;

    border:
        1px solid rgba(255,255,255,0.85);

    border-radius:
        24px;

    background:
        rgba(255,255,255,0.72);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:
        0 12px 35px
        rgba(38,120,145,0.09);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

}


.product-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 20px 45px
        rgba(38,120,145,0.15);

}


/* =========================================
   IMAGE
========================================= */

.product-image {

    position:
        relative;

    width:
        100%;

    height:
        220px;

    overflow:
        hidden;

    background:
        #edf7f7;

}


.product-image img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

    transition:
        transform 0.5s ease;

}


.product-card:hover
.product-image img {

    transform:
        scale(1.06);

}


/* =========================================
   BADGE
========================================= */

.product-badge {

    position:
        absolute;

    top:
        14px;

    right:
        14px;

    padding:
        7px 11px;

    border-radius:
        30px;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #3fa9d9,
            #50c9a5
        );

    font-size:
        9px;

    font-weight:
        700;

    backdrop-filter:
        blur(10px);

}


/* =========================================
   CARD CONTENT
========================================= */

.product-content {

    padding:
        20px;

}


.product-category {

    color:
        #d09f37;

    font-size:
        9px;

    font-weight:
        700;

}


.product-title {

    margin:
        8px 0;

    color:
        #1e4352;

    font-size:
        17px;

}


.product-description {

    height:
        48px;

    overflow:
        hidden;

    color:
        #78919a;

    font-size:
        10px;

    line-height:
        2;

}


/* =========================================
   CARD BOTTOM
========================================= */

.product-bottom {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    margin-top:
        18px;

}


.product-price {

    color:
        #258c73;

    font-size:
        12px;

    font-weight:
        800;

}


.product-more {

    width:
        40px;

    height:
        40px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    border-radius:
        12px;

    cursor:
        pointer;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #3fa9d9,
            #50c9a5
        );

    font-size:
        17px;

    transition:
        0.3s ease;

}


.product-more:hover {

    transform:
        scale(1.08);

}


/* =========================================
   ARROWS
========================================= */

.products-arrow {

    position:
        absolute;

    top:
        43%;

    z-index:
        10;

    width:
        44px;

    height:
        44px;

    border:
        1px solid rgba(255,255,255,0.9);

    border-radius:
        50%;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    cursor:
        pointer;

    color:
        #2e7992;

    background:
        rgba(255,255,255,0.80);

    backdrop-filter:
        blur(15px);

    box-shadow:
        0 8px 25px
        rgba(40,110,130,0.13);

    transition:
        0.3s ease;

}


.products-arrow:hover {

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #3fa9d9,
            #50c9a5
        );

    transform:
        scale(1.08);

}


.products-prev {

    right:
        -20px;

}


.products-next {

    left:
        -20px;

}


/* =========================================
   MODAL
========================================= */

.product-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        5000;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

    opacity:
        0;

    visibility:
        hidden;

    transition:
        0.3s ease;

}


.product-modal.active {

    opacity:
        1;

    visibility:
        visible;

}


.modal-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(10,40,50,0.55);

    backdrop-filter:
        blur(8px);

}


/* =========================================
   MODAL BOX
========================================= */

.product-modal-box {

    position:
        relative;

    z-index:
        2;

    width:
        min(850px, 100%);

    max-height:
        90vh;

    overflow:
        hidden;

    display:
        grid;

    grid-template-columns:
        0.9fr 1fr;

    border:
        1px solid rgba(255,255,255,0.8);

    border-radius:
        28px;

    background:
        rgba(255,255,255,0.88);

    backdrop-filter:
        blur(25px);

    box-shadow:
        0 30px 80px
        rgba(10,60,80,0.25);

    transform:
        translateY(25px)
        scale(0.96);

    transition:
        0.35s ease;

}


.product-modal.active
.product-modal-box {

    transform:
        translateY(0)
        scale(1);

}


/* =========================================
   MODAL IMAGE
========================================= */

.modal-image {

    min-height:
        400px;

    background:
        #edf7f7;

}


.modal-image img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;

}


/* =========================================
   MODAL CONTENT
========================================= */

.modal-content {

    padding:
        40px;

    display:
        flex;

    flex-direction:
        column;

}


.modal-category {

    color:
        #d09f37;

    font-size:
        11px;

    font-weight:
        700;

}


.modal-content h2 {

    margin:
        10px 0 15px;

    color:
        #1b4353;

    font-size:
        28px;

}


.modal-content p {

    color:
        #718c95;

    font-size:
        12px;

    line-height:
        2.2;

}


/* =========================================
   FEATURES
========================================= */

.modal-features {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        9px;

    margin-top:
        25px;

}


.modal-feature {

    padding:
        10px;

    border-radius:
        11px;

    color:
        #437080;

    background:
        #f1f9f8;

    font-size:
        10px;

}


.modal-feature::before {

    content:
        "✓";

    margin-left:
        7px;

    color:
        #38aa88;

    font-weight:
        900;

}


/* =========================================
   MODAL BOTTOM
========================================= */

.modal-bottom {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

    margin-top:
        auto;

    padding-top:
        25px;

}


.modal-bottom strong {

    color:
        #258c73;

    font-size:
        15px;

}


.modal-action {

    padding:
        12px 18px;

    border-radius:
        12px;

    text-decoration:
        none;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #3fa9d9,
            #50c9a5
        );

    font-size:
        11px;

    font-weight:
        700;

}


/* =========================================
   CLOSE
========================================= */

.modal-close {

    position:
        absolute;

    top:
        15px;

    left:
        15px;

    z-index:
        10;

    width:
        38px;

    height:
        38px;

    border:
        none;

    border-radius:
        50%;

    cursor:
        pointer;

    color:
        #ffffff;

    background:
        rgba(30,70,80,0.55);

    font-size:
        22px;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .products-section {

        padding:
            65px 0;

    }


    .products-header {

        display:
            block;

        margin-bottom:
            22px;

    }


    .products-header h2 {

        font-size:
            28px;

    }


    .products-header p {

        font-size:
            11px;

    }


    .all-products {

        display:
            inline-flex;

        margin-top:
            15px;

    }


    .products-scroll {

        gap:
            14px;

        padding:
            5px 4px 22px;

    }


    .product-card {

        flex:
            0 0 78vw;

        max-width:
            310px;

        border-radius:
            21px;

    }


    .product-image {

        height:
            200px;

    }


    .products-arrow {

        display:
            none;

    }


    /* MODAL */

    .product-modal {

        padding:
            12px;

    }


    .product-modal-box {

        width:
            100%;

        max-height:
            92vh;

        overflow-y:
            auto;

        display:
            block;

        border-radius:
            23px;

    }


    .modal-image {

        height:
            240px;

        min-height:
            240px;

    }


    .modal-content {

        padding:
            25px 20px;

    }


    .modal-content h2 {

        font-size:
            23px;

    }


    .modal-features {

        grid-template-columns:
            1fr;

    }


    .modal-bottom {

        margin-top:
            20px;

    }

}


/* =========================================
   VERY SMALL
========================================= */

@media (max-width: 400px) {

    .product-card {

        flex-basis:
            82vw;

    }


    .product-image {

        height:
            180px;

    }

}



/* =========================================
   SERVICES SECTION
========================================= */

.services-section {
    width: 100%;
    padding: 100px 0;
    background:
        linear-gradient(
            180deg,
            #f8fdfc 0%,
            #eef8f6 100%
        );
}


/* =========================================
   CONTAINER
========================================= */

.services-container {
    width: min(1250px, calc(100% - 30px));
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}


/* =========================================
   HEADING
========================================= */

.services-heading {
    min-width: 0;
}


.services-heading .section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #35a985;
    font-size: 12px;
    font-weight: 700;
}


.services-heading h2 {
    margin: 0;
    color: #1c4353;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.4;
    font-weight: 800;
}


.services-heading h2 span {
    background:
        linear-gradient(
            90deg,
            #42a9d5,
            #48bf9b,
            #d3a844
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.services-heading p {
    max-width: 620px;
    margin: 14px 0 0;
    color: #718b94;
    font-size: 13px;
    line-height: 2.1;
}


/* =========================================
   COUNTER
========================================= */

.services-counter {
    flex: 0 0 120px;

    padding: 16px;

    text-align: center;

    border: 1px solid rgba(255,255,255,0.9);

    border-radius: 18px;

    background: rgba(255,255,255,0.7);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 10px 30px rgba(35,120,140,0.08);
}


.services-counter strong {
    display: block;
    color: #32a17f;
    font-size: 28px;
    line-height: 1;
}


.services-counter span {
    display: block;
    margin-top: 8px;
    color: #7e969d;
    font-size: 9px;
}


/* =========================================
   SERVICES GRID
========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


/* =========================================
   SERVICE CARD
========================================= */

.service-card {
    position: relative;

    min-height: 300px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,0.9);

    border-radius: 24px;

    background: rgba(255,255,255,0.68);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 12px 35px rgba(38,120,145,0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* نور پشت کارت */

.service-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -80px;
    left: -80px;

    border-radius: 50%;

    background:
        rgba(70,190,160,0.13);

    transition:
        transform 0.5s ease;
}


.service-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 22px 50px rgba(38,120,145,0.15);
}


.service-card:hover::before {
    transform: scale(2);
}


/* =========================================
   MAIN CARD
========================================= */

.service-card.service-main {
    background:
        linear-gradient(
            145deg,
            rgba(63,169,217,0.14),
            rgba(80,201,165,0.12),
            rgba(255,255,255,0.75)
        );
}


/* =========================================
   TOP
========================================= */

.service-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.service-number {
    color: #9aafb6;
    font-size: 11px;
    font-weight: 800;
}


/* =========================================
   ICON
========================================= */

.service-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #42a9d5,
            #4fc29e
        );

    box-shadow:
        0 10px 25px rgba(63,169,217,0.2);

    font-size: 21px;
    font-weight: 800;

    transition:
        transform 0.3s ease;
}


.service-icon.green {
    background:
        linear-gradient(
            135deg,
            #4fc29e,
            #42a9d5
        );
}


.service-icon.gold {
    background:
        linear-gradient(
            135deg,
            #d2a743,
            #e6c56b
        );
}


.service-card:hover .service-icon {
    transform:
        rotate(-6deg)
        scale(1.08);
}


/* =========================================
   CONTENT
========================================= */

.service-content {
    position: relative;
    z-index: 2;

    margin-top: 28px;
}


.service-content h3 {
    margin: 0;
    color: #204555;
    font-size: 18px;
    font-weight: 800;
}


.service-content p {
    margin: 12px 0 0;
    color: #78919a;
    font-size: 11px;
    line-height: 2.1;
}


/* =========================================
   LINK
========================================= */

.service-link {
    position: relative;
    z-index: 2;

    width: fit-content;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 20px;

    color: #2c8da7;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
}


.service-link span {
    font-size: 18px;
    transition: transform 0.3s ease;
}


.service-link:hover span {
    transform: translateX(-6px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .services-section {
        padding: 70px 0;
    }


    .services-header {
        display: block;
        margin-bottom: 25px;
    }


    .services-heading h2 {
        font-size: 29px;
    }


    .services-heading p {
        font-size: 11px;
        line-height: 2;
    }


    .services-counter {
        display: none;
    }


    .services-grid {

        display: flex;

        gap: 14px;

        overflow-x: auto;

        padding:
            5px 3px 20px;

        scroll-snap-type:
            x mandatory;

        scrollbar-width:
            none;

    }


    .services-grid::-webkit-scrollbar {
        display: none;
    }


    .service-card {

        flex:
            0 0 82vw;

        max-width:
            320px;

        min-height:
            290px;

        scroll-snap-align:
            start;

        border-radius:
            22px;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .service-card {
        flex-basis: 86vw;
    }


    .service-icon {
        width: 50px;
        height: 50px;
    }


    .service-content h3 {
        font-size: 17px;
    }

}




/* =========================================
   PORTFOLIO SECTION
========================================= */

.portfolio-section {
    width: 100%;
    padding: 100px 0;
    background:
        linear-gradient(
            180deg,
            #eef8f7 0%,
            #f8fdfc 100%
        );
}


.portfolio-container {
    width: min(1250px, calc(100% - 30px));
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}


.portfolio-heading .section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #35a985;
    font-size: 12px;
    font-weight: 700;
}


.portfolio-heading h2 {
    margin: 0;
    color: #1c4353;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.4;
    font-weight: 800;
}


.portfolio-heading h2 span {
    background:
        linear-gradient(
            90deg,
            #42a9d5,
            #48bf9b,
            #d3a844
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.portfolio-heading p {
    max-width: 650px;
    margin: 14px 0 0;
    color: #718b94;
    font-size: 13px;
    line-height: 2.1;
}


/* =========================================
   FILTERS
========================================= */

.portfolio-filters {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 30px;

    overflow-x: auto;

    scrollbar-width: none;
}


.portfolio-filters::-webkit-scrollbar {
    display: none;
}


.portfolio-filter {
    flex: 0 0 auto;

    padding: 11px 20px;

    border: 1px solid rgba(63,169,217,0.12);
    border-radius: 30px;

    outline: none;

    cursor: pointer;

    color: #547984;

    background:
        rgba(255,255,255,0.65);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.portfolio-filter:hover {
    transform: translateY(-2px);

    color: #287e99;

    background:
        rgba(255,255,255,0.95);
}


.portfolio-filter.active {
    color: #ffffff;

    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #42a9d5,
            #48bf9b
        );

    box-shadow:
        0 8px 20px
        rgba(63,169,217,0.18);
}


/* =========================================
   PORTFOLIO GRID
========================================= */

.portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================
   PORTFOLIO CARD
========================================= */

.portfolio-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,0.9);

    border-radius: 24px;

    background:
        rgba(255,255,255,0.72);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:
        0 12px 35px
        rgba(38,120,145,0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.portfolio-card:hover {
    transform:
        translateY(-8px);

    box-shadow:
        0 22px 50px
        rgba(38,120,145,0.15);
}


/* =========================================
   IMAGE
========================================= */

.portfolio-image {
    position: relative;

    width: 100%;

    height: 250px;

    overflow: hidden;

    background:
        #eaf5f4;
}


.portfolio-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.55s ease;
}


.portfolio-card:hover
.portfolio-image img {
    transform:
        scale(1.07);
}


/* =========================================
   IMAGE OVERLAY
========================================= */

.portfolio-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(10,50,60,0.22)
        );

    pointer-events: none;
}


/* =========================================
   CATEGORY BADGE
========================================= */

.portfolio-category {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 3;

    padding: 8px 12px;

    border:
        1px solid rgba(255,255,255,0.6);

    border-radius: 30px;

    color: #ffffff;

    background:
        rgba(25,75,85,0.45);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    font-size: 9px;
    font-weight: 700;
}


/* =========================================
   CARD CONTENT
========================================= */

.portfolio-content {
    padding: 20px;
}


.portfolio-title {
    margin: 0;

    color: #1f4656;

    font-size: 18px;
    font-weight: 800;
}


.portfolio-description {
    margin: 10px 0 0;

    color: #78919a;

    font-size: 10px;

    line-height: 2;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================
   CARD FOOTER
========================================= */

.portfolio-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 18px;
}


.portfolio-year {
    color: #9aaeb5;

    font-size: 10px;

    font-weight: 700;
}


.portfolio-view {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #42a9d5,
            #48bf9b
        );

    font-size: 17px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.portfolio-view:hover {
    transform:
        scale(1.08);

    box-shadow:
        0 8px 20px
        rgba(63,169,217,0.2);
}


/* =========================================
   HIDDEN PROJECT
========================================= */

.portfolio-card.hidden {
    display: none;
}


/* =========================================
   MODAL
========================================= */

.portfolio-modal {
    position: fixed;

    inset: 0;

    z-index: 6000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.portfolio-modal.active {
    opacity: 1;

    visibility: visible;
}


/* =========================================
   MODAL OVERLAY
========================================= */

.portfolio-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(10,40,50,0.58);

    backdrop-filter:
        blur(9px);

    -webkit-backdrop-filter:
        blur(9px);
}


/* =========================================
   MODAL BOX
========================================= */

.portfolio-modal-box {
    position: relative;

    z-index: 2;

    width: min(900px, 100%);

    max-height: 90vh;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    border:
        1px solid rgba(255,255,255,0.8);

    border-radius: 28px;

    background:
        rgba(255,255,255,0.92);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    box-shadow:
        0 30px 80px
        rgba(10,60,80,0.25);

    transform:
        translateY(25px)
        scale(0.96);

    transition:
        transform 0.35s ease;
}


.portfolio-modal.active
.portfolio-modal-box {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================
   MODAL IMAGE
========================================= */

.portfolio-modal-image {
    width: 100%;

    min-height: 430px;

    overflow: hidden;

    background:
        #eaf5f4;
}


.portfolio-modal-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}


/* =========================================
   MODAL CONTENT
========================================= */

.portfolio-modal-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    padding: 40px;
}


.portfolio-modal-category {
    color: #d0a342;

    font-size: 10px;

    font-weight: 800;
}


.portfolio-modal-content h2 {
    margin: 10px 0 15px;

    color: #1c4353;

    font-size: 28px;

    line-height: 1.5;
}


.portfolio-modal-content p {
    margin: 0;

    color: #718b94;

    font-size: 12px;

    line-height: 2.2;
}


/* =========================================
   TECHNOLOGIES
========================================= */

.portfolio-technologies {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}


.portfolio-tech {
    padding: 8px 12px;

    border-radius: 10px;

    color: #4c7480;

    background:
        #eff8f7;

    font-size: 9px;

    font-weight: 700;
}


/* =========================================
   MODAL BOTTOM
========================================= */

.portfolio-modal-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 30px;
}


.portfolio-modal-year {
    color: #9aadb4;

    font-size: 10px;

    font-weight: 700;
}


.portfolio-modal-button {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 13px 18px;

    border-radius: 13px;

    text-decoration: none;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #42a9d5,
            #48bf9b
        );

    font-size: 10px;

    font-weight: 800;
}


.portfolio-modal-button span {
    font-size: 17px;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.portfolio-modal-close {
    position: absolute;

    top: 15px;

    left: 15px;

    z-index: 5;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    color: #ffffff;

    background:
        rgba(20,65,75,0.55);

    backdrop-filter:
        blur(10px);

    font-size: 23px;

    line-height: 1;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .portfolio-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .portfolio-image {
        height: 230px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .portfolio-section {
        padding: 70px 0;
    }


    .portfolio-heading h2 {
        font-size: 29px;
    }


    .portfolio-heading p {
        font-size: 11px;
        line-height: 2;
    }


    /* FILTER */

    .portfolio-filters {
        padding-bottom: 5px;

        margin-bottom: 20px;
    }


    .portfolio-filter {
        padding:
            10px 16px;

        font-size: 10px;
    }


    /* HORIZONTAL PORTFOLIO */

    .portfolio-grid {
        display: flex;

        gap: 14px;

        overflow-x: auto;

        padding:
            5px 3px 20px;

        scroll-snap-type:
            x mandatory;

        scrollbar-width:
            none;
    }


    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }


    .portfolio-card {
        flex:
            0 0 82vw;

        max-width:
            330px;

        scroll-snap-align:
            start;

        border-radius:
            22px;
    }


    .portfolio-image {
        height:
            220px;
    }


    /* MODAL */

    .portfolio-modal {
        padding:
            12px;
    }


    .portfolio-modal-box {
        width:
            100%;

        max-height:
            92vh;

        overflow-y:
            auto;

        display:
            block;

        border-radius:
            23px;
    }


    .portfolio-modal-image {
        height:
            240px;

        min-height:
            240px;
    }


    .portfolio-modal-content {
        padding:
            25px 20px;
    }


    .portfolio-modal-content h2 {
        font-size:
            23px;
    }


    .portfolio-modal-bottom {
        margin-top:
            25px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .portfolio-card {
        flex-basis:
            86vw;
    }


    .portfolio-image {
        height:
            200px;
    }


    .portfolio-modal-content {
        padding:
            22px 17px;
    }

}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    position: relative;

    width: 100%;

    overflow: hidden;

    padding: 80px 0 25px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #123f51 0%,
            #16566a 45%,
            #126d63 100%
        );
}


/* نورهای پس‌زمینه */

.site-footer::before {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    top: -220px;
    right: -120px;

    border-radius: 50%;

    background:
        rgba(80,201,165,0.15);

    filter:
        blur(20px);

    pointer-events: none;
}


.site-footer::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    bottom: -220px;
    left: -120px;

    border-radius: 50%;

    background:
        rgba(63,169,217,0.13);

    filter:
        blur(20px);

    pointer-events: none;
}


/* =========================================
   CONTAINER
========================================= */

.footer-container {
    position: relative;

    z-index: 2;

    width:
        min(
            1250px,
            calc(100% - 30px)
        );

    margin:
        0 auto;
}


/* =========================================
   FOOTER TOP
========================================= */

.footer-top {
    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1fr
        1.2fr;

    gap: 50px;

    padding-bottom: 60px;
}


/* =========================================
   BRAND
========================================= */

.footer-logo {
    display: inline-block;

    color: #ffffff;

    text-decoration: none;

    font-size: 27px;

    font-weight: 900;

    letter-spacing: -1px;
}


.footer-description {
    max-width: 340px;

    margin:
        18px 0 0;

    color:
        rgba(255,255,255,0.68);

    font-size: 11px;

    line-height: 2.2;
}


/* =========================================
   SOCIAL
========================================= */

.footer-socials {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 25px;
}


.footer-social {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.14);

    border-radius: 12px;

    color: #ffffff;

    background:
        rgba(255,255,255,0.08);

    backdrop-filter:
        blur(12px);

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.footer-social:hover {
    transform:
        translateY(-4px);

    background:
        rgba(80,201,165,0.35);
}


/* =========================================
   COLUMNS
========================================= */

.footer-column h3 {
    margin:
        0 0 20px;

    color:
        #ffffff;

    font-size:
        13px;

    font-weight:
        800;
}


.footer-column ul {
    margin:
        0;

    padding:
        0;

    list-style:
        none;
}


.footer-column li {
    margin-bottom:
        12px;
}


.footer-column li a {
    color:
        rgba(255,255,255,0.62);

    text-decoration:
        none;

    font-size:
        10px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.footer-column li a:hover {
    color:
        #75d6b8;

    padding-right:
        5px;
}


/* =========================================
   CONTACT
========================================= */

.footer-contact > a {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    margin-bottom:
        14px;

    color:
        rgba(255,255,255,0.68);

    text-decoration:
        none;

    font-size:
        10px;

    transition:
        color 0.25s ease;
}


.footer-contact > a:hover {
    color:
        #ffffff;
}


.contact-icon {
    width:
        32px;

    height:
        32px;

    flex:
        0 0 32px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius:
        10px;

    color:
        #70d4b5;

    background:
        rgba(255,255,255,0.07);

    font-size:
        12px;
}


/* =========================================
   CTA
========================================= */

.footer-cta {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        30px;

    padding:
        28px 30px;

    border:
        1px solid
        rgba(255,255,255,0.13);

    border-radius:
        24px;

    background:
        rgba(255,255,255,0.07);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 15px 45px
        rgba(0,0,0,0.08);
}


.footer-cta > div > span {
    color:
        rgba(255,255,255,0.58);

    font-size:
        10px;
}


.footer-cta h2 {
    margin:
        7px 0 0;

    color:
        #ffffff;

    font-size:
        clamp(22px, 3vw, 30px);
}


.footer-cta h2 strong {
    color:
        #75d6b8;
}


/* =========================================
   CTA BUTTON
========================================= */

.footer-cta-button {
    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        14px 20px;

    border-radius:
        14px;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #42a9d5,
            #48bf9b
        );

    text-decoration:
        none;

    font-size:
        10px;

    font-weight:
        800;

    box-shadow:
        0 10px 25px
        rgba(63,169,217,0.18);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.footer-cta-button:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 15px 30px
        rgba(63,169,217,0.25);
}


.footer-cta-button span {
    font-size:
        17px;
}


/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        35px;

    padding-top:
        20px;

    border-top:
        1px solid
        rgba(255,255,255,0.10);
}


.footer-bottom p {
    margin:
        0;

    color:
        rgba(255,255,255,0.42);

    font-size:
        9px;
}


.footer-bottom-links {
    display:
        flex;

    gap:
        20px;
}


.footer-bottom-links a {
    color:
        rgba(255,255,255,0.45);

    text-decoration:
        none;

    font-size:
        9px;

    transition:
        color 0.25s ease;
}


.footer-bottom-links a:hover {
    color:
        #ffffff;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .footer-top {
        grid-template-columns:
            1.5fr
            1fr
            1fr;

        gap:
            35px;
    }


    .footer-contact {
        grid-column:
            2 / 4;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .site-footer {
        padding:
            65px 0 20px;
    }


    .footer-top {
        display:
            grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap:
            35px 20px;

        padding-bottom:
            40px;
    }


    .footer-brand {
        grid-column:
            1 / -1;
    }


    .footer-description {
        max-width:
            100%;
    }


    .footer-contact {
        grid-column:
            auto;
    }


    .footer-cta {
        display:
            block;

        padding:
            25px 20px;
    }


    .footer-cta-button {
        width:
            fit-content;

        margin-top:
            20px;
    }


    .footer-bottom {
        display:
            block;

        text-align:
            center;
    }


    .footer-bottom-links {
        justify-content:
            center;

        margin-top:
            12px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .footer-top {
        grid-template-columns:
            1fr;
    }


    .footer-brand,
    .footer-contact {
        grid-column:
            auto;
    }


    .footer-column h3 {
        margin-bottom:
            14px;
    }


    .footer-cta h2 {
        font-size:
            23px;
    }

}


/* =========================================================
   IRAN GOSTARESH
   GRAND LOTTERY SECTION
========================================================= */

:root {

    --lottery-blue: #58add8;
    --lottery-blue-light: #8bd5f2;

    --lottery-green: #58c9a2;
    --lottery-green-light: #91e5c3;

    --lottery-gold: #d8b45b;
    --lottery-gold-light: #f3da91;

    --lottery-white: #ffffff;

    --lottery-dark: #17363f;
    --lottery-muted: #789097;

    --lottery-bg: #f4fbfa;

    --lottery-glass:
        rgba(255, 255, 255, .70);

    --lottery-border:
        rgba(255, 255, 255, .90);

    --lottery-shadow:
        0 25px 70px rgba(29, 102, 117, .10);

}


/* =========================================================
   SECTION
========================================================= */

.lottery-section {

    position: relative;

    width: 100%;

    padding: 110px 0;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 8% 10%,
            rgba(88, 173, 216, .20),
            transparent 27%
        ),

        radial-gradient(
            circle at 92% 15%,
            rgba(88, 201, 162, .18),
            transparent 28%
        ),

        radial-gradient(
            circle at 50% 100%,
            rgba(216, 180, 91, .10),
            transparent 32%
        ),

        linear-gradient(
            180deg,
            #f9fdfc 0%,
            #edf8f6 100%
        );

}


/* Decorative background */

.lottery-section::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    left: -220px;
    top: 400px;

    background:
        radial-gradient(
            circle,
            rgba(88, 173, 216, .14),
            transparent 70%
        );

    pointer-events: none;

}


.lottery-section::after {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    right: -220px;
    bottom: 100px;

    background:
        radial-gradient(
            circle,
            rgba(88, 201, 162, .13),
            transparent 70%
        );

    pointer-events: none;

}


/* =========================================================
   CONTAINER
========================================================= */

.lottery-container {

    width: min(
        calc(100% - 40px),
        1200px
    );

    margin-inline: auto;

    position: relative;

    z-index: 2;

}


/* =========================================================
   TOP BADGE
========================================================= */

.lottery-top {

    display: flex;

    justify-content: center;

    margin-bottom: 22px;

}


.lottery-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 17px;

    border-radius: 50px;

    color: #987521;

    background:
        rgba(216, 180, 91, .13);

    border:
        1px solid rgba(216, 180, 91, .25);

    font-size: 12px;

    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(216, 180, 91, .07);

}


/* =========================================================
   HEADER
========================================================= */

.lottery-header {

    max-width: 760px;

    margin: 0 auto;

    text-align: center;

}


.lottery-small-title {

    display: block;

    margin-bottom: 12px;

    color:
        var(--lottery-blue);

    font-size: 14px;

    font-weight: 800;

}


.lottery-header h2 {

    margin: 0;

    color:
        var(--lottery-dark);

    font-size: clamp(
        34px,
        5vw,
        58px
    );

    line-height: 1.45;

    font-weight: 950;

}


.lottery-header h2 span {

    color:
        var(--lottery-green);

    position: relative;

    white-space: nowrap;

}


.lottery-header h2 span::after {

    content: "";

    position: absolute;

    height: 8px;

    right: 5%;

    left: 5%;

    bottom: -3px;

    border-radius: 20px;

    background:
        rgba(216, 180, 91, .35);

    z-index: -1;

}


.lottery-header p {

    max-width: 650px;

    margin: 18px auto 0;

    color:
        var(--lottery-muted);

    font-size: 15px;

    line-height: 2.2;

}


/* =========================================================
   COUNTDOWN
========================================================= */

.lottery-countdown {

    width: min(
        100%,
        720px
    );

    margin: 45px auto 60px;

    padding: 28px;

    text-align: center;

    background:
        rgba(255,255,255,.68);

    border:
        1px solid
        var(--lottery-border);

    border-radius: 30px;

    box-shadow:
        var(--lottery-shadow);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

}


.countdown-title {

    margin-bottom: 20px;

    color:
        var(--lottery-dark);

    font-size: 13px;

    font-weight: 800;

}


.countdown-boxes {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    direction: ltr;

}


.countdown-item {

    min-width: 110px;

    padding: 16px 12px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.95),
            rgba(239,249,248,.75)
        );

    border:
        1px solid
        rgba(255,255,255,.95);

    box-shadow:
        0 12px 30px
        rgba(29,102,117,.07);

}


.countdown-item strong {

    display: block;

    color:
        var(--lottery-dark);

    font-size: clamp(
        28px,
        5vw,
        42px
    );

    line-height: 1;

    font-weight: 950;

    font-variant-numeric:
        tabular-nums;

}


.countdown-item span {

    display: block;

    margin-top: 10px;

    color:
        var(--lottery-muted);

    font-size: 11px;

    font-weight: 700;

}


.countdown-separator {

    color:
        var(--lottery-gold);

    font-size: 25px;

    font-weight: 900;

}


.lottery-date {

    margin-top: 20px;

    color:
        var(--lottery-muted);

    font-size: 13px;

    font-weight: 700;

}


.lottery-date span:first-child {

    color:
        var(--lottery-gold);

}


.date-divider {

    margin-inline: 10px;

    color:
        rgba(120,144,151,.4);

}


/* =========================================================
   PRIZES
========================================================= */

.lottery-prizes {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

}


/* =========================================================
   PRIZE CARD
========================================================= */

.lottery-prize {

    position: relative;

    min-height: 430px;

    padding: 25px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    border-radius: 28px;

    background:
        rgba(255,255,255,.67);

    border:
        1px solid
        var(--lottery-border);

    box-shadow:
        0 20px 55px
        rgba(29,102,117,.08);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}


.lottery-prize:hover {

    transform:
        translateY(-9px);

    box-shadow:
        0 30px 70px
        rgba(29,102,117,.14);

}


/* =========================================================
   PRIZE GLOW
========================================================= */

.prize-glow {

    position: absolute;

    width: 180px;
    height: 180px;

    top: -80px;
    right: -70px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(216,180,91,.28),
            transparent 70%
        );

    pointer-events: none;

}


/* =========================================================
   RANK
========================================================= */

.prize-rank {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    align-self: flex-start;

    padding: 7px 12px;

    border-radius: 50px;

    color:
        var(--lottery-blue);

    background:
        rgba(88,173,216,.09);

    font-size: 11px;

    font-weight: 900;

}


.lottery-prize-first
.prize-rank {

    color:
        #a17a20;

    background:
        rgba(216,180,91,.15);

}


/* =========================================================
   PRIZE ICON
========================================================= */

.prize-icon {

    width: 78px;
    height: 78px;

    margin: 25px auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 23px;

    background:
        linear-gradient(
            135deg,
            rgba(88,173,216,.12),
            rgba(88,201,162,.12)
        );

    border:
        1px solid
        rgba(255,255,255,.9);

    font-size: 34px;

    box-shadow:
        0 12px 30px
        rgba(29,102,117,.07);

}


.lottery-prize-first
.prize-icon {

    background:
        linear-gradient(
            135deg,
            rgba(216,180,91,.20),
            rgba(243,218,145,.15)
        );

}


/* =========================================================
   NUMBER
========================================================= */

.prize-number {

    position: absolute;

    top: 22px;
    left: 22px;

    color:
        rgba(23,54,63,.08);

    font-size: 40px;

    font-weight: 950;

    line-height: 1;

}


/* =========================================================
   CONTENT
========================================================= */

.prize-content {

    text-align: center;

    flex: 1;

}


.prize-label {

    display: block;

    margin-bottom: 7px;

    color:
        var(--lottery-green);

    font-size: 11px;

    font-weight: 800;

}


.prize-content h3 {

    margin: 0;

    color:
        var(--lottery-dark);

    font-size: 20px;

    line-height: 1.7;

    font-weight: 900;

}


.prize-content p {

    margin: 12px 0 0;

    color:
        var(--lottery-muted);

    font-size: 12px;

    line-height: 2;

}


/* =========================================================
   PRIZE BOTTOM
========================================================= */

.prize-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 25px;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(23,54,63,.07);

}


.prize-bottom span {

    color:
        var(--lottery-muted);

    font-size: 10px;

}


.prize-bottom strong {

    color:
        var(--lottery-gold);

    font-size: 17px;

}


/* =========================================================
   FIRST PRIZE SPECIAL
========================================================= */

.lottery-prize-first {

    border-color:
        rgba(216,180,91,.30);

    box-shadow:
        0 25px 70px
        rgba(216,180,91,.12);

}


.lottery-prize-first::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    padding: 1px;

    background:
        linear-gradient(
            135deg,
            rgba(216,180,91,.5),
            transparent 50%,
            rgba(88,201,162,.25)
        );

    -webkit-mask:
        linear-gradient(#fff 0 0)
        content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:
        xor;

    mask-composite:
        exclude;

    pointer-events: none;

}


/* =========================================================
   CONDITIONS
========================================================= */

.lottery-conditions {

    margin-top: 60px;

    padding: 30px;

    border-radius: 30px;

    background:
        rgba(255,255,255,.64);

    border:
        1px solid
        var(--lottery-border);

    box-shadow:
        var(--lottery-shadow);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

}


.conditions-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;

}


.conditions-icon {

    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--lottery-green),
            var(--lottery-blue)
        );

    font-size: 21px;

    font-weight: 900;

    box-shadow:
        0 10px 25px
        rgba(88,201,162,.20);

}


.conditions-header > div:last-child span {

    color:
        var(--lottery-green);

    font-size: 11px;

    font-weight: 800;

}


.conditions-header h3 {

    margin: 4px 0 0;

    color:
        var(--lottery-dark);

    font-size: 20px;

    font-weight: 900;

}


.conditions-list {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

}


.condition-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 16px;

    border-radius: 17px;

    background:
        rgba(247,252,251,.75);

    border:
        1px solid
        rgba(255,255,255,.9);

}


.condition-check {

    width: 25px;
    height: 25px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: white;

    background:
        var(--lottery-green);

    font-size: 12px;

    font-weight: 900;

}


.condition-item p {

    margin: 0;

    color:
        var(--lottery-muted);

    font-size: 12px;

    line-height: 2;

}


/* =========================================================
   CTA
========================================================= */

.lottery-cta {

    margin-top: 30px;

    padding: 35px 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(88,173,216,.13),
            rgba(88,201,162,.13)
        );

    border:
        1px solid
        rgba(255,255,255,.9);

}


.lottery-cta-text > span {

    color:
        var(--lottery-blue);

    font-size: 12px;

    font-weight: 800;

}


.lottery-cta-text h3 {

    margin: 5px 0;

    color:
        var(--lottery-dark);

    font-size: 28px;

    font-weight: 950;

}


.lottery-cta-text h3 strong {

    color:
        var(--lottery-gold);

}


.lottery-cta-text p {

    margin: 0;

    color:
        var(--lottery-muted);

    font-size: 12px;

}


.lottery-register-btn {

    min-height: 58px;

    padding: 0 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    flex-shrink: 0;

    border: none;

    border-radius: 17px;

    cursor: pointer;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--lottery-blue),
            var(--lottery-green)
        );

    box-shadow:
        0 12px 30px
        rgba(55,150,164,.20);

    font-family: inherit;

    font-size: 13px;

    font-weight: 900;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.lottery-register-btn:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 18px 40px
        rgba(55,150,164,.28);

}


.register-icon {

    font-size: 19px;

}


.register-arrow {

    font-size: 18px;

}


/* =========================================================
   MODAL
========================================================= */

.lottery-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.lottery-modal.active {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

}


/* =========================================================
   MODAL OVERLAY
========================================================= */

.lottery-modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(12,36,43,.55);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

}


/* =========================================================
   MODAL BOX
========================================================= */

.lottery-modal-box {

    width: min(
        100%,
        510px
    );

    max-height: 90vh;

    overflow-y: auto;

    position: relative;

    z-index: 2;

    padding: 35px;

    border-radius: 30px;

    background:
        rgba(255,255,255,.93);

    border:
        1px solid
        rgba(255,255,255,.95);

    box-shadow:
        0 35px 100px
        rgba(8,40,48,.25);

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    transform:
        translateY(20px)
        scale(.96);

    transition:
        transform .3s ease;

}


.lottery-modal.active
.lottery-modal-box {

    transform:
        translateY(0)
        scale(1);

}


/* =========================================================
   MODAL CLOSE
========================================================= */

.lottery-modal-close {

    position: absolute;

    top: 15px;
    left: 15px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    color:
        var(--lottery-muted);

    background:
        rgba(23,54,63,.06);

    font-size: 24px;

    line-height: 1;

    transition:
        .25s ease;

}


.lottery-modal-close:hover {

    color: white;

    background:
        var(--lottery-blue);

}


/* =========================================================
   MODAL HEADER
========================================================= */

.lottery-modal-header {

    text-align: center;

    margin-bottom: 25px;

}


.modal-lottery-icon {

    width: 70px;
    height: 70px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(88,173,216,.13),
            rgba(88,201,162,.13)
        );

    font-size: 30px;

}


.lottery-modal-header > span {

    color:
        var(--lottery-green);

    font-size: 11px;

    font-weight: 800;

}


.lottery-modal-header h2 {

    margin: 6px 0;

    color:
        var(--lottery-dark);

    font-size: 25px;

    font-weight: 950;

}


.lottery-modal-header p {

    margin: 0;

    color:
        var(--lottery-muted);

    font-size: 12px;

    line-height: 1.9;

}


/* =========================================================
   FORM
========================================================= */

.lottery-form {

    display: flex;

    flex-direction: column;

    gap: 16px;

}


.lottery-field {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.lottery-field label {

    color:
        var(--lottery-dark);

    font-size: 12px;

    font-weight: 800;

}


.lottery-field input,
.lottery-field select {

    width: 100%;

    height: 50px;

    padding: 0 14px;

    outline: none;

    border:
        1px solid
        rgba(23,54,63,.10);

    border-radius: 14px;

    color:
        var(--lottery-dark);

    background:
        rgba(247,252,251,.8);

    font-family: inherit;

    font-size: 13px;

    transition:
        .25s ease;

}


.lottery-field input:focus,
.lottery-field select:focus {

    border-color:
        var(--lottery-blue);

    background:
        white;

    box-shadow:
        0 0 0 4px
        rgba(88,173,216,.09);

}


.lottery-field input::placeholder {

    color:
        #a7b4b8;

}


/* =========================================================
   TERMS
========================================================= */

.lottery-terms {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    cursor: pointer;

    color:
        var(--lottery-muted);

    font-size: 11px;

    line-height: 1.8;

}


.lottery-terms input {

    margin-top: 3px;

    accent-color:
        var(--lottery-green);

}


/* =========================================================
   SUBMIT
========================================================= */

.lottery-submit {

    width: 100%;

    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    border: none;

    border-radius: 15px;

    cursor: pointer;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--lottery-blue),
            var(--lottery-green)
        );

    box-shadow:
        0 12px 30px
        rgba(55,150,164,.18);

    font-family: inherit;

    font-size: 13px;

    font-weight: 900;

    transition:
        .3s ease;

}


.lottery-submit:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 35px
        rgba(55,150,164,.25);

}


/* =========================================================
   SUCCESS
========================================================= */

.lottery-success {

    text-align: center;

}


.success-icon {

    width: 75px;
    height: 75px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--lottery-green),
            var(--lottery-blue)
        );

    font-size: 30px;

    box-shadow:
        0 15px 35px
        rgba(88,201,162,.22);

}


.lottery-success h3 {

    margin: 0;

    color:
        var(--lottery-dark);

    font-size: 24px;

    font-weight: 950;

}


.lottery-success > p {

    margin: 12px auto 20px;

    color:
        var(--lottery-muted);

    font-size: 12px;

    line-height: 2;

}


/* =========================================================
   TRACKING CODE
========================================================= */

.lottery-code-box {

    padding: 16px;

    margin-bottom: 20px;

    border-radius: 16px;

    background:
        rgba(88,173,216,.08);

    border:
        1px dashed
        rgba(88,173,216,.35);

}


.lottery-code-box span {

    display: block;

    margin-bottom: 6px;

    color:
        var(--lottery-muted);

    font-size: 10px;

}


.lottery-code-box strong {

    direction: ltr;

    color:
        var(--lottery-blue);

    font-size: 21px;

    letter-spacing: 2px;

}


.lottery-success-close {

    width: 100%;

    height: 48px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    color: white;

    background:
        var(--lottery-dark);

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

}


/* =========================================================
   HIDDEN
========================================================= */

[hidden] {

    display: none !important;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .lottery-prizes {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .lottery-prize {

        min-height: 390px;

    }

}


@media (max-width: 750px) {

    .lottery-section {

        padding:
            80px 0;

    }


    .lottery-container {

        width:
            min(
                calc(100% - 28px),
                600px
            );

    }


    .lottery-header h2 {

        font-size: 36px;

    }


    .countdown-item {

        min-width: 85px;

    }


    .countdown-boxes {

        gap: 6px;

    }


    .conditions-list {

        grid-template-columns: 1fr;

    }


    .lottery-cta {

        flex-direction: column;

        align-items: stretch;

        text-align: center;

        padding: 30px 22px;

    }


    .lottery-register-btn {

        width: 100%;

    }

}


@media (max-width: 560px) {

    .lottery-header h2 {

        font-size: 30px;

    }


    .lottery-header p {

        font-size: 13px;

    }


    .lottery-countdown {

        padding: 20px 10px;

        border-radius: 24px;

    }


    .countdown-item {

        min-width: 63px;

        padding: 13px 7px;

        border-radius: 15px;

    }


    .countdown-item strong {

        font-size: 25px;

    }


    .countdown-item span {

        font-size: 9px;

    }


    .countdown-separator {

        font-size: 18px;

    }


    .lottery-date {

        font-size: 11px;

    }


    .lottery-prizes {

        grid-template-columns: 1fr;

    }


    .lottery-prize {

        min-height: 360px;

    }


    .lottery-prize:hover {

        transform:
            translateY(-4px);

    }


    .lottery-conditions {

        padding: 20px;

        border-radius: 24px;

    }


    .conditions-header h3 {

        font-size: 17px;

    }


    .lottery-modal {

        padding: 12px;

    }


    .lottery-modal-box {

        padding: 28px 20px;

        border-radius: 25px;

    }

}


@media (max-width: 390px) {

    .countdown-item {

        min-width: 56px;

    }


    .countdown-item strong {

        font-size: 21px;

    }


    .countdown-separator {

        font-size: 15px;

    }


    .lottery-date {

        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 5px;

    }


    .date-divider {

        display: none;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lottery-section *,
    .lottery-section *::before,
    .lottery-section *::after {

        animation: none !important;

        transition: none !important;

    }

}