/* Main Styles for Aria's Little Prince Birthday Website */

/* Custom Sparkle Cursor ✨ */
* {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffd166' stroke='%23ffffff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>") 12 12, auto;
}

a, button, [role="button"], input[type="submit"], input[type="button"], .planet, .rose-image, .fox-image, .snake-img, .well, .interactive-star, .prince-image {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23ffd166' stroke='%23ffffff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'><animate attributeName='opacity' values='0.5;1;0.5' dur='2s' repeatCount='indefinite'/></polygon></svg>") 16 16, pointer;
}

:root {
    --primary-color: #4a4e69;
    --secondary-color: #9a8c98;
    --accent-color: #c9ada7;
    --text-color: #f2e9e4;
    --dark-bg: #22223b;
    --star-color: #f9f7f3;
    --rose-color: #e63946;
    --fox-color: #e76f51;
    --prince-color: #ffd166;
    --snake-color: #2a9d8f;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1b36; /* Deep night blue */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeInOut 4s forwards;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.loading-star {
    font-size: 5rem;
    color: var(--prince-color);
    margin-bottom: 1rem;
    animation: starTwinkle 2s infinite alternate, starRotate 10s linear infinite;
    text-shadow: 0 0 10px var(--prince-color), 0 0 20px var(--prince-color), 0 0 30px var(--prince-color);
}

.loading-text {
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    opacity: 0.9;
    animation: textPulse 2s infinite alternate;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.loading-image {
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 209, 102, 0.5);
    transform: translateY(0);
    animation: floatImage 3s ease-in-out infinite;
}

.loading-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

@keyframes fadeInOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes starTwinkle {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

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

@keyframes textPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

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

/* Enhanced loading effects */
.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(41, 50, 100, 0.8) 0%, rgba(15, 15, 35, 1) 100%);
    z-index: -1;
}

.loading-content::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 209, 102, 0.1);
    filter: blur(20px);
    z-index: -1;
    animation: pulseGlow 4s infinite alternate;
}

.loading-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--prince-color), transparent, var(--prince-color));
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
    animation: borderGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0.1; }
}

@keyframes borderGlow {
    0% { opacity: 0.3; transform: rotate(0deg); }
    100% { opacity: 0.7; transform: rotate(360deg); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor-container {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--star-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
    pointer-events: none;
    z-index: 9999;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    pointer-events: none;
    z-index: 9998;
}

/* Stars Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 1907px 1575px #FFF, 893px 268px #FFF, 1819px 666px #FFF, 366px 1985px #FFF;
    animation: animateStar 50s linear infinite;
}

#stars:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 1907px 1575px #FFF, 893px 268px #FFF, 1819px 666px #FFF, 366px 1985px #FFF;
}

#stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 1439px 1028px #FFF, 839px 1261px #FFF, 1911px 132px #FFF, 639px 1176px #FFF;
    animation: animateStar 100s linear infinite;
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 1439px 1028px #FFF, 839px 1261px #FFF, 1911px 132px #FFF, 639px 1176px #FFF;
}

#stars3 {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 1869px 1641px #FFF, 1396px 1577px #FFF, 668px 1648px #FFF, 1590px 1342px #FFF;
    animation: animateStar 150s linear infinite;
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 1869px 1641px #FFF, 1396px 1577px #FFF, 668px 1648px #FFF, 1590px 1342px #FFF;
}

@keyframes animateStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    text-align: center;
    color: white;
    position: relative;
    background-image: url('imgs/Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: absolute;
    top: 50px;
    left: 50px;
    text-align: left;
    z-index: 2;
    padding: 2rem;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-family: 'Dancing Script', cursive;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

.hero > .subtitle {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.scroll-indicator span {
    margin-bottom: 5px;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
}

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

/* Quote Section */
.quote-section {
    padding: 100px 20px;
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    min-height: 110vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: url('imgs/Snake.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.quote-container {
    max-width: 800px;
    position: relative;
}

.quote {
    font-size: 2rem;
    line-height: 1.6;
    text-align: center;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background-color: rgba(34, 34, 59, 0.7);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateX(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.quote:hover {
    transform: perspective(1000px) rotateX(0);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.quote p {
    margin-bottom: 1rem;
}

.author {
    display: block;
    text-align: right;
    font-style: italic;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Planets Section */
.planets-section {
    padding: 6rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-family: 'Dancing Script', cursive;
    color: var(--prince-color);
}

.planets-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 100%;
    padding: 3rem 2rem;
    position: relative;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--prince-color) rgba(34, 34, 59, 0.3);
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    /* Custom scrollbar styling */
    padding-bottom: 20px; /* Space for scrollbar */
}

.planets-container::-webkit-scrollbar {
    height: 10px;
}

.planets-container::-webkit-scrollbar-track {
    background: rgba(34, 34, 59, 0.3);
    border-radius: 10px;
}

.planets-container::-webkit-scrollbar-thumb {
    background: var(--prince-color);
    border-radius: 10px;
}

.planets-container::-webkit-scrollbar-thumb:hover {
    background: #ffc149;
}

.planet {
    position: relative;
    width: 300px;
    height: 300px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: none;
    margin: 1rem 0;
    animation: floatPlanet 6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 1s);
}

.planet:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.planet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%);
}

#planet0 {
    background: linear-gradient(45deg, #8b4513, #a0522d);
}

#planet1 {
    background: linear-gradient(45deg, #4b0082, #800080);
}

#planet2 {
    background: linear-gradient(45deg, #ff7f50, #ff6347);
}

#planet3 {
    background: linear-gradient(45deg, #8b0000, #cd5c5c);
}

#planet4 {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
}

#planet5 {
    background: linear-gradient(45deg, #32cd32, #00fa9a);
}

#planet6 {
    background: linear-gradient(45deg, #4169e1, #1e90ff);
}

#planet7 {
    background: linear-gradient(45deg, #20b2aa, #3cb371);
    position: relative;
    overflow: hidden;
}

#planet7::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0.6;
    animation: rotate 30s linear infinite;
}

