/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Righteous&family=Quicksand:wght@300;400;500;600&display=swap');

/* General Styles */
body {
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a, #2a2a2a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text Glow Effects */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #ff0055, #ff6600, #ff9500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 20px rgba(255,85,0,0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255,85,0,0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255,85,0,0.8));
    }
}

/* Welcome Screen */
#welcome-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#welcome-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#welcome-screen p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
}

#welcome-screen button {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #ff5500;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#welcome-screen button:hover {
    background: #ff5500;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,85,0,0.3);
}

.container {
    display: none; /* Initially hidden */
    padding: 20px;
}

/* Hero Section */
.hero {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2rem;
}

/* Sections */
section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
    backdrop-filter: blur(5px);
    transform: translateY(50px);
    opacity: 0;
    animation: sectionFadeIn 1s forwards;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border: 3px solid transparent;
    box-shadow: 0 0 15px rgba(255,85,0,0.3),
                inset 0 0 15px rgba(255,85,0,0.3);
    animation: neonPulse 2s infinite;
}

@keyframes sectionFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 15px rgba(255,85,0,0.3),
                     inset 0 0 15px rgba(255,85,0,0.3); }
    50% { box-shadow: 0 0 30px rgba(255,85,0,0.5),
                      inset 0 0 30px rgba(255,85,0,0.5); }
    100% { box-shadow: 0 0 15px rgba(255,85,0,0.3),
                       inset 0 0 15px rgba(255,85,0,0.3); }
}

/* Memories Gallery */
.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(50%);
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    font-family: 'Quicksand', sans-serif;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item:hover .gallery-caption {
    bottom: 0;
}

.interactive-message {
    margin: 30px auto;
    max-width: 600px;
}

.message-box textarea {
    width: 100%;
    height: 120px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.message-box textarea:focus {
    border-color: #ff5500;
    box-shadow: 0 0 20px rgba(255,85,0,0.3);
    outline: none;
}

.message-box button {
    background: #ff5500;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-box button:hover {
    transform: scale(1.05);
}

/* Add floating animation for messages */
.message {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    margin: 10px 0;
    border-radius: 15px;
    animation: messageFloat 0.5s ease-out forwards;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes messageFloat {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Floating Hearts Animation */
.heart {
    position: fixed;
    font-size: 20px;
    animation: floatHeart 5s linear;
    z-index: -1;
    opacity: 0.6;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced gallery styles */
.gallery-item.spotlight-effect {
    position: relative;
    width: 800px;
    height: 400px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255,85,0,0.3);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.spotlight-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: rotate(0deg);
    animation: spotlight 5s infinite linear;
}

.gallery-item.spotlight-effect img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.02) translateY(-20px) translateX(-20px);
    transition: transform 0.5s ease;
    padding: 15px;
}

@keyframes spotlight {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Particle background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 2px;
    position: relative;
    animation: typing 3.5s steps(40, end);
}

.typewriter::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ff5500;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ff5500 }
}

