/* ================= RESET & ROOT ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ice1: #e0f7ff;
    --ice2: #b3ecff;
    --ice3: #5dd5f8;
    --ice4: #0ea5e9;
    --ice5: #0369a1;
    --ice6: #082f49;
    --ice7: #041a2e;
    --glass-bg: rgba(14, 165, 233, 0.08);
    --glass-border: rgba(125, 211, 252, 0.25);
    --glass-shine: rgba(255, 255, 255, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: #041a2e;
    color: var(--ice1);
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(3, 105, 161, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 70%, rgba(8, 47, 73, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #041a2e 0%, #062236 40%, #041a2e 100%);
    background-attachment: fixed;
}

/* ================= ICE CRACK TEXTURE ================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%235dd5f8' stroke-opacity='0.06' fill='none'%3E%3Cpath d='M400 0 L380 120 L300 200 L100 250'/%3E%3Cpath d='M400 0 L420 80 L500 160 L700 200'/%3E%3Cpath d='M300 200 L250 350 L180 500 L50 600'/%3E%3Cpath d='M500 160 L550 300 L620 450 L750 550'/%3E%3Cpath d='M250 350 L350 380 L400 500 L320 700'/%3E%3Cpath d='M550 300 L450 380 L400 500 L480 700'/%3E%3Cpath d='M180 500 L280 520 L320 700'/%3E%3Cpath d='M620 450 L520 510 L480 700'/%3E%3Cpath d='M100 250 L200 280 L250 350'/%3E%3Cpath d='M700 200 L600 240 L550 300'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23b3ecff' stroke-opacity='0.04' fill='none'%3E%3Cpath d='M200 50 L190 130 L150 180 L50 220'/%3E%3Cpath d='M200 50 L210 110 L260 170 L350 200'/%3E%3Cpath d='M150 180 L130 280 L80 380'/%3E%3Cpath d='M260 170 L280 270 L330 370'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%, 50% 50%;
    opacity: 1;
}

/* ================= FLOATING ICE PARTICLES ================= */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle 2px at 15% 20%, rgba(125, 211, 252, 0.6) 0%, transparent 100%),
        radial-gradient(circle 1.5px at 85% 15%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(circle 2px at 70% 40%, rgba(125, 211, 252, 0.4) 0%, transparent 100%),
        radial-gradient(circle 1px at 25% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(circle 2px at 90% 75%, rgba(125, 211, 252, 0.5) 0%, transparent 100%),
        radial-gradient(circle 1.5px at 40% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(circle 1px at 60% 10%, rgba(125, 211, 252, 0.5) 0%, transparent 100%),
        radial-gradient(circle 2px at 5% 90%, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    animation: sparkle 6s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ================= CLOUD MIST LAYERS ================= */
.mist-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.mist {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: drift linear infinite;
    opacity: 0.18;
}

.mist-1 {
    width: 700px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(125, 211, 252, 0.5), transparent 70%);
    top: -80px;
    left: -200px;
    animation-duration: 30s;
}

.mist-2 {
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(224, 247, 255, 0.3), transparent 70%);
    top: 40px;
    right: -100px;
    animation-duration: 22s;
    animation-delay: -8s;
}

.mist-3 {
    width: 800px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.3), transparent 70%);
    top: 80px;
    left: -300px;
    animation-duration: 35s;
    animation-delay: -15s;
    opacity: 0.12;
}

.mist-4 {
    width: 400px;
    height: 180px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.2), transparent 70%);
    bottom: 20%;
    right: -100px;
    animation-duration: 28s;
    animation-delay: -5s;
    opacity: 0.15;
}

