/* Musashi Theme - Elegant Monochrome Warrior Aesthetic */
/* Inspired by traditional sumi-e ink wash painting - soft whites, warm grays, elegant simplicity */

:root {
    /* Elegant Japanese-Inspired Palette */
    /* Inspired by sumi-e ink paintings and natural elements */
    --deep-indigo: #2d3250;      /* Deep calm blue-gray */
    --slate-blue: #424769;        /* Muted blue slate */
    --soft-sage: #7d8f7c;         /* Gentle sage green */
    --warm-clay: #c49a6c;         /* Warm terracotta clay */
    --burnt-sienna: #a67c6d;      /* Earthy rust */
    --dusty-blue: #9ba8b5;        /* Soft dusty blue */
    --bamboo-green: #8b9d83;      /* Muted bamboo */
    --mist-gray: #d4d8dc;         /* Cool mist */
    --warm-sand: #f4ebe1;         /* Warm paper sand */
    --soft-cream: #faf7f2;        /* Soft cream */
    --pure-white: #ffffff;

    /* Accent Colors */
    --sunset-orange: #d89a6f;     /* Gentle sunset */
    --tea-green: #a8b99f;         /* Matcha green */
    --ink-purple: #6b7aa1;        /* Ink wash purple */

    /* Semantic Colors */
    --primary-color: var(--deep-indigo);
    --background-color: var(--soft-cream);
    --text-color: var(--slate-blue);
    --secondary-text: var(--dusty-blue);
    --accent-color: var(--warm-clay);
    --border-color: var(--mist-gray);
    --hover-bg: var(--warm-sand);

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

    /* Typography */
    --font-serif: 'Noto Serif JP', Georgia, serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 17px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper texture overlay */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.015;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Decorative brush strokes - subtle ink wash */
.brush-stroke {
    position: fixed;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--dusty-blue) 50%, transparent 70%);
    transition: transform 0.1s ease-out;
}

.brush-stroke-1 {
    top: 10%;
    right: -80px;
    width: 200px;
    height: 450px;
    transform: rotate(15deg);
    border-radius: 50% 30%;
}

.brush-stroke-2 {
    bottom: 15%;
    left: -100px;
    width: 280px;
    height: 320px;
    transform: rotate(-20deg);
    border-radius: 40% 60%;
}

/* Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.main-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--deep-indigo);
    position: relative;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-serif);
}

.philosophy {
    font-size: 1.25rem;
    color: var(--secondary-text);
    line-height: 1.9;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-family: var(--font-serif);
    font-style: italic;
}

/* Brush divider */
.brush-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--warm-clay), transparent);
    margin: var(--spacing-lg) auto;
    opacity: 0.4;
}

/* Section Styling */
section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--warm-clay), var(--bamboo-green));
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--deep-indigo);
    letter-spacing: -0.015em;
    font-family: var(--font-serif);
}

/* About Section */
.section-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.quote-block {
    border-left: 3px solid var(--warm-clay);
    padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(90deg, rgba(196, 154, 108, 0.08) 0%, transparent 100%);
    position: relative;
}

.main-quote {
    font-size: 1.375rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--slate-blue);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
}

.quote-author {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary-text);
    font-style: normal;
    font-family: var(--font-sans);
    font-weight: 500;
}

.content-text {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-color);
}

.content-text p {
    margin-bottom: var(--spacing-md);
}

.content-text p:first-of-type::first-letter {
    font-size: 3.5em;
    font-weight: 600;
    float: left;
    line-height: 0.85;
    margin: 0.05em 0.15em 0 0;
    color: var(--warm-clay);
}

.principles-list {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.principle-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--warm-sand);
    color: var(--deep-indigo);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.025em;
    border: 1px solid var(--warm-clay);
    transition: all 0.3s ease;
}

.principle-item:hover {
    background: var(--warm-clay);
    color: var(--soft-cream);
    border-color: var(--burnt-sienna);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 154, 108, 0.25);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.skill-card {
    padding: var(--spacing-lg);
    border: 1px solid var(--mist-gray);
    background: var(--pure-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--bamboo-green), var(--tea-green));
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
    border-color: var(--bamboo-green);
    background: var(--warm-sand);
    box-shadow: 0 6px 24px rgba(139, 157, 131, 0.2);
    transform: translateY(-3px);
}

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

.skill-title {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
    color: var(--deep-indigo);
    font-weight: 600;
    font-family: var(--font-serif);
}

