/* Base Styles */
:root {
    --primary-color: #ff6b8b;
    --secondary-color: #ffb6c1;
    --accent-color: #ff69b4;
    --light-pink: #ffebee;
    --dark-pink: #d81b60;
    --text-color: #4a4a4a;
    --light-bg: #fff5f7;
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Poppins', sans-serif;
    --shadow: 0 4px 20px rgba(255, 105, 140, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-bg);
}

body {
    position: relative;
    touch-action: pan-y;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Slides Container */
.slides-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}

/* Landing Page */
#landing {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe6eb 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hearts i {
    position: absolute;
    color: var(--accent-color);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.hearts i:nth-child(1) {
    font-size: 2rem;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hearts i:nth-child(2) {
    font-size: 3rem;
    top: 70%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.hearts i:nth-child(3) {
    font-size: 2.5rem;
    top: 40%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.landing-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.landing-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--dark-pink);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.landing-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(255, 105, 180, 0.3);
    z-index: -1;
    transform: rotate(-1deg);
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.scroll-indicator span {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.5;
    animation: bounce 1.5s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Envelope */
#envelope {
    background: linear-gradient(45deg, #ffd6e0 0%, #ffebf1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelope-wrapper {
    perspective: 1000px;
    width: 300px;
    height: 200px;
}

.envelope {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s ease;
}

.envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 70%, 0% 100%);
    transform-origin: top;
    transition: transform 0.6s ease, z-index 0.6s step-end;
    z-index: 2;
}

.envelope.open::before {
    transform: rotateX(180deg);
    z-index: 0;
}

.letter {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 95%;
    background: white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: all 0.6s ease 0.3s;
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.envelope.open .letter {
    transform: translateY(-60%);
    transition-delay: 0.3s;
}

.letter .text {
    text-align: center;
    padding: 1.5rem;
}

.letter .text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-pink);
}

.heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 3rem;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 3;
}

