/* ============================================
   DANIEL SINGER PORTFOLIO - STYLES
   Mycelium over Circuit Boards
   CLEANED AND ORGANIZED VERSION
   ============================================ */

/* ==========================================
   COLOR VARIABLES
   ========================================== */
:root {
    /* Brand Colors */
    --terra-cotta: #D4655C;
    --vivid-red: #b52414;
    --deep-blue: #1B4B6B;
    --cream: #F5F1E8;
    --coral: #C97B72;
    
    /* Nature Tones */
    --forest-green: #4A6B5C;
    --sage: #9CAF88;
    --earth-brown: #8B7355;
    --warm-gray: #ABA59E;
    
    /* Ethereal Tech */
    --muted-teal: #6B8E8E;
    --soft-sage: #A8BFB8;
    --dusty-lavender: #B8A8B8;
    --pale-gold: #D4C5A0;
    
    /* Functional */
    --text-dark: #2c2c2c;
    --text-light: #f5f5f5;
}

/* ==========================================
   CUSTOM FONTS
   ========================================== */
@font-face {
    font-family: 'Hannari';
    src: url(fonts/HannariMincho-Regular.otf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EB Garamond';
    src: url(fonts/EBGaramond12-Regular.otf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'EB Garamond';
    src: url(fonts/EBGaramond12-Italic.otf);
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'EB Garamond';
    src: url(fonts/EBGaramond08-Regular.otf);
    font-weight: 600;
    font-style: normal;
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

#main-site {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section {
    scroll-margin-top: 80px;
}

/* ==========================================
   TERMINAL SCREEN
   ========================================== */
.terminal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.terminal-window {
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
}

.terminal-body {
    flex: 1;
    padding: 40px;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #00ff41;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-content {
    display: block;
    text-align: center;
}

#terminal-text {
    display: inline-block;
    white-space: pre;
    text-align: left;
}

.cursor {
    color: #00ff41;
    animation: blink 0.8s infinite;
    display: inline-block;
}

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

.welcome-flash {
    color: #00ff41;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff41;
}

.welcome-flash-jp {
    font-family: 'Hannari', serif;
}

.welcome-flash-en {
    font-family: 'EB Garamond', serif;
}

/* ==========================================
   BINARY WATERFALL
   ========================================== */
#binary-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    background: #000000;
}

/* ==========================================
   BINARY FLASH OVERLAY
   ========================================== */
.binary-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #00ff41;
    transition: opacity 0.15s ease;
}

.binary-flash.active {
    opacity: 1;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(27, 75, 107, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(168, 191, 184, 0.2);
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-kanji {
    font-family: 'Hannari', Serif;
    font-size: 1.3rem;
    color: var(--vivid-red);
    font-weight: 400;
}

.logo-name {
    font-family: 'EB Garamond', Serif;
    font-size: 2rem;
    color: var(--soft-sage);
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--cream);
    font-family: 'EB Garamond', Serif;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(225, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--deep-blue);
    background: var(--cream);
    border-color: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 36, 20, 0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terra-cotta);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 0;
}

.nav-controls {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.toggle-btn:active {
    transform: translateY(0) rotate(0deg);
}

/* ==========================================
   HERO SECTION - HOMEPAGE
   ========================================== */
.hero-section {
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 4rem 5%;
    position: relative;
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2d5a7b 50%, var(--forest-green) 100%);
    overflow: visible;
    contain: layout;
    flex: 0 0 auto;
}

.hero-triptych {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    padding-top: 5rem;
    margin: 0 auto;
    overflow: visible;
    padding-bottom: 3rem;
}

.hero-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.hero-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 4rem;
}

/* LEFT PANEL - Words with Frame */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.hero-left::before {
    content: '';
    position: absolute;
    left: -250px;
    top: -400px;
    width: 800px;
    height: 12000px;
    background-image: url('Img Folder/Red_frame.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left top;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.geometric-frame {
    position: relative;
    z-index: 1;
}

.hero-words {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
    transform: translateY(-60px);
    padding-left: 110px;
    padding-top: 0px;
    z-index: 2;
    position: relative;
}

.word-line {
    display: block;
    color: var(--cream);
    font-style: italic;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* CENTER PANEL - Photo */
.hero-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.enso-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-left: 0;
    margin-top: 0;
}

.enso-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 0 4px var(--cream),
        0 0 0 8px rgba(245, 241, 232, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

.enso-circle::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 6px solid var(--cream);
    opacity: 0.6;
    animation: enso-breathe 4s ease-in-out infinite;
}

@keyframes enso-breathe {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.02) rotate(2deg);
        opacity: 0.8;
    }
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.enso-circle:hover .hero-photo {
    transform: scale(1.05);
}

/* RIGHT PANEL - Floating Tags */
.hero-right {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.seed-of-life-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin-left: -5rem;
    margin-top: 0;
}

.seed-tag {
    position: absolute;
    padding: 0.8rem 1.5rem;
    background: rgba(27, 75, 107, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--soft-sage);
    border-radius: 30px;
    color: var(--cream);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.seed-tag:hover {
    background: rgba(168, 191, 184, 0.8);
    color: var(--deep-blue);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(168, 191, 184, 0.4);
    z-index: 10;
}

.tag-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: seed-pulse 6s ease-in-out infinite;
}

