/* ================================
   GENEL SIFIRLAMA & TEMEL AYARLAR
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

::selection {
    background: #ff4d6d;
    color: #fff;
}

/* ================================
   CANVAS & ARKA PLAN EFEKTLERİ
================================ */
#sparkleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    animation: floatUp linear forwards;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-150px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* ================================
   CAM KARTI (GLASSMORPHISM)
================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(255, 77, 109, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ================================
   BÖLÜM GENEL
================================ */
section {
    position: relative;
    z-index: 5;
    padding: 80px 20px;
}

.section-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ff6b9d, #ff4d6d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   SCROLL ANİMASYONU
=========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   BÖLÜM 1: HERO / AÇILIŞ
================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, #2d0a1e 0%, #0a0a0a 70%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 77, 109, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(196, 69, 105, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 40px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 180, 200, 0.8);
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    animation: fadeInDown 1s ease 0.3s both;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ff9ecd, #ff4d6d, #ff9ecd, #ff4d6d);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite, fadeInDown 1s ease 0.6s both;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 77, 109, 0.4));
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-hearts {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInDown 1s ease 0.9s both;
}

.hero-hearts span {
    font-size: 2.5rem;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.hero-hearts span:nth-child(2) {
    animation-delay: 0.2s;
    font-size: 3rem;
}

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.music-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 16px 35px;
    background: rgba(255, 77, 109, 0.15);
    border: 2px solid rgba(255, 77, 109, 0.5);
    border-radius: 50px;
    color: #ffb4c8;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    animation: fadeInDown 1s ease 1s both, musicBtnGlow 2s ease-in-out infinite;
}

.music-start-btn:hover {
    background: rgba(255, 77, 109, 0.3);
    border-color: #ff4d6d;
    transform: scale(1.05);
    color: #fff;
}

.music-start-icon {
    font-size: 1.4rem;
    animation: musicBounce 1s ease infinite;
}

@keyframes musicBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes musicBtnGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 77, 109, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 77, 109, 0.5), 0 0 60px rgba(255, 77, 109, 0.1); }
}

.music-start-btn.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.scroll-down-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    color: rgba(255, 180, 200, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    animation: fadeInDown 1s ease 1.2s both;
}

.scroll-down-btn:hover {
    color: #ff4d6d;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* ================================
   BÖLÜM 2: GIF
================================ */
.gif-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a12 100%);
}

.gif-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(255, 77, 109, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 350px;
    margin: 0 auto;
}

.gif-wrapper:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow:
        0 25px 70px rgba(255, 77, 109, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.gif-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.gif-caption {
    margin-top: 20px;
    color: rgba(255, 180, 200, 0.7);
    font-size: 1rem;
    font-style: italic;
}

/* ================================
   BÖLÜM 3: AŞK SAYACI
================================ */
.counter-section {
    background: linear-gradient(180deg, #1a0a12 0%, #150818 100%);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: rgba(255, 77, 109, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 77, 109, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 77, 109, 0.15);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 0.85rem;
    color: rgba(255, 180, 200, 0.6);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-subtext {
    color: rgba(255, 180, 200, 0.5);
    font-style: italic;
    margin-top: 10px;
}

/* ================================
   BÖLÜM 4: SÖZLER CAROUSEL
================================ */
.quotes-section {
    background: linear-gradient(180deg, #150818 0%, #1a0a12 50%, #0d0a14 100%);
    padding: 80px 20px;
}

.quotes-carousel {
    padding: 50px 40px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quote-slide {
    display: none;
    animation: fadeQuote 0.8s ease;
}

.quote-slide.active {
    display: block;
}

@keyframes fadeQuote {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.quote-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #ffb4c8;
    font-weight: 400;
}

.quote-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 77, 109, 0.2);
    border: 1px solid rgba(255, 77, 109, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff4d6d;
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 77, 109, 0.5);
}

/* ================================
   BÖLÜM 5: AŞK METRESİ
================================ */
.love-meter-section {
    background: linear-gradient(180deg, #0d0a14 0%, #1a0a12 100%);
}

.love-meter-wrapper {
    margin: 30px 0 20px;
    position: relative;
}

.love-meter-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 77, 109, 0.2);
}

.love-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4d6d, #ff6b9d, #ff9ecd, #ff6b9d, #ff4d6d);
    background-size: 200% 100%;
    border-radius: 30px;
    transition: width 2.5s ease;
    animation: shimmer 2s linear infinite;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.love-meter-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}

.love-meter-label {
    font-size: 1.4rem;
    color: #ff6b9d;
    font-weight: 600;
    margin-top: 10px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ================================
   BÖLÜM 6: SEBEPLER
================================ */
.reasons-section {
    background: linear-gradient(180deg, #1a0a12 0%, #150818 100%);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reason-card {
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
}

.reason-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 77, 109, 0.25);
    border-color: rgba(255, 77, 109, 0.3);
}

.reason-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.reason-card:hover .reason-icon {
    transform: scale(1.3) rotate(10deg);
}

.reason-card p {
    color: rgba(255, 200, 220, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ================================
   BÖLÜM 7: FORM
================================ */
.form-section {
    background: linear-gradient(180deg, #150818 0%, #0a0a0a 100%);
}

.form-subtitle {
    color: rgba(255, 180, 200, 0.6);
    margin-bottom: 30px;
    font-size: 1rem;
}

.love-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 77, 109, 0.2);
    border-radius: 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255, 180, 200, 0.4);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #ff4d6d;
    background: rgba(255, 77, 109, 0.06);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.15);
}

