/* ═══════════════════════════════════════════════════════════════
   RETRO CUPHEAD / 1930s CARTOON STYLE PORTFOLIO
   Rubber-hose animation meets Daily Prophet newspaper
   ═══════════════════════════════════════════════════════════════ */

/* Fonts loaded via HTML link tag for better browser compatibility */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f5f0e6;
    --cream-dark: #e8e0d0;
    --sepia: #d4c4a8;
    --ink: #1a1a1a;
    --ink-light: #3a3a3a;
    --accent: #e8a435;
    --accent-dark: #c78a1d;
    --border-color: #1a1a1a;
    --film-scratch: rgba(0, 0, 0, 0.03);
    
    /* Character colors */
    --char-skin: #f5f0e6;
    --char-coffee: #3d2314;
    --char-body: #1a1a1a;
    --char-blush: #d4a574;
    --desk-color: #a0522d;
    --desk-leg: #8B4513;
    --chair-color: #2a2a2a;
    --monitor-screen: #1e2d1e;
    --code-green: #00ff00;
}

/* Dark mode variables */
[data-theme="dark"] {
    --cream: #1a1a1a;
    --cream-dark: #252525;
    --sepia: #2a2a2a;
    --ink: #e8e0d0;
    --ink-light: #c0b8a8;
    --accent: #ffb845;
    --accent-dark: #e8a435;
    --border-color: #e8e0d0;
    --film-scratch: rgba(255, 255, 255, 0.02);
    
    /* Character colors in dark mode */
    --char-skin: #f5f0e6;
    --char-coffee: #3d2314;
    --char-body: #1a1a1a;
    --char-blush: #d4a574;
    --desk-color: #8B4513;
    --desk-leg: #654321;
    --chair-color: #3a3a3a;
    --monitor-screen: #0a150a;
    --code-green: #00ff00;
}

/* Base styles with vintage film look */
body {
    font-family: 'Courier Prime', 'Courier New', monospace;
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    /* Halftone dot pattern like old print */
    background-image: 
        radial-gradient(circle, var(--ink) 1px, transparent 1px);
    background-size: 4px 4px;
    background-color: var(--cream);
}

/* Film grain overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.08;
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 0); }
    60% { transform: translate(1%, 0); }
    70% { transform: translate(0, 1%); }
    80% { transform: translate(0, -1%); }
    90% { transform: translate(1%, 1%); }
}

/* Vignette effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* Film scratches overlay */
.film-scratches {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0,0,0,0.1) 98%, rgba(0,0,0,0.1) 98.5%, transparent 98.5%),
        linear-gradient(90deg, transparent 45%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.03) 45.2%, transparent 45.2%),
        linear-gradient(90deg, transparent 72%, rgba(0,0,0,0.05) 72%, rgba(0,0,0,0.05) 72.1%, transparent 72.1%);
    animation: scratch-move 0.5s steps(1) infinite;
}

@keyframes scratch-move {
    0% { background-position: 0 0, 0 0, 0 0; }
    25% { background-position: 20px 0, -30px 0, 50px 0; }
    50% { background-position: -10px 0, 40px 0, -20px 0; }
    75% { background-position: 30px 0, -20px 0, 10px 0; }
    100% { background-position: 0 0, 0 0, 0 0; }
}

/* Film flicker animation */
@keyframes film-flicker {
    0%, 100% { opacity: 1; }
    5% { opacity: 0.97; }
    10% { opacity: 1; }
    15% { opacity: 0.98; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    85% { opacity: 0.96; }
    90% { opacity: 1; }
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    animation: film-flicker 4s ease-in-out infinite;
    position: relative;
}

/* Rubber-hose wiggle animation for borders */
@keyframes wobble-border {
    0%, 100% { border-radius: 0 2px 0 2px; }
    25% { border-radius: 2px 0 2px 0; }
    50% { border-radius: 0 2px 0 2px; }
    75% { border-radius: 2px 0 2px 0; }
}

/* Header */
.header {
    border: 3px solid var(--border-color);
    animation: wobble-border 4s ease-in-out infinite;
    padding: 30px 20px;
    margin-bottom: 0;
    background: var(--cream);
}

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

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cartoon-mascot {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 0 var(--ink));
}

