﻿:root {
    --paper-contrast: #3d3f41;
    --ink-black: #1a1a1a;
    --paper-beige: #f5f2e8;
    --vermillion: #d73a49;
    --indigo: #264653;
    --gold: #c9a961;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: var(--paper-beige);
    color: var(--ink-black);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            repeating-linear-gradient(
                            90deg,
                            transparent,
                            transparent 100px,
                            rgba(26, 26, 26, 0.03) 100px,
                            rgba(26, 26, 26, 0.03) 101px
            ),
            repeating-linear-gradient(
                            0deg,
                            transparent,
                            transparent 100px,
                            rgba(26, 26, 26, 0.03) 100px,
                            rgba(26, 26, 26, 0.03) 101px
            );
    pointer-events: none;
}

h1, h2, h3 {
    font-family: 'Noto Serif', serif;
}

.brush-stroke {
    position: relative;
    display: inline-block;
}

.brush-stroke::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -10px;
    right: -10px;
    height: 3px;
    background: var(--vermillion);
    transform: skewY(-1deg);
    opacity: 0.8;
    transform-origin: left;
    width: 0;
    transition: width 1.5s ease-out;
}

.brush-stroke.animated::after {
    width: calc(100% + 20px);
}

.ink-border {
    border: 2px solid var(--paper-contrast);
    position: relative;
}

.ink-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid var(--paper-contrast);
    opacity: 0.3;
}

.wave-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10' stroke='%23264653' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

.seal {
    width: 60px;
    height: 60px;
    background: var(--vermillion);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 24px;
    font-family: 'Noto Serif', serif;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.3);
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Noto Serif', serif;
}

.fade-edges {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ripple::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid var(--vermillion);
    border-radius: 50%;
    animation: ripple 3s ease-out infinite;
}


@keyframes wave-move {
    0% { background-position-x: 0; }
    100% { background-position-x: 100px; }
}

.wave-animate {
    animation: wave-move 20s linear infinite;
}

.code-calligraphy {
    font-family: 'Noto Sans Mono', monospace;
    background: rgba(26, 26, 26, 0.05);
    padding: 0.2em 0.5em;
    border-radius: 3px;
}

/* Ukiyo-e style tech icons */
.tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.skill-card {
    transition: all 0.3s ease;
    text-align: center;
}

.skill-card:hover {
    /*transform: translateY(-8px);*/
    /*box-shadow: 0 12px 24px rgba(0,0,0,0.1);*/
}

.skill-card:hover .tech-icon {
    animation: float 2s ease-in-out infinite;
}