.input-group textarea {
    resize: none;
}

.submit-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #ff4d6d, #c44569);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 77, 109, 0.45);
}

.submit-btn:active {
    transform: translateY(0px);
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: scale(1.3) rotate(-15deg);
}

.form-status {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 1.2em;
}

.form-status.success {
    color: #ff85a1;
}

.form-status.error {
    color: #ff4d4d;
}

/* ================================
   BÖLÜM 8: SÖZ (OATH)
================================ */
.oath-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0510 50%, #0a0a0a 100%);
    padding: 60px 20px;
}

.oath-card {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.oath-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 77, 109, 0.05), transparent, rgba(255, 77, 109, 0.08), transparent);
    animation: rotateBg 8s linear infinite;
}

@keyframes rotateBg {
    to { transform: rotate(360deg); }
}

.oath-icon {
    font-size: 2.5rem;
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.oath-line {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: #ffb4c8;
    margin: 18px 0;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: oathReveal 0.8s ease forwards;
}

.oath-line:nth-child(2) { animation-delay: 0.3s; }
.oath-line:nth-child(3) { animation-delay: 0.6s; }
.oath-line:nth-child(4) { animation-delay: 0.9s; }
.oath-line:nth-child(5) { animation-delay: 1.2s; }

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

.oath-final {
    font-size: 2rem;
    font-weight: 700;
    color: #ff4d6d;
    text-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
    margin-top: 25px;
}

/* ================================
   FOOTER
================================ */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: #0a0a0a;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(255, 77, 109, 0.1);
}

.footer p {
    color: rgba(255, 180, 200, 0.5);
    font-size: 0.95rem;
}

.footer-small {
    font-size: 0.8rem !important;
    margin-top: 5px;
    font-style: italic;
}

/* ================================
   MÜZİK BUTONU
================================ */
.music-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 77, 109, 0.4);
    background: rgba(255, 77, 109, 0.15);
    backdrop-filter: blur(10px);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.2);
}

.music-toggle:hover {
    background: rgba(255, 77, 109, 0.3);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 1s ease infinite;
    border-color: #ff4d6d;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(255, 77, 109, 0); }
}

/* ================================
   MOBİL UYUMLU (iPhone 11: 414x896)
================================ */

/* iPhone 11 ve benzeri (414px genişlik) */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    section {
        padding: 50px 15px;
    }

    .section-container {
        padding: 30px 20px;
    }

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

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 0.75rem;
    }

    .quote-text {
        font-size: 1.3rem;
    }

    .quotes-carousel {
        padding: 30px 20px;
        min-height: 160px;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .reason-card {
        padding: 20px 12px;
    }

    .reason-card p {
        font-size: 0.85rem;
    }

    .reason-icon {
        font-size: 2rem;
    }

    .gif-wrapper {
        max-width: 280px;
    }

    .oath-card {
        padding: 35px 25px;
    }

    .oath-line {
        font-size: 1.3rem;
    }

    .oath-final {
        font-size: 1.6rem;
    }

    .form-subtitle {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 14px 30px;
    }

    .music-toggle {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* Küçük telefonlar */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2.4rem;
    }

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

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .oath-line {
        font-size: 1.1rem;
    }

    .oath-final {
        font-size: 1.4rem;
    }
}

/* iPhone safe area (çentikli telefonlar) */
@supports (padding: env(safe-area-inset-top)) {
    .hero-section {
        padding-top: env(safe-area-inset-top);
    }

    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .music-toggle {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }
}
