/* ============================================================================
   SINA.HOMES - Redesigned with Algorithmic Art
   Modern, Clean, Professional Real Estate Experience
   ============================================================================ */

/* ============================================================================
   CSS VARIABLES - Design System
   ============================================================================ */
:root {
    /* Colors - Professional Palette */
    --color-primary: #2C3E50;          /* Deep blue-gray */
    --color-secondary: #3498DB;        /* Bright blue */
    --color-accent: #E74C3C;           /* Coral red */
    --color-success: #27AE60;          /* Green */

    --color-bg-light: #F8F9FA;         /* Off-white background */
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #1A1A1A;

    --color-text-primary: #2C3E50;
    --color-text-secondary: #7F8C8D;
    --color-text-light: #FFFFFF;

    --color-border: #E0E0E0;
    --color-shadow: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Terminal accent color */
    --color-terminal: #00ff88;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================================================
   WELCOME SCREEN
   ============================================================================ */
.welcome-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

#welcomeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-md);
    max-width: 600px;
    pointer-events: none; /* Let clicks pass through to canvas if needed */
}

/* ============================================================================
   DATA OVERLAY (Replaces Canvas Text)
   ============================================================================ */
.data-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Crucial: allows mouse interaction with canvas particles */
    overflow: hidden;
}

/* Time Display - Top Center */
.time-display {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #282828; /* Dark grey from p5 sketch */
}

#dateText {
    font-family: Arial, sans-serif;
    font-size: 28px;
    margin-bottom: 5px;
}

#timeText {
    font-family: Arial, sans-serif;
    font-size: 24px;
}

/* Skyline - Top Right (Matrix Style) */
.skyline-container {
    position: absolute;
    top: 20px;
    right: 20px;
    /* No pointer events */
}

.skyline-bg {
    position: absolute;
    top: -5px;
    right: 0;
    width: 100%;
    height: calc(100% + 10px);
    background-color: rgba(0, 0, 0, 0.78); /* 200/255 opacity */
    z-index: -1;
}

.skyline-text {
    font-family: 'Courier New', monospace;
    font-size: 3.5px;
    line-height: 1.15;
    color: #00ff88; /* Terminal Green */
    margin: 0;
    white-space: pre;
    text-align: right;
}

/* Region Info - Center */
.region-info {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

#regionTitle {
    font-family: Arial, sans-serif;
    font-size: 55px;
    color: #1e1e1e; /* 30, 30, 30 */
    margin: 0;
    font-weight: normal;
}

#regionSubtitle {
    font-family: Arial, sans-serif;
    font-size: 23px;
    color: #323232; /* 50, 50, 50 */
    margin: 10px 0 0 0;
}

/* Axis Labels */
.axis-labels {
    position: absolute;
    font-family: Arial, sans-serif;
}

/* Y-Axis (Prices) */
.y-axis {
    top: 28%;
    left: 45px; /* Fixed X position from p5 sketch */
    height: 54%; /* Graph height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 16px;
    color: #282828;
    text-align: right;
}

.y-label {
    transform: translateY(50%); /* Center vertically on the tick */
}

/* X-Axis (Years) */
.x-axis {
    bottom: 13%; /* 100% - 87% */
    left: 50px; /* Margin */
    right: 50px; /* Margin */
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

/* Mobile Responsiveness for Overlay */
@media (max-width: 768px) {
    #dateText { font-size: 18px; }
    #timeText { font-size: 16px; }
    
    .skyline-text { font-size: 2.5px; }
    
    #regionTitle { font-size: 31px; }
    #regionSubtitle { font-size: 16px; }
    
    .y-axis { 
        left: 35px; 
        font-size: 11px;
    }
    
    .x-axis {
        left: 40px;
        right: 40px;
        font-size: 12px;
    }
}

/* ASCII Art Portrait - Top Left Corner */
.ascii-portrait-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    transform: scale(0.35);
    transform-origin: top left;
}

.ascii-portrait {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    line-height: 1;
    color: var(--color-terminal);
    background: rgba(0, 0, 0, 0.85);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-terminal);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    margin: 0;
    white-space: pre;
    opacity: 0.9;
    transition: opacity var(--transition-normal);
}

.ascii-portrait:hover {
    opacity: 1;
}

/* Hidden portrait for wink animation */
.ascii-portrait-wink {
    display: none;
}

/* Speech Bubble */
.speech-bubble {
    position: fixed;
    top: 40px;
    left: 200px;
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 101;
    max-width: 300px;
}