.mascot-svg {
    width: 100%;
    height: 100%;
    animation: rubber-hose-bounce 1.2s ease-in-out infinite;
    transform-origin: center bottom;
}

.mascot-right .mascot-svg {
    animation-delay: 0.3s;
}

/* Rubber-hose squash and stretch animation */
@keyframes rubber-hose-bounce {
    0%, 100% { 
        transform: translateY(0) scaleX(1) scaleY(1); 
    }
    15% { 
        transform: translateY(-8px) scaleX(0.95) scaleY(1.1); 
    }
    30% { 
        transform: translateY(0) scaleX(1.05) scaleY(0.95); 
    }
    45% { 
        transform: translateY(-4px) scaleX(0.98) scaleY(1.05); 
    }
    60% { 
        transform: translateY(0) scaleX(1.02) scaleY(0.98); 
    }
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

.subtitle-top {
    font-family: 'Special Elite', cursive;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    color: var(--ink-light);
}

.main-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.1;
    /* Retro text shadow */
    text-shadow: 
        2px 2px 0 var(--accent),
        4px 4px 0 var(--ink);
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border: 3px solid var(--border-color);
    border-top: none;
    background: var(--ink);
}

.nav-link {
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    color: var(--cream);
    text-decoration: none;
    padding: 15px 25px;
    letter-spacing: 1px;
    transition: all 0.15s ease;
    border-right: 1px solid var(--ink-light);
    position: relative;
    overflow: hidden;
}

.nav-link:last-child {
    border-right: none;
}

.nav-link:hover {
    background: var(--accent);
    color: var(--ink);
    transform: scale(1.05);
    animation: nav-bounce 0.3s ease;
}

@keyframes nav-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) translateY(-2px); }
    100% { transform: scale(1.05); }
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--cream);
    color: var(--cream);
    font-family: 'Special Elite', cursive;
    font-size: 0.85rem;
    padding: 12px 20px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle .toggle-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .toggle-icon {
    transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--ink);
    color: var(--ink);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--accent);
}

/* Smooth transition for theme change */
body,
.header,
.main-nav,
.main-content,
.prophet-notice,
.footer,
.project-card,
.contact-btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Main Content */
.main-content {
    border: 3px solid var(--border-color);
    border-top: none;
    padding: 40px 30px;
    background: var(--cream);
}

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ink);
}

.section-title.centered {
    display: block;
    text-align: center;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    font-family: 'Special Elite', cursive;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--ink-light);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.body-text {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.tagline-box {
    display: inline-block;
    background: var(--ink);
    padding: 10px 25px;
    margin-top: 15px;
}

.tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 2px;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-illustration {
    width: 100%;
    max-width: 250px;
    filter: drop-shadow(3px 3px 0 var(--ink));
}

.main-character {
    width: 100%;
    height: auto;
    animation: rubber-hose-idle 2s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Cuphead-style rubber hose idle animation */
@keyframes rubber-hose-idle {
    0%, 100% { 
        transform: translateY(0) scaleX(1) scaleY(1) rotate(0deg); 
    }
    12% { 
        transform: translateY(-6px) scaleX(0.97) scaleY(1.06) rotate(0.5deg); 
    }
    25% { 
        transform: translateY(-8px) scaleX(0.95) scaleY(1.08) rotate(0deg); 
    }
    37% { 
        transform: translateY(-6px) scaleX(0.97) scaleY(1.06) rotate(-0.5deg); 
    }
    50% { 
        transform: translateY(0) scaleX(1.03) scaleY(0.97) rotate(0deg); 
    }
    62% { 
        transform: translateY(-4px) scaleX(0.98) scaleY(1.04) rotate(0.3deg); 
    }
    75% { 
        transform: translateY(-6px) scaleX(0.96) scaleY(1.05) rotate(0deg); 
    }
    87% { 
        transform: translateY(-3px) scaleX(0.99) scaleY(1.02) rotate(-0.3deg); 
    }
}

/* Steam animation for coffee cup character */
.steam {
    animation: steam-rise 2s ease-in-out infinite;
    transform-origin: bottom center;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 0.3s; }
.steam-3 { animation-delay: 0.6s; }

@keyframes steam-rise {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scaleY(1.2);
    }
}

/* Character arm animations - typing */
.left-arm {
    animation: typing-left 0.4s ease-in-out infinite;
    transform-origin: 175px 185px;
}

.right-arm {
    animation: typing-right 0.4s ease-in-out infinite;
    transform-origin: 183px 184px;
    animation-delay: 0.2s;
}

@keyframes typing-left {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes typing-right {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Cup head bob - focused coding */
.cup-head {
    animation: coding-focus 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes coding-focus {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-1px) rotate(0.5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-1px) rotate(-0.5deg); }
}

/* Desk coffee steam */
.desk-coffee .steam {
    animation: desk-steam 2.5s ease-in-out infinite;
}

@keyframes desk-steam {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-4px); }
}