.tag-2 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: seed-orbit-1 12s linear infinite;
}

.tag-3 {
    top: 25%;
    right: 10%;
    animation: seed-orbit-2 12s linear infinite 2s;
}

.tag-4 {
    bottom: 25%;
    right: 10%;
    animation: seed-orbit-3 12s linear infinite 4s;
}

.tag-5 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: seed-orbit-4 12s linear infinite 6s;
}

.tag-6 {
    bottom: 25%;
    left: 10%;
    animation: seed-orbit-5 12s linear infinite 8s;
}

@keyframes seed-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes seed-orbit-1 {
    0%, 100% { transform: translate(-50%, 0) translateY(0); }
    50% { transform: translate(-50%, 0) translateY(-10px); }
}

@keyframes seed-orbit-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes seed-orbit-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

@keyframes seed-orbit-4 {
    0%, 100% { transform: translate(-50%, 0) translateY(0); }
    50% { transform: translate(-50%, 0) translateY(10px); }
}

@keyframes seed-orbit-5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 10px); }
}

/* BOTTOM LEFT - Musubi Logo & Tagline */
.hero-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 30px;
    margin-top: -325px;
}

.musubi-divider {
    display: flex;
    align-items: center;
    gap: .2rem;
    width: auto;
    max-width: 500px;
}

.divider-line {
    flex: 1;
    height: 2px;
    transform: translateY(-50px);
    background: linear-gradient(
        to right, 
        transparent,
        rgba(245, 241, 232, 0.6),
        var(--cream), 
        rgba(245, 241, 232, 0.6),
        transparent
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.musubi-logo {
    width: 300px;
    height: auto;
    transform: translateY(-50px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.musubi-logo:hover {
    transform: rotate(10deg) scale(1.1);
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--cream);
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    position: relative;
    transform: translateX(0) translateY(-150px);
    text-align: center;
    width: 100%;
    white-space: nowrap; 
}

/* BOTTOM RIGHT - Profile Text */
.hero-bottom-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0;
    margin-left: -25px;
}

.profile-intro {
    color: var(--cream);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    text-align: center;
}

.profile-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--soft-sage);
    font-weight: 400;
    margin-left: 0;
    margin-top: 0;
}

/* ==========================================
   CONTENT SECTIONS - ALL PAGES
   ========================================== */
.content-section {
    min-height: 100vh;
    padding: 8rem 5%;
    display: flex;
    align-items: center;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    color: var(--deep-blue);
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--terra-cotta);
}

.section-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-dark);
    max-width: 800px;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: inherit;
}

/* Page-specific backgrounds */
#business {
    background: linear-gradient(135deg, #e8e4d8 0%, var(--sage) 50%, var(--forest-green) 100%);
}

#resources {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2d5a7b 50%, var(--muted-teal) 100%);
}

#resources .section-title {
    color: var(--cream);
}

#works {
    background: linear-gradient(135deg, var(--cream) 0%, var(--pale-gold) 50%, var(--earth-brown) 100%);
}

#about {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--deep-blue) 100%);
    color: var(--cream);
}

#about .section-title {
    color: var(--cream);
}

/* ==========================================
   BUSINESS PAGE
   ========================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--deep-blue);
    font-size: 1.5rem;
    white-space: nowrap;
}

.project-card p {
    color: var(--text-dark);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--terra-cotta);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--vivid-red);
}

.cta-section {
    margin-top: 5rem;
    text-align: center;
    padding: 3rem;
    background: rgba(27, 75, 107, 0.1);
    border-radius: 12px;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--terra-cotta);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--vivid-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 101, 92, 0.4);
}

/* ==========================================
   RESOURCES PAGE
   ========================================== */
.knowledge-section,
.musubi-section {
    margin-bottom: 5rem;
}

.subsection-title {
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 1rem;
    font-weight: 300;
}

.subsection-intro {
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.resource-card h4 {
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: rgba(245, 241, 232, 0.8);
    font-size: 0.95rem;
}

/* Musubi Community Card */
.musubi-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

.musubi-image {
    width: 100%;
}

.musubi-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.musubi-content h4 {
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.musubi-content p {
    color: rgba(245, 241, 232, 0.9);
    margin-bottom: 1.5rem;
}

.musubi-links {
    display: flex;
    gap: 1rem;
}

.musubi-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--terra-cotta);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.musubi-link:hover {
    background: var(--vivid-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 101, 92, 0.4);
}

/* ==========================================
   WORKS PAGE
   ========================================== */
.works-horizontal-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.works-single-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 450px;
}

.works-single-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.works-single-card h3 {
    font-size: 1.3rem;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.works-single-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.writing-card-single {
    cursor: default;
}

.writing-card-single:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.95);
}

.substack-embed {
    margin-top: 1rem;
}

.substack-embed iframe {
    max-height: 280px;
}

.github-embed {
    margin-top: 1rem;
}