#planet8 {
    background: linear-gradient(45deg, #34a85a, #2ecc71);
}

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

.planet-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.planet:hover .planet-content {
    opacity: 1;
}

.planet-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Dancing Script', cursive;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.planet p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 80%;
    margin: 0 auto;
}

.planet:hover p {
    opacity: 1;
    transform: translateY(0);
}

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

/* Little Prince Section */
.prince-section {
    min-height: 110vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    background: linear-gradient(to right, #2a3d66, #1f2039);
    overflow: hidden;
}

.prince-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23fff" opacity="0.5"/></svg>');
    background-size: 150px 150px;
    animation: twinkling 10s linear infinite;
    opacity: 0.3;
}

@keyframes twinkling {
    from { transform: translateY(0); }
    to { transform: translateY(-150px); }
}

.prince-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    padding: 2rem;
}

@media (min-width: 768px) {
    .prince-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
    }
}

.prince-image-container {
    width: 100%;
    max-width: 450px;
    height: 450px;
    position: relative;
    margin-bottom: 3rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(255, 209, 102, 0.3);
    animation: prince-float 6s ease-in-out infinite alternate, prince-glow 4s ease-in-out infinite alternate;
}

@keyframes prince-float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes prince-glow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(255, 209, 102, 0.3); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 100px rgba(255, 209, 102, 0.6); }
}

.prince-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.prince-image:hover {
    transform: scale(1.05);
}

.prince-content {
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(15, 16, 40, 0.6);
    backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 100px rgba(255, 255, 255, 0.05);
    animation: prince-content-glow 5s infinite alternate;
}

@keyframes prince-content-glow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 50px rgba(255, 255, 255, 0.05); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 100px rgba(255, 209, 102, 0.2); }
}

@media (min-width: 768px) {
    .prince-content {
        text-align: left;
    }
}

.prince-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
    color: var(--prince-color);
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.5), 0 0 20px rgba(255, 209, 102, 0.3);
    animation: prince-title-glow 3s infinite alternate;
}