/* Monitor glow effect */
.monitor rect:nth-child(2) {
    animation: screen-glow 2s ease-in-out infinite;
}

@keyframes screen-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

/* Broken neon sign flicker effects */
.neon-flicker {
    animation: neon-flicker-fast 0.15s ease-in-out infinite;
}

.neon-flicker-slow {
    animation: neon-flicker-slow 2s ease-in-out infinite;
}

@keyframes neon-flicker-fast {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.3;
    }
    22% {
        opacity: 0.6;
    }
}

@keyframes neon-flicker-slow {
    0%, 40%, 44%, 100% {
        opacity: 1;
    }
    41%, 43% {
        opacity: 0.4;
    }
    42% {
        opacity: 0.7;
    }
}

/* Neon sign gentle swing */
.neon-sign {
    animation: sign-swing 4s ease-in-out infinite;
    transform-origin: 102px 6px;
}

@keyframes sign-swing {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(-6deg); }
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 50px 0;
}

.divider-star {
    font-size: 1rem;
    color: var(--ink);
    animation: star-spin 3s ease-in-out infinite;
}

@keyframes star-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--ink),
        var(--ink) 8px,
        transparent 8px,
        transparent 12px
    );
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    border: 2px solid var(--border-color);
    padding: 25px;
    background: var(--cream);
    transition: all 0.15s ease;
    position: relative;
    animation: card-idle 4s ease-in-out infinite;
}

.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: 0.5s; }
.project-card:nth-child(3) { animation-delay: 1s; }

@keyframes card-idle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(0.2deg); }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--border-color);
    z-index: -1;
    background: var(--cream-dark);
    transition: all 0.15s ease;
}

.project-card:hover {
    transform: translate(-4px, -4px) scale(1.02);
    animation: none;
}

.project-card:hover::before {
    top: 10px;
    left: 10px;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    animation: icon-wobble 2s ease-in-out infinite;
}

@keyframes icon-wobble {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.card-svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.card-subtitle {
    font-family: 'Special Elite', cursive;
    font-size: 0.85rem;
    color: var(--ink-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    color: var(--ink);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent);
    transition: all 0.2s ease;
}

.card-link:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--ink);
}

.arrow-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.card-link:hover .arrow-icon {
    transform: translate(3px, -3px);
}

/* Skills Section */
.skills-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    border: 2px solid var(--border-color);
    padding: 20px;
}

.category-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px dashed var(--ink-light);
    position: relative;
    padding-left: 20px;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    color: var(--accent);
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid var(--border-color);
    background: var(--cream);
    transition: all 0.15s ease;
    letter-spacing: 1px;
    position: relative;
}

