:root {
    --bg-color: #ffe6f2;
    --text-main: #5c0029;
    --text-muted: #883359;
    --accent: #ff4d94;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(rgba(255, 230, 242, 0.85), rgba(255, 240, 248, 0.95)),
        url('backgruod/back.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.petal {
    position: fixed;
    background: #ffb3d9;
    border-radius: 50% 0 50% 50%;
    pointer-events: none;
    z-index: 9999;
    animation: fall linear infinite;
    opacity: 0.6;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        transform: translateY(10vh) rotate(45deg) scale(1);
    }

    100% {
        transform: translateY(110vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 230, 242, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(255, 153, 204, 0.2);
    flex-wrap: wrap;
    gap: 15px;
    mix-blend-mode: normal;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

#home {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

#home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 235, 245, 0.95));
    z-index: 0;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/1.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    z-index: -1;
    animation: slowPan 20s infinite alternate linear;
}

@keyframes slowPan {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.05) translate(-1%, -1%);
    }
}

.hero-text-cinematic {
    text-align: center;
    z-index: 1;
    color: #f4f4f0;
}

.hero-text-cinematic h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-text-cinematic .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    letter-spacing: 5px;
    color: #CBA153;
}

.click-hint {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    animation: pulse 2s infinite;
}

section {
    padding: 120px 5% 50px;
    position: relative;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--accent);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3);
    border: 5px solid #fff;
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 77, 148, 0.8);
    color: white;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.video-nav-btn:hover {
    background: var(--text-main);
    transform: translateY(-50%) scale(1.1);
}

.left-btn {
    left: -25px;
}

.right-btn {
    right: -25px;
}

@media (max-width: 768px) {
    .left-btn {
        left: 10px;
    }

    .right-btn {
        right: 10px;
    }
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    grid-auto-flow: dense;
}

.img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 153, 204, 0.3);
    border: 4px solid #fff;
    cursor: pointer;
    transition: transform 0.4s;
}

.img-wrap:hover {
    transform: scale(1.03);
    z-index: 2;
}

@media (min-width: 768px) {
    .img-wrap:nth-child(5n) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-number {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(255, 77, 148, 0.9));
    color: #fff;
    padding: 15px 10px 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    transition: bottom 0.3s;
}

.img-wrap:hover .img-number {
    bottom: 0;
}

.paper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(255, 105, 180, 0.2);
    position: relative;
    background-image: repeating-linear-gradient(transparent, transparent 39px, #ffccf2 39px, #ffccf2 40px);
    line-height: 40px;
}

.typewriter-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-main);
    text-align: justify;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 230, 242, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(255, 77, 148, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: var(--accent);
    cursor: pointer;
}

#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    border-radius: 50%;
    background: #ff66a3;
    border: 3px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(255, 77, 148, 0.5);
    cursor: pointer;
    animation: spinVinyl 5s linear infinite;
    animation-play-state: paused;
}

#music-player.playing {
    animation-play-state: running;
    background: #ff3385;
}

#music-player::after {
    content: '🎵';
    font-size: clamp(20px, 4vw, 24px);
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.8;
    }
}

.comment-box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.2);
    border: 3px solid #ffe6f2;
}

.comment-input, .comment-textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #ffe6f2;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.comment-input:focus, .comment-textarea:focus {
    border-color: var(--accent);
}

.comment-textarea {
    height: 100px;
    resize: none;
}

.comment-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.comment-btn:hover {
    background: var(--text-main);
    transform: translateY(-2px);
}

.comment-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #ffe6f2;
}

.site-footer {
    text-align: right;
    padding: 20px 5%;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
}