@keyframes prince-title-glow {
    0% { text-shadow: 0 0 10px rgba(255, 209, 102, 0.5), 0 0 20px rgba(255, 209, 102, 0.3); }
    100% { text-shadow: 0 0 15px rgba(255, 209, 102, 0.7), 0 0 30px rgba(255, 209, 102, 0.5); }
}

.prince-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.prince-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--prince-color);
    margin-top: 2rem;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
    animation: prince-message-pulse 3s infinite alternate;
}

.sunset-counter {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #ffcc33;
    text-shadow: 0 0 10px rgba(255, 204, 51, 0.7);
    opacity: 0.7;
    position: relative;
    display: inline-block;
}

.sunset-counter::before {
    content: 'Moments shared';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    opacity: 0.6;
}

.sunset-counter span {
    font-size: 1.8rem;
    font-family: 'Dancing Script', cursive;
    display: inline-block;
    min-width: 30px;
    text-align: center;
    animation: counter-pulse 1s ease-in-out;
}

@keyframes counter-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #fff; text-shadow: 0 0 15px rgba(255, 255, 255, 0.9); }
    100% { transform: scale(1); }
}

@keyframes prince-message-pulse {
    0% { opacity: 0.8; text-shadow: 0 0 10px rgba(255, 209, 102, 0.4); }
    100% { opacity: 1; text-shadow: 0 0 20px rgba(255, 209, 102, 0.8), 0 0 30px rgba(255, 209, 102, 0.4); }
}

/* Rose Section */
.rose-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
}

.rose-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 3rem;
}

@media (min-width: 768px) {
    .rose-container {
        flex-direction: row;
    }
}

.rose {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.rose-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
    animation: roseGlow 3s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.rose:hover .rose-image {
    transform: rotateY(10deg) rotateX(5deg);
    animation: roseHover 2s ease-in-out infinite alternate;
}

.rose::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

.rose::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(230, 57, 70, 0.3);
    filter: blur(5px);
    z-index: -1;
    animation: borderRotate 15s linear infinite;
}

@keyframes roseGlow {
    0% { box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3); }
    100% { box-shadow: 0 10px 30px rgba(230, 57, 70, 0.6), 0 0 40px rgba(230, 57, 70, 0.4); }
}

@keyframes roseHover {
    0% { transform: rotateY(10deg) rotateX(5deg); }
    100% { transform: rotateY(15deg) rotateX(10deg); }
}

@keyframes pulseGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

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

.rose-content {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .rose-content {
        text-align: left;
    }
}

.rose-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
    color: var(--rose-color);
}

.rose-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rose-message {
    font-style: italic;
    opacity: 0.9;
}

/* Fox Section */
.fox-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    background: linear-gradient(to bottom, var(--dark-bg), #2c2c44);
    overflow: hidden; /* Ensure sparkles don't cause scrollbars */
}

@media (min-width: 768px) {
    .fox-section {
        flex-direction: row;
        justify-content: center;
        gap: 7rem; /* Reduced gap between content and image */
    }
}

.fox-content {
    max-width: 500px;
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .fox-content {
        margin-bottom: 0;
        text-align: left;
    }
}

.fox-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
    color: var(--fox-color);
    text-shadow: 0 0 10px rgba(231, 111, 81, 0.4);
    animation: gentle-glow 3s infinite alternate;
}

.fox-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tame-button button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: none;
    border: 2px solid var(--fox-color);
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Dancing Script', cursive;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(231, 111, 81, 0.2);
}

.tame-button button:hover {
    background-color: rgba(231, 111, 81, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 111, 81, 0.3);
}

.tame-button button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 111, 81, 0.2), transparent);
    transition: all 0.4s ease;
}

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

.tame-button button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--fox-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.tame-button button:hover:before {
    width: 100%;
}

.tame-button button:hover {
    color: var(--dark-bg);
}

.interactive-fox {
    width: 500px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.fox-character {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    opacity: 0.7; /* Initially untamed */
}

.fox-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(231, 111, 81, 0.4);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    animation: foxGlow 3s ease-in-out infinite alternate;
    filter: brightness(1.05) saturate(0.9); /* Initially less vibrant */
}