@keyframes drift {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(120px) translateY(20px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

/* ================= SCROLL TO TOP ================= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(93, 213, 248, 0.15));
    border: 1px solid rgba(125, 211, 252, 0.4);
    backdrop-filter: blur(20px);
    color: var(--ice2);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(93, 213, 248, 0.15);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 213, 248, 0.7);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(93, 213, 248, 0.3);
}

/* ================= WRAPPER ================= */
.wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ================= NAVIGATION ================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(4, 26, 46, 0.85), rgba(4, 26, 46, 0.5));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(125, 211, 252, 0.1);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(4, 26, 46, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(93, 213, 248, 0.1);
}

/* لوگوی اصلی */
.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(93, 213, 248, 0.4));
    transition: all 0.3s;
}

.nav-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(93, 213, 248, 0.6));
}

/* کادر کروی دور منو */
.nav-links {
    display: flex;
    gap: 6px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.15);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* هر دکمه منو */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    background: transparent;
}

.nav-link:hover {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 20px rgba(93, 213, 248, 0.2);
    transform: translateY(-3px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(93, 213, 248, 0.15));
    border: 1px solid rgba(93, 213, 248, 0.4);
    box-shadow: 0 0 25px rgba(93, 213, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* آیکون داخل دکمه */
.nav-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0.8);
}

.nav-link:hover .nav-icon-img {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.nav-link.active .nav-icon-img {
    filter: brightness(1.3);
}

/* تولتیپ (راهنما) */
.nav-link::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4, 26, 46, 0.9);
    color: var(--ice2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.nav-link:hover::after {
    opacity: 1;
}

/* دکمه منوی موبایل */
.nav-mobile-toggle {
    display: none;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 14px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-mobile-toggle:hover {
    background: rgba(14, 165, 233, 0.3);
    border-color: rgba(125, 211, 252, 0.5);
}

.nav-mobile-toggle .nav-icon-img {
    width: 22px;
    height: 22px;
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.3);
    font-size: 13px;
    color: var(--ice3);
    margin-bottom: 28px;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    animation: fadeDown 0.8s ease;
}

.hero-badge::before {
    content: "☁️";
    margin-left: 4px;
}

.hero-name {
    font-size: clamp(42px, 8vw, 88px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #b3ecff 30%, #5dd5f8 60%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(93, 213, 248, 0.4));
    animation: fadeDown 0.9s ease 0.1s both;
}

.hero-title {
    font-size: clamp(16px, 3vw, 24px);
    color: rgba(179, 236, 255, 0.7);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 40px;
    animation: fadeDown 0.9s ease 0.2s both;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeDown 0.9s ease 0.3s both;
}

.hero-scroll {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(125, 211, 252, 0.4);
    font-size: 12px;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll span {
    font-size: 30px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ================= BUTTONS ================= */
.btn-ice {
    padding: 14px 36px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0.5px;
    border: 1px solid rgba(93, 213, 248, 0.5);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(93, 213, 248, 0.1));
    color: var(--ice2);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(93, 213, 248, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-ice::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: 0.3s;
}

.btn-ice:hover {
    transform: translateY(-3px);
    border-color: rgba(93, 213, 248, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(93, 213, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-ice:hover::before {
    opacity: 1;
}

.btn-ice.primary {
    background: linear-gradient(135deg, rgba(93, 213, 248, 0.4), rgba(14, 165, 233, 0.25));
    border-color: rgba(93, 213, 248, 0.7);
}

/* ================= CAR SVG ================= */
.car-wrap {
    margin: 30px 0 20px;
    position: relative;
    animation: carFloat 4s ease-in-out infinite, fadeDown 1s ease 0.2s both;
    filter: drop-shadow(0 20px 60px rgba(93, 213, 248, 0.3)) drop-shadow(0 0 80px rgba(14, 165, 233, 0.2));
}

@keyframes carFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(0.3deg);
    }
}

.car-shadow {
    width: 320px;
    height: 20px;
    margin: 0 auto;
    background: radial-gradient(ellipse, rgba(93, 213, 248, 0.25), transparent 70%);
    border-radius: 50%;
    animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: scaleX(1);
        opacity: 0.6;
    }

    50% {
        transform: scaleX(0.8);
        opacity: 0.3;
    }
}

/* ================= SECTIONS ================= */
.section {
    padding: 80px 0 40px;
}

.section-label {
    text-align: center;
    margin-bottom: 60px;
}

.section-label h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #b3ecff, #5dd5f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.section-label p {
    color: rgba(179, 236, 255, 0.5);
    font-size: 14px;
    letter-spacing: 2px;
}

.ice-line {
    width: 80px;
    height: 2px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, #5dd5f8, transparent);
    position: relative;
}

.ice-line::after {
    content: "☁️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    background: #041a2e;
    padding: 0 8px;
    color: #5dd5f8;
}

/* ================= GLASS CARD ================= */
.glass {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(93, 213, 248, 0.04) 100%);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), rgba(93, 213, 248, 0.6), rgba(255, 255, 255, 0.4), transparent);
}

