/* ==========================================
           GLOBAL: Rainbow - Red
           ========================================== */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Inter', 'Be Vietnam Pro', -apple-system, sans-serif;
            background: #070709;
            color: #ffffff;
            overflow-x: hidden;
            cursor: none;
            margin-right: 18.5vw;
        }

        :root {
            --bg: #070709;
            --primary: #ff0000;
            --primary-light: #ff6666;
            --primary-dark: #990000;
            --secondary: #ff0066;
            --secondary-light: #ff6699;
            --secondary-dark: #99003d;
            --text: #ffffff;
            --text-muted: #888888;
            --text-dim: #333333;
        }

        /* ==========================================
           CUSTOM CURSOR
           ========================================== */
        .cursor {
            position: fixed;
            width: 20px;
            height: 20px;
            border: 2px solid var(--primary);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
            transform: translate(-50%, -50%);
        }

        .cursor.hover {
            width: 60px;
            height: 60px;
            background: rgba(255, 0, 0, 0.1);
            border-color: var(--secondary);
        }

        .cursor-dot {
            position: fixed;
            width: 6px;
            height: 6px;
            background: var(--primary);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
        }

        /* ==========================================
           HERO
           ========================================== */
        .hero {
            min-height: auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 6rem 2rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 102, 102, 0.06) 0%, transparent 50%);
        }

        .hero-content {
            position: relative;
            z-index: 10;
        }

        .hero-eyebrow {
            font-size: 0.75rem;
            letter-spacing: 0.4em;
            text-transform: uppercase;
            color: var(--primary);
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeUp 0.8s ease 0.3s forwards;
        }

        .hero-title {
            font-size: clamp(2.5rem, 8vw, 5rem);
            font-weight: 900;
            letter-spacing: -0.04em;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(60px);
            animation: fadeUp 0.8s ease 0.4s forwards;
        }

        .hero-title .accent {
            color: var(--primary);
            text-shadow: 0 0 60px rgba(255, 0, 0, 0.5);
        }

        .hero-tagline {
            font-size: clamp(1rem, 2vw, 1.2rem);
            font-weight: 300;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto;
            text-align: center;
            line-height: 1.8;
            opacity: 0;
            animation: fadeUp 0.8s ease 0.6s forwards;
        }

        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ==========================================
           BOOKS GRID
           ========================================== */
        .books-section {
            padding: 2rem 5vw 6rem;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-eyebrow {
            font-size: 0.75rem;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            color: var(--secondary);
            margin-bottom: 1rem;
        }

        .section-title {
            font-size: clamp(1.75rem, 4vw, 2.5rem);
            font-weight: 700;
        }

        .books-grid {
            display: flex;
            flex-direction: column;
            gap: 3rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .book-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            padding: 2rem;
            background: rgba(7, 7, 9, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            transition: all 0.4s ease;
            cursor: pointer;
            opacity: 0;
            transform: translateY(40px);
            position: relative;
            z-index: 10;
        }

        .book-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .book-card:hover {
            border-color: var(--primary);
            transform: translateY(-8px);
            box-shadow: 0 30px 80px rgba(255, 0, 0, 0.15);
        }

        .book-cover {
            flex-shrink: 0;
            width: 100%;
            max-width: 600px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: visible;
            margin-bottom: 30px;
        }

        /* Flipbook Container */
        .flipbook {
            width: 100%;
            position: relative;
            border-radius: 8px;
        }

        .flipbook-page {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            transition: opacity 0.4s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        }

        .flipbook-page img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
        }

        /* Flip Controls */
        .flip-controls {
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            align-items: center;
            z-index: 20;
        }

        .flip-btn {
            width: 20px;
            height: 20px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            background: rgba(0, 0, 0, 0.5);
            color: #fff;
            border-radius: 50%;
            cursor: pointer;
            font-size: 0.6rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .flip-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
        }

        .page-indicator {
            font-size: 0.6rem;
            color: var(--text-muted);
            min-width: 40px;
            text-align: center;
        }

        .book-card:hover .book-cover {
            filter: none;
        }

        .book-cover-placeholder {
            font-size: 3rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .book-info {
            flex: 1;
            text-align: center;
        }

        .book-year {
            font-size: 0.7rem;
            color: var(--primary);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }

        .book-title {
            font-size: 1.35rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .book-authors {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .book-description {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .book-link {
            display: inline-block;
            padding: 0.6rem 1.5rem;
            background: var(--primary);
            color: var(--bg);
            text-decoration: none;
            border-radius: 100px;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .book-link:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
        }

        /* ==========================================
           CONSULTING SECTION
           ========================================== */
        .consulting-section {
            padding: 6rem 5vw;
            background: linear-gradient(180deg, var(--bg) 0%, #0a0810 100%);
        }

        .consulting-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .consulting-category {
            padding: 2rem;
            background: rgba(7, 7, 9, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
            position: relative;
            z-index: 10;
        }

        .consulting-category.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .consulting-category h3 {
            font-size: 1rem;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .consulting-item {
            margin-bottom: 1rem;
        }

        .consulting-item:last-child {
            margin-bottom: 0;
        }

        .consulting-role {
            font-size: 0.75rem;
            color: var(--secondary);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.25rem;
        }

        .consulting-title {
            font-size: 0.95rem;
            color: var(--text);
            line-height: 1.5;
        }

        .consulting-details {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* ==========================================
           FOOTER
           ========================================== */
        footer {
            padding: 4rem 5vw;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            text-align: center;
        }

        .footer-name {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .footer-links a {
            color: var(--text);
            text-decoration: none;
            font-size: 0.875rem;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .footer-copy {
            font-size: 0.75rem;
            color: var(--text-dim);
        }

        /* ==========================================
           DESKTOP NAV
           ========================================== */
        .nav-desktop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            padding: 1.25rem 5vw;
            background: transparent;
            z-index: 1000;
        }

        .nav-desktop a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s ease;
            background: rgba(7, 7, 9, 0.9);
            padding: 0.5rem 1rem;
            border-radius: 6px;
        }

        .nav-desktop a:hover {
            color: var(--text);
        }

        .nav-desktop a.active {
            color: var(--primary);
        }

        @media (max-width: 1023px) {
            .nav-desktop { display: none; }
        }

        /* ==========================================
           MOBILE NAV
           ========================================== */
        .nav-mobile {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-around;
            padding: 1rem;
            background: rgba(7, 7, 9, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            z-index: 100;
        }

        .nav-mobile a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.7rem;
            text-align: center;
            transition: color 0.3s;
        }

        .nav-mobile a:hover,
        .nav-mobile a.active {
            color: var(--primary);
        }

        /* ==========================================
           RESPONSIVE
           ========================================== */
        @media (min-width: 1024px) {
            .nav-mobile { display: none; }
        }

        @media (max-width: 768px) {
            .cursor, .cursor-dot { display: none; }
            body { cursor: auto; }
            footer { padding-bottom: 100px; }
            .books-grid { grid-template-columns: 1fr; }
            .book-card { flex-direction: column; align-items: center; text-align: center; }
        }

        /* ==========================================
           DECORATIVE SIDE IMAGE
           ========================================== */
        .deco-side-image {
            position: absolute;
            right: -18.5vw;
            top: 0;
            width: auto;
            max-width: 60vw;
            height: auto;
            z-index: 1;
            pointer-events: none;
        }

        @media (max-width: 1200px) {
            .deco-side-image {
                right: -18vw;
                max-width: 50vw;
            }
        }

        @media (max-width: 900px) {
            .deco-side-image {
                right: -15vw;
                max-width: 40vw;
            }
        }

        @media (max-width: 768px) {
            body {
                margin-right: 0;
            }
            .deco-side-image {
                position: fixed;
                right: 0;
                left: auto;
                top: auto;
                bottom: 0;
                width: auto;
                height: 60vh;
                max-width: 70vw;
                opacity: 0.15;
                z-index: 0;
            }
        }

        /* Footer Component - uses var(--primary) for auto color adaptation */
        .site-footer { margin-top: 4rem; padding: 2rem 5vw; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
        .footer-contact { margin: 1rem auto; max-width: 400px; }
        .footer-contact-btn { display: inline-block; padding: 0.75rem 1.5rem; background: transparent; border: 1px solid var(--primary); border-radius: 8px; color: var(--primary); font-weight: 500; font-size: 0.85rem; text-decoration: none; cursor: pointer; transition: all 0.3s ease; }
        .footer-contact-btn:hover { background: var(--primary); color: #000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3); }
        .footer-social { display: flex; justify-content: center; gap: 1.5rem; margin: 1.5rem 0; }
        .footer-social a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; }
        .footer-social a:hover { color: var(--primary); }
        .social-icon { width: 20px; height: 20px; opacity: 0.5; transition: opacity 0.3s ease; }
        .footer-social a:hover .social-icon { opacity: 1; }
        .footer-copyright { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }
        .footer-credit { font-size: 0.65rem; color: #555; margin-top: 0.5rem; letter-spacing: 0.02em; }