.contact-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 4px;
    right: -4px;
    height: 100%;
    border: 2px solid var(--border-color);
    background: var(--cream-dark);
    z-index: -1;
    transition: all 0.15s ease;
}

.contact-btn:hover {
    background: var(--ink);
    color: var(--cream);
    transform: translate(-2px, -2px) scale(1.05);
}

.contact-btn:hover::after {
    bottom: -6px;
    left: 6px;
}

.contact-btn:active {
    transform: translate(0, 0) scale(0.98);
}

.contact-btn:active::after {
    bottom: -2px;
    left: 2px;
}

.btn-icon {
    font-size: 1.2rem;
    animation: icon-wiggle 2s ease-in-out infinite;
}

@keyframes icon-wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Footer */
.footer {
    border: 3px solid var(--border-color);
    border-top: none;
    padding: 30px;
    background: var(--ink);
    text-align: center;
}

.footer-text {
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    color: var(--cream);
    letter-spacing: 1px;
}

.footer-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: var(--accent);
    margin-top: 10px;
    font-style: italic;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .page-container {
        padding: 10px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .cartoon-mascot {
        width: 60px;
        height: 60px;
    }
    
    .mascot-right {
        display: none;
    }
    
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 25px 15px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-right {
        order: -1;
    }
    
    .character-illustration {
        max-width: 180px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid var(--ink-light);
        text-align: center;
        padding: 12px 10px;
        font-size: 0.75rem;
    }
    
    .nav-link:nth-child(odd) {
        border-right: 1px solid var(--ink-light);
    }
    
    .nav-link:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    .skills-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DAILY PROPHET STYLE - Under Construction Notice
   ═══════════════════════════════════════════════════════════════ */

.prophet-notice {
    border: 3px solid var(--border-color);
    border-top: none;
    background: var(--cream);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.prophet-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 0, 0, 0.02) 100px,
            rgba(0, 0, 0, 0.02) 101px
        );
    pointer-events: none;
}

.prophet-header {
    background: var(--ink);
    color: var(--cream);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px double var(--cream);
}

.prophet-date,
.prophet-edition {
    font-family: 'Special Elite', cursive;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.prophet-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    animation: glow-text 2s ease-in-out infinite alternate;
}

@keyframes glow-text {
    from { text-shadow: 0 0 5px rgba(232, 164, 53, 0.5); }
    to { text-shadow: 0 0 20px rgba(232, 164, 53, 0.8), 0 0 30px rgba(232, 164, 53, 0.4); }
}

.prophet-content {
    display: block;
    padding: 25px;
}

.prophet-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
}

.prophet-headline {
    grid-column: 1 / -1;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.headline-word {
    display: inline-block;
    animation: wave-text 3s ease-in-out infinite;
}

.headline-word:nth-child(1) { animation-delay: 0s; }
.headline-word:nth-child(2) { animation-delay: 0.2s; }
.headline-word:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave-text {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-3px) rotate(1deg); }
}

.prophet-portrait {
    width: 150px;
    flex-shrink: 0;
}

.portrait-frame {
    border: 3px solid var(--ink);
    padding: 10px;
    background: var(--cream-dark);
    position: relative;
}

.portrait-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--ink);
    pointer-events: none;
}

.portrait-character {
    width: 100%;
    height: auto;
    display: block;
}

/* Builder head bob animation */
.builder-head {
    animation: builder-head-bob 2s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes builder-head-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-2px) rotate(2deg); }
    60% { transform: translateY(-1px) rotate(-2deg); }
}

/* Animated character parts */
.blink-eye {
    animation: blink-eyes 4s ease-in-out infinite;
}

@keyframes blink-eyes {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.smile-animate {
    animation: smile-wiggle 2s ease-in-out infinite;
}

@keyframes smile-wiggle {
    0%, 100% { d: path("M 40 48 Q 50 58 60 48"); }
    50% { d: path("M 40 48 Q 50 62 60 48"); }
}

.arm-left {
    animation: arm-work-left 1s ease-in-out infinite;
    transform-origin: 35px 70px;
}

.arm-right {
    animation: arm-work-right 0.8s ease-in-out infinite;
    transform-origin: 65px 70px;
}

@keyframes arm-work-left {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes arm-work-right {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-20deg); }
}