/* Floating football animation */
.football {
    position: fixed;
    font-size: 24px;
    animation: floatBall 8s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes floatBall {
    0% {
        transform: translateY(100vh) translateX(-100px) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(720deg);
    }
}

/* Fix typewriter effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 2px;
    position: relative;
    animation: typing 3.5s steps(40, end);
}

.typewriter::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ff5500;
    animation: blink-caret 0.75s step-end infinite;
}

/* Fix floating animations */
.heart, .football {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: 1;
}

.heart {
    animation: floatHeart 6s linear forwards;
}

.football {
    animation: floatBall 8s linear forwards;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatBall {
    0% {
        transform: translateY(100vh) translateX(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) translateX(100px) rotate(720deg);
        opacity: 0;
    }
}

/* Fix cursor visibility */
.cursor, .cursor-trail {
    mix-blend-mode: difference;
    pointer-events: none;
    transition: all 0.1s ease;
}

/* Fix section animations */
section {
    opacity: 1;
    transform: none;
    animation: sectionFadeIn 1s ease-out forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhance gallery effect */
.gallery-item.spotlight-effect {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-item.spotlight-effect img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.8);
    transition: all 0.5s ease;
}

.gallery-item.spotlight-effect:hover img {
    filter: brightness(1);
    transform: scale(1.1) translateY(-20px) translateX(-20px);
}

/* Birthday Countdown Styles */
.birthday-countdown {
    margin: 40px auto;
    max-width: 800px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.countdown-item {
    background: rgba(255, 85, 0, 0.1);
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
    border: 2px solid rgba(255, 85, 0, 0.3);
    animation: glow 2s infinite;
}

.countdown-item span {
    display: block;
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    color: #ff5500;
}

.countdown-item .label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 5px;
    color: #fff;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 85, 0, 0.6);
    }
}

/* Social Media Links */
.social-links {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-btn {
    padding: 15px 25px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.social-btn:hover::before {
    transform: translateX(0);
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.facebook {
    background: #1877f2;
}

.twitter {
    background: #1da1f2;
}

/* New Interactive Animations */
.floating-element {
    position: absolute;
    pointer-events: none;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }
    50% {
        transform: translate(0, 200px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, 100px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Add hover effects to sections */
section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 40px rgba(255,85,0,0.4);
}

/* Remove previous social-links styles and add these new styles */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    border: 2px solid rgba(255, 85, 0, 0.3);
    animation: popupFade 0.5s ease-out;
    box-shadow: 0 0 30px rgba(255,85,0,0.3);
}

.popup-content h3 {
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    color: #ff5500;
}

.social-btn.instagram {
    display: inline-flex;
    margin: 20px 0;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.social-btn.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,85,0,0.3);
}

.close-popup {
    background: transparent;
    border: 2px solid rgba(255, 85, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.close-popup:hover {
    background: rgba(255, 85, 0, 0.2);
    transform: translateY(-2px);
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add these new styles for the social section */
.social-section {
    text-align: center;
    margin: 40px auto;
}

.social-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    padding: 20px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    transform-origin: center;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255,85,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255,85,0,0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255,85,0,0.3);
    }
}

/* Hide scrollbars but keep scrolling functionality */
/* For all elements */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* For Webkit browsers (Chrome, Safari, etc.) */
*::-webkit-scrollbar {
    display: none;
}

/* Specifically for the body */
body::-webkit-scrollbar {
    display: none;
}

/* Remove these music button styles */
.audio-controls {
    display: none;
}

.music-btn {
    display: none;
}

/* Update paragraph and list styles */
p, li {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Update footer text */
footer p {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

/* Add these responsive styles at the end of your CSS file */

/* General responsive adjustments */
@media screen and (max-width: 1200px) {
    .gallery-item.spotlight-effect {
        width: 600px;
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    /* Welcome screen */
    #welcome-screen h1 {
        font-size: 2rem;
    }

    #welcome-screen p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    /* Hero section */
    .hero h1 {
        font-size: 1.8rem;
    }

    /* Section adjustments */
    section {
        padding: 20px;
        margin: 15px;
    }

    /* Gallery adjustments */
    .gallery-item.spotlight-effect {
        width: 90%;
        height: 300px;
        margin: 20px auto;
    }

    /* Birthday countdown */
    .countdown-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .countdown-item {
        min-width: 80px;
        padding: 15px;
    }

    .countdown-item span {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    /* Welcome screen */
    #welcome-screen h1 {
        font-size: 1.6rem;
    }

    #welcome-screen p {
        font-size: 1rem;
    }

    #welcome-screen button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Text sizes */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p, li {
        font-size: 1rem;
    }

    /* Gallery */
    .gallery-item.spotlight-effect {
        height: 250px;
    }

    .gallery-caption {
        font-size: 1rem;
        padding: 10px;
    }

    /* Birthday countdown */
    .countdown-container {
        gap: 10px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 10px;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }

    .countdown-item .label {
        font-size: 0.9rem;
    }

    /* Social buttons */
    .social-btn.instagram {
        padding: 15px 30px;
        font-size: 1rem;
    }

    /* Footer */
    footer p {
        font-size: 0.9rem;
    }
}

/* Adjust container padding */
.container {
    padding: 15px;
    max-width: 100%;
    margin: 0 auto;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Adjust popup modal for mobile */
@media screen and (max-width: 480px) {
    .popup-content {
        width: 90%;
        padding: 20px;
        margin: 0 15px;
    }

    .popup-content h3 {
        font-size: 1.3rem;
    }

    .popup-content p {
        font-size: 1rem;
    }
}

/* Ensure floating elements don't cause horizontal scroll */
.heart, .football {
    max-width: 100vw;
    overflow: hidden;
}

/* Adjust particle density for mobile */
@media screen and (max-width: 768px) {
    #particles-js {
        opacity: 0.5;
    }
}

/* Add these styles for the Neopix link */
.neopix-link {
    text-decoration: none;
    color: #ff5500;
    font-weight: 600;
    position: relative;
    padding: 0 5px;
    transition: all 0.3s ease;
    animation: neopixGlow 2s infinite;
}

.neopix-link:hover {
    text-shadow: 0 0 15px rgba(255,85,0,0.8);
}

@keyframes neopixGlow {
    0%, 100% {
        color: #ff5500;
        text-shadow: 0 0 10px rgba(255,85,0,0.3);
    }
    50% {
        color: #ff7733;
        text-shadow: 0 0 20px rgba(255,85,0,0.6),
                     0 0 30px rgba(255,85,0,0.4);
    }
}

/* Update the footer styles */
footer {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

/* Add responsive styles for the footer */
@media screen and (max-width: 480px) {
    .neopix-link {
        font-size: 0.9rem;
    }
}
