/* ========================================
   ERRORDESK — Premium White Theme
   Elegant, minimal, sophisticated
   ======================================== */

/* ---------- Base body ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Hero Background ---------- */
.hero-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

/* ---------- Hero Gradient Text ---------- */
.hero-gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 40%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Tag Label ---------- */
.tag-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3b82f6;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.06);
}

/* ---------- Hero Orb Animations ---------- */
.hero-orb {
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb--1 { animation-duration: 14s; }
.hero-orb--2 { animation-duration: 10s; animation-delay: -3s; }
.hero-orb--3 { animation-duration: 16s; animation-delay: -6s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---------- Scroll Line Pulse ---------- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { opacity: 0.6; height: 60px; }
    50% { opacity: 0.15; height: 30px; }
    100% { opacity: 0.6; height: 60px; }
}

/* ---------- Floating Card Animation ---------- */
.floating-card {
    animation: cardFloat 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ---------- Center Orb ---------- */
.center-orb {
    animation: orbPulse 3s ease-in-out infinite;
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2);
}

@keyframes orbPulse {
    0%, 100% { box-shadow: 0 8px 40px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 8px 60px rgba(59, 130, 246, 0.3); }
}

/* ---------- Nav Link ---------- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ---------- Navbar Scrolled ---------- */
#navbar.scrolled {
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 767px) {
    #navLinks.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 1000;
    }

    #navLinks.open a {
        font-size: 1.4rem;
        font-weight: 600;
        color: #0f172a;
    }

    #navToggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #navToggle.open span:nth-child(2) {
        opacity: 0;
    }

    #navToggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        width: 1.5rem;
    }
}

/* ---------- Tool Items Stagger ---------- */
.tool-item {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Subtle selection color ---------- */
::selection {
    background: rgba(59, 130, 246, 0.15);
    color: #1e293b;
}