.glass::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.glass:hover {
    transform: translateY(-6px);
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(93, 213, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ================= STATS ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 32px 24px;
    text-align: center;
}

.stat-num {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #5dd5f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: rgba(179, 236, 255, 0.6);
    font-size: 13px;
    letter-spacing: 1px;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}



/* ================= PROJECTS ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.proj-card {
    padding: 28px;
}

.proj-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 11px;
    letter-spacing: 1px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(93, 213, 248, 0.3);
    color: var(--ice3);
    margin-bottom: 16px;
}

.proj-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ice2);
    margin-bottom: 10px;
}

.proj-desc {
    font-size: 13px;
    color: rgba(179, 236, 255, 0.55);
    line-height: 1.9;
    margin-bottom: 20px;
}

.proj-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(125, 211, 252, 0.1);
}

.proj-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    background: rgba(93, 213, 248, 0.08);
    border: 1px solid rgba(93, 213, 248, 0.2);
    color: rgba(179, 236, 255, 0.7);
}

.proj-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(93, 213, 248, 0.3);
    color: var(--ice3);
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.proj-arrow:hover {
    background: rgba(14, 165, 233, 0.4);
    transform: scale(1.1) rotate(-45deg);
}

/* ================= TIMELINE ================= */
.timeline-card {
    padding: 36px 40px;
}

.timeline {
    position: relative;
    padding-right: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    right: 16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(93, 213, 248, 0.4), transparent);
}

.tl-item {
    position: relative;
    padding: 0 0 36px 0;
}

.tl-dot {
    position: absolute;
    right: -33px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5dd5f8, #0ea5e9);
    box-shadow: 0 0 0 4px rgba(93, 213, 248, 0.15), 0 0 20px rgba(93, 213, 248, 0.4);
}

.tl-year {
    font-size: 12px;
    color: var(--ice4);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.tl-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ice2);
    margin-bottom: 4px;
}

.tl-desc {
    font-size: 13px;
    color: rgba(179, 236, 255, 0.5);
    line-height: 1.8;
}



/* ================= ANIMATIONS ================= */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ================= FOOTER ================= */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(125, 211, 252, 0.08);
    color: rgba(179, 236, 255, 0.25);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ================= RESPONSIVE - MOBILE ================= */