.envelope:hover .heart {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Letter Content */
.letter-content {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPgo8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZmZmZmZmIi8+CjxwYXRoIGQ9Ik0wIDBoMTAwdjEwMEgweiIgb3BhY2l0eT0iMC4wNSIgZmlsbD0idXJsKCNncmFkaWVudCkiLz4KPGRlZnM+CjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiPgo8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjEiLz4KPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZjhmOGY4IiBzdG9wLW9wYWNpdHk9IjEiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4=');
    background-size: 100% 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter-paper {
    background: white;
    width: 100%;
    height: 80vh;
    max-width: 600px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ffd6e0;
}

.letter-header h2 {
    font-family: var(--font-heading);
    color: var(--dark-pink);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.letter-header .date {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.letter-header {
    padding: 1.5rem 1.5rem 0.5rem;
    position: relative;
    background: white;
    z-index: 2;
}

.letter-body {
    font-family: 'Great Vibes', cursive;
    font-size: 1.4rem;
    line-height: 2.2;
    color: #5a3e3e;
    text-align: center;
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ffb6c1 transparent;
}

.letter-body::-webkit-scrollbar {
    width: 6px;
}

.letter-body::-webkit-scrollbar-track {
    background: transparent;
}

.letter-body::-webkit-scrollbar-thumb {
    background-color: #ffb6c1;
    border-radius: 3px;
}

.letter-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    background: white;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

.letter-body p {
    margin-bottom: 1.2rem;
}

.signature {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 1.5rem;
    text-align: right;
}

.letter-footer {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed #ffd6e0;
    color: var(--accent-color);
    font-style: italic;
}

/* Valentine Section */
#valentine {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    text-align: center;
}

.valentine-content {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.valentine-content h2 {
    font-family: var(--font-heading);
    color: var(--dark-pink);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.hearts-animation {
    margin: 2rem 0;
    position: relative;
    height: 60px;
}

.hearts-animation i {
    position: absolute;
    color: var(--accent-color);
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0;
}

.hearts-animation i:nth-child(1) {
    left: 30%;
    animation-delay: 0.5s;
}

.hearts-animation i:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    animation-delay: 0s;
}

.hearts-animation i:nth-child(3) {
    right: 30%;
    animation-delay: 1s;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

#yesBtn {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

#yesBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

#noBtn {
    background: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

#noBtn:hover {
    background: #fff5f9;
}

.response-message {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--dark-pink);
    min-height: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.response-message.show {
    opacity: 1;
}

/* Photo Album */
#album {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    padding: 2rem 1rem;
}

.album-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.photo-grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 1rem;
}

.photo {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.album-note {
    font-style: italic;
    color: var(--dark-pink);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Music Player */
#music {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.music-player {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.player-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1.5rem;
}

.now-playing {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.album-art {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.album-art.playing {
    animation: pulse 2s infinite;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.control-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    transform: scale(1.1);
    background: var(--dark-pink);
}

.control-btn.play {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background: var(--accent-color);
}

.control-btn.play:hover {
    background: var(--dark-pink);
}

.song-info {
    margin: 1rem 0;
}

.song-info h3 {
    font-size: 1.5rem;
    color: var(--dark-pink);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-info p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

.progress-container {
    width: 100%;
    margin: 1.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    background: #e0e0e0;
    border-radius: 5px;
    height: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    background: var(--accent-color);
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.1s linear;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress::after {
    opacity: 1;
}

#currentTime,
#duration {
    font-size: 0.85rem;
    color: var(--text-color);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

#currentTime {
    order: 1;
}

#duration {
    order: 3;
}

.progress-bar {
    order: 2;
}

/* Playlist Styles */
.playlist {
    flex: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.playlist h3 {
    color: var(--dark-pink);
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-pink);
}

#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

#playlist li {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

#playlist li:hover {
    background: var(--light-pink);
    transform: translateX(5px);
}

#playlist li.playing {
    background: var(--accent-color);
    color: white;
    padding-left: 1.5rem;
}

#playlist li .song-title {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

#playlist li .song-artist {
    font-size: 0.9rem;
    opacity: 0.8;
}

#playlist li.playing .song-artist {
    color: rgba(255, 255, 255, 0.9);
}

#playlist li .song-duration {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

/* Suggestions Page Styles */
.suggestions-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.suggestions-container h1 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
}

.suggestions-container p {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--dark-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.response-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    transition: all 0.3s ease;
}

.response-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.response-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .music-player {
        padding: 1.5rem;
        height: 85vh;
    }
    
    .player-container {
        gap: 1rem;
    }
    
    .now-playing, .playlist {
        padding: 1rem;
    }
    
    .album-art {
        width: 150px;
        height: 150px;
    }
    
    .song-info h3 {
        font-size: 1.3rem;
    }
    
    #playlist li {
        padding: 0.6rem 0.8rem;
    }
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

/* Navigation Icons */
.nav-dots .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-dots .nav-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Spotify icon specific styles */
.nav-dots .nav-icon[href*="spotify"] {
    background: #1DB954;
}

.nav-dots .nav-icon[href*="spotify"]:hover {
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.6);
}

/* Music note icon specific styles */
.nav-dots .nav-icon[href*="suggestions"] {
    background: #9c27b0;
}

.nav-dots .nav-icon[href*="suggestions"]:hover {
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.6);
}

.nav-dots .nav-icon i {
    animation: pulse 2s infinite;
}

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

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

/* Navigation Arrows */
.nav-arrow {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0.7;
}

.nav-arrow:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
}

.nav-arrow.prev {
    top: 20px;
}

