/* Base Styles */
:root {
    --twilight-violet: #2E2252;
    --sakura-pink: #FFA8BA;
    --lantern-gold: #FFD369;
    --midnight-blue: #1A1A2E;
    --dark-purple: #231942;
    --light-purple: #5E548E;
    --text-light: #F8F9FA;
    --text-dark: #212529;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--dark-purple) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--sakura-pink);
    transition: all 0.3s ease;
}

a:hover {
    color: black;
}

img {
    max-width: 100%;
    height: auto;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Section Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--sakura-pink);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--lantern-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
    margin-right: 1rem;
    animation: float 3s ease-in-out infinite;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sakura-pink);
    letter-spacing: 1px;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    background: url('../images/sakura-night-bg.jpg') no-repeat center center/cover;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--sakura-pink);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--sakura-pink);
    color: var(--midnight-blue);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 168, 186, 0.4);
}

.cta-button:hover {
    background: var(--lantern-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 105, 0.5);
}

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

.lantern {
    position: absolute;
    width: 60px;
    height: 90px;
    background: rgba(255, 211, 105, 0.8);
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(255, 211, 105, 0.6);
    animation: glow 3s ease-in-out infinite, float 6s ease-in-out infinite;
}

.lantern-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.lantern-2 {
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.lantern-3 {
    bottom: 25%;
    left: 40%;
    animation-delay: 2s;
}

/* About Section */
#about {
    padding: 8rem 0 4rem;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.9), rgba(46, 34, 82, 0.9)), url('../images/sakura-pattern.png');
    background-size: 200px;
    position: relative;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-icons {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.lantern-icon {
    animation-delay: 0s;
}

.sakura-icon {
    animation-delay: 0.7s;
}

.moon-icon {
    animation-delay: 1.4s;
}

/* Games Section */
#games {
    padding: 4rem 0;
    background: linear-gradient(to bottom, rgba(46, 34, 82, 0.9), rgba(26, 26, 46, 0.9)), url('../images/stars-bg.png');
    background-size: cover;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: rgba(30, 30, 60, 0.6);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    height: 350px;
    perspective: 1000px;
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.game-card:hover .game-card-inner {
    transform: rotateY(180deg);
}

.game-card-front, .game-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.game-card-front {
    padding: 1.5rem;
}

.game-card-front img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.game-card-front h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-top: auto;
}

.game-card-back {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--twilight-violet) 100%);
    padding: 2rem;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.game-card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--lantern-gold);
}

.game-card-back p {
    margin-bottom: 2rem;
}

.play-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--sakura-pink);
    color: var(--midnight-blue);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.play-button:hover {
    background: var(--lantern-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 211, 105, 0.3);
}

/* Contact Section */
#contact {
    padding: 2rem 0;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.9), rgba(30, 30, 60, 0.9)), url('../images/water-reflection.jpg');
    background-size: cover;
    background-position: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-form {
    flex: 1;
    background: rgba(30, 30, 60, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sakura-pink);
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--sakura-pink);
    color: var(--midnight-blue);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem auto 0;
}

.submit-button:hover {
    background: var(--lantern-gold);
    transform: translateY(-3px);
}

.contact-image {
    flex: 1;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.lantern-reflection {
    width: 100%;
    height: 100%;
    background: url('../images/lantern-water.jpg') no-repeat center center/cover;
    border-radius: 10px;
    position: relative;
}

/*.lantern-reflection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.5), rgba(46, 34, 82, 0.5));
}
    */

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

.popup-content {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--twilight-violet) 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 30px rgba(255, 168, 186, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.close-popup:hover {
    color: var(--sakura-pink);
}

.moon-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite;
}

/* Disclaimer Section */
#disclaimer {
    padding: 4rem 0;
    background: linear-gradient(to bottom, rgba(30, 30, 60, 0.9), rgba(26, 26, 46, 0.9));
}

.disclaimer-content {
    background: rgba(46, 34, 82, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--sakura-pink);
}

.disclaimer-content p {
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--midnight-blue);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p,
.footer-right p {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--sakura-pink);
    transform: translateY(-3px);
}

.social-icon i {
    color: var(--text-light);
    font-size: 1.2rem;
}