@media (max-width: 768px) {

    /* ===== NAV ===== */
    .nav {
        padding: 10px 16px;
    }

    .nav-logo-img {
        height: 32px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 75px;
        right: 12px;
        left: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        border-radius: 24px;
        background: rgba(4, 26, 46, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid rgba(125, 211, 252, 0.2);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(93, 213, 248, 0.1);
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 52px;
        height: 52px;
    }

    .nav-icon-img {
        width: 26px;
        height: 26px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    /* ===== HERO ===== */
    .hero {
        min-height: 90vh;
        padding: 100px 16px 40px;
    }

    .hero-name {
        font-size: 36px;
    }

    .hero-title {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .hero-cta-row {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-ice {
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 14px;
    }

    .hero-scroll {
        bottom: -25px;
    }

    /* ===== CAR IMAGE ===== */
    .car-wrap {
        margin: 20px 0 15px;
    }

    .car-wrap img,
    .car-wrap svg {
        width: 100% !important;
        max-width: 340px !important;
        height: auto !important;
    }

    .car-shadow {
        width: 240px;
    }

    /* ===== STATS ===== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 20px 14px;
    }

    .stat-num {
        font-size: 36px;
    }

    .stat-icon {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* ===== SECTIONS ===== */
    .section {
        padding: 50px 0 30px;
    }

    .section-label {
        margin-bottom: 35px;
    }

    .section-label h2 {
        font-size: 26px;
    }

    .section-label p {
        font-size: 12px;
        letter-spacing: 1px;
    }

    /* ===== FLIP CARDS ===== */
    .cars-flip-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 4px;
    }

    .flip-card {
        height: 520px;
    }

    .car-placeholder {
        font-size: 60px;
    }

    .car-placeholder.tuned {
        font-size: 68px;
    }

    .flip-car-name {
        font-size: 16px;
    }

    .spec-row {
        font-size: 11px;
    }

    .flip-mod-list span {
        font-size: 9px;
    }

    /* ===== PROJECTS ===== */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 4px;
    }

    .proj-card {
        padding: 22px 18px;
    }

    .proj-title {
        font-size: 18px;
    }

    .proj-desc {
        font-size: 12px;
    }

    /* ===== TIMELINE ===== */
    .timeline-card {
        padding: 20px 16px;
    }

    .timeline {
        padding-right: 30px;
    }

    .timeline::before {
        right: 10px;
    }

    .tl-dot {
        right: -22px;
        width: 14px;
        height: 14px;
    }

    .tl-year {
        font-size: 11px;
    }

    .tl-title {
        font-size: 15px;
    }

    .tl-desc {
        font-size: 12px;
    }


    /* ===== SHOP ===== */
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 4px;
    }

    .shop-card {
        padding: 20px 14px;
    }

    .shop-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .shop-title {
        font-size: 15px;
    }

    .shop-desc {
        font-size: 11px;
    }

    .shop-price {
        font-size: 13px;
    }

    .shop-btn {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }

    .shop-footer {
        flex-direction: column;
        gap: 10px;
    }

    /* ===== CHAT PREVIEW ===== */
    .chat-preview-card {
        padding: 20px 16px;
        margin: 0 4px;
    }

    .chat-preview-messages {
        max-height: 150px;
    }

    .chat-msg {
        font-size: 11px;
    }

    .chat-preview-input {
        flex-direction: column;
    }

    .chat-preview-input input {
        padding: 12px;
    }

    .chat-preview-cta p {
        font-size: 12px;
    }

    /* ===== SCROLL TOP ===== */
    .scroll-top {
        bottom: 20px;
        left: 16px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    /* ===== FOOTER ===== */
    .footer {
        padding: 24px 16px;
        font-size: 11px;
    }
}

/* ================= RESPONSIVE - SMALL PHONES ================= */
@media (max-width: 400px) {
    .hero-name {
        font-size: 28px;
    }

    .hero-title {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-num {
        font-size: 28px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 480px;
    }

    .car-placeholder {
        font-size: 50px;
    }

    .car-placeholder.tuned {
        font-size: 56px;
    }
}

/* ================= FLIP CARDS ================= */
.cars-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    perspective: 2000px;
}

.flip-card {
    height: 600px;
    perspective: 1000px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(93, 213, 248, 0.06));
    border: 1px solid rgba(125, 211, 252, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(93, 213, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(93, 213, 248, 0.12));
    border-color: rgba(93, 213, 248, 0.4);
}

/* خط نورانی بالای کارت */
.flip-card-front::before,
.flip-card-back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), rgba(93, 213, 248, 0.6), rgba(255, 255, 255, 0.4), transparent);
    z-index: 2;
}