.portrait-caption {
    font-family: 'Special Elite', cursive;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    color: var(--ink-light);
}

.prophet-story {
    columns: 2;
    column-gap: 25px;
    column-rule: 1px solid var(--ink-light);
}

.story-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
}

.drop-cap {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 900;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 5px;
    color: var(--ink);
}

.story-highlight {
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    color: var(--ink);
    animation: pulse-highlight 2s ease-in-out infinite;
}

@keyframes pulse-highlight {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.prophet-footer {
    background: var(--cream-dark);
    padding: 10px 20px;
    text-align: center;
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    color: var(--ink-light);
    border-top: 1px solid var(--ink-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-decoration {
    color: var(--ink);
}

/* Prophet section responsive */
@media screen and (max-width: 768px) {
    .prophet-main {
        grid-template-columns: 1fr;
    }
    
    .prophet-portrait {
        width: 120px;
        margin: 0 auto;
    }
    
    .prophet-story {
        columns: 1;
    }
    
    .prophet-title {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
    
    .prophet-header {
        flex-direction: column;
        gap: 5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

[data-theme="dark"] body {
    background-image: 
        radial-gradient(circle, rgba(232, 224, 208, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] body::before {
    opacity: 0.04;
}

[data-theme="dark"] .main-nav {
    background: var(--sepia);
}

[data-theme="dark"] .nav-link {
    color: var(--ink);
    border-color: var(--ink-light);
}

[data-theme="dark"] .project-card {
    background: var(--cream-dark);
    box-shadow: 4px 4px 0 rgba(232, 224, 208, 0.2);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 6px 6px 0 rgba(232, 224, 208, 0.3);
}

[data-theme="dark"] .contact-btn {
    background: var(--cream-dark);
    box-shadow: 3px 3px 0 rgba(232, 224, 208, 0.2);
}

[data-theme="dark"] .contact-btn:hover {
    background: var(--accent);
    color: #1a1a1a;
}

[data-theme="dark"] .prophet-notice {
    background: var(--cream-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .portrait-frame {
    background: var(--cream-dark);
    box-shadow: 3px 3px 0 rgba(232, 224, 208, 0.2);
}

[data-theme="dark"] .footer {
    background: var(--sepia);
}

/* Dark mode character adjustments - keep character visible */
[data-theme="dark"] .main-character .cup-head path,
[data-theme="dark"] .main-character .body path,
[data-theme="dark"] .main-character rect,
[data-theme="dark"] .main-character circle,
[data-theme="dark"] .main-character ellipse {
    stroke: #e8e0d0;
}

[data-theme="dark"] .neon-sign rect {
    fill: #3a3a3a;
}

[data-theme="dark"] .monitor rect:first-child {
    fill: #2a2a2a;
}

/* Dark mode project card icons */
[data-theme="dark"] .card-svg polygon,
[data-theme="dark"] .card-svg circle,
[data-theme="dark"] .card-svg rect,
[data-theme="dark"] .card-svg line {
    stroke: var(--ink);
}

[data-theme="dark"] .card-svg circle[fill="#1a1a1a"],
[data-theme="dark"] .card-svg rect[fill="#1a1a1a"] {
    fill: var(--ink);
}

[data-theme="dark"] .card-svg text {
    fill: var(--ink);
}

/* Dark mode footer text */
[data-theme="dark"] .footer-text,
[data-theme="dark"] .footer-tagline {
    color: var(--ink);
}

/* Print styles for that newspaper feel */
@media print {
    body {
        background: white;
    }
    
    .page-container {
        max-width: 100%;
    }

    .prophet-notice {
        animation: none !important;
    }
}