.fox-character:hover .fox-image {
    transform: scale(1.05) rotateY(5deg);
    filter: brightness(1.1) contrast(1.05) saturate(0.9);
    box-shadow: 0 15px 40px rgba(231, 111, 81, 0.6);
}

.fox-character::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(231, 111, 81, 0.2) 0%, rgba(231, 111, 81, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: foxAura 4s ease-in-out infinite alternate;
}

.fox-character::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(231, 111, 81, 0.1), transparent);
    border-radius: 15px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.fox-character:hover::after {
    opacity: 0.5;
}

.fox-character.tamed {
    opacity: 1;
    transform: scale(1.05);
}

.fox-character.tamed .fox-image {
    filter: brightness(1.15) contrast(1.1) saturate(1.2);
    box-shadow: 0 15px 40px rgba(231, 111, 81, 0.8), 0 0 60px rgba(231, 111, 81, 0.4);
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 3;
    overflow: hidden;
}

.sunset-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    animation: twinkle-star 3s infinite alternate;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle-star {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(0.9); }
}

.stars-layer::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px white, 0 0 10px white;
    top: 20%;
    left: 80%;
    opacity: 0;
    animation: shooting-star 8s linear infinite;
    animation-delay: 5s;
}

@keyframes shooting-star {
    0% { transform: translate(0, 0) rotate(-45deg) scale(1); opacity: 0; }
    1% { opacity: 1; }
    5% { transform: translate(-200px, 200px) rotate(-45deg) scale(0.1); opacity: 0; box-shadow: 0 0 4px white, 0 0 100px white; }
    100% { transform: translate(-200px, 200px) rotate(-45deg) scale(0.1); opacity: 0; }
}

/* Sparkle effects for fox taming */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.sparkle {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: transparent;
    z-index: 10;
    pointer-events: none;
    animation: sparkle-fade 2s ease-in-out forwards;
}

.sparkle::before, .sparkle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 209, 102, 0.9);
    border-radius: 50%;
    animation: sparkle-pulse 1s infinite alternate;
}

.sparkle::before {
    transform: rotate(45deg);
}

.sparkle::after {
    transform: rotate(90deg);
}

.tamed-button {
    background-color: var(--fox-color);
    color: white;
    border-color: var(--fox-color);
    box-shadow: 0 0 15px rgba(231, 111, 81, 0.6);
    transform: scale(1.05);
}

@keyframes sparkle-fade {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes sparkle-pulse {
    0% { opacity: 0.7; transform: scale(0.8) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.2) rotate(30deg); }
}

/* Snake Section Styling */
.snake-section {
    min-height: 100vh;
    padding: 50px 0;
    background: linear-gradient(to bottom, var(--dark-bg) 0%, #1a1a2e 50%, var(--dark-bg) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.snake-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 20%, rgba(42, 157, 143, 0.2) 0%, transparent 40%),
                      radial-gradient(circle at 70% 60%, rgba(42, 157, 143, 0.15) 0%, transparent 35%);
    z-index: 1;
}

.snake-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    padding: 30px;
    z-index: 2;
    position: relative;
}

@media (max-width: 900px) {
    .snake-container {
        flex-direction: column;
    }
}

.snake-image {
    width: 45%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@media (max-width: 900px) {
    .snake-image {
        width: 80%;
        margin-bottom: 30px;
    }
}

.snake-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(42, 157, 143, 0.4);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    animation: snakeGlow 4s ease-in-out infinite alternate;
    filter: brightness(1.05) saturate(1.1);
}

@keyframes snakeGlow {
    0% { box-shadow: 0 10px 30px rgba(42, 157, 143, 0.4); filter: brightness(1.05) saturate(1.1); }
    100% { box-shadow: 0 15px 40px rgba(42, 157, 143, 0.8), 0 0 60px rgba(42, 157, 143, 0.3); filter: brightness(1.15) saturate(1.3); }
}

.snake-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.2) 0%, rgba(42, 157, 143, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: snakeAura 5s ease-in-out infinite alternate;
}