.github-embed iframe {
    max-height: 300px;
    height: 300px;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    padding-left: 3rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.about-text p {
    color: rgba(245, 241, 232, 0.9);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-photo {
    width: 300px;
    height: 300px;
    margin: 2rem 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 0 4px var(--cream),
        0 0 0 8px rgba(245, 241, 232, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.about-list li {
    color: rgba(245, 241, 232, 0.9);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--terra-cotta);
    font-weight: bold;
}

.contact-sidebar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-sidebar h3 {
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.contact-sidebar p {
    color: rgba(245, 241, 232, 0.9);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(245, 241, 232, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--terra-cotta);
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    padding: 0.8rem 2rem;
    background: var(--terra-cotta);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--vivid-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 101, 92, 0.4);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: block;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--deep-blue);
    color: var(--cream);
    padding: 3rem 5%;
    text-align: center;
    flex-shrink: 0;
}

.site-footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ==========================================
   DARK MODE
   ========================================== */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f5f5f5;
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .nav-bar {
    background: rgba(0, 0, 0, 0.95);
}

body.dark-mode #business {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3a3a3a 100%);
}

body.dark-mode #resources {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
}

body.dark-mode #works {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3a3a3a 100%);
}

body.dark-mode #about {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

body.dark-mode .works-single-card,
body.dark-mode .project-card,
body.dark-mode .resource-card {
    background: rgba(50, 50, 50, 0.9);
    color: #f5f5f5;
}

body.dark-mode .works-single-card h3,
body.dark-mode .project-card h3 {
    color: var(--soft-sage);
}

body.dark-mode .works-single-card p,
body.dark-mode .project-card p {
    color: #e0e0e0;
}

body.dark-mode .site-footer {
    background: #0a0a0a;
}

/* Bioluminescent Glow - All Text Elements */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p,
body.dark-mode li,
body.dark-mode a,
body.dark-mode .profile-intro p,
body.dark-mode .hero-words .word-line,
body.dark-mode .hero-tagline,
body.dark-mode .seed-tag,
body.dark-mode .section-title,
body.dark-mode .subsection-title,
body.dark-mode .section-intro,
body.dark-mode .subsection-intro,
body.dark-mode .project-card h3,
body.dark-mode .project-card p,
body.dark-mode .resource-card h4,
body.dark-mode .resource-card p,
body.dark-mode .works-single-card h3,
body.dark-mode .works-single-card p,
body.dark-mode .about-text h3,
body.dark-mode .about-text p,
body.dark-mode .about-list li,
body.dark-mode .contact-sidebar h3,
body.dark-mode .contact-sidebar p,
body.dark-mode .social-link,
body.dark-mode .site-footer p,
body.dark-mode .nav-links a,
body.dark-mode .nav-logo .logo-name {
    text-shadow: 0 0 15px rgba(79, 192, 255, 0.8),
                 0 0 30px rgba(79, 192, 255, 0.5),
                 0 0 45px rgba(79, 192, 255, 0.3);
    color: #4fc0ff !important;
}

/* ==========================================
   JAPANESE TEXT FORMATTING
   ========================================== */
body[lang="jp"] h1,
body[lang="jp"] h2,
body[lang="jp"] h3,
body[lang="jp"] h4 {
    line-height: 1.6;
}

body[lang="jp"] p,
body[lang="jp"] li {
    line-height: 2;
}

body[lang="jp"] .hero-tagline,
body[lang="jp"] .section-title,
body[lang="jp"] .subsection-title {
    text-align: center;
}

body[lang="jp"] .profile-intro {
    text-align: center;
    max-width: 500px;
}

body[lang="jp"] .section-intro,
body[lang="jp"] .subsection-intro,
body[lang="jp"] .project-card p,
body[lang="jp"] .resource-card p,
body[lang="jp"] .works-single-card p,
body[lang="jp"] .about-text p {
    text-align: left;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hero-top-row,
    .hero-bottom-row {
        gap: 2rem;
    }
    
    .hero-words {
        font-size: 2.2rem;
        padding-left: 80px;
    }
    
    .seed-of-life-container {
        width: 300px;
        height: 300px;
        margin-left: -3rem;
    }
    
    .seed-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .hero-top-row,
    .hero-bottom-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        justify-items: center;
    }
    
    .hero-left::before {
        display: none;
    }
    
    .hero-left,
    .hero-center,
    .hero-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-bottom-left,
    .hero-bottom-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-left: 0;
        margin-top: 0;
        margin-left: 0;
    }
    
    .seed-of-life-container {
        margin-left: 0;
    }
    
    .hero-words {
        padding-left: 0;
        transform: translateY(0);
        text-align: center;
    }
    
    .musubi-divider,
    .musubi-logo,
    .hero-tagline {
        transform: none;
    }
    
    .profile-intro {
        text-align: center;
        max-width: 400px;
    }
    
    .works-horizontal-row {
        grid-template-columns: 1fr;
    }
    
    .musubi-card,
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-words {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.3rem;
    }
    
    .enso-container {
        width: 220px;
        height: 220px;
    }
    
    .seed-of-life-container {
        width: 250px;
        height: 250px;
    }
    
    .seed-tag {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-image {
        height: 180px;
    }
}