/* Badge */
.flip-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.flip-badge.before {
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.flip-badge.after {
    background: rgba(93, 213, 248, 0.25);
    border: 1px solid rgba(93, 213, 248, 0.5);
    color: #5dd5f8;
    box-shadow: 0 0 15px rgba(93, 213, 248, 0.3);
}

/* Image Area */
.flip-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(93, 213, 248, 0.03));
    border-bottom: 1px solid rgba(125, 211, 252, 0.15);
    position: relative;
    overflow: hidden;
}

.flip-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(93, 213, 248, 0.1) 0%, transparent 70%);
}

.car-placeholder {
    font-size: 80px;
    filter: drop-shadow(0 10px 20px rgba(93, 213, 248, 0.3));
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.car-placeholder.tuned {
    font-size: 90px;
    filter: drop-shadow(0 10px 30px rgba(93, 213, 248, 0.5)) drop-shadow(0 0 20px rgba(239, 68, 68, 0.3));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 10px 30px rgba(93, 213, 248, 0.5));
    }

    50% {
        filter: drop-shadow(0 10px 40px rgba(93, 213, 248, 0.8)) drop-shadow(0 0 30px rgba(239, 68, 68, 0.4));
    }
}

/* Info Area */
.flip-info {
    padding: 20px;
}

.flip-car-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ice2);
    margin-bottom: 16px;
    text-align: center;
}

.flip-car-name.tuned {
    color: #5dd5f8;
    text-shadow: 0 0 15px rgba(93, 213, 248, 0.4);
}

.flip-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(125, 211, 252, 0.08);
}

.spec-row span:first-child {
    color: rgba(179, 236, 255, 0.5);
}

.spec-row span:last-child {
    color: var(--ice2);
    font-weight: 600;
}

.tuned-val {
    color: #5dd5f8 !important;
    text-shadow: 0 0 10px rgba(93, 213, 248, 0.3);
}

.status-badge {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
}

.status-badge.stock {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.status-badge.tuned {
    background: rgba(93, 213, 248, 0.2);
    color: #5dd5f8;
    box-shadow: 0 0 10px rgba(93, 213, 248, 0.2);
}

/* Mod List */
.flip-mod-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(125, 211, 252, 0.15);
}

.flip-mod-list span {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(93, 213, 248, 0.12);
    border: 1px solid rgba(93, 213, 248, 0.25);
    color: #7dd3fc;
}

/* Flip Hint */
.flip-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(179, 236, 255, 0.3);
    letter-spacing: 1px;
    animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cars-flip-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 560px;
    }
}

/* ================= CONTACT ================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
}

.contact-card:hover .contact-icon-img {
    transform: scale(1.1);
}

/* آیکون */
.contact-icon-img {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.contact-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--ice3);
    margin-bottom: 4px;
}

.contact-val {
    font-size: 13px;
    color: rgba(179, 236, 255, 0.5);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 4px;
    }

    .contact-card {
        padding: 24px 14px;
    }

    .contact-icon-img {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
    }

    .contact-label {
        font-size: 13px;
    }

    .contact-val {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .contact-grid {
        gap: 10px;
    }

    .contact-card {
        padding: 18px 10px;
    }

    .contact-icon-img {
        width: 28px;
        height: 28px;
    }
}

/* ================= PARTS SHOP ================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.shop-card {
    padding: 28px 24px;
    text-align: center;
    position: relative;
}

.shop-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.shop-badge.hot {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.shop-badge.new {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.shop-badge.sale {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fde68a;
}

.shop-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px rgba(93, 213, 248, 0.3));
}

.shop-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ice2);
    margin-bottom: 8px;
}

.shop-desc {
    font-size: 12px;
    color: rgba(179, 236, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.8;
}

.shop-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 11px;
    color: rgba(179, 236, 255, 0.4);
}

.shop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(125, 211, 252, 0.1);
}

.shop-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--ice3);
    text-shadow: 0 0 10px rgba(93, 213, 248, 0.3);
}

.shop-btn {
    padding: 8px 18px !important;
    font-size: 12px !important;
}

/* ================= CHAT PREVIEW LAYOUT ================= */
.chat-preview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

