/* Deep Obsidian & Midnight Blue Professional Theme for PizzaTools */
body {
    background-color: #02040a;
    background-image:
        radial-gradient(at 15% 0%, rgba(29, 78, 216, 0.14) 0px, transparent 45%),
        radial-gradient(at 85% 10%, rgba(14, 165, 233, 0.08) 0px, transparent 40%),
        radial-gradient(at 50% 100%, rgba(30, 58, 138, 0.12) 0px, transparent 50%);
    color: #f8fafc;
}

.bg-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(30, 58, 138, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 58, 138, 0.07) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

.glass-nav {
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: linear-gradient(160deg, rgba(10, 16, 32, 0.92) 0%, rgba(4, 7, 16, 0.96) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.16);
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.85);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.terminal-window {
    background: #050811;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(37, 99, 235, 0.25);
    border-radius: 14px;
}

.hero-glow {
    background: radial-gradient(circle at 30% 10%, rgba(37, 99, 235, 0.18), rgba(2, 4, 10, 0) 60%);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #2563eb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% {
        background: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #60a5fa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 12px 28px -4px rgba(59, 130, 246, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(11, 18, 36, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(19, 30, 58, 0.95);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-1px);
}

.step-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(30, 64, 175, 0.4));
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #60a5fa;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.step-badge:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    transform: scale(1.05);
}

.code-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82em;
    background: rgba(6, 11, 25, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    color: #93c5fd;
}

.icon-invert {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(59, 130, 246, 0.45));
}

/* Details (FAQ) - Custom Styling */
details {
    transition: all 0.3s ease;
}

details[open] {
    border-color: rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(160deg, rgba(10, 16, 32, 0.98) 0%, rgba(4, 7, 16, 0.99) 100%);
}

summary {
    outline: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

h1 {
    animation: fadeInUp 0.7s ease forwards;
}

h2 {
    animation: fadeInUp 0.7s ease 0.1s forwards;
    opacity: 0;
}

.glass-card {
    animation: fadeInUp 0.5s ease forwards;
}

.glass-card:nth-child(1) { animation-delay: 0.05s; }
.glass-card:nth-child(2) { animation-delay: 0.1s; }
.glass-card:nth-child(3) { animation-delay: 0.15s; }
.glass-card:nth-child(4) { animation-delay: 0.2s; }
.glass-card:nth-child(5) { animation-delay: 0.25s; }
.glass-card:nth-child(6) { animation-delay: 0.3s; }

/* Hero Section Enhancements */
section:first-of-type > div > div:first-child {
    animation: slideInLeft 0.7s ease forwards;
}

section:first-of-type > div > div:last-child {
    animation: slideInRight 0.7s ease forwards;
}

/* Interactive Elements */
a, button {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    section:first-of-type > div > div:first-child,
    section:first-of-type > div > div:last-child {
        animation: fadeInUp 0.6s ease forwards;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Glow on hover for cards */
.glass-card {
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}
