:root {
    --primary: #ff2a5f;
    --secondary: #ff758c;
    --dark-bg: #0f0510;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-light: #fff0f3;
}

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

body {
    background: radial-gradient(circle at 50% 50%, #2b0412 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ff2a5f"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') 10 10, auto;
}

h1, h2, .welcome-title {
    font-family: 'Playfair Display', serif;
}

.hidden {
    display: none !important;
}

/* --- Ses Uyarı Popup --- */
#volume-popup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.popup-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 50px 30px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(255, 42, 95, 0.3);
    animation: popupPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 25px;
    animation: heartBeat 1.5s infinite;
}

.popup-box h2 {
    font-size: 1.8rem;
    margin-bottom: 35px;
    color: #fff;
    font-family: 'Dancing Script', cursive;
}

#close-popup-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 42, 95, 0.5);
    transition: all 0.3s ease;
}

#close-popup-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 42, 95, 0.7);
}

@keyframes popupPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Karşılama Ekranı --- */
#welcome-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.envelope {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(255, 42, 95, 0.2);
    animation: floatEnvelope 4s ease-in-out infinite;
}

.heart-pulse {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: heartBeat 1.2s infinite;
    text-shadow: 0 0 30px var(--primary);
}

.welcome-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Dancing Script', cursive;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #ffcccc;
    margin-bottom: 30px;
}

#start-btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 42, 95, 0.5);
    transition: all 0.3s ease;
}

#start-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 42, 95, 0.7);
}

/* --- Canvas --- */
#heart-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* --- Ana İçerik --- */
#main-content {
    opacity: 0;
    transition: opacity 2s ease-in-out;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

#main-content.visible {
    opacity: 1;
}

.hero-header {
    text-align: center;
    margin-top: 5vh;
    margin-bottom: 80px;
}

.glow-text {
    font-size: clamp(3rem, 6vw, 6rem);
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.glow-text .highlight {
    font-family: 'Dancing Script', cursive;
    color: var(--primary);
    font-size: 1.2em;
    text-shadow: 0 0 15px var(--primary);
    display: inline-block;
    animation: glowPulseSoft 3s infinite alternate;
}

.typed-effect {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 20px;
    min-height: 40px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

/* --- Cam Tasarım Ortak --- */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Fotoğraf Çerçevesi --- */
.photo-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.photo-frame {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 15px 15px 30px 15px; /* Polaroid efekti için alt boşluk daha fazla */
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: rotate(-3deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    max-width: 320px;
    width: 100%;
}

.photo-frame:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(255, 42, 95, 0.4);
    border-color: rgba(255, 42, 95, 0.4);
}

.couple-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* --- Romantik Mesaj --- */
.romantic-message {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.romantic-message .glass-box {
    max-width: 800px;
    padding: 50px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.romantic-message .glass-box:hover {
    transform: translateY(-5px);
}

.romantic-message p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 300;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
    margin: 15px;
}

/* --- Galeri Bölümü --- */
.gallery-section {
    text-align: center;
    margin-bottom: 120px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    color: #fff;
    font-family: 'Dancing Script', cursive;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.photo-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px;
    width: 320px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.glass-card:hover {
    transform: translateY(-15px) scale(1.05) rotate(calc(var(--i) * 2deg - 2deg));
    box-shadow: 0 20px 40px rgba(255, 42, 95, 0.3);
    border-color: rgba(255, 42, 95, 0.5);
    z-index: 2;
}

.img-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

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

.glass-card:hover .img-wrapper img {
    transform: scale(1.1);
}

.card-content {
    margin-top: 20px;
    font-size: 1.4rem;
    font-family: 'Dancing Script', cursive;
    color: var(--secondary);
}

/* --- Sürpriz Bölümü --- */
.interaction-section {
    display: flex;
    justify-content: center;
    padding-bottom: 100px;
}

.interactive-box {
    padding: 60px;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.interactive-box h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    min-height: 80px;
    position: relative;
}

.magic-btn, .runaway-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.magic-btn {
    background: linear-gradient(45deg, var(--primary), #ff004c);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 42, 95, 0.4);
    z-index: 5;
}

.magic-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 42, 95, 0.6);
}

.runaway-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    position: relative; /* Script ile absolute olacak */
}

/* --- Footer --- */
.footer-glass {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    border-radius: 30px 30px 0 0;
}

.footer-glass p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--secondary);
}

/* --- Animasyonlar --- */
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
}

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

@keyframes glowPulseSoft {
    from { text-shadow: 0 0 10px var(--primary), 0 0 15px var(--primary); }
    to { text-shadow: 0 0 15px var(--primary), 0 0 25px var(--secondary); }
}

/* Responsive */
@media (max-width: 768px) {
    .envelope { padding: 40px 20px; }
    .welcome-title { font-size: 2.8rem; }
    .romantic-message .glass-box { padding: 30px 20px; }
    .interactive-box { padding: 40px 20px; }
    .buttons-container { flex-direction: column; gap: 20px; }
}