/* ============================================================
   Sorna — Sazman-e Mardom-Nahad-e Javanan-e Gilan
   Styles: Custom CSS (Tailwind CDN handles utility classes)
   ============================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

/* ── Design Tokens ── */
:root {
    --color-primary: #fc690d;
    --color-primary-dim: rgba(252, 105, 13, 0.12);
    --color-navy: #16124F;
    --color-navy-light: #1E1A6A;
    --color-navy-bright: #2824A0;
    --color-accent: #fc690d;
    --color-bg: #030509;
    --color-bg-elevated: #060B16;
    --color-bg-card: #0A0F1A;
    --color-text: #F5F5F7;
    --color-border-hover: rgba(252, 105, 13, 0.2);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Background Patterns ── */
.bg-grid {
    background-size: 100px 100px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
}

.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ── Ambient Glows ── */
.ambient-glow {
    background: radial-gradient(circle, rgba(252, 105, 13, 0.06) 0%, rgba(3, 5, 9, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    will-change: transform, opacity;
}

.ambient-glow-navy {
    background: radial-gradient(circle, rgba(22, 18, 79, 0.25) 0%, rgba(3, 5, 9, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* ── Card Styles ── */
.glass-card {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
    border-color: rgba(252, 105, 13, 0.12);
    background: rgba(252, 105, 13, 0.02);
    transform: translateY(-3px) scale(1.005);
}

.card-solid {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-solid:hover {
    border-color: rgba(252, 105, 13, 0.15);
    background: rgba(252, 105, 13, 0.02);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 48px rgba(252, 105, 13, 0.04);
}

.card-navy {
    background: linear-gradient(145deg, rgba(22, 18, 79, 0.4), rgba(22, 18, 79, 0.1));
    border: 1px solid rgba(22, 18, 79, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-navy:hover {
    border-color: rgba(252, 105, 13, 0.2);
    background: linear-gradient(145deg, rgba(22, 18, 79, 0.5), rgba(22, 18, 79, 0.15));
    transform: translateY(-4px) scale(1.01);
}

/* ── Typography Helpers ── */
.text-gradient-white {
    background: linear-gradient(180deg, #FFFFFF 0%, #C5C5CF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Service Icons ── */
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(252, 105, 13, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.card-solid:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
    background: rgba(252, 105, 13, 0.15);
}
.card-navy:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(252, 105, 13, 0.15);
}

/* ── Partner Chips ── */
.partner-chip {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 100px;
    background: rgba(22, 18, 79, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}
.partner-chip:hover {
    border-color: rgba(252, 105, 13, 0.2);
    background: rgba(252, 105, 13, 0.06);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Section Labels ── */
.section-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
}
.section-label-light {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    display: block;
}

/* ── Pillar Badges ── */
.pillar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    background: rgba(252, 105, 13, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(252, 105, 13, 0.12);
}
.pillar-badge-navy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    background: rgba(22, 18, 79, 0.25);
    color: #8BAFE0;
    border: 1px solid rgba(22, 18, 79, 0.3);
}

/* ── CTA Buttons ── */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}
.cta-button:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 255, 255, 0.08);
}
.cta-primary {
    background: var(--color-primary);
    color: #fff;
}
.cta-primary:hover {
    background: #E05500;
    color: #fff;
    box-shadow: 0 12px 36px rgba(252, 105, 13, 0.2);
}

/* ── Hero Rings ── */
.hero-glow-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(252, 105, 13, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: heroPulse 4s ease-in-out infinite;
}
.hero-glow-ring:nth-child(2) {
    width: 450px;
    height: 450px;
    animation-delay: 1s;
    border-color: rgba(22, 18, 79, 0.1);
}
.hero-glow-ring:nth-child(3) {
    width: 600px;
    height: 600px;
    animation-delay: 2s;
    border-color: rgba(252, 105, 13, 0.03);
}

@keyframes heroPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* ── Service Card Tilt ── */
.service-card-tilt {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card-tilt:hover {
    transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-6px);
}
.service-card-tilt:nth-child(even):hover {
    transform: perspective(800px) rotateY(3deg) rotateX(2deg) translateY(-6px);
}

/* ── Story Timeline ── */
.story-timeline {
    position: absolute;
    right: -12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(22, 18, 79, 0.3);
}
.story-timeline-progress {
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    background: var(--color-primary);
    height: 0%;
    transition: height 0.1s linear;
}
.story-dot {
    position: absolute;
    right: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(22, 18, 79, 0.4);
    border: 2px solid rgba(22, 18, 79, 0.5);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}
.story-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 16px rgba(252, 105, 13, 0.5);
    transform: scale(1.2);
}

/* ── Hero Floating Dot ── */
.hero-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 24px rgba(252, 105, 13, 0.4);
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation: heroDotFloat 2s ease-in-out infinite;
    z-index: 5;
    pointer-events: none;
}
@keyframes heroDotFloat {
    0%, 100% { top: -40px; opacity: 0.6; }
    50% { top: -55px; opacity: 1; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: rgba(252, 105, 13, 0.3); border-radius: 10px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .logo-mobile-fixed { opacity: 0.08 !important; transform: scale(0.25) !important; }
    .hero-title { font-size: 3rem !important; }
    .story-timeline { right: -8px; }
    .story-dot { right: -5px; width: 14px; height: 14px; }
    .section-label, .section-label-light { font-size: 12px; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}