/* Genel Stiller */
:root {
    --primary-color: #84ffff;
    --secondary-color: #c6ffff;
    --dark-color: #2d3436;
    --light-color: #f1f2f6;
    --accent-color: #fab1a0;
    --anniversary-color: #ff7675;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9f9;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Kalp Animasyonu */
.heart-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: transparent;
}

.heart {
    position: absolute;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
    opacity: 0;
    z-index: -1;
    will-change: transform;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(var(--start-x)) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: var(--opacity);
    }
    90% {
        opacity: var(--opacity);
    }
    100% {
        transform: translateY(-20vh) translateX(var(--end-x)) rotate(360deg);
        opacity: 0;
    }
}

.anniversary-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--anniversary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Diğer elementlerin üstünde kalması için */
    animation: pulse 2s infinite;
    transition: top 0.3s ease; /* Yumuşak geçiş için */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Başlık Stilleri */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: black;
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 50px;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.1)" d="M0,0 L100,0 L100,100 L0,100 Z" /><path fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" d="M0,50 Q25,25 50,50 T100,50" /></svg>');
    background-size: cover;
    opacity: 0.3;
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-in-out;
}

header .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    animation: fadeIn 2s ease-in-out;
    margin-bottom: 40px;
}

/* Geri Sayım */
.countdown-container {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.countdown {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.countdown-item {
    margin: 0 10px;
}

.countdown-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: black;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.countdown-item small {
    color: black;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.countdown-label {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
}

/* Navigasyon */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    padding: 15px;
    cursor: pointer;
    margin: 0 auto;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    display: block;
    padding: 20px 0;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a i {
    margin-right: 8px;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* Bölüm Stilleri */
.timeline-section, .gallery-section, .letter-section, .special-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 20px auto;
    border-radius: 3px;
}

h2 i {
    margin-right: 15px;
    color: var(--primary-color);
}

/* Timeline Stili */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-date {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: black;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content p {
    color: #555;
    line-height: 1.7;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Galeri Stilleri */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: black;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.gallery-overlay small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mektup Bölümü */
.letter {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    perspective: 1000px;
}

.letter-content {
    background: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transform-origin: top center;
    transition: transform 0.5s ease;
}

.letter:hover .letter-content {
    transform: rotateX(10deg);
}

.letter-date {
    text-align: right;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-style: italic;
}

.letter p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.letter-signature {
    margin-top: 40px;
    text-align: right;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 10px;
}

.letter-envelope {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    z-index: 1;
    transform: translateY(20px) scale(0.95);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.letter:hover .letter-envelope {
    transform: translateY(30px) scale(0.9);
    opacity: 0.9;
}

/* Özel Bölüm */
.special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.special-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.special-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.special-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.special-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.special-card p {
    color: #666;
    line-height: 1.7;
}

/* Dönen yazılar */
.anniversary-quotes-container {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.anniversary-quotes {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.anniversary-quote {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--dark-color);
    padding: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.anniversary-quote.active {
    opacity: 1;
}

.anniversary-quote::before,
.anniversary-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.anniversary-quote::before {
    top: 10px;
    left: 20px;
}

.anniversary-quote::after {
    bottom: 10px;
    right: 20px;
}

.quote-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.quote-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-controls button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 60px 0 30px;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    margin-top: 80px;
}

.footer-anniversary {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.anniversary-number {
    font-size: 5rem;
    font-weight: bold;
    color: var(--anniversary-color);
    line-height: 1;
    margin-right: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.anniversary-text {
    text-align: left;
    line-height: 1.4;
}

.anniversary-text p:first-child {
    font-size: 2rem;
    font-family: 'Dancing Script', cursive;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 30px;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    header {
        padding: 80px 0 60px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    header h1 {
        font-size: 3rem;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        margin: 5px 0;
        text-align: center;
        width: 100%;
    }
    
    .menu a {
        padding: 15px;
    }
    
    .menu a::after {
        bottom: 5px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-date {
        left: 30px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        float: right !important;
        margin-left: 80px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .letter-content {
        padding: 30px 20px;
    }
    
    footer {
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    }
    
    .anniversary-badge {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        top: 70px;
    }
    
    .anniversary-quotes {
        height: 200px;
    }
    
    .anniversary-quote {
        padding: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .countdown-item span {
        font-size: 1.8rem;
    }
    
    .countdown-item small {
        font-size: 0.7rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .special-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header .subtitle {
        font-size: 1.1rem;
    }
}

/* Müzik kontrol butonu */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }
  
  .music-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
  }
  
  .music-text {
    display: none;
    margin-left: 5px;
  }
  
  @media (min-width: 768px) {
    .music-toggle {
      width: auto;
      padding: 0 15px;
      height: 40px;
      border-radius: 20px;
    }
    .music-text {
      display: inline;
    }
  }