@keyframes snakeAura {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

.snake-content {
    width: 45%;
    padding: 30px;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .snake-content {
        width: 100%;
    }
}

.snake-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--snake-color);
    text-shadow: 0 0 10px rgba(42, 157, 143, 0.5);
    position: relative;
    display: inline-block;
}

.snake-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--snake-color), transparent);
}

.snake-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.snake-mystery {
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(42, 157, 143, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(42, 157, 143, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.snake-mystery:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.3);
}

.snake-symbol {
    font-size: 2.5rem;
    color: var(--snake-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(42, 157, 143, 0.8);
    animation: snakeSymbolGlow 3s infinite alternate;
    display: inline-block;
}

@keyframes snakeSymbolGlow {
    0% { text-shadow: 0 0 15px rgba(42, 157, 143, 0.5); transform: rotate(0deg); }
    100% { text-shadow: 0 0 25px rgba(42, 157, 143, 0.9), 0 0 40px rgba(42, 157, 143, 0.5); transform: rotate(360deg); }
}

.snake-message {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@keyframes gentle-glow {
    0% { text-shadow: 0 0 10px rgba(231, 111, 81, 0.3); }
    100% { text-shadow: 0 0 20px rgba(231, 111, 81, 0.6), 0 0 30px rgba(231, 111, 81, 0.3); }
}

@keyframes foxGlow {
    0% { box-shadow: 0 10px 20px rgba(231, 111, 81, 0.3); }
    100% { box-shadow: 0 10px 30px rgba(231, 111, 81, 0.6), 0 0 40px rgba(231, 111, 81, 0.3); }
}

@keyframes foxAura {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.2; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.special-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(231, 111, 81, 0.4);
    position: relative;
    margin-top: 2rem !important;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(231, 111, 81, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.fox-character.untamed {
    opacity: 0.6;
    filter: grayscale(70%);
}

.fox-character.tamed {
    opacity: 1;
    filter: grayscale(0%);
    animation: happyFox 3s ease-in-out infinite;
}

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

/* Desert Section */
.desert-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(to bottom, #1f2039, #2c2c44);
}

.desert-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
}

.sand {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to bottom, #e6b980, #eacda3);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.2);
}

.dunes {
    position: absolute;
    bottom: 35%;
    left: 0;
    width: 100%;
    height: 200px;
    background: #e6b980;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transform-origin: bottom;
    animation: dune-sway 20s ease-in-out infinite alternate;
}

.dunes:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 150px;
    background: #e6b980;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    animation: dune-breathe 15s ease-in-out infinite alternate;
}

.dunes:after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 40%;
    width: 30%;
    height: 100px;
    background: #e6b980;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    animation: dune-breathe 12s ease-in-out infinite alternate-reverse;
}

@keyframes dune-sway {
    0% { transform: scaleX(1.05); }
    100% { transform: scaleX(0.95); }
}

@keyframes dune-breathe {
    0% { height: 150px; }
    100% { height: 170px; }
}

.well {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #555;
    border-radius: 50%;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 15px #777, 0 0 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
    z-index: 5;
}

.well.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
    animation: wellGlow 2s ease-in-out infinite alternate;
}

@keyframes wellGlow {
    0% { box-shadow: 0 0 0 15px #777, 0 0 30px rgba(0, 0, 0, 0.5); }
    100% { box-shadow: 0 0 0 15px #777, 0 0 50px rgba(70, 130, 180, 0.8), 0 0 80px rgba(70, 130, 180, 0.4); }
}

.desert-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 100px rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 90%;
    animation: desert-content-float 6s ease-in-out infinite alternate;
}

.desert-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
    color: #5d4037;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    animation: desert-title-glow 3s ease-in-out infinite alternate;
}

.desert-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #3e2723;
}

.desert-content p:last-child {
    font-weight: bold;
    font-style: normal;
    color: #5d4037;
    font-size: 1.1rem;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes desert-content-float {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(-50%, -52%); }
}

@keyframes desert-title-glow {
    0% { text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.4); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}



/* Easter egg styles */
.easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 30, 0.97);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.easter-egg.active {
    opacity: 1;
    visibility: visible;
}

