/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #ff69b4;
    --soft-pink: #ffb6c1;
    --deep-pink: #ff1493;
    --light-pink: #ffe0ec;
    --romantic-red: #e91e63;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --gradient-romantic: linear-gradient(135deg, #ff69b4, #e91e63, #ff1493);
    --shadow-soft: 0 10px 30px rgba(255, 105, 180, 0.2);
    --shadow-medium: 0 15px 40px rgba(233, 30, 99, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #ffe0ec 0%, #ffb6c1 100%);
    min-height: 100vh;
    cursor: url('images/important/pinakamagada.jpeg'), auto;
        
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-romantic);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}

.heart-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.heart-loader .heart {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: rotate(45deg);
    animation: heartbeat 1.2s infinite;
}

.heart-loader .heart::before,
.heart-loader .heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 50%;
}

.heart-loader .heart::before {
    top: -50%;
    left: 0;
}

.heart-loader .heart::after {
    top: 0;
    left: -50%;
}

@keyframes heartbeat {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.1); }
}

.loading-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-romantic);
    position: relative;
    overflow: hidden;
}

.landing-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1.5s ease-out;
}

.title-line {
    display: block;
    margin: 10px 0;
}

.heart-animation {
    margin: 3rem 0;
    position: relative;
    height: 100px;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    animation: float 3s infinite ease-in-out;
    left: 50%;
    transform: translateX(-50%);
}

.floating-heart:nth-child(1) { animation-delay: 0s; }
.floating-heart:nth-child(2) { animation-delay: 0.5s; }
.floating-heart:nth-child(3) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-20px) rotate(10deg); }
}

.enter-btn {
    background: var(--white);
    color: var(--romantic-red);
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 2s ease-out;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: var(--light-pink);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Screen */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-romantic);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    transition: opacity 0.5s ease;
}

.password-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.password-container h2 {
    color: var(--romantic-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.password-container p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.password-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

#passwordInput {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--soft-pink);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--romantic-red);
}

#unlockBtn {
    background: var(--romantic-red);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#unlockBtn:hover {
    background: var(--deep-pink);
    transform: translateY(-2px);
}

.error-message {
    color: var(--romantic-red);
    font-size: 0.9rem;
    margin-top: 10px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Main Content */
.main-content {
    background: var(--white);
    min-height: 100vh;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--romantic-red);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--romantic-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--romantic-red);
}

/* Hero Section */
.hero-section {
    padding: 120px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--romantic-red);
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.love-letter {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.love-letter::before {
    content: '💝';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: var(--white);
    padding: 10px;
    border-radius: 50%;
}

.typing-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    line-height: 2;
    color: var(--text-dark);
    min-height: 200px;
    text-align: left;
}

.signature {
    text-align: right;
    margin-top: 2rem;
}

.signature p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--romantic-red);
    margin: 5px 0;
}

.love-name {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--romantic-red);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.slide {
    position: relative;
    display: none;
}

.slide img {
    width: 100%;
    height: 600px;
    display: block;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem;
    font-size: 1.1rem;
    text-align: center;
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--romantic-red);
    border: none;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.slide-prev:hover, .slide-next:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slide-prev { left: 20px; }
.slide-next { right: 20px; }

/* Memories Timeline */
.memories-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--white) 100%);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--romantic-red);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--romantic-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    width: 45%;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--white);
    transform: translateY(-50%) rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-content h3 {
    color: var(--romantic-red);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Countdown Section */
.countdown-section {
    padding: 80px 20px;
    background: var(--gradient-romantic);
    color: var(--white);
    text-align: center;
}

.countdown-section .section-title {
    color: var(--white);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--white);
    color: var(--romantic-red);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-medium);
    font-family: 'Dancing Script', cursive;
}

.countdown-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-message {
    font-size: 1.2rem;
    margin-top: 2rem;
    font-weight: 300;
}

/* QR Code Section */
.qr-section {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
}

.qr-container {
    display: inline-block;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

#qrcode {
    margin-bottom: 1rem;
}

#qrcode canvas {
    border-radius: 10px;
}

.qr-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* Floating Hearts Background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart-bg {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatUp 15s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Confetti Effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--romantic-red);
    position: absolute;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Special Button Section */
.special-button-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.special-button-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.special-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.special-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--romantic-red);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

.special-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

.special-image-container {
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.special-image {
    max-width: 300px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.3);
    border: 5px solid var(--white);
    transition: all 0.3s ease;
    animation: float 3s infinite ease-in-out;
}

.special-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.4);
}

.special-btn {
    background: linear-gradient(135deg, var(--romantic-red), var(--deep-pink));
    color: var(--white);
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    font-family: 'Poppins', sans-serif;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.special-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.special-btn:hover::before {
    left: 100%;
}

.special-btn:hover {
    background: linear-gradient(135deg, var(--deep-pink), var(--romantic-red));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.4);
}

.special-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        max-width: 300px;
        height: 300px;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 40px;
    }
    
    .timeline-date {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 40px);
    }
    
    .timeline-content::before {
        left: -10px !important;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .love-letter {
        padding: 2rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .slide-prev, .slide-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slide-prev { left: 10px; }
    .slide-next { right: 10px; }
}

@media (max-width: 480px) {
    .password-container {
        padding: 2rem;
    }
    
    .password-input-group {
        flex-direction: column;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
