/* Kawaii Hanamura Theme CSS */
:root {
    /* Kawaii Color Palette */
    --sakura-pink: #FFB7C5;
    --sakura-light: #FFE0EC;
    --sakura-dark: #FF69B4;
    --leaf-green: #90EE90;
    --wood-brown: #8B4513;
    --sky-blue: #87CEEB;
    --cloud-white: #FFFFFF;
    --text-dark: #4A4A4A;
    --text-light: #6B6B6B;

    /* Gradients */
    --sky-gradient: linear-gradient(180deg, #87CEEB 0%, #FFE0EC 100%);
    --sakura-gradient: linear-gradient(135deg, #FFB7C5 0%, #FFE0EC 50%, #FFFFFF 100%);

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

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

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

body {
    font-family: 'Quicksand', 'Klee One', sans-serif;
    background: var(--sky-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Animated Clouds */
.clouds {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: var(--cloud-white);
    border-radius: 100px;
    opacity: 0.7;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--cloud-white);
    border-radius: 100px;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation: floatCloud 30s infinite linear;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud-2 {
    width: 80px;
    height: 35px;
    top: 40%;
    left: -80px;
    animation: floatCloud 45s infinite linear;
    animation-delay: 10s;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud-2::after {
    width: 50px;
    height: 35px;
    top: -10px;
    right: 15px;
}

.cloud-3 {
    width: 120px;
    height: 45px;
    top: 60%;
    left: -120px;
    animation: floatCloud 60s infinite linear;
    animation-delay: 20s;
}

.cloud-3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cloud-3::after {
    width: 70px;
    height: 45px;
    top: -15px;
    right: 20px;
}

@keyframes floatCloud {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

/* Cherry Blossom Trees */
.tree {
    position: fixed;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.tree-left {
    left: -50px;
}

.tree-right {
    right: -50px;
}

.trunk {
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 300px;
    background: linear-gradient(90deg, #8B4513 0%, #654321 100%);
    border-radius: 20px 20px 0 0;
}

.branches {
    position: absolute;
    bottom: 250px;
    width: 300px;
    height: 400px;
    left: -110px;
}

.sakura-cluster {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--sakura-pink) 0%, var(--sakura-light) 70%, transparent 100%);
    border-radius: 50%;
    animation: sway 4s ease-in-out infinite;
}

.cluster-1 {
    top: 0;
    left: 0;
}

.cluster-2 {
    top: 50px;
    right: 0;
}

.cluster-3 {
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-3deg) translateX(0);
    }
    50% {
        transform: rotate(3deg) translateX(5px);
    }
}

/* Falling Sakura Petals */
.sakura-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.sakura-petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--sakura-pink);
    border-radius: 0 100% 0 100%;
    animation: fall linear infinite;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0.8;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 10px)) rotate(360deg);
        opacity: 0;
    }
}