/* عکس سمت راست */
.chat-preview-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 350px;
    padding: 0;
}

.chat-side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(4, 26, 46, 0.9));
    color: var(--ice2);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    border-radius: 0 0 24px 24px;
}

/* چت سمت چپ */
.chat-preview-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.chat-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(125, 211, 252, 0.15);
    font-size: 14px;
    color: var(--ice2);
    flex-shrink: 0;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-preview-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 12px;
}

.msg-user {
    color: var(--ice3);
    font-weight: 600;
    white-space: nowrap;
}

.msg-text {
    color: rgba(179, 236, 255, 0.7);
    flex: 1;
}

.msg-time {
    color: rgba(179, 236, 255, 0.2);
    font-size: 10px;
    white-space: nowrap;
}

.chat-preview-input {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.chat-preview-input input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    background: rgba(14, 165, 233, 0.1);
    color: var(--ice2);
    font-size: 13px;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
}

.chat-preview-input input:focus {
    border-color: var(--ice3);
    box-shadow: 0 0 0 2px rgba(93, 213, 248, 0.2);
}

.chat-preview-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(125, 211, 252, 0.15);
    flex-shrink: 0;
}

.chat-preview-cta p {
    color: rgba(179, 236, 255, 0.4);
    font-size: 13px;
    margin-bottom: 12px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .chat-preview-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 4px;
    }

    .chat-preview-image {
        min-height: 250px;
        order: -1;
    }

    .image-overlay-text {
        font-size: 16px;
        padding: 16px;
    }

    .chat-preview-card {
        padding: 20px 16px;
    }

    .chat-preview-messages {
        max-height: 180px;
    }
}

/* ================= AUTH CONTAINER ================= */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    position: relative;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo-text {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #b3ecff, #5dd5f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.auth-logo-sub {
    font-size: 12px;
    color: rgba(179, 236, 255, 0.4);
    letter-spacing: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form.hidden {
    display: none;
}

.auth-input-group {
    position: relative;
}

.auth-input-group label {
    display: block;
    font-size: 12px;
    color: rgba(179, 236, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    background: rgba(14, 165, 233, 0.08);
    color: var(--ice2);
    font-size: 14px;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.auth-input:focus {
    border-color: var(--ice3);
    box-shadow: 0 0 0 3px rgba(93, 213, 248, 0.15);
    background: rgba(14, 165, 233, 0.15);
}

.auth-input::placeholder {
    color: rgba(179, 236, 255, 0.25);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    border: 1px solid rgba(93, 213, 248, 0.5);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(93, 213, 248, 0.15));
    color: #fff;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
    margin-top: 8px;
    letter-spacing: 1px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 213, 248, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(93, 213, 248, 0.25);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), rgba(93, 213, 248, 0.25));
}

.auth-link {
    text-align: center;
    margin-top: 16px;
}

.auth-link a {
    color: var(--ice3);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.auth-link a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(93, 213, 248, 0.5);
}

.auth-link p {
    color: rgba(179, 236, 255, 0.5);
    font-size: 13px;
}

/* ================= DISPLAY USERNAME ================= */
.display-username {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 30px;
    color: var(--ice2);
    font-size: 14px;
    font-weight: 600;
    cursor: default;
}

.admin-badge {
    font-size: 16px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 3px gold);
    }

    50% {
        filter: drop-shadow(0 0 8px gold);
    }
}

/* ================= TOAST ================= */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(30px);
    opacity: 0;
    transition: all 0.4s;
    pointer-events: none;
    border: 1px solid;
}

.toast.show {
    opacity: 1;
    top: 30px;
}

.toast-success {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.toast-error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.toast-info {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(93, 213, 248, 0.4);
    color: var(--ice3);
}

/* ================= LOGOUT BUTTON ================= */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: 0.3s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    position: relative;
    margin: 20px;
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.3);
    background: rgba(14, 165, 233, 0.15);
    color: var(--ice2);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #fca5a5;
}

