:root {
    --primary-color: #8B0000;
    --secondary-color: #2C1810;
    --accent-color: #DC143C;
    --dark-color: #1a1a1a;
    --darker-color: #0d0d0d;
    --light-color: #333333;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --gradient: linear-gradient(135deg, #8B0000, #DC143C, #FF6B6B);
    --dark-gradient: linear-gradient(135deg, #1a1a1a, #2d2d2d, #404040);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.6);
    --border-radius: 20px;
    --glow: 0 0 20px rgba(139, 0, 0, 0.3);
}

/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dark Theme Background */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    background:
        url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M30 54C-12 24 12 0 30 18C48 0 72 24 30 54Z" fill="%23330000" fill-opacity="0.1"/></svg>') repeat,
        linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #2d2d2d 100%);
    background-blend-mode: multiply;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    z-index: 0;
    top: -10%;
    left: -10%;
    width: 120vw;
    height: 120vh;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(139, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0.8;
    mix-blend-mode: screen;
}

body>* {
    position: relative;
    z-index: 1;
}

/* Dark Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(139, 0, 0, 0.2);
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: var(--glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    box-shadow: var(--glow);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dark Hero Section */
.hero {
    height: 100vh;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url('./couple.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    color: white;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease;
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(220, 20, 60, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 0.5s ease 0.2s both;
    color: var(--text-color);
}

.day-counter {
    animation: fadeInUp 0.5s ease 0.3s both;
}

.counter-card {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-heavy);
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.counter-card i {
    font-size: 3rem;
    color: var(--accent-color);
    animation: heartbeat 3s infinite;
    filter: drop-shadow(var(--glow));
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: var(--accent-color);
    text-shadow: var(--glow);
}

.counter-label {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--text-color);
}

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

.floating-hearts i {
    position: absolute;
    color: rgba(220, 20, 60, 0.4);
    font-size: 2rem;
    animation: float 4s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.3));
}

.floating-hearts i:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.floating-hearts i:nth-child(2) {
    left: 20%;
    animation-delay: 0.5s;
}

.floating-hearts i:nth-child(3) {
    left: 70%;
    animation-delay: 1s;
}

.floating-hearts i:nth-child(4) {
    left: 80%;
    animation-delay: 1.5s;
}

.floating-hearts i:nth-child(5) {
    left: 90%;
    animation-delay: 2s;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-color);
    text-shadow: var(--glow);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: var(--glow);
}

/* Dark Music Player */
.music-section {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    padding: 5rem 0;
    position: relative;
}

.music-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.music-player-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.player-photos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 130px;
    margin-top: 70px;

}

.player-photos-left {
    align-items: flex-end;
}

.player-photos-right {
    align-items: flex-start;
}

.player-photo {
    width: 200px;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: rotate(-5deg);
    will-change: transform;
    border: 2px solid rgba(139, 0, 0, 0.2);
}

.player-photos-right .player-photo {
    transform: rotate(5deg);
}

.player-photo:hover {
    transform: scale(1.05) rotate(0);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.8) contrast(1.1);
}

.player-photo:hover img {
    filter: brightness(1) contrast(1.2);
}

.player-photos .player-photo:nth-child(2) {
    transform: rotate(3deg);
}

.player-photos .player-photo:nth-child(3) {
    transform: rotate(-8deg);
}

.player-photos-right .player-photo:nth-child(2) {
    transform: rotate(-3deg);
}

.player-photos-right .player-photo:nth-child(3) {
    transform: rotate(8deg);
}

.music-player {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    will-change: transform;
    border: 2px solid rgba(139, 0, 0, 0.2);
}

.music-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 0.3;
    background-image: url('./pht/c2.png');
}

.music-player>* {
    position: relative;
    z-index: 2;
}

.music-player:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.player-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.album-art {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    box-shadow: var(--glow);
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

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

.album-art:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.6);
}

