html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

:root {
    --primary: #1a1a1a;
    --accent: #ff3e3e;
    --text: #ffffff;
    --secondary: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--primary);
    color: var(--text);
    font-family: 'Lemon', cursive;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: padding 0.3s ease;
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
}

.logo {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.menu {
    display: flex;
    gap: 2rem;
}

.menu-item {
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
}

.menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    animation: fadeOut 0.5s ease;
    opacity: 0;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: var(--accent);
    border: none;
    border-radius: 2rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
    position: relative;
}

.hero-button:hover {
    transform: scale(1.1);
    background: #ff5555;
}

.hero-button:hover .button-details {
    opacity: 1;
    transform: translateY(0);
}

.button-details {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    background: var(--accent);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--secondary);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    width: 200px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 0 0 1px #000;
    margin: 10px;
}

.info-card h2 {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.info-card p {
    position: relative;
    display: block;
    margin: 10px 0 0;
    font-size: 0.8em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    white-space: pre-wrap;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.info-card:hover {
    height: 250px;
}

.info-card:hover p {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.info-card:not(:hover) p {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    z-index: 1000;
}

.info-card.expanded h2 {
    transform: translateY(-10px);
}

.info-card.expanded p {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.info-card[data-color="#ff6b6b"]:hover { background-color: #ff6b6b !important; }
.info-card[data-color="#4ecdc4"]:hover { background-color: #4ecdc4 !important; }
.info-card[data-color="#45b7d1"]:hover { background-color: #45b7d1 !important; }
.info-card[data-color="#f7b731"]:hover { background-color: #f7b731 !important; }
.info-card[data-color="#a55eea"]:hover { background-color: #a55eea !important; }

.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: var(--accent);
    border: none;
    border-radius: 2rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
    position: relative;
}

.hero-button:hover {
    transform: scale(1.1);
    background: #ff5555;
}

.hero-button:hover .button-details {
    opacity: 1;
    transform: translateY(0);
}

.button-details {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.5rem;
    background: var(--accent);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--secondary);
    padding: 15px;
    margin: 10px;
    border-radius: 10px;
    cursor: pointer;
    width: 200px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.5s ease;
    overflow: hidden;
    box-shadow: 0 0 0 1px #000;
    position: relative;
    z-index: 1;
}

.info-card h2 {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.info-card p {
    display: none;
    margin: 10px 0 0;
    font-size: 0.8em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    white-space: pre-wrap;
    text-align: left;
    overflow-y: auto;
    max-height: 150px;
}

.info-card:hover {
    transform: translateY(-5px) scale(1.02);
    height: 150px;
}

.info-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    z-index: 1000;
}

.info-card.expanded h2 {
    transform: translateY(-10px);
}

.info-card.expanded p {
    display: block;
    font-size: 0.85em;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.overlay.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none;
}

.gallery-item.has-image {
    display: block;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.video {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.video:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item.video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 62, 62, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.gallery-item.video:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    transform: translateX(2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.gallery-overlay .media-container {
    position: relative;
    max-width: fit-content;
    max-height: fit-content;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    padding: 0;
    margin: 0 auto;
}

.gallery-overlay img,
.gallery-overlay video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 1rem;
    display: none;
}

.gallery-overlay .active {
    display: block;
}

video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
    border-radius: 0 0 1rem 1rem;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider {
    filter: brightness(1.2);
}

video::-webkit-media-controls-timeline {
    background: rgba(255, 62, 62, 0.3);
    border-radius: 2px;
    height: 4px;
    margin: 0 15px;
}

video::-webkit-media-controls-timeline:hover {
    height: 6px;
}

video::-webkit-media-controls-volume-slider {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    padding: 2px;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gallery-overlay.active {
    display: flex;
}

.gallery-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 1rem;
}

.quote {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5em;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    min-height: 1.5em;
    text-align: center;
    width: 100%;
    overflow: hidden;
    padding: 0 1rem;
    letter-spacing: 0.5px;
    word-spacing: 2px;
    transition: filter 0.3s ease, text-shadow 0.3s ease;
}

.quote.bright-1 { filter: brightness(1.2); }
.quote.bright-2 { filter: brightness(1.4); }
.quote.bright-3 { filter: brightness(1.6); }
.quote.bright-4 { filter: brightness(1.8); }
.quote.bright-5 { filter: brightness(2.0); }

.quote span {
    margin: 0 1px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.quote.reveal span {
    animation: revealLetter 0.4s ease forwards;
}

.quote .heart-emoji {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    animation: heartbeat 1.3s ease infinite;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

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

@keyframes pulsateHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.quote.easter-egg-reveal {
    animation: easterEggReveal 0.5s ease forwards;
}

@keyframes easterEggReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.heart-emoji {
    display: inline-block;
    opacity: 1;
}

.quote:hover .heart-emoji {
    opacity: 1;
    animation: heartbeat 1.3s ease infinite;
}

.about-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.about-content {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: var(--secondary);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.about-content[data-section="who"] { background: var(--secondary); }
.about-content[data-section="what"] { background: var(--secondary); }
.about-content[data-section="likes"] { background: var(--secondary); }
.about-content[data-section="favorites"] { background: var(--secondary); }
.about-content[data-section="social"] { background: var(--secondary); }

.about-content[data-section="who"]:hover { background: #ff6b6b; }
.about-content[data-section="what"]:hover { background: #4ecdc4; }
.about-content[data-section="likes"]:hover { background: #45b7d1; }
.about-content[data-section="favorites"]:hover { background: #f7b731; }
.about-content[data-section="social"]:hover { background: #a55eea; }

.about-text {
    position: absolute;
    width: 80%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    padding: 1rem;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
}

.about-text.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.about-text.exit {
    opacity: 0;
    transform: translate(-50%, 50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text.enter {
    opacity: 0;
    transform: translate(-50%, -100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content:not(:hover) .about-text {
    opacity: 0;
    transform: translate(-50%, 50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-title {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.about-text i {
    font-size: 1.2em;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.about-text a:hover i {
    transform: scale(1.2);
}

.fa-github:hover { color: #f0f6fc; }
.fa-twitter:hover { color: #1DA1F2; }
.fa-youtube:hover { color: #FF0000; }

.about-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
    opacity: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 
                 0 2px 4px rgba(255, 255, 255, 0.1);
}

.about-content:hover .about-title {
    top: 20%;
    font-size: 1.8rem;
}

.title-underline {
    position: absolute;
    top: calc(20% + 2.5rem);
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--text);
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.about-content:hover .title-underline {
    width: 100px;
}

.about-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    color: var(--text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.about-content:hover .about-text {
    opacity: 1;
    visibility: visible;
}

.next-section {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.5s ease;
    color: var(--text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content:hover .next-section {
    opacity: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .menu {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .about-content {
        width: 90%;
        margin: 0 auto;
    }

    .about-text {
        font-size: 0.9rem;
        width: 90%;
    }

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

    #gallery.page {
        display: block;
        padding-top: 60px;
        height: auto;
        min-height: 100vh;
    }

    .gallery-item {
        aspect-ratio: 16/9;
        width: 100%;
    }

    .quote {
        font-size: 1.2rem;
        padding: 0 1rem;
        word-wrap: break-word;
    }

    .info-card {
        width: 100%;
        max-width: 300px;
        margin: 5px auto;
    }

    .info-card p {
        font-size: 0.8rem;
    }

    .player-container {
        width: 280px;
    }

    .song-title {
        font-size: 0.9rem;
    }

    .song-artist {
        font-size: 0.8rem;
    }

    .nav {
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .about-text {
        font-size: 0.85rem;
    }

    .gallery-overlay img,
    .gallery-overlay video {
        max-width: 95%;
        max-height: 80vh;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .quote {
        font-size: 1rem;
    }

    .about-content {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .menu {
        display: none;
    }
}

#audio-player, #radio-icon {
    display: none;
}

.about-content[data-section="who"]:hover {
    background: linear-gradient(45deg, #ff6b6b, #ff8585);
}

.about-content[data-section="what"]:hover {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
}

.about-content[data-section="likes"]:hover {
    background: linear-gradient(45deg, #45b7d1, #4c94e8);
}

.about-content[data-section="favorites"]:hover {
    background: linear-gradient(45deg, #f7b731, #ffd166);
}

.about-content[data-section="social"]:hover {
    background: linear-gradient(45deg, #a55eea, #d580ff);
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    font-size: 2.5em;
    color: var(--text);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.github:hover { color: #f0f6fc; }
.social-icon.twitter:hover { color: #1DA1F2; }
.social-icon.youtube:hover { color: #FF0000; }

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    font-size: 2em;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.social-icon.github:hover { color: #f0f6fc; }
.social-icon.twitter:hover { color: #1DA1F2; }
.social-icon.youtube:hover { color: #FF0000; }

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

#progress-bar {
    width: 100%;
    height: 5px;
    background: #555;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f7b731;
    cursor: pointer;
    transition: all 0.3s ease;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f7b731;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    body {
        overflow-y: hidden;
    }
    
    .page {
        height: 100vh;
        overflow-y: auto;
    }
    
    .page::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
}

@media (min-width: 769px) {
    html, body {
        overflow: hidden;
        height: 100%;
    }
    
    .page {
        height: 100vh;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .about-content {
        cursor: pointer;
    }

    .about-content:active,
    .about-content.touched {
        background: var(--accent);
    }

    .about-content.touched .about-title {
        top: 20%;
        font-size: 1.8rem;
    }

    .about-content.touched .about-text {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%);
    }

    .about-content.touched .title-underline {
        width: 100px;
    }

    .about-content.touched .next-section {
        opacity: 1;
    }
}

.language-selector {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.language-selector:hover {
    transform: scale(1.2);
}

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

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

.background-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.wave {
    position: absolute;
    opacity: 0.1;
    border: 2px solid;
    border-radius: 50%;
}

.wave:nth-child(1) { 
    border-color: #ff0000;
    width: 1500px;
    height: 1500px;
    left: -750px;
    top: -750px;
    transform: rotate(-45deg);
}

.wave:nth-child(2) { 
    border-color: #00ff00;
    width: 1700px;
    height: 1700px;
    right: -850px;
    bottom: -850px;
    transform: rotate(30deg);
}

.wave:nth-child(3) { 
    border-color: #0000ff;
    width: 1600px;
    height: 1600px;
    right: -400px;
    top: -800px;
    transform: rotate(15deg);
}

.controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

#radio-icon {
    color: var(--accent);
}

#radio-icon.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.radio-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
}

.radio-toggle:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.player-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.player-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.song-info {
    text-align: center;
    margin-bottom: 15px;
}

.song-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.song-artist {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.progress-container {
    margin: 15px 0;
}

#progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    cursor: pointer;
}

.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

#volume-control {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    cursor: pointer;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.player-container {
    min-width: 300px;
    padding: 15px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.song-info {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
}

.song-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.song-artist {
    font-size: 0.9rem;
    opacity: 0.7;
}

.progress-container {
    position: relative;
    margin: 20px 0;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
}

#song-progress {
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
}

#song-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

#song-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-control-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.volume-icon {
    color: var(--text);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s;
}

.volume-icon:hover {
    opacity: 1;
}

#volume-control {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
}

#volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.control-btn {
    padding: 10px;
    font-size: 1.2rem;
}

#play-btn {
    font-size: 1.8rem;
}

#gallery.page {
    overflow-y: auto;
    padding-bottom: 2rem;
    height: 100vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    aspect-ratio: 16/9;
    height: auto;
    display: block !important;
}

#gallery.page::-webkit-scrollbar {
    width: 8px;
}

#gallery.page::-webkit-scrollbar-track {
    background: var(--primary);
}

#gallery.page::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

#gallery.page::-webkit-scrollbar-thumb:hover {
    background: #ff5555;
}

.mobile-gallery-btn {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-gallery-btn:hover {
    transform: scale(1.1);
    background: #ff5555;
}

@media (max-width: 768px) {
    .mobile-gallery-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.gallery-page {
    display: none;
}

@media (min-width: 769px) {
    .gallery-page {
        display: none;
    }
    
    .gallery-page.active {
        display: block !important;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .gallery-page {
        display: none !important;
    }

    .gallery-page.active {
        display: block !important;
    }

    .mobile-gallery-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.love-note-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

.love-note-text {
    flex: 0.8;
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 500px;
}

.love-note-text h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Dancing Script', cursive;
}

.love-note-text p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.59;
}

.romantic-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.rotated-frame {
    border: 3px solid #e91e63;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: rotate(-5deg);
    transition: transform 0.3s;
}
.rotated-frame:hover {
    transform: rotate(0deg);
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }
    .menu {
        flex-direction: column;
    }
    .menu-item {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .nav {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }
    .menu {
        flex-direction: column;
    }
    .menu-item {
        margin: 8px 0;
        font-size: 14px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    .about-content, .gallery-grid, .love-note-container {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .love-note-container {
        flex-direction: column;
        align-items: center;
    }
    .romantic-gallery {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Rüya Easter Egg Styles */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.easter-egg-overlay.active {
    display: flex;
}

/* Prevent horizontal scroll on mobile */
.easter-egg-overlay.active ~ body,
.easter-egg-overlay.active {
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Hidden Universe Trigger */
.hidden-trigger {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
    user-select: none;
    pointer-events: none;
    text-shadow:
        0 0 8px rgba(138, 43, 226, 0.6),
        0 0 15px rgba(138, 43, 226, 0.4),
        0 0 20px rgba(255, 20, 147, 0.3);
    filter: drop-shadow(0 0 6px rgba(138, 43, 226, 0.5));
}

.hidden-trigger.visible {
    opacity: 0.4;
    pointer-events: auto;
    animation: subtleStarGlow 3s ease-in-out infinite alternate;
}

.hidden-trigger.visible:hover {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.3);
    text-shadow:
        0 0 12px rgba(138, 43, 226, 0.9),
        0 0 20px rgba(138, 43, 226, 0.7),
        0 0 25px rgba(255, 20, 147, 0.5);
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.8));
}

@keyframes subtleStarGlow {
    0% {
        opacity: 0.4;
        transform: translateX(-50%) scale(0.95);
        filter: drop-shadow(0 0 4px rgba(138, 43, 226, 0.4));
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.05);
        filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.6));
    }
}

.hangman-container {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 400px;
    width: 85%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent);
}

.win-container {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.hangman-header h2 {
    color: var(--accent);
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hangman-header p {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hangman-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hangman-drawing {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.word-display {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.letter-slot {
    width: 50px;
    height: 60px;
    border-bottom: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    position: relative;
    transition: all 0.3s ease;
}

.letter-slot.filled {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    transform: scale(1.1);
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin: 1rem 0;
}

.letter-btn {
    background: linear-gradient(135deg, var(--accent), #ff8585);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.letter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.letter-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.letter-btn.correct {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    animation: bounceCorrect 0.6s ease;
}

.letter-btn.wrong {
    background: linear-gradient(135deg, #ff6b6b, #ff5555);
    animation: shakeWrong 0.6s ease;
}

@keyframes bounceCorrect {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shakeWrong {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.game-info {
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.game-info p {
    margin: 0.5rem 0;
}

#wrong-letters {
    color: var(--accent);
    font-weight: bold;
}

.close-easter-egg, .close-win-screen {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-easter-egg:hover, .close-win-screen:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Space Theme Animations */
@keyframes spaceGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Clickable Stars */
.clickable-star {
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(255, 215, 0, 0.7),
        0 0 35px rgba(255, 215, 0, 0.5);
    animation: starGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
    transition: all 0.3s ease;
}

.clickable-star:hover {
    text-shadow:
        0 0 20px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 215, 0, 0.9),
        0 0 40px rgba(255, 215, 0, 0.7);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
}

@keyframes starGlow {
    0% {
        opacity: 0.8;
        filter: brightness(1) drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
    }
    100% {
        opacity: 1;
        filter: brightness(1.3) drop-shadow(0 0 18px rgba(255, 215, 0, 1));
    }
}

/* Win Screen Styles - Full Page Space Theme */

/* Real Space Background */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.space-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/space.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: spaceZoom 30s ease-in-out infinite alternate;
}

@keyframes spaceZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.space-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(25, 25, 112, 0.2) 25%,
        rgba(72, 61, 139, 0.2) 50%,
        rgba(123, 104, 238, 0.2) 75%,
        rgba(0, 0, 0, 0.3) 100%
    );
    animation: overlayShift 20s ease-in-out infinite alternate;
}

@keyframes overlayShift {
    0% { opacity: 0.6; }
    100% { opacity: 0.8; }
}

/* Particle Effects Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}



.heart-explosion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 2rem;
    color: var(--accent);
    animation: heartFloat 3s ease-out forwards;
    opacity: 0;
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-100px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.8);
    }
}

/* Win Content Styles */
.win-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 90%;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    box-sizing: border-box;
    margin: 0 auto;
}

.win-content::-webkit-scrollbar {
    width: 8px;
}

.win-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.win-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.win-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Romantic Title */
.romantic-title {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.romantic-title h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 182, 193, 0.6),
        0 0 60px rgba(255, 105, 180, 0.4);
    margin: 0;
    animation: romanticGlow 4s ease-in-out infinite alternate;
}

@keyframes romanticGlow {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.02);
        filter: brightness(1.2);
    }
}

.title-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(255, 182, 193, 0.1) 0%,
        rgba(255, 105, 180, 0.05) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: decorationPulse 6s ease-in-out infinite;
}

@keyframes decorationPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 0.1;
    }
}

/* Love Letter */
.love-letter {
    margin: 2rem 0;
    perspective: 1000px;
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.letter-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #fff;
    text-shadow:
        0 0 15px rgba(255, 182, 193, 0.8),
        0 0 30px rgba(255, 105, 180, 0.6);
    margin: 0;
    animation: nameGlow 3s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    0% {
        transform: scale(1);
        text-shadow:
            0 0 15px rgba(255, 182, 193, 0.8),
            0 0 30px rgba(255, 105, 180, 0.6);
    }
    100% {
        transform: scale(1.05);
        text-shadow:
            0 0 20px rgba(255, 182, 193, 1),
            0 0 40px rgba(255, 105, 180, 0.8);
    }
}

.heart-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(
        circle,
        rgba(255, 20, 147, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.1;
    }
}

.letter-content {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 182, 193, 0.1) 50%,
        rgba(255, 105, 180, 0.1) 100%);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: letterFloat 8s ease-in-out infinite alternate;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

@keyframes letterFloat {
    0% {
        transform: translateY(0px) rotateX(0deg);
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: translateY(-5px) rotateX(1deg);
        box-shadow:
            0 35px 70px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.letter-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: letterShimmer 12s ease-in-out infinite;
}

@keyframes letterShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.letter-content p {
    font-size: 1.1rem;
    color: #fff;
    margin: 1.5rem 0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    line-height: 1.8;
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    text-align: justify;
    animation: paragraphFade 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.letter-content p:nth-child(1) { animation-delay: 0.2s; }
.letter-content p:nth-child(2) { animation-delay: 0.4s; }
.letter-content p:nth-child(3) { animation-delay: 0.6s; }
.letter-content p:nth-child(4) { animation-delay: 0.8s; }
.letter-content p:nth-child(5) { animation-delay: 1.0s; }
.letter-content p:nth-child(6) { animation-delay: 1.2s; }
.letter-content p:nth-child(7) { animation-delay: 1.4s; }
.letter-content p:nth-child(8) { animation-delay: 1.6s; }
.letter-content p:nth-child(8) { animation-delay: 1.8s; }

@keyframes paragraphFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signature {
    text-align: right;
    font-style: italic;
    font-size: 1.2rem !important;
    color: #ffb6c1 !important;
    text-shadow: 0 0 15px rgba(255, 182, 193, 0.8) !important;
    margin-top: 2rem !important;
    animation-delay: 1.8s !important;
}

/* Romantic Button */
.romantic-button {
    background: linear-gradient(135deg,
        rgba(255, 182, 193, 0.8) 0%,
        rgba(255, 105, 180, 0.8) 50%,
        rgba(219, 112, 147, 0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow:
        0 15px 35px rgba(255, 105, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.romantic-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 45px rgba(255, 105, 180, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg,
        rgba(255, 182, 193, 0.9) 0%,
        rgba(255, 105, 180, 0.9) 50%,
        rgba(219, 112, 147, 0.9) 100%);
}

.romantic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.romantic-button:hover::before {
    left: 100%;
}

.romantic-button span {
    position: relative;
    z-index: 2;
}

.close-win-screen {
    background: linear-gradient(135deg, var(--accent), #ff8585);
    color: white;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 2rem;
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    font-family: 'Poppins', sans-serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hangman-container {
        padding: 1rem;
        margin: 1rem;
        max-width: 350px;
    }

    .hangman-header h2 {
        font-size: 1.8rem;
    }

    .letter-slot {
        width: 35px;
        height: 45px;
        font-size: 1.3rem;
    }

    .alphabet-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
    }

    .letter-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hangman-drawing svg {
        width: 120px;
        height: 150px;
    }

    /* Win Screen Mobile */
    .win-container {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100vw;
    }

    .win-content {
        padding: 1rem;
        width: 95%;
        max-width: 95vw;
        max-height: 85vh;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .romantic-title h1 {
        font-size: 2.2rem;
    }

    .letter-header h2 {
        font-size: 2rem;
    }

    .letter-content {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .letter-content p {
        font-size: 0.95rem;
        margin: 1rem 0;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .romantic-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    #particles-canvas {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }

    .space-background,
    .space-image,
    .space-overlay {
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
    }
}

.album-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-overlay.active {
    display: flex;
    opacity: 1;
}

.album-overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.album-overlay.active .album-overlay-content {
    transform: scale(1);
    opacity: 1;
}

.album-overlay-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-overlay {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-overlay:hover {
    transform: scale(1.1);
}

.album-slides {
    cursor: pointer;
    z-index: 2;
    pointer-events: all;
    position: relative;
}

.album-slides img {
    pointer-events: none;
}

.close-overlay {
    position: absolute;
    top: -30px;
    right: -35px;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: white;
    font-size: 2rem;
    font-family: 'Lemon', cursive;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.close-overlay:hover {
    transform: scale(1.1);
}

.album-overlay {
    z-index: 1000;
}

.album-navigation {
    z-index: 10;
}

.album-center-area {
    position: absolute;
    left: 25%;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
}

@media (max-width: 768px) {
    .love-note-container {
        flex-direction: column;
        padding: 10px;
        margin: 0;
        width: 100%;
    }

    .love-note-text {
        width: 100%;
        max-width: none;
        margin: 0 0 20px 0;
    }

    .romantic-gallery {
        width: 95%;
        max-width: none;
        margin: 0 auto;
    }

    .album-container {
        width: 100%;
        margin: 0;
    }

    .album-slides {
        min-height: 200px;
        aspect-ratio: 16/9;
    }

    .album-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.album-slides {
    position: relative;
    aspect-ratio: 4/3;
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
}

.album-slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-slides img.active {
    opacity: 1;
}

.dancing-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: rgb(236, 140, 200);
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .gallery-page {
        overflow-y: auto;
        height: 100vh;
    }

    .gallery-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .gallery-item {
        flex: 1 1 auto;
        max-width: calc(33.33% - 16px);
    }
}