@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;700&display=swap');

:root {
    --primary-pink: #FFD1DC;
    --darker-pink: #FFB7C5;
    --lavender: #E6E6FA;
    --mint: #CBF3D2;
    --text-main: #6B5B65;
    --text-light: #8E8088;
    --bg-gradient-start: #FFF0F5;
    --bg-gradient-end: #F0F8FF;
    --white-translucent: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 4px 15px rgba(255, 182, 193, 0.3);
    --glow: 0 0 10px rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    color: --text-main;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white-translucent);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    cursor: pointer;
}

.logo span {
    color: var(--darker-pink);
}

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

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--darker-pink);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--darker-pink);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
    flex-wrap: wrap-reverse;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    animation: fadeInSlideUp 1s ease-out;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-text p.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-pastel {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-pink);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
}

.btn-pastel:hover {
    background-color: white;
    color: var(--darker-pink);
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite, fadeIn 1.5s ease;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    /* Soft blend if needed, but the image is rectangular. Let's add a fancy border radius */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-soft);
    max-height: 500px;
    object-fit: cover;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2.section-title::before {
    content: '🌸';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

h2.section-title::after {
    content: '🌸';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

/* About */
.about-content {
    background: var(--white-translucent);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    line-height: 1.8;
}

/* Grid Layout for potential gallery/portfolio */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--white-translucent);
    color: var(--text-light);
    margin-top: 4rem;
}

/* Sakura Animation Elements */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.sakura {
    position: absolute;
    background-color: var(--primary-pink);
    border-radius: 100% 0 100% 0;
    opacity: 0.6;
    animation: fall linear infinite;
}

/* Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        top: 110%;
        transform: translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        display: none; /* Simple hiding for now, can add hamburger later */
    }
}

/* Interactive Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,209,220,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.5s;
    animation: sparkle 1s infinite alternate;
}

@keyframes sparkle {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.4; }
}

/* Game Modal Styles */
.game-trigger {
    text-align: center;
    margin: 2rem 0;
}

.game-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.game-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid var(--primary-pink);
    border-radius: 20px;
    width: 90%; 
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-game {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-game:hover,
.close-game:focus {
    color: var(--darker-pink);
    text-decoration: none;
    cursor: pointer;
}

.game-header {
    margin-bottom: 1rem;
}

.decoration-icon {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

canvas {
    background: linear-gradient(to bottom, #ffe6e9, #e6e6fa);
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
    cursor: none; /* Hide default cursor inside game */
    max-width: 100%;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

/* Video Gallery */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.video-item {
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.video-item div {
    border-radius: 10px;
    overflow: hidden;
}

/* Update: Responsive Video Iframe */
.video-item iframe {
    border-radius: 10px;
    max-width: 100%;
}
