:root {
    --primary-color: #ff4b82;
    --secondary-color: #2b0b30;
    --accent-color: #ffd700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0212;
    --card-bg: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .signature {
    font-family: 'Dancing Script', cursive;
}

/* Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -3;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starsAnimation 4s linear infinite;
}

@keyframes starsAnimation {
    0% { opacity: 0.8; }
    50% { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 0.8; }
}

/* Full Moon */
.full-moon {
    position: fixed;
    top: 50px;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #fffdf0 50%, #e0e0e0);
    border-radius: 50%;
    box-shadow: 
        0 0 40px 10px rgba(255, 255, 255, 0.4),
        0 0 100px 30px rgba(255, 253, 224, 0.2);
    z-index: -2;
    animation: moonGlow 5s ease-in-out infinite alternate;
}

/* Moon craters (optional detail) */
.full-moon::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 40%;
    width: 30px;
    height: 20px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    box-shadow: 20px 30px 0 10px rgba(0,0,0,0.03), -10px 40px 0 5px rgba(0,0,0,0.04);
}

@keyframes moonGlow {
    0% { box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.4), 0 0 100px 30px rgba(255, 253, 224, 0.2); }
    100% { box-shadow: 0 0 60px 20px rgba(255, 255, 255, 0.5), 0 0 120px 40px rgba(255, 253, 224, 0.3); }
}

/* Floating Hearts Container */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    bottom: -100px;
    background-color: var(--primary-color);
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    animation: floatUp 5s linear infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--primary-color);
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: -10px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(45deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(45deg) scale(1.5);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(10, 2, 18, 0.2) 0%, rgba(10, 2, 18, 0.8) 100%);
    position: relative;
    padding: 20px;
}

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

.pre-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-title {
    font-size: 4rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 75, 130, 0.5);
}

.name {
    font-size: 6rem;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-scroll {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), #ff758c);
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 75, 130, 0.3);
}

.btn-scroll:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 75, 130, 0.5);
}

.btn-scroll i {
    margin-left: 8px;
}

.btn-scroll:disabled {
    background: rgba(100, 100, 100, 0.3);
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-scroll:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Countdown */
.countdown-wrapper {
    margin-bottom: 40px;
}

.countdown-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 10px;
    min-width: 70px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.time-box span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.time-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0;
    margin: 0;
}

/* Hidden Content Initially */
.hidden-content {
    display: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hidden-content.show {
    display: block;
    opacity: 1;
}

/* Memories Section */
.memories {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, var(--secondary-color));
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 50px;
}

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

.gallery-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.img-wrapper {
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .img-wrapper img {
    transform: scale(1.1);
}

.caption {
    margin-top: 15px;
    font-weight: 500;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Message Section with Slider */
.message-section {
    padding: 100px 20px;
    background: linear-gradient(to top, var(--bg-dark), var(--secondary-color));
}

.message-header {
    text-align: center;
    margin-bottom: 40px;
}

.message-slider-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.message-slide {
    display: none;
    text-align: center;
    animation: fadeInSlide 0.5s ease forwards;
    flex-grow: 1;
}

.message-slide.active {
    display: block;
}

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

.heart-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

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

.message-slide h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.message-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.message-content p {
    margin-bottom: 20px;
}

.final-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    margin-top: 30px;
}

.signature {
    font-size: 3rem;
    color: var(--primary-color);
    margin-top: 30px;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.btn-control {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.btn-control:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-indicators {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    color: #aaa;
}

footer i {
    color: var(--primary-color);
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    .full-moon {
        width: 100px;
        height: 100px;
        top: 30px;
        right: 20px;
    }

    .main-title { font-size: 3rem; }
    .name { font-size: 4rem; }
    .pre-title { font-size: 1.5rem; }
    
    .section-title { font-size: 2.5rem; }
    
    .message-slider-container { padding: 30px 20px; }
    .message-slide h3 { font-size: 2rem; }
}
