/* Data Visualization Intelligence Report - Styles */

/* ==================== VARIABLES ==================== */
:root {
    --bg-beige: #f5f1e8;
    --bg-light: #fdfcfa;
    --text-primary: #2c2c2c;
    --text-secondary: #6b5d52;
    --accent-primary: #a07855;
    --accent-secondary: #c4a27a;
    --accent-warm: #d4a574;
    --border-light: #e5ddd3;
    --shadow: rgba(107, 93, 82, 0.12);
    --card-bg: #ffffff;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'HK Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-beige);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    margin-left: 120px;
    transition: margin-left 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'NEXT Pan Poster', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 120px;
    background: var(--card-bg);
    box-shadow: 2px 0 12px var(--shadow);
    z-index: 1000;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: none;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 3rem;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.nav-menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-menu li.revealed {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'NEXT Pan Poster', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transition: height 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 2px;
}

.nav-menu a:hover {
    color: var(--accent-primary);
    transform: rotate(180deg) translateX(-5px);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    height: 80%;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* GitHub Share Button */
.share-button {
    margin-top: auto;
    margin-bottom: 2rem;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 15px var(--shadow);
    overflow: hidden;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1), height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.share-button:hover::before {
    width: 200%;
    height: 200%;
}

.share-button:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 8px 25px rgba(160, 120, 85, 0.4);
}

.share-button svg {
    width: 22px;
    height: 22px;
    fill: white;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.share-button:hover svg {
    transform: scale(1.2) rotate(-8deg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-beige) 0%, var(--bg-light) 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInScale 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 80px;
    transform-origin: center center;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Zoom/Pan effect for sections (How Generative Music Works style) */
.section.zoom-in {
    transform: scale(0.95);
    opacity: 0.7;
}

.section.zoom-active {
    transform: scale(1);
    opacity: 1;
}

.section.zoom-out {
    transform: scale(0.95);
    opacity: 0.7;
}

.section.zoom-far {
    transform: scale(0.9);
    opacity: 0.4;
}

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

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== CONTENT BLOCKS ==================== */
.content-block {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border-light);
}

.content-block h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-block h3::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.content-block ul {
    list-style: none;
    padding-left: 0;
}

.content-block li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-secondary);
}

.content-block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 600;
}

/* ==================== VISUAL PLACEHOLDERS ==================== */
.visual-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visual-placeholder:hover {
    border-color: var(--accent-blue);
    background: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow);
}

.visual-placeholder.expanded {
    min-height: 500px;
    border-style: solid;
    background: var(--card-bg);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-title {
    font-family: 'NEXT Pan Poster', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.placeholder-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.placeholder-specs {
    display: inline-block;
    background: var(--bg-beige);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.expand-hint {
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visual-placeholder:hover .expand-hint {
    opacity: 1;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px var(--shadow);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(160, 120, 85, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.stat-card:hover::after {
    left: 100%;
}

.stat-number {
    font-family: 'NEXT Pan Poster', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==================== INSIGHT CARDS ==================== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.insight-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.insight-card:nth-child(2) {
    border-left-color: var(--accent-secondary);
}

.insight-card:nth-child(3) {
    border-left-color: var(--accent-warm);
}

.insight-card:hover {
    transform: translateX(12px) scale(1.02);
    box-shadow: 0 12px 30px var(--shadow);
}

.insight-card {
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transition: height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.insight-card:hover::before {
    height: 100%;
}

.insight-number {
    font-family: 'NEXT Pan Poster', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.insight-card:nth-child(2) .insight-number {
    color: var(--accent-secondary);
}

.insight-card:nth-child(3) .insight-number {
    color: var(--accent-warm);
}

/* ==================== TABLES ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.data-table thead {
    background: var(--bg-beige);
}

.data-table th {
    font-family: 'NEXT Pan Poster', sans-serif;
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-light);
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== HIGHLIGHT BOXES ==================== */
.highlight-box {
    background: linear-gradient(135deg, rgba(160, 120, 85, 0.08), rgba(196, 162, 122, 0.08));
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box strong {
    color: var(--accent-primary);
}

/* ==================== TWO COLUMN LAYOUT ==================== */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--text-primary);
    color: var(--bg-light);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    color: var(--bg-light);
    opacity: 0.8;
    margin: 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    body {
        margin-left: 0;
        padding-top: 80px;
    }

    header {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 80px;
        flex-direction: row;
        padding: 0 1.5rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        writing-mode: horizontal-tb;
        transform: rotate(0);
        margin: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--card-bg);
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        box-shadow: 0 4px 8px var(--shadow);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        padding: 0;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu a {
        writing-mode: horizontal-tb;
        transform: rotate(0);
        font-size: 1.2rem;
    }

    .nav-menu li {
        padding: 0.75rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .stats-grid,
    .insights-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .content-block {
        padding: 1.5rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll reveal - Enhanced */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

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

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

/* Parallax effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow);
}

/* Stagger animation for lists */
.stagger-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.stagger-item.active {
    opacity: 1;
    transform: translateX(0);
}

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

/* ==================== TERMINAL OUTPUT STYLING ==================== */
.terminal-output {
    background: linear-gradient(135deg, #3d3329 0%, #4a3d32 100%);
    color: #d4c4b0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #5a4d3f;
}

.terminal-output code {
    display: block;
    white-space: pre;
    color: #d4c4b0;
    line-height: 1.6;
}

/* ==================== IMAGE EXPANSION MODAL ==================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(8px);
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    animation: zoomIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.image-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.expandable-image {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.expandable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

