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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    overflow-x: hidden;
}

/* Password Screen */
.password-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 182, 193, 0.9), rgba(173, 216, 230, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-box h2 {
    color: #e91e63;
    margin-bottom: 20px;
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
}

.password-box input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 2px solid #ffccd5;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
}

.password-box button {
    background: linear-gradient(45deg, #e91e63, #ff4081);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
    width: 100%;
    margin-top: 10px;
}

.password-box button:hover {
    transform: scale(1.05);
}

.hint {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

/* Main Content */
.hidden {
    display: none !important;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #e91e63;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #e91e63;
    background: #fff0f3;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #ffccd5 0%, #b3e0ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    padding: 20px;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #e91e63;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#her-name {
    color: #2196f3;
    text-decoration: underline;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
}

.heart-pulse {
    font-size: 4rem;
    animation: pulse 2s infinite;
    margin: 20px 0;
}

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

.cta-button {
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-hearts::before {
    content: '❤️';
    position: absolute;
    animation: float 15s infinite linear;
    font-size: 24px;
}

.floating-hearts::after {
    content: '💖';
    position: absolute;
    animation: float 20s infinite linear;
    font-size: 30px;
    top: 20%;
    left: 20%;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Timeline Section */
.section-title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: #e91e63;
    margin: 40px 0;
}

.timeline-section {
    padding: 80px 5%;
    background: white;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin: 40px 0;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-date {
    flex: 0 0 150px;
    font-weight: bold;
    color: #2196f3;
    padding: 10px;
    border-right: 3px solid #ffccd5;
}

.timeline-content {
    flex: 1;
    padding: 20px;
    background: #f9f9ff;
    border-radius: 10px;
    border-left: 5px solid #e91e63;
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 10px;
}

.memory-text {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 5%;
    background: #f5f7ff;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(233, 30, 99, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.memory-card {
    background: linear-gradient(135deg, #a6c0fe 0%, #f68084 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.memory-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.play-btn {
    background: white;
    color: #e91e63;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn:hover {
    background: #fff0f3;
    transform: scale(1.1);
}

/* Proposal Section */
.proposal-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #ffccd5 0%, #b3e0ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.proposal-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.proposal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 30px;
}

.proposal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.proposal-text p {
    margin-bottom: 15px;
}

.ring-box {
    margin: 40px 0;
}

.ring-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: rotate 20s infinite linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.final-question {
    margin: 40px 0;
}

.final-question h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.yes-btn, .maybe-btn {
    padding: 18px 50px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.yes-btn {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.maybe-btn {
    background: linear-gradient(45deg, #FF9800, #FFC107);
    color: white;
}

.maybe-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
}

/* Response Message */
.celebration {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ffeb3b, #ff9800);
    border-radius: 15px;
    animation: celebrate 0.5s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.celebration i {
    font-size: 4rem;
    color: #e91e63;
    margin-bottom: 20px;
}

#response-text {
    font-size: 2rem;
    color: #d50000;
    margin: 20px 0;
}

.celebrate-text {
    font-size: 1.2rem;
    color: #333;
    margin: 20px 0;
}

.reset-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #333;
    color: white;
}

.heartbeat {
    color: #ff4081;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.social-icons {
    margin-top: 20px;
}

.secret-btn {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.secret-btn:hover {
    color: #ffcc00;
    transform: rotate(360deg);
}

.secret-text {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        border-right: none;
        border-bottom: 3px solid #ffccd5;
        margin-bottom: 10px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .proposal-container {
        padding: 30px 20px;
    }
}