:root {
    --primary-color: #ff6b6b;
    --secondary-color: #f7d794;
    --text-color: #2d3436;
    --background-color: #fff5f5;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.heart-loader {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.title {
    text-align: center;
    margin: 2rem 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
}

.memory-box {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
}

.days-counter {
    font-size: 1.2rem;
}

#days-count {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0;
}

.love-notes {
    margin: 2rem 0;
}

.note-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.note-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.interactive-section {
    text-align: center;
    margin: 3rem 0;
}

.fancy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.fancy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.reason-box {
    margin-top: 1rem;
    min-height: 50px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.photo-gallery {
    margin: 3rem 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-placeholder {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.photo-placeholder:hover {
    transform: translateY(-5px);
}

.photo-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
}

.message-box {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.message-input {
    margin-top: 1rem;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    resize: vertical;
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content > * {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.content > *:nth-child(1) { animation-delay: 0.2s; }
.content > *:nth-child(2) { animation-delay: 0.4s; }
.content > *:nth-child(3) { animation-delay: 0.6s; }
.content > *:nth-child(4) { animation-delay: 0.8s; }
.content > *:nth-child(5) { animation-delay: 1s; }


:root {
    --primary-color: #ff6b6b;
    --secondary-color: #f7d794;
    --text-color: #2d3436;
    --background-color: #fff5f5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --nav-height: 70px;
}

/* Navigation Styles */
.navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Dancing Script', cursive;
    text-shadow: 2px 2px 4px var(--shadow-color);
    animation: logoFloat 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.nav-links a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover:before {
    width: 80%;
}

.nav-links a.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.nav-links a:hover:not(.active) {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Add necessary spacing for fixed navbar */
body {
    padding-top: var(--nav-height);
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Add these animations */
@keyframes logoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}



/* Photo Gallery Styles */
.photo-gallery {
    margin: 3rem 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1;
    background: white;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .gallery-img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay p {
    margin: 0;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

/* Upload Button Styles */
.upload-section {
    text-align: center;
    margin-top: 2rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.upload-btn i {
    font-size: 1.2rem;
}



/* Theme Variables */
:root {
    /* Light theme (default) */
    --primary-color: #ff6b6b;
    --secondary-color: #f7d794;
    --text-color: #2d3436;
    --background-color: #fff5f5;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #eaeaea;
    --overlay-background: rgba(255, 255, 255, 0.9);
    --nav-background: rgba(255, 255, 255, 0.95);
}

/* Dark theme */
[data-theme="dark"] {
    --primary-color: #ff8585;
    --secondary-color: #ffd700;
    --text-color: #e0e0e0;
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #404040;
    --overlay-background: rgba(45, 45, 45, 0.9);
    --nav-background: rgba(29, 29, 29, 0.95);
}

/* Theme Toggle Switch Styles */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 30px;
    background: var(--card-background);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle label:hover {
    transform: translateY(-2px);
}

.theme-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    border-radius: 12px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.toggle-slider:before {
    content: '🌞';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.theme-toggle input:checked + .toggle-slider:before {
    content: '🌙';
    transform: translateX(26px);
}

/* Update existing styles to use CSS variables */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation {
    background: var(--nav-background);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.bucket-item, 
.love-quotes, 
.timeline-content,
.timer-item,
.milestone-counter {
    background: var(--card-background);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Add transition for smooth theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}