/* Kawaii Navigation */
.kawaii-nav {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(255, 183, 197, 0.3);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.kawaii-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-emoji {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.nav-brand h1 {
    font-family: 'Klee One', cursive;
    font-size: 1.8rem;
    color: var(--sakura-dark);
    font-weight: 600;
}

.tagline {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-dark);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--sakura-light);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Main Garden Layout */
.main-garden {
    position: relative;
    z-index: 10;
    padding: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-content {
    position: relative;
}

.welcome-banner {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(255, 183, 197, 0.2);
    backdrop-filter: blur(10px);
}

.title-jp {
    display: block;
    font-family: 'Klee One', serif;
    font-size: 1.5rem;
    color: var(--sakura-dark);
    margin-bottom: var(--spacing-xs);
}

.title-en {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--sakura-dark), var(--sakura-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: var(--spacing-md) 0;
}

.hero-decorations {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.deco-item {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.deco-item:nth-child(2) { animation-delay: 0.5s; }
.deco-item:nth-child(3) { animation-delay: 1s; }
.deco-item:nth-child(4) { animation-delay: 1.5s; }
.deco-item:nth-child(5) { animation-delay: 2s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Kawaii Character */
.kawaii-character {
    position: absolute;
    top: -50px;
    right: 50px;
    z-index: 100;
}

.character-body {
    width: 80px;
    height: 80px;
    background: var(--sakura-light);
    border-radius: 50%;
    position: relative;
    animation: wobble 3s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.4);
}

.character-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.eye {
    position: absolute;
    width: 8px;
    height: 12px;
    background: var(--text-dark);
    border-radius: 50%;
    top: 20px;
    animation: blink 4s ease-in-out infinite;
}

.eye-left {
    left: 15px;
}

.eye-right {
    right: 15px;
}

.mouth {
    position: absolute;
    width: 15px;
    height: 8px;
    border: 2px solid var(--text-dark);
    border-top: none;
    border-radius: 0 0 15px 15px;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.blush {
    position: absolute;
    width: 12px;
    height: 8px;
    background: rgba(255, 183, 197, 0.6);
    border-radius: 50%;
    top: 28px;
}

.blush-left {
    left: 5px;
}

.blush-right {
    right: 5px;
}

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

@keyframes blink {
    0%, 45%, 55%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.1);
    }
}

/* Projects Garden */
.projects-garden {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2rem;
    color: var(--sakura-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-weight: 600;
}

.title-decoration {
    font-size: 1.5rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.section-subtitle {
    color: var(--text-light);
    margin-top: var(--spacing-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Project Blossom Cards */
.project-blossom {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.2);
    transition: all 0.3s ease;
    overflow: visible;
}

.project-blossom:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 183, 197, 0.3);
}

.blossom-petals {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.petal {
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--sakura-pink);
    border-radius: 0 100% 0 100%;
    transform-origin: bottom left;
}

.petal-1 {
    transform: rotate(0deg);
}

.petal-2 {
    transform: rotate(72deg);
}

.petal-3 {
    transform: rotate(144deg);
}

.petal-4 {
    transform: rotate(216deg);
}

.petal-5 {
    transform: rotate(288deg);
}

.project-blossom:hover .petal {
    animation: petalWave 1s ease-in-out infinite;
}

@keyframes petalWave {
    0%, 100% {
        transform: rotate(var(--rotation)) scale(1);
    }
    50% {
        transform: rotate(var(--rotation)) scale(1.2);
    }
}

.petal-1 { --rotation: 0deg; }
.petal-2 { --rotation: 72deg; }
.petal-3 { --rotation: 144deg; }
.petal-4 { --rotation: 216deg; }
.petal-5 { --rotation: 288deg; }

.project-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.project-title {
    font-size: 1.5rem;
    color: var(--sakura-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

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

.kawaii-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--sakura-light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.tag-icon {
    font-size: 0.9rem;
}

.kawaii-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--sakura-pink), var(--sakura-dark));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.kawaii-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.button-icon {
    animation: bounce 1s ease-in-out infinite;
}

/* About Garden */
.about-garden {
    margin-bottom: var(--spacing-xl);
}

.about-content {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.2);
}

.about-text {
    color: var(--text-light);
    line-height: 1.8;
    margin: var(--spacing-md) 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tech-garden {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tech-flower {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--sakura-gradient);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 183, 197, 0.2);
    transition: all 0.3s ease;
}

.tech-flower:hover {
    transform: translateY(-3px) rotate(5deg);
}

.flower-icon {
    font-size: 1.2rem;
}

/* Kawaii Footer */
.kawaii-footer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(255, 183, 197, 0.1);
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.footer-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--sakura-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    transform: translateY(-2px);
}

.link-icon {
    font-size: 1.1rem;
}

.footer-divider {
    color: var(--sakura-pink);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-menu {
        gap: var(--spacing-md);
    }

    .nav-item span:not(.nav-icon) {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-en {
        font-size: 1.8rem;
    }

    .kawaii-character {
        position: relative;
        top: 0;
        right: 0;
        margin: var(--spacing-lg) auto 0;
    }

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

    .tree {
        display: none;
    }

    .tech-garden {
        gap: var(--spacing-sm);
    }

    .tech-flower {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-garden {
        padding: var(--spacing-sm);
    }

    .welcome-banner {
        padding: var(--spacing-lg);
    }

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

    .project-blossom {
        padding: var(--spacing-md);
    }

    .project-icon {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .about-content {
        padding: var(--spacing-lg);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-divider {
        display: none;
    }
}

/* Enhanced Kawaii Animations */
@keyframes rainbowBorder {
    0% { border-color: #FFB7C5; box-shadow: 0 0 10px #FFB7C5; }
    20% { border-color: #FF69B4; box-shadow: 0 0 10px #FF69B4; }
    40% { border-color: #DA70D6; box-shadow: 0 0 10px #DA70D6; }
    60% { border-color: #DDA0DD; box-shadow: 0 0 10px #DDA0DD; }
    80% { border-color: #FFB6C1; box-shadow: 0 0 10px #FFB6C1; }
    100% { border-color: #FFB7C5; box-shadow: 0 0 10px #FFB7C5; }
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 183, 197, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 183, 197, 0.5);
        transform: scale(1.02);
    }
}

@keyframes flowerBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(3deg);
    }
    50% {
        transform: translateY(-4px) rotate(0deg);
    }
    75% {
        transform: translateY(-12px) rotate(-3deg);
    }
}

/* Enhanced Button Effects */
.kawaii-button:hover {
    animation: rainbowBorder 2s infinite;
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #FFB7C5, #FF69B4, #DA70D6);
}

/* Enhanced Project Card Effects */
.project-blossom:hover {
    animation: gentlePulse 2s ease-in-out infinite;
}

/* Enhanced Tech Flowers */
.tech-flower:hover {
    animation: flowerBounce 1s ease-in-out;
    background: linear-gradient(135deg, #FFE0EC, #FFB7C5);
}

/* Add magical glow to navigation icons */
.nav-icon:hover {
    filter: drop-shadow(0 0 8px currentColor);
    animation: flowerBounce 0.6s ease-in-out;
}

/* Enhanced Character Animation */
.kawaii-character:hover .character-face {
    animation: gentlePulse 1.5s ease-in-out infinite;
}

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