/* Genel Ayarlar ve Arka Plan Animasyonu */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    display: flex;
    flex-direction: column; /* İçeriği dikey olarak sırala */
    align-items: center;
    justify-content: flex-start; /* İçeriği yukarı yasla */
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden; /* Yatay kaymayı engelle */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.overlay {
    position: fixed; /* Sabit pozisyon */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Arka planı biraz karartır */
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 800px;
    width: 90%;
    margin-top: 50px; /* Üstten boşluk */
    margin-bottom: 50px; /* Alttan boşluk */
}

.content {
    padding: 40px 20px; /* Mobil için yan padding azaltıldı */
}

/* Tipografi ve Başlık Animasyonları */
h1 {
    font-size: 3rem; /* Mobil için font boyutu küçültüldü */
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

p {
    font-size: 1rem; /* Mobil için font boyutu küçültüldü */
    font-weight: 300;
    max-width: 600px;
    margin: 20px auto;
}

/* Giriş Animasyonları */
.animate-pop-in {
    animation: pop-in 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.2s forwards;
    transform: scale(0.5);
    opacity: 0;
}

@keyframes pop-in {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Geri Sayım Sayacı */
#countdown {
    display: flex;
    justify-content: center;
    gap: 10px; /* Mobil için boşluk azaltıldı */
    margin: 30px 0; /* Mobil için marjin azaltıldı */
    flex-wrap: wrap; /* Taşmayı önlemek için */
}

.time-unit {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px; /* Mobil için padding azaltıldı */
    border-radius: 10px;
    min-width: 70px; /* Mobil için minimum genişlik azaltıldı */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.8rem; /* Mobil için font boyutu azaltıldı */
}

.time-unit:hover {
    transform: translateY(-5px); /* Mobil için hover efekti azaltıldı */
    box-shadow: 0 5px 10px rgba(0,0,0,0.4); /* Mobil için gölge azaltıldı */
}

.time-unit span {
    display: block;
    font-size: 2rem; /* Mobil için font boyutu azaltıldı */
    font-weight: 600;
}

.time-unit label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* E-posta Formu */
.newsletter h3 {
    font-size: 1.3rem; /* Mobil için font boyutu azaltıldı */
    margin-bottom: 5px;
}

#subscribe-form {
    display: flex;
    flex-direction: column; /* Mobil için alt alta sırala */
    align-items: center;
    margin-top: 20px;
    gap: 10px; /* Mobil için boşluk */
}

#subscribe-form input {
    width: 90%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    text-align: center; /* Mobil için metin ortala */
}

#subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#subscribe-form button {
    width: 90%;
    padding: 12px 30px;
    border: none;
    background: #5e42a6;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#subscribe-form button:hover {
    background: #4a328f;
}

/* Durum Mesajları */
.message {
    margin-top: 10px; /* Mobil için marjin azaltıldı */
    padding: 8px; /* Mobil için padding azaltıldı */
    border-radius: 5px;
    font-size: 0.8rem; /* Mobil için font boyutu azaltıldı */
}
.message.success { background-color: rgba(40, 167, 69, 0.8); }
.message.error { background-color: rgba(220, 53, 69, 0.8); }
.message.info { background-color: rgba(23, 162, 184, 0.8); }

/* Sosyal Medya İkonları */
.social-icons {
    margin-top: 30px; /* Mobil için marjin azaltıldı */
}

.social-icons a {
    color: #fff;
    font-size: 1.3rem; /* Mobil için font boyutu azaltıldı */
    margin: 0 10px; /* Mobil için marjin azaltıldı */
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #a485ff;
    transform: scale(1.2) rotate(5deg); /* Mobil için hover efekti azaltıldı */
}

/* Arka Plan Kalp Animasyonları */
.heart-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Kalplerin tıklanmasını engelle */
    z-index: 0; /* Arka planda kal */
}

.heart {
    position: absolute;
    font-size: 2rem;
    color: #ff69b4; /* Pembe renk */
    animation: float 5s linear infinite;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.heart:before,
.heart:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
}

.heart:before {
    top: -50%;
    left: 0;
}

.heart:after {
    left: 50%;
    top: 0;
}

@keyframes float {
    0% {
        top: 100%;
        left: calc(var(--random-x) * 1%);
        opacity: 0;
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
    100% {
        top: -10%;
        left: calc(var(--random-x) * 1%);
        opacity: 0;
        transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
    }
}

/* Küçük ekranlar için kalp boyutu */
@media (max-width: 600px) {
    .heart {
        font-size: 1.5rem;
    }
}