.easter-egg-content {
    background: rgba(30, 30, 60, 0.6);
    padding: 50px;
    border-radius: 30px;
    max-width: 600px;
    text-align: center;
    color: white;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2), inset 0 0 30px rgba(255, 204, 51, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    animation: easter-egg-appear 1.5s forwards 0.5s;
    position: relative;
    z-index: 2;
}

@keyframes easter-egg-appear {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.easter-egg-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(ellipse at center, rgba(255, 204, 51, 0.2) 0%, transparent 70%);
    z-index: -1;
    border-radius: 40px;
    animation: easter-egg-glow 6s infinite alternate;
}

@keyframes easter-egg-glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

.easter-egg-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: #ffcc33;
    text-shadow: 0 0 15px rgba(255, 204, 51, 0.7), 0 0 30px rgba(255, 204, 51, 0.4);
    animation: easter-egg-title 3s infinite alternate;
}

@keyframes easter-egg-title {
    0% { text-shadow: 0 0 15px rgba(255, 204, 51, 0.7), 0 0 30px rgba(255, 204, 51, 0.4); }
    100% { text-shadow: 0 0 25px rgba(255, 204, 51, 0.9), 0 0 50px rgba(255, 204, 51, 0.6); }
}

.easter-egg-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    line-height: 1.7;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.easter-egg-content p:nth-of-type(2) {
    font-family: 'Dancing Script', cursive;
    font-size: 1.7rem;
    color: #ffcc33;
    opacity: 0.9;
    margin: 30px 0;
    text-shadow: 0 0 10px rgba(255, 204, 51, 0.5);
}

.easter-egg-image {
    width: 220px;
    height: 220px;
    margin: 30px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 204, 51, 0.6), 0 0 60px rgba(255, 204, 51, 0.3);
    position: relative;
    animation: easter-egg-image-glow 4s infinite alternate;
}

@keyframes easter-egg-image-glow {
    0% { box-shadow: 0 0 30px rgba(255, 204, 51, 0.6), 0 0 60px rgba(255, 204, 51, 0.3); transform: scale(1); }
    100% { box-shadow: 0 0 40px rgba(255, 204, 51, 0.8), 0 0 80px rgba(255, 204, 51, 0.4); transform: scale(1.03); }
}

.easter-egg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 204, 51, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.easter-egg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.easter-egg-close {
    background: linear-gradient(to right, #ffcc33, #ff9e2c);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(255, 204, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.easter-egg-close::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.easter-egg-close:hover {
    background: linear-gradient(to right, #ffdd66, #ffcc33);
    box-shadow: 0 5px 20px rgba(255, 204, 51, 0.5), 0 0 30px rgba(255, 204, 51, 0.3);
    transform: translateY(-3px);
}

.easter-egg-close:hover::before {
    opacity: 1;
    transform: rotate(45deg) translateY(-50%);
}

.easter-egg-star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 4px white;
    animation: easter-egg-star-twinkle 3s infinite alternate;
}

@keyframes easter-egg-star-twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.easter-egg-shooting-star {
    position: absolute;
    z-index: 1;
}

.easter-egg-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 2rem auto;
    box-shadow: 0 0 50px rgba(255, 204, 51, 0.8);
    position: relative;
    overflow: hidden;
}

.easter-egg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.easter-egg-close {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: none;
    border: 2px solid #ffcc33;
    color: #ffcc33;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.easter-egg-close:hover {
    background: #ffcc33;
    color: #0f1028;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Stars Section */
.stars-section {
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    background: linear-gradient(to bottom, #0f1028, #1a1a35);
    overflow: hidden;
}

@media (min-width: 768px) {
    .stars-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.interactive-stars {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

.stars-content {
    max-width: 500px;
    text-align: center;
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(15, 16, 40, 0.6);
    backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 100px rgba(255, 255, 255, 0.05);
    animation: stars-content-glow 5s infinite alternate;
}

@keyframes stars-content-glow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 50px rgba(255, 255, 255, 0.05); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 100px rgba(255, 209, 102, 0.2); }
}

@media (max-width: 768px) {
    .stars-content {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 20vh auto 0;
        width: 90%;
    }
}

.stars-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
    color: var(--star-color);
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.5), 0 0 20px rgba(255, 209, 102, 0.3);
    animation: star-title-twinkle 3s infinite alternate;
}