.bubble-close {
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.bubble-close:hover {
    color: #333;
}

.bubble-content {
    position: relative;
    padding-left: 20px;
}

.bubble-text {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.bubble-tail {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid white;
}

/* Choice Buttons */
.choice-buttons {
    position: fixed;
    bottom: 15px;
    right: 40px;
    z-index: 101;
}

.choice-button {
    padding: 0.8rem var(--spacing-lg);
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-align: left;
    cursor: pointer;
}

.choice-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

.choice-button .button-text {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.choice-button .button-text::before {
    content: '[ ';
    color: var(--color-terminal);
}

.choice-button .button-text::after {
    content: ' ]';
    color: var(--color-terminal);
}

.choice-button .button-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.05em;
}

.nav-logo::before {
    content: '> ';
    color: var(--color-terminal);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-family: var(--font-mono);
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    background: var(--color-bg-dark);
    color: var(--color-terminal);
}

.nav-links a:hover::before {
    content: '> ';
}

.nav-back {
    font-family: var(--font-mono);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.nav-back:hover {
    background: var(--color-bg-dark);
    color: var(--color-terminal);
}

/* ============================================================================
   MAIN SITE SECTIONS
   ============================================================================ */
.main-site {
    padding-top: 70px;
}

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.section-content-wide {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.section-heading::before {
    content: '/// ';
    color: var(--color-terminal);
    font-weight: 400;
}

/* SECTION 1: INTRO */
.section-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.intro-title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
    color: white;
}

.intro-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: white;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.02em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    letter-spacing: 0.05em;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* Secondary button on light backgrounds */
.section-reviews .cta-button.secondary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.section-reviews .cta-button.secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* SECTION 2: DIFFERENTIATION */
.section-differentiation {
    background: var(--color-bg-white);
}

.differentiation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.content-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.attribute {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-bg-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-terminal);
    border-left: 2px solid var(--color-terminal);
}

.attribute .check {
    color: var(--color-success);
    font-weight: bold;
}

.credentials-box {
    background: var(--color-bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-terminal);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.credentials-box h4 {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-terminal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.credentials-box h4::before {
    content: '[ ';
}

.credentials-box h4::after {
    content: ' ]';
}

.credentials-box ul {
    list-style: none;
}

.credentials-box li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    color: #E0E0E0;
}

.credentials-box li::before {
    content: '> ';
    color: var(--color-terminal);
}

.credentials-box li:last-child {
    border-bottom: none;
}

/* SECTION 3: SERVICES */
.section-services {
    background: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-card h3 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.service-card h3::before {
    content: '$ ';
    color: var(--color-terminal);
}

.service-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* SECTION 4: CREDENTIALS */
.section-credentials {
    background: white;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-box {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-terminal);
    display: block;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.location-info {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
}

.location-info h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* SECTION 5: COMPARISON */
.section-comparison {
    background: var(--color-bg-light);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.comparison-column {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comparison-column h3 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.comparison-item.negative {
    background: #ffebee;
}

.comparison-item.positive {
    background: #e8f5e9;
}

.comparison-item .icon {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}

.comparison-item.negative .icon {
    color: var(--color-accent);
}

.comparison-item.positive .icon {
    color: var(--color-terminal);
}

.comparison-divider {
    width: 2px;
    background: var(--color-border);
}

/* SECTION 6: REVIEWS */
.section-reviews {
    background: white;
}

.reviews-showcase {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.stars {
    font-size: 2rem;
    color: #FFC107;
    margin-bottom: var(--spacing-sm);
}

.review-count {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.review-status {
    color: var(--color-success);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.review-tags {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
}

.tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
}

/* SECTION 7: CONTACT */
.section-contact {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.section-contact .section-heading {
    color: white;
}

.contact-tagline {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item .label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact-item .value {
    color: white;
    font-weight: 500;
}

.contact-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

.footer-back {
    margin-top: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .differentiation-content {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .comparison-divider {
        display: none;
    }

    .nav-links {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .speech-bubble {
        top: 40px;
        bottom: auto;
        left: auto;
        right: 20px;
        max-width: 280px;
    }

    .bubble-tail {
        top: 50%;
        bottom: auto;
        left: -20px;
        transform: translateY(-50%);
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-right: 20px solid white;
        border-left: none;
    }

    .choice-buttons {
        bottom: 10px;
        right: 20px;
        left: 20px;
    }

    .choice-button {
        width: 100%;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .nav-logo {
        flex: 1;
    }

    /* ASCII Portrait mobile adjustments */
    .ascii-portrait-container {
        transform: scale(0.315);
        top: 10px;
        left: 10px;
    }

    .ascii-portrait {
        font-size: 0.4rem;
        padding: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .ascii-portrait-container {
        transform: scale(0.255);
        top: 8px;
        left: 8px;
    }

    .ascii-portrait {
        font-size: 0.35rem;
        padding: var(--spacing-xs);
    }

    .section-heading {
        font-size: 2rem;
    }

    .intro-title {
        font-size: 1.75rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* ============================================================================
   TERMINAL EFFECTS & ANIMATIONS
   ============================================================================ */

/* Cursor blink animation */
@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor-blink::after {
    content: '_';
    color: var(--color-terminal);
    animation: cursor-blink 1s infinite;
}

/* Glow pulse for terminal elements */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
}

/* ASCII section divider */
.ascii-divider {
    font-family: var(--font-mono);
    text-align: center;
    color: var(--color-terminal);
    font-size: 0.8rem;
    padding: var(--spacing-md) 0;
    opacity: 0.6;
}

.ascii-divider::before {
    content: '═══════════════════════════════════════';
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
    .nav-bar, .footer, #welcomeCanvas, .section-canvas {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