.nav-arrow.next {
    bottom: 20px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .landing-content h1 {
        font-size: 2.5rem;
    }
    
    .letter-paper {
        padding: 1.5rem;
    }
    
    .valentine-content {
        padding: 2rem 1.5rem;
    }
    
    .valentine-content h2 {
        font-size: 2rem;
    }
    
    .buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-dots {
        right: 10px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .landing-content h1 {
        font-size: 2rem;
    }
    
    .letter-paper {
        padding: 1.2rem;
    }
    
    .letter-body {
        font-size: 1.1rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }
    
    .music-player {
        padding: 1.5rem;
    }
    
    .album-art {
        width: 160px;
        height: 160px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
    scroll-behavior: smooth;
}

body {
    background-color: #fff9f9;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 2rem;
    background-color: white;
}

.timeline-section h2, 
.gallery-section h2,
.reasons-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.timeline-section h2:after,
.gallery-section h2:after,
.reasons-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.content {
    padding: 20px 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -16px;
}

.date {
    color: var(--primary-color);
    font-weight: bold;
    margin: 5px 0 10px;
}

.timeline-img {
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-top: 15px;
    background-size: cover;
    background-position: center;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 2rem;
    background-color: #fff9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-img {
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.gallery-item p {
    padding: 1rem;
    text-align: center;
    color: var(--dark-color);
}

/* Reasons Section */
.reasons-section {
    padding: 5rem 2rem;
    background-color: white;
}

.reasons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reason {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reason:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.reason i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reason p {
    color: #555;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer i {
    color: var(--primary-color);
    margin: 0 5px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .nav-links {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .reasons-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 0 1rem;
    }
}

/* Tablet and below */
@media screen and (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .timeline-section,
    .gallery-section,
    .reasons-section {
        padding: 3rem 1rem;
    }
    
    .timeline-section h2,
    .gallery-section h2,
    .reasons-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }
    
    .timeline-container::after {
        width: 20px;
        height: 20px;
        left: 10px;
    }
    
    .left::before, .right::before {
        left: 45px;
    }
    
    .content {
        padding: 15px;
    }
    
    .timeline-img {
        height: 120px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .reason {
        padding: 1.5rem 1rem;
    }
    
    .reason i {
        font-size: 2rem;
    }
}

/* Mobile Phones */
@media screen and (max-width: 480px) {
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 0.5rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-around;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        border-radius: 15px;
    }
    
    .hero {
        height: 90vh;
        padding-bottom: 60px; /* Space for fixed nav */
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .timeline-section,
    .gallery-section,
    .reasons-section {
        padding: 2rem 0.5rem 4rem;
    }
    
    .timeline-section h2,
    .gallery-section h2,
    .reasons-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-container {
        padding-left: 40px;
    }
    
    .timeline-container::after {
        width: 18px;
        height: 18px;
    }
    
    .content h3 {
        font-size: 1.1rem;
    }
    
    .date {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .gallery-item {
        max-width: 100%;
    }
    
    .reasons-container {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
    
    .reason {
        margin-bottom: 1rem;
    }
    
    footer {
        padding: 1.5rem 0.5rem;
        margin-bottom: 50px; /* Space for fixed nav */
    }
    
    /* Adjust animations for mobile */
    .timeline-container, .gallery-item, .reason {
        animation: fadeIn 0.4s ease-out forwards;
    }
    
    .timeline-container:nth-child(1) { animation-delay: 0.1s; }
    .timeline-container:nth-child(2) { animation-delay: 0.2s; }
    .timeline-container:nth-child(3) { animation-delay: 0.3s; }
    .timeline-container:nth-child(4) { animation-delay: 0.4s; }
    
    .gallery-item, .reason {
        animation-delay: 0.2s;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-container, .gallery-item, .reason {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-container:nth-child(1) { animation-delay: 0.2s; }
.timeline-container:nth-child(2) { animation-delay: 0.4s; }
.timeline-container:nth-child(3) { animation-delay: 0.6s; }
.timeline-container:nth-child(4) { animation-delay: 0.8s; }

.gallery-item:nth-child(1) { animation-delay: 0.2s; }
.gallery-item:nth-child(2) { animation-delay: 0.3s; }
.gallery-item:nth-child(3) { animation-delay: 0.4s; }
.gallery-item:nth-child(4) { animation-delay: 0.5s; }

.reason:nth-child(1) { animation-delay: 0.2s; }
.reason:nth-child(2) { animation-delay: 0.3s; }
.reason:nth-child(3) { animation-delay: 0.4s; }
.reason:nth-child(4) { animation-delay: 0.5s; }
.reason:nth-child(5) { animation-delay: 0.6s; }