@keyframes star-title-twinkle {
    0% { text-shadow: 0 0 10px rgba(255, 209, 102, 0.5), 0 0 20px rgba(255, 209, 102, 0.3); }
    100% { text-shadow: 0 0 15px rgba(255, 209, 102, 0.7), 0 0 30px rgba(255, 209, 102, 0.5); }
}

.stars-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.personal-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--star-color);
    margin-top: 2rem;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
    animation: message-pulse 3s infinite alternate;
}

@keyframes message-pulse {
    0% { opacity: 0.8; text-shadow: 0 0 10px rgba(255, 209, 102, 0.4); }
    100% { opacity: 1; text-shadow: 0 0 20px rgba(255, 209, 102, 0.8), 0 0 30px rgba(255, 209, 102, 0.4); }
}

.interactive-star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.interactive-star:hover {
    transform: scale(1.5);
    box-shadow: 0 0 15px #fff, 0 0 30px rgba(255, 209, 102, 0.8);
    z-index: 10;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(to right, transparent, #fff, transparent);
    transform: rotate(45deg);
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(255, 255, 255, 0.5);
    animation: shooting 3s linear forwards;
    opacity: 0;
    z-index: 3;
}

@keyframes shooting {
    0% { transform: translateX(0) translateY(0) rotate(45deg); opacity: 1; width: 2px; }
    50% { opacity: 1; width: 50px; }
    100% { transform: translateX(1000px) translateY(1000px) rotate(45deg); opacity: 0; width: 2px; }
}

/* Birthday Wishes Section */
.birthday-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    text-align: center;
}

.birthday-title {
    font-size: 5rem;
    margin-bottom: 2rem;
    font-family: 'Dancing Script', cursive;
    color: var(--prince-color);
    animation: glow 3s ease-in-out infinite alternate;
}

.birthday-message {
    max-width: 800px;
    margin-bottom: 4rem;
}

.birthday-message p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cake-container {
    width: 200px;
    height: 300px;
    position: relative;
    margin-bottom: 3rem;
}

.cake {
    position: relative;
    width: 100%;
    height: 100%;
}

.cake-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 60px;
    background-color: #f8c6df;
    border-radius: 10px;
}

.cake-middle {
    position: absolute;
    bottom: 60px;
    left: 20px;
    width: 160px;
    height: 60px;
    background-color: #f8a6cf;
    border-radius: 10px;
}

.cake-top {
    position: absolute;
    bottom: 120px;
    left: 40px;
    width: 120px;
    height: 60px;
    background-color: #f686bf;
    border-radius: 10px;
}

.candle {
    position: absolute;
    bottom: 180px;
    left: 95px;
    width: 10px;
    height: 40px;
    background: linear-gradient(to bottom, #fff, #ffd700);
    border-radius: 5px;
}

.flame {
    position: absolute;
    bottom: 220px;
    left: 95px;
    width: 10px;
    height: 20px;
    background: linear-gradient(to bottom, #ff5722, #ffc107);
    border-radius: 50% 50% 20% 20%;
    transform-origin: center bottom;
    animation: flicker 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px #ffc107, 0 0 40px #ff5722;
}

@keyframes flicker {
    0%, 100% { transform: scaleY(1) rotate(3deg); }
    25% { transform: scaleY(1.1) rotate(-3deg); }
    50% { transform: scaleY(0.9) rotate(5deg); }
    75% { transform: scaleY(1.05) rotate(-1deg); }
}

.wish-button button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: none;
    border: 2px solid var(--prince-color);
    color: var(--text-color);
    border-radius: 50px;
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.wish-button button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--prince-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.wish-button button:hover:before {
    width: 100%;
}

.wish-button button:hover {
    color: var(--dark-bg);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: rgba(34, 34, 59, 0.8);
    position: relative;
}

footer p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer .quote {
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}
