* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazirmatn", sans-serif;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0a2e1a 0%, #051408 45%, #020a05 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    width: 100%;
    padding: 16px 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(2, 10, 5, 0.95), rgba(2, 10, 5, 0.7), transparent);
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== اصلاح شده ========== */
.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: visible;  /* ← این خیلی مهمه */
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    position: relative;
}
/* =============================================
   DNA صفحه اصلی (بزرگ)
   ============================================= */

#dna-hero {
    position: relative;
    height: 220px;
    width: 500px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dna-hero div {
    position: relative;
    width: 3px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.06);
    float: left;
    transform-style: preserve-3d;
    margin: 0 14px;
    animation: dnaRotation 5s linear infinite;
}

#dna-hero div::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -6px;
    right: -6px;
    height: 12px;
    background: linear-gradient(90deg, #2ecc71, #3498db);
    border-radius: 50%;
    animation: dnaRotation 5s linear infinite reverse;
    z-index: 1;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

#dna-hero div::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: -6px;
    right: -6px;
    height: 12px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 50%;
    animation: dnaRotation 5s linear infinite reverse;
    z-index: 1;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
}

/* دیل‌های صفحه اصلی */
#dna-hero div:nth-child(1) { animation-delay: -5.44s; }
#dna-hero div:nth-child(2) { animation-delay: -5.25s; }
#dna-hero div:nth-child(3) { animation-delay: -5.06s; }
#dna-hero div:nth-child(4) { animation-delay: -4.87s; }
#dna-hero div:nth-child(5) { animation-delay: -4.68s; }
#dna-hero div:nth-child(6) { animation-delay: -4.5s; }
#dna-hero div:nth-child(7) { animation-delay: -4.31s; }
#dna-hero div:nth-child(8) { animation-delay: -4.12s; }
#dna-hero div:nth-child(9) { animation-delay: -3.93s; }
#dna-hero div:nth-child(10) { animation-delay: -3.75s; }
#dna-hero div:nth-child(11) { animation-delay: -3.56s; }
#dna-hero div:nth-child(12) { animation-delay: -3.37s; }
#dna-hero div:nth-child(13) { animation-delay: -3.18s; }
#dna-hero div:nth-child(14) { animation-delay: -3.0s; }
#dna-hero div:nth-child(15) { animation-delay: -2.81s; }
#dna-hero div:nth-child(16) { animation-delay: -2.62s; }
#dna-hero div:nth-child(17) { animation-delay: -2.43s; }
#dna-hero div:nth-child(18) { animation-delay: -2.25s; }
#dna-hero div:nth-child(19) { animation-delay: -2.06s; }
#dna-hero div:nth-child(20) { animation-delay: -1.87s; }
#dna-hero div:nth-child(21) { animation-delay: -1.68s; }
#dna-hero div:nth-child(22) { animation-delay: -1.5s; }
#dna-hero div:nth-child(23) { animation-delay: -1.31s; }
#dna-hero div:nth-child(24) { animation-delay: -1.12s; }
#dna-hero div:nth-child(25) { animation-delay: -0.93s; }
#dna-hero div:nth-child(26) { animation-delay: -0.75s; }
#dna-hero div:nth-child(27) { animation-delay: -0.56s; }
#dna-hero div:nth-child(28) { animation-delay: -0.37s; }
#dna-hero div:nth-child(29) { animation-delay: -0.18s; }
#dna-hero div:nth-child(30) { animation-delay: 0s; }