.skill-description {
    color: var(--secondary-text);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.skill-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.tag {
    padding: 0.375rem 0.75rem;
    background: var(--warm-sand);
    color: var(--bamboo-green);
    font-size: 0.8125rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border: 1px solid var(--tea-green);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--bamboo-green);
    color: var(--soft-cream);
    border-color: var(--soft-sage);
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.project-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--mist-gray);
    background: var(--pure-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--sunset-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--sunset-orange);
    background: var(--warm-sand);
    box-shadow: 0 8px 32px rgba(216, 154, 111, 0.2);
    transform: translateY(-4px);
}

.project-card:hover::after {
    opacity: 1;
}

.project-marker {
    width: 8px;
    min-width: 8px;
    height: 8px;
    background: var(--sunset-orange);
    margin-top: 0.5rem;
    border-radius: 50%;
    position: relative;
}

.project-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 1px solid var(--warm-clay);
    border-radius: 50%;
}

.project-content {
    flex: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-md);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-indigo);
    font-family: var(--font-serif);
}

.project-status {
    font-size: 0.8125rem;
    padding: 0.25rem 0.75rem;
    background: var(--warm-sand);
    color: var(--burnt-sienna);
    letter-spacing: 0.025em;
    font-family: var(--font-sans);
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--sunset-orange);
}

.project-description {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1.0625rem;
}

.project-tech {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.tech-tag {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--mist-gray);
    background: var(--warm-sand);
    color: var(--ink-purple);
    font-size: 0.8125rem;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--ink-purple);
    color: var(--soft-cream);
    border-color: var(--slate-blue);
}

.project-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--sunset-orange);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    border-bottom: 2px solid var(--sunset-orange);
    transition: all 0.2s ease;
    padding-bottom: 2px;
}

.project-link:hover {
    color: var(--burnt-sienna);
    border-bottom-color: var(--burnt-sienna);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

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

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--deep-indigo);
    color: var(--soft-cream);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    border: 2px solid var(--deep-indigo);
}

.contact-link:hover {
    background: var(--slate-blue);
    border-color: var(--ink-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 50, 80, 0.25);
}

.contact-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-arrow {
    transform: translateX(4px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mist-gray);
    background: var(--pure-white);
    color: var(--dusty-blue);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--warm-clay);
    color: var(--soft-cream);
    border-color: var(--burnt-sienna);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

.footer-text {
    color: var(--secondary-text);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-sans);
}

.footer-text a {
    color: var(--warm-clay);
    text-decoration: none;
    border-bottom: 1px solid var(--warm-clay);
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-text a:hover {
    color: var(--burnt-sienna);
    border-bottom-color: var(--burnt-sienna);
}

.copyright {
    color: var(--dusty-blue);
    font-size: 0.875rem;
    font-family: var(--font-sans);
}

/* Zen Mode - Maximum minimalism */
.zen-mode {
    max-width: 700px;
    margin: 0 auto;
}

.zen-mode section {
    margin-bottom: calc(var(--spacing-xl) * 2);
}

.zen-mode .section-header::after {
    display: none;
}

.zen-mode .brush-stroke {
    display: none;
}

/* Fade-in Animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
    }

    body {
        font-size: 16px;
    }

    .container {
        padding: var(--spacing-sm);
    }

    .main-title {
        font-size: clamp(2rem, 9vw, 3.5rem);
    }

    .philosophy {
        font-size: 1.125rem;
    }

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

    .main-quote {
        font-size: 1.25rem;
    }

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

    .skill-card,
    .project-card {
        padding: var(--spacing-md);
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }

    .principles-list {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .social-links {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .main-title {
        font-size: clamp(1.875rem, 11vw, 3rem);
    }

    .philosophy {
        font-size: 1.0625rem;
    }

    .section-title {
        font-size: 1.625rem;
    }

    .main-quote {
        font-size: 1.1875rem;
    }

    .content-text p:first-of-type::first-letter {
        font-size: 3em;
    }

    .skill-card,
    .project-card {
        padding: var(--spacing-md);
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .brush-stroke {
        opacity: 0.01;
    }
}

/* Print Styles */
@media print {
    .brush-stroke,
    .paper-texture {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .fade-in-element {
        opacity: 1;
        transform: none;
    }

    * {
        box-shadow: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-element {
        opacity: 1;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #999999;
    }

    .skill-card,
    .project-card {
        border-width: 2px;
    }
}

/* Musashi theme is always light - no dark mode */