/* ================= CUSTOM SCROLLBAR ================= */
/* حذف اسکرول‌بار پیش‌فرض */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* اسکرول‌بار برای chat-messages (بمونه) */
.chat-messages::-webkit-scrollbar,
.chat-preview-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track,
.chat-preview-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.chat-preview-messages::-webkit-scrollbar-thumb {
    background: rgba(93, 213, 248, 0.3);
    border-radius: 2px;
}

/* ================= SCROLL CAR (IMPALA) ================= */
.scroll-car {
    position: fixed;
    right: 8px;
    top: 10%;
    z-index: 999;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(93, 213, 248, 0.5));
    opacity: 0.7;
    transition: top 0.3s ease-out;
}

.scroll-car img {
    width: 50px;
    height: auto;
    display: block;
}

/* مخفی روی موبایل - ریزتر */
@media (max-width: 768px) {
    .scroll-car {
        right: 3px;
    }

    .scroll-car img {
        width: 28px;
    }
}

/* ================= HERO CAR IMAGE ANIMATION ================= */
.car-wrap .protected-image {
    animation: carBreathing 3s ease-in-out infinite, carGlow 4s ease-in-out infinite;
    transition: transform 0.5s ease;
}

@keyframes carBreathing {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 20px 60px rgba(93, 213, 248, 0.3));
    }

    50% {
        transform: scale(1.03);
        filter: brightness(1.1) drop-shadow(0 25px 70px rgba(93, 213, 248, 0.5));
    }
}

@keyframes carGlow {

    0%,
    100% {
        filter: drop-shadow(0 20px 60px rgba(93, 213, 248, 0.3)) drop-shadow(0 0 80px rgba(14, 165, 233, 0.2));
    }

    50% {
        filter: drop-shadow(0 25px 70px rgba(93, 213, 248, 0.5)) drop-shadow(0 0 100px rgba(14, 165, 233, 0.4));
    }
}

.car-wrap .protected-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 30px 80px rgba(93, 213, 248, 0.6)) drop-shadow(0 0 120px rgba(14, 165, 233, 0.5)) !important;
}

/* ================= CHAT SIDE IMAGE ANIMATION ================= */
.chat-side-image {
    animation: chatImageFloat 5s ease-in-out infinite;
    transition: transform 0.5s ease;
}

@keyframes chatImageFloat {

    0%,
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(1) saturate(1);
    }

    25% {
        transform: scale(1.02) translateY(-5px);
        filter: brightness(1.05) saturate(1.1);
    }

    50% {
        transform: scale(1.01) translateY(-3px);
        filter: brightness(1.08) saturate(1.15);
    }

    75% {
        transform: scale(1.03) translateY(-8px);
        filter: brightness(1.03) saturate(1.05);
    }
}

.chat-side-image:hover {
    transform: scale(1.04) !important;
    filter: brightness(1.15) saturate(1.2) drop-shadow(0 0 30px rgba(93, 213, 248, 0.4)) !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    @keyframes carBreathing {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.02);
        }
    }

    @keyframes chatImageFloat {

        0%,
        100% {
            transform: scale(1) translateY(0);
        }

        50% {
            transform: scale(1.02) translateY(-3px);
        }
    }
}

/* ================= HERO CAR IMAGE ================= */
.car-wrap .protected-image {
    animation: carBreathing 8s ease-in-out infinite;
    transition: none !important;
    pointer-events: none;
}

.car-wrap .protected-image:hover {
    transform: none !important;
    filter: none !important;
}

@keyframes carBreathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ================= CHAT SIDE IMAGE ================= */
.chat-side-image {
    animation: none !important;
    transition: none !important;
    pointer-events: none;
}

.chat-side-image:hover {
    transform: none !important;
    filter: none !important;
}