/* دیل‌های ::before و ::after */
#dna-hero div:nth-child(1)::before,
#dna-hero div:nth-child(1)::after { animation-delay: -5.44s; }
#dna-hero div:nth-child(2)::before,
#dna-hero div:nth-child(2)::after { animation-delay: -5.25s; }
#dna-hero div:nth-child(3)::before,
#dna-hero div:nth-child(3)::after { animation-delay: -5.06s; }
#dna-hero div:nth-child(4)::before,
#dna-hero div:nth-child(4)::after { animation-delay: -4.87s; }
#dna-hero div:nth-child(5)::before,
#dna-hero div:nth-child(5)::after { animation-delay: -4.68s; }
#dna-hero div:nth-child(6)::before,
#dna-hero div:nth-child(6)::after { animation-delay: -4.5s; }
#dna-hero div:nth-child(7)::before,
#dna-hero div:nth-child(7)::after { animation-delay: -4.31s; }
#dna-hero div:nth-child(8)::before,
#dna-hero div:nth-child(8)::after { animation-delay: -4.12s; }
#dna-hero div:nth-child(9)::before,
#dna-hero div:nth-child(9)::after { animation-delay: -3.93s; }
#dna-hero div:nth-child(10)::before,
#dna-hero div:nth-child(10)::after { animation-delay: -3.75s; }
#dna-hero div:nth-child(11)::before,
#dna-hero div:nth-child(11)::after { animation-delay: -3.56s; }
#dna-hero div:nth-child(12)::before,
#dna-hero div:nth-child(12)::after { animation-delay: -3.37s; }
#dna-hero div:nth-child(13)::before,
#dna-hero div:nth-child(13)::after { animation-delay: -3.18s; }
#dna-hero div:nth-child(14)::before,
#dna-hero div:nth-child(14)::after { animation-delay: -3.0s; }
#dna-hero div:nth-child(15)::before,
#dna-hero div:nth-child(15)::after { animation-delay: -2.81s; }
#dna-hero div:nth-child(16)::before,
#dna-hero div:nth-child(16)::after { animation-delay: -2.62s; }
#dna-hero div:nth-child(17)::before,
#dna-hero div:nth-child(17)::after { animation-delay: -2.43s; }
#dna-hero div:nth-child(18)::before,
#dna-hero div:nth-child(18)::after { animation-delay: -2.25s; }
#dna-hero div:nth-child(19)::before,
#dna-hero div:nth-child(19)::after { animation-delay: -2.06s; }
#dna-hero div:nth-child(20)::before,
#dna-hero div:nth-child(20)::after { animation-delay: -1.87s; }
#dna-hero div:nth-child(21)::before,
#dna-hero div:nth-child(21)::after { animation-delay: -1.68s; }
#dna-hero div:nth-child(22)::before,
#dna-hero div:nth-child(22)::after { animation-delay: -1.5s; }
#dna-hero div:nth-child(23)::before,
#dna-hero div:nth-child(23)::after { animation-delay: -1.31s; }
#dna-hero div:nth-child(24)::before,
#dna-hero div:nth-child(24)::after { animation-delay: -1.12s; }
#dna-hero div:nth-child(25)::before,
#dna-hero div:nth-child(25)::after { animation-delay: -0.93s; }
#dna-hero div:nth-child(26)::before,
#dna-hero div:nth-child(26)::after { animation-delay: -0.75s; }
#dna-hero div:nth-child(27)::before,
#dna-hero div:nth-child(27)::after { animation-delay: -0.56s; }
#dna-hero div:nth-child(28)::before,
#dna-hero div:nth-child(28)::after { animation-delay: -0.37s; }
#dna-hero div:nth-child(29)::before,
#dna-hero div:nth-child(29)::after { animation-delay: -0.18s; }
#dna-hero div:nth-child(30)::before,
#dna-hero div:nth-child(30)::after { animation-delay: 0s; }

/* =============================================
   ریسپانسیو DNA صفحه اصلی
   ============================================= */

@media (max-width: 992px) {
    #dna-hero {
        height: 180px;
        width: 400px;
    }
    #dna-hero div {
        height: 120px;
        margin: 0 11px;
        width: 2.5px;
    }
    #dna-hero div::before,
    #dna-hero div::after {
        height: 10px;
        top: -7px;
        bottom: -7px;
        left: -5px;
        right: -5px;
    }
}

@media (max-width: 768px) {
    #dna-hero {
        height: 140px;
        width: 300px;
    }
    #dna-hero div {
        height: 90px;
        margin: 0 8px;
        width: 2px;
    }
    #dna-hero div::before,
    #dna-hero div::after {
        height: 8px;
        top: -5px;
        bottom: -5px;
        left: -4px;
        right: -4px;
    }
}

@media (max-width: 480px) {
    #dna-hero {
        height: 100px;
        width: 220px;
    }
    #dna-hero div {
        height: 65px;
        margin: 0 6px;
        width: 1.5px;
    }
    #dna-hero div::before,
    #dna-hero div::after {
        height: 6px;
        top: -4px;
        bottom: -4px;
        left: -3px;
        right: -3px;
    }
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

/* ========== استایل‌های DNA (اضافه کن) ========== */
.logo-icon.dna-logo::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, #2ecc71, #3498db, #2ecc71, #3498db, #2ecc71);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: dnaBorderSpin 4s linear infinite;
    opacity: 0.5;
}