.song-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.song-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.player-controls button {
    background: rgba(139, 0, 0, 0.8);
    border: 2px solid rgba(139, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.player-controls button:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    box-shadow: var(--glow);
    border-color: var(--accent-color);
}

#playBtn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.progress {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.playlist {
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    padding-top: 1.5rem;
}

.playlist h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.playlist-item {
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background-color: rgba(139, 0, 0, 0.2);
    border-color: rgba(139, 0, 0, 0.3);
    color: var(--text-color);
}

.playlist-item.active {
    background-color: rgba(139, 0, 0, 0.3);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.playlist-item-info {
    flex: 1;
}

.playlist-item-duration {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    gap: 10px;
}

.volume-control i {
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-control i:hover {
    color: var(--primary-color);
    text-shadow: var(--glow);
}

.volume-control input {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.volume-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: var(--glow);
}

/* Extra Controls */
.extra-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.extra-controls button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.extra-controls button:hover,
.extra-controls button.active {
    color: var(--accent-color);
    background: rgba(139, 0, 0, 0.2);
    text-shadow: var(--glow);
}

/* Enhanced Dark Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #0d0d0d);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 20, 60, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.gallery-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.gallery-main-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.gallery-left {
    flex: 2;
    background-image: url('./pht/c1.png');
    opacity: 0.8;
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-heavy);
    min-height: 870px;
    border: 2px solid rgba(139, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.gallery-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.gallery-left>* {
    position: relative;
    z-index: 2;
}

.gallery-right {
    flex: 1;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-heavy);
    position: sticky;
    top: 120px;
    border: 2px solid rgba(139, 0, 0, 0.2);
}

.subsection-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: var(--glow);
}

.years-timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(13, 13, 13, 0.8);
    border-radius: 50px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.year-btn {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(139, 0, 0, 0.3);
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.year-btn:hover,
.year-btn.active {
    background: var(--gradient);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--glow), 0 8px 25px rgba(139, 0, 0, 0.4);
}

.gallery-content {
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.select-year {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 2rem 0;
    font-style: italic;
    padding: 2rem;
    background: rgba(13, 13, 13, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.memory-card {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    will-change: transform;
    border: 2px solid rgba(139, 0, 0, 0.2);
    position: relative;
}

.memory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.memory-card:hover::before {
    opacity: 1;
}

.memory-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(139, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.memory-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.memory-card:hover .memory-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.memory-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.memory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.memory-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.memory-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.memory-date::before {
    content: '📅';
    font-size: 1rem;
    filter: brightness(0.8);
}

.memory-description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Enhanced Form Styles */
.memory-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(220, 20, 60, 0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(139, 0, 0, 0.3);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(13, 13, 13, 0.8);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: var(--glow);
    background: rgba(13, 13, 13, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Year Select Container */
.year-select-group {
    position: relative;
}

.year-select-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.year-select-container select {
    flex: 1;
}

.add-year-btn {
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    font-weight: 600;
}

.add-year-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow), 0 6px 20px rgba(139, 0, 0, 0.4);
}

.submit-btn {
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    padding: 1.2rem 2.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 30px rgba(139, 0, 0, 0.6),
        0 10px 30px rgba(139, 0, 0, 0.4);
}

/* Enhanced Delete Button */
.delete-btn {
    background: rgba(139, 0, 0, 0.8);
    border: 2px solid rgba(139, 0, 0, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.delete-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: var(--glow);
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(15px);
    margin: 15% auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.modal-content h3 {
    color: var(--accent-color);
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: var(--glow);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-shadow: var(--glow);
}

/* Enhanced Delete Confirmation Modal */
.delete-modal,
.modal-backdrop {
    display: none;
}

.delete-modal.active,
.modal-backdrop.active {
    display: block;
}

.delete-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 2001;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.delete-modal h3 {
    color: var(--accent-color);
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: var(--glow);
}

.delete-modal p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.delete-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.delete-modal-btn {
    padding: 1rem 2.5rem;
    border-radius: 25px;
    border: 2px solid;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delete-modal-btn.cancel {
    background: rgba(51, 51, 51, 0.8);
    color: var(--text-color);
    border-color: rgba(51, 51, 51, 0.5);
}

.delete-modal-btn.confirm {
    background: var(--gradient);
    color: white;
    border-color: var(--accent-color);
    box-shadow: var(--glow);
}

.delete-modal-btn:hover {
    transform: translateY(-2px);
}

.delete-modal-btn.cancel:hover {
    background: rgba(51, 51, 51, 1);
    border-color: rgba(51, 51, 51, 0.8);
}

.delete-modal-btn.confirm:hover {
    box-shadow:
        0 0 30px rgba(139, 0, 0, 0.6),
        0 8px 25px rgba(139, 0, 0, 0.4);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
}

/* Enhanced Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 13, 13, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 10px;
    box-shadow: var(--glow);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
}

/* Focus States */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: var(--glow);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(220, 20, 60, 0.8));
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Glow Animation for Interactive Elements */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(139, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
    }
}

.memory-card:hover,
.year-btn:hover,
.submit-btn:hover {
    animation: glow 2s infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-main-container {
        gap: 2rem;
    }

    .memories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .music-player-container {
        flex-direction: column;
        align-items: center;
    }

    .player-photos {
        flex-direction: row;
        width: auto;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .gallery-main-container {
        flex-direction: column;
        gap: 2rem;
    }

    .gallery-left,
    .gallery-right {
        flex: 1;
    }

    .gallery-right {
        position: static;
    }

    .memories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .gallery-section {
        padding: 4rem 0;
    }

    .subsection-title {
        font-size: 1.8rem;
    }

    .gallery-left,
    .gallery-right {
        padding: 2rem;
    }

    .years-timeline {
        gap: 0.8rem;
        padding: 1rem;
    }

    .year-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 80px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .music-player {
        margin: 0 1rem;
    }

    .player-photos {
        gap: 10px;
    }

    .player-photo {
        width: 120px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .gallery-section .container {
        padding: 0 1rem;
    }

    .gallery-left,
    .gallery-right {
        padding: 1.5rem;
    }

    .years-timeline {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .year-btn {
        flex-shrink: 0;
    }

    .memories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .counter-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .player-controls {
        gap: 0.5rem;
    }

    .player-controls button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #playBtn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .floating-hearts,
    .delete-btn,
    .submit-btn,
    .player-controls,
    .modal,
    .modal-backdrop {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
    }

    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FF0000;
        --secondary-color: #FFFFFF;
        --text-color: #FFFFFF;
        --gradient: linear-gradient(135deg, #FF0000, #FFFFFF);
    }

    .hero {
        background: #000000 !important;
        color: #FFFFFF !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-hearts i,
    .counter-card i {
        animation: none !important;
    }

    .memory-card:hover {
        transform: none;
    }
}

/* Additional Dark Theme Enhancements */
.notification {
    background: var(--gradient) !important;
    border: 2px solid rgba(139, 0, 0, 0.3);
    box-shadow: var(--glow);
}

/* Content Type Styling */
.content-type {
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: var(--glow);
}

/* Enhanced Interactive States */
.year-btn:active,
.submit-btn:active,
.delete-btn:active {
    transform: scale(0.95);
}

.memory-card:active {
    transform: translateY(-5px) scale(1.01);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error States */
.error {
    border-color: #FF4757 !important;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.error-message {
    color: #FF4757;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.8rem;
}

/* Success States */
.success {
    border-color: #2ED573 !important;
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.3);
}

.success-message {
    color: #2ED573;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message::before {
    content: '✅';
    font-size: 0.8rem;
}

.footer {
    background: rgba(13, 13, 13, 0.95);
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-info {
    max-width: 600px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.footer-info p {
    margin: 0.5rem 0;
}

.footer-info a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 2rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}