/* =======================================
   Custom Design System & Premium Dark Theme
   ======================================= */
:root {
    --bg-darker: #05070c;
    --bg-dark: #0a0e17;
    --bg-card: rgba(17, 25, 40, 0.55);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.3);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-darker);
}

.hero-image-container {
    position: relative;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(59, 130, 246, .18),
            rgba(99, 102, 241, .08),
            transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

.hero-image-container img {
    object-position: center top;
}

.hero-image-container img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Custom Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* Ambient glow backgrounds */
.glow-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Fade-in Animation Observer */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Custom Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(59, 130, 246, 0.15);
}

/* Featured Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer-badge {
    background: linear-gradient(90deg, #f59e0b 25%, #fef08a 50%, #f59e0b 75%);
    background-size: 200% 100%;
    animation: shimmer 2.5s infinite linear;
    color: #1e1b4b;
}

.shimmer-accent {
    background: linear-gradient(90deg, var(--accent-blue) 25%, #a5f3fc 50%, var(--accent-purple) 75%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

/* Glowing Profile Avatar Animation */
@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(139, 92, 246, 0.15);
    }

    50% {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 0 45px rgba(59, 130, 246, 0.5), 0 0 90px rgba(139, 92, 246, 0.3);
    }
}

.avatar-glow {
    animation: floatGlow 6s ease-in-out infinite;
}

/* Text Accent Pulse */
@keyframes pulseAccent {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    }
}

.pulse-text {
    animation: pulseAccent 4s ease-in-out infinite;
}

/* Typing cursor animation */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        color: transparent
    }

    50% {
        color: var(--accent-blue)
    }
}

/* Nav Item Dot Transition */
.nav-link-active {
    color: var(--accent-blue) !important;
}

/* Trust Score Dashboard styling */
.trust-score-badge {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Mobile Navigation Styles for iOS & Android */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: rgba(5, 7, 12, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2.5rem;
        gap: 1.75rem;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 40;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

.hero-image-container img {
    object-fit: cover;
    object-position: center top;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

img {
    animation: floating 6s ease-in-out infinite;
}