@keyframes dnaBorderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-icon.dna-logo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,204,113,0.15), transparent 70%);
    animation: dnaPulse 3s ease-in-out infinite;
}

@keyframes dnaPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .fa {
    font-weight: 700;
    font-size: 18px;
    color: #2ecc71;
}

.logo-text .en {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3498db;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    position: relative;
    font-size: 15px;
    opacity: 0.9;
    transition: 0.25s ease;
    padding-bottom: 4px;
}

nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2ecc71, #3498db);
    border-radius: 999px;
    transition: width 0.25s ease;
}

nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(46, 204, 113, 0.6);
    background: rgba(2, 10, 5, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle span {
    width: 16px;
    height: 2px;
    background: #2ecc71;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: #2ecc71;
    right: 0;
    transition: 0.2s ease;
}

.menu-toggle span::before {
    top: -5px;
}

.menu-toggle span::after {
    top: 5px;
}

.menu-toggle.active span {
    background: transparent;
}

.menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* دکمه‌های ناوبری */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: 8px;
}

.nav-btn {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

nav .nav-btn::after {
    display: none;
}

.nav-btn-ghost {
    border: 1px solid rgba(46, 204, 113, 0.55);
    background: rgba(2, 10, 5, 0.75);
}

.nav-btn-ghost:hover {
    background: rgba(46, 204, 113, 0.15);
    transform: translateY(-1px);
}

.nav-btn-primary {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.35);
}

.nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(52, 152, 219, 0.55);
}

/* دکمه AI در هدر */
.header-start {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #e8ecff;
    border: 1px solid rgba(46, 204, 113, 0.55);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(52, 152, 219, 0.18));
    box-shadow: 0 0 18px rgba(46, 204, 113, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-ai-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(52, 152, 219, 0.45);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(52, 152, 219, 0.3));
}

.header-ai-btn.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    box-shadow: 0 0 24px rgba(46, 204, 113, 0.5);
}

.header-ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
    animation: aiDotPulse 2s ease-in-out infinite;
}

.header-ai-btn.is-active .header-ai-dot {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes aiDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.75; }
}

/* ========== دکمه‌های اصلی ========== */
.btn-primary {
    position: relative;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.45);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 35px rgba(46, 204, 113, 0.7);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-ghost {
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(46, 204, 113, 0.4);
    background: rgba(2, 10, 5, 0.7);
    color: #b8f0d0;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s ease;
}

.btn-ghost:hover {
    background: rgba(10, 30, 15, 0.9);
    border-color: rgba(52, 152, 219, 0.7);
    transform: translateY(-1px);
}

