/**
 * QUESTROV Custom Styles
 * Visual polish and animations
 */

/* Global Background Gradients */
body {
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

body.dark {
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* Button Enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 200ms ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    position: relative;
    transition: all 200ms ease;
    border-width: 2px;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card Hover Effects */
.card-hover {
    transition: all 300ms ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Navigation Link Underline Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #14b8a6, #06b6d4);
    transition: all 250ms ease;
    transform: translateX(-50%);
}

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

/* Hero Section - Clean Gradient Background */
.hero-gradient {
    position: relative;
    overflow: hidden;
}

/* Light theme - very light neutral gradient */
.hero-gradient {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Dark theme - deep teal gradient */
.dark .hero-gradient {
    background: linear-gradient(180deg, #115e59 0%, #0f3f3b 100%);
}

/* Subtle radial highlight for depth */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), transparent 60%);
    pointer-events: none;
}

/* Dark theme radial highlight */
.dark .hero-gradient::before {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 60%);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Icon Pulse on Hover */
.icon-pulse:hover {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ─── Split Section Layout ──────────────────────────── */
.split-section {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.split-text,
.split-visual {
    flex: 1;
    min-width: 0;
}

/* Reverse: visual moves left, text moves right */
.split-section.reverse .split-visual { order: -1; }

@media (max-width: 1023px) {
    .split-section {
        flex-direction: column;
        gap: 3rem;
    }
    /* On mobile always show text first, visual below */
    .split-section.reverse .split-visual { order: 1; }
}

/* ─── Illustration Wrapper ──────────────────────────── */
.illustration-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 1.5rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
}

.dark .illustration-wrap {
    background: #042f2e;
    border-color: rgba(20,184,166,0.35);
}

.illustration-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    transition: transform 400ms ease;
}

.illustration-wrap:hover .illustration-img {
    transform: scale(1.03);
}

/* ─── Section Eyebrow Label ─────────────────────────── */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #14b8a6;
    margin-bottom: 0.75rem;
}

.dark .section-eyebrow {
    color: #2dd4bf;
}

/* ─── Capability List Items ─────────────────────────── */
.capability-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.capability-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(20,184,166,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.dark .capability-icon {
    background: rgba(20,184,166,0.15);
}

/* ─── Checklist Items ───────────────────────────────── */
.checklist-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.checklist-dot {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #14b8a6;
    margin-top: 0.45rem;
}

/* ─── Principle Cards ───────────────────────────────── */
.principle-card {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(20,184,166,0.04);
    border: 1px solid rgba(20,184,166,0.1);
    transition: border-color 200ms ease, background 200ms ease;
}

.principle-card:hover {
    background: rgba(20,184,166,0.08);
    border-color: rgba(20,184,166,0.2);
}

.dark .principle-card {
    background: rgba(20,184,166,0.06);
    border-color: rgba(20,184,166,0.14);
}

.principle-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(20,184,166,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Directional Reveal Animations ────────────────── */
/* Default: always visible. JS adds .reveal-pending to enable animation. */
.reveal-left,
.reveal-right {
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-left.reveal-pending {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal-right.reveal-pending {
    opacity: 0;
    transform: translateX(30px);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-left.reveal-pending,
    .reveal-right.reveal-pending {
        opacity: 1;
        transform: none;
    }
    .illustration-wrap:hover .illustration-img {
        transform: none;
    }
}

/* Section Spacing Enhancement */
section {
    position: relative;
}

/* Divider Line */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.2), transparent);
}

.dark .section-divider {
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.1), transparent);
}

/* Images */
img {
    transition: opacity 300ms ease;
}

/* Enhanced Shadow Utilities */
.shadow-glow {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
}

.dark .shadow-glow {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.3);
}

/* Stagger Animation Delays */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }
.reveal:nth-child(6) { transition-delay: 500ms; }

/* Logo Visibility Enhancement */
img[alt*="Logo"], img[alt*="QUESTROV"] {
    filter: brightness(1.05) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.dark img[alt*="Logo"], .dark img[alt*="QUESTROV"] {
    filter: brightness(1.1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* Hero Logo - Enhanced visibility and prominence */
#intro-section img[alt*="Logo"] {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.dark #intro-section img[alt*="Logo"] {
    filter: brightness(1.05) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}