/* ========== صفحه اصلی ========== */
.hero {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 120px 7vw 40px;
    margin: 0 auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-kicker {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2ecc71;
    opacity: 0.9;
}

.hero-title {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 700;
}

.hero-title span {
    background: linear-gradient(90deg, #2ecc71, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    opacity: 0.85;
    max-width: 420px;
}

.hero-cta-group {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* ========== ستاره‌ها ========== */
#stars-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #ffffff, #2ecc71);
    border-radius: 50%;
    opacity: 0.8;
    animation: starFloat linear infinite;
    filter: drop-shadow(0 0 6px #2ecc71);
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #3498db, transparent);
    border-radius: 50%;
    opacity: 0;
    animation: sparkFlash 1.2s ease-out forwards;
    filter: drop-shadow(0 0 12px #3498db);
}

@keyframes starFloat {
    0% { transform: translateY(0); opacity: 0.9; }
    100% { transform: translateY(-120vh); opacity: 0; }
}

@keyframes sparkFlash {
    0% { transform: scale(0.2); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ========== ریسپانسیو ========== */
@media (max-width: 900px) {
    header {
        padding-inline: 5vw;
    }

    nav {
        position: fixed;
        top: 60px;
        right: 5vw;
        left: 5vw;
        padding: 14px 18px;
        border-radius: 16px;
        background: rgba(2, 10, 5, 0.98);
        border: 1px solid rgba(46, 204, 113, 0.4);
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        transform-origin: top;
        transform: scaleY(0.7);
        opacity: 0;
        pointer-events: none;
        transition: 0.2s ease;
    }

    nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        padding: 100px 5vw 40px;
    }

    .hero-text {
        align-items: center;
    }

    .hero-subtitle,
    .hero-title,
    .hero-tagline {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .nav-auth {
        width: 100%;
        margin-inline-start: 0;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(46, 204, 113, 0.25);
    }

    .nav-btn {
        flex: 1;
        text-align: center;
    }

    .logo-text .fa {
        font-size: 14px;
    }
    
    .logo-text .en {
        font-size: 8px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .header-ai-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }
}
/* =============================================
   DNA 3D با CSS - ریسپانسیو
   ============================================= */

#dna-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

#dna {
    position: relative;
    height: 120px;
    width: 280px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dna div {
    position: relative;
    width: 2px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.08);
    float: left;
    transform-style: preserve-3d;
    margin: 0 8px;
    animation: dnaRotation 4s linear infinite;
}

#dna div::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -4px;
    right: -4px;
    height: 8px;
    background: linear-gradient(90deg, #2ecc71, #3498db);
    border-radius: 50%;
    animation: dnaRotation 4s linear infinite reverse;
    z-index: 1;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

#dna div::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: -4px;
    right: -4px;
    height: 8px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 50%;
    animation: dnaRotation 4s linear infinite reverse;
    z-index: 1;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* ===== انیمیشن چرخش ===== */
@keyframes dnaRotation {
    from { transform: rotateX(0deg); }
    to { transform: rotateX(359deg); }
}

/* ===== دیل‌های هر ستون ===== */
#dna div:nth-child(1) { animation-delay: -4.35s; }
#dna div:nth-child(2) { animation-delay: -4.2s; }
#dna div:nth-child(3) { animation-delay: -4.05s; }
#dna div:nth-child(4) { animation-delay: -3.9s; }
#dna div:nth-child(5) { animation-delay: -3.75s; }
#dna div:nth-child(6) { animation-delay: -3.6s; }
#dna div:nth-child(7) { animation-delay: -3.45s; }
#dna div:nth-child(8) { animation-delay: -3.3s; }
#dna div:nth-child(9) { animation-delay: -3.15s; }
#dna div:nth-child(10) { animation-delay: -3.0s; }
#dna div:nth-child(11) { animation-delay: -2.85s; }
#dna div:nth-child(12) { animation-delay: -2.7s; }
#dna div:nth-child(13) { animation-delay: -2.55s; }
#dna div:nth-child(14) { animation-delay: -2.4s; }
#dna div:nth-child(15) { animation-delay: -2.25s; }
#dna div:nth-child(16) { animation-delay: -2.1s; }
#dna div:nth-child(17) { animation-delay: -1.95s; }
#dna div:nth-child(18) { animation-delay: -1.8s; }
#dna div:nth-child(19) { animation-delay: -1.65s; }
#dna div:nth-child(20) { animation-delay: -1.5s; }
#dna div:nth-child(21) { animation-delay: -1.35s; }
#dna div:nth-child(22) { animation-delay: -1.2s; }
#dna div:nth-child(23) { animation-delay: -1.05s; }
#dna div:nth-child(24) { animation-delay: -0.9s; }
#dna div:nth-child(25) { animation-delay: -0.75s; }
#dna div:nth-child(26) { animation-delay: -0.6s; }
#dna div:nth-child(27) { animation-delay: -0.45s; }
#dna div:nth-child(28) { animation-delay: -0.3s; }
#dna div:nth-child(29) { animation-delay: -0.15s; }
#dna div:nth-child(30) { animation-delay: 0s; }

/* ===== دیل‌های ::before و ::after ===== */
#dna div:nth-child(1)::before,
#dna div:nth-child(1)::after { animation-delay: -4.35s; }
#dna div:nth-child(2)::before,
#dna div:nth-child(2)::after { animation-delay: -4.2s; }
#dna div:nth-child(3)::before,
#dna div:nth-child(3)::after { animation-delay: -4.05s; }
#dna div:nth-child(4)::before,
#dna div:nth-child(4)::after { animation-delay: -3.9s; }
#dna div:nth-child(5)::before,
#dna div:nth-child(5)::after { animation-delay: -3.75s; }
#dna div:nth-child(6)::before,
#dna div:nth-child(6)::after { animation-delay: -3.6s; }
#dna div:nth-child(7)::before,
#dna div:nth-child(7)::after { animation-delay: -3.45s; }
#dna div:nth-child(8)::before,
#dna div:nth-child(8)::after { animation-delay: -3.3s; }
#dna div:nth-child(9)::before,
#dna div:nth-child(9)::after { animation-delay: -3.15s; }
#dna div:nth-child(10)::before,
#dna div:nth-child(10)::after { animation-delay: -3.0s; }
#dna div:nth-child(11)::before,
#dna div:nth-child(11)::after { animation-delay: -2.85s; }
#dna div:nth-child(12)::before,
#dna div:nth-child(12)::after { animation-delay: -2.7s; }
#dna div:nth-child(13)::before,
#dna div:nth-child(13)::after { animation-delay: -2.55s; }
#dna div:nth-child(14)::before,
#dna div:nth-child(14)::after { animation-delay: -2.4s; }
#dna div:nth-child(15)::before,
#dna div:nth-child(15)::after { animation-delay: -2.25s; }
#dna div:nth-child(16)::before,
#dna div:nth-child(16)::after { animation-delay: -2.1s; }
#dna div:nth-child(17)::before,
#dna div:nth-child(17)::after { animation-delay: -1.95s; }
#dna div:nth-child(18)::before,
#dna div:nth-child(18)::after { animation-delay: -1.8s; }
#dna div:nth-child(19)::before,
#dna div:nth-child(19)::after { animation-delay: -1.65s; }
#dna div:nth-child(20)::before,
#dna div:nth-child(20)::after { animation-delay: -1.5s; }
#dna div:nth-child(21)::before,
#dna div:nth-child(21)::after { animation-delay: -1.35s; }
#dna div:nth-child(22)::before,
#dna div:nth-child(22)::after { animation-delay: -1.2s; }
#dna div:nth-child(23)::before,
#dna div:nth-child(23)::after { animation-delay: -1.05s; }
#dna div:nth-child(24)::before,
#dna div:nth-child(24)::after { animation-delay: -0.9s; }
#dna div:nth-child(25)::before,
#dna div:nth-child(25)::after { animation-delay: -0.75s; }
#dna div:nth-child(26)::before,
#dna div:nth-child(26)::after { animation-delay: -0.6s; }
#dna div:nth-child(27)::before,
#dna div:nth-child(27)::after { animation-delay: -0.45s; }
#dna div:nth-child(28)::before,
#dna div:nth-child(28)::after { animation-delay: -0.3s; }
#dna div:nth-child(29)::before,
#dna div:nth-child(29)::after { animation-delay: -0.15s; }
#dna div:nth-child(30)::before,
#dna div:nth-child(30)::after { animation-delay: 0s; }

/* =============================================
   ریسپانسیو DNA
   ============================================= */

/* تبلت */
@media (max-width: 992px) {
    #dna {
        height: 100px;
        width: 240px;
    }
    #dna div {
        height: 65px;
        margin: 0 6px;
    }
    #dna div::before,
    #dna div::after {
        height: 7px;
        top: -5px;
        bottom: -5px;
        left: -3px;
        right: -3px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    #dna {
        height: 80px;
        width: 180px;
    }
    #dna div {
        height: 50px;
        margin: 0 4px;
        width: 1.5px;
    }
    #dna div::before,
    #dna div::after {
        height: 6px;
        top: -4px;
        bottom: -4px;
        left: -3px;
        right: -3px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    #dna {
        height: 60px;
        width: 140px;
    }
    #dna div {
        height: 38px;
        margin: 0 3px;
        width: 1.5px;
    }
    #dna div::before,
    #dna div::after {
        height: 5px;
        top: -3px;
        bottom: -3px;
        left: -2px;
        right: -2px;
    }
}

/* =============================================
   حاشیه چرخان دور DNA
   ============================================= */

.logo-icon.dna-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(2, 10, 5, 0.3);
    border: 1px solid rgba(46, 204, 113, 0.15);
}

.logo-icon.dna-logo::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, #2ecc71, #3498db, #2ecc71, #3498db, #2ecc71);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: dnaBorderSpin 3s linear infinite;
    opacity: 0.6;
}

@keyframes dnaBorderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-icon.dna-logo::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1), transparent 70%);
    animation: dnaPulse 2.5s ease-in-out infinite;
}

@keyframes dnaPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* =============================================
   ریسپانسیو لوگو
   ============================================= */

@media (max-width: 992px) {
    .logo-icon.dna-logo {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .logo-icon.dna-logo {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .logo-icon.dna-logo {
        width: 36px;
        height: 36px;
    }
}