@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

:root {
    --primary-color: #6a0dad; /* Mor tonu */
    --secondary-color: #8a2be2; /* Açık mor */
    --text-color: #f0f2f5;
    --background-gradient-start: #4a007e;
    --background-gradient-end: #0c0032;
    --card-background: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-end));
    color: var(--text-color);
    overflow: hidden; /* Animasyonların dışarı taşmasını engeller */
}

.container {
    text-align: center;
    background: var(--card-background);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    max-width: 700px;
    width: 90%;
    position: relative;
    z-index: 1;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(106, 13, 173, 0.7);
    animation: bounceIn 1.5s ease-out;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0; /* Başlangıçta gizli */
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: flipInX 1s ease-out forwards;
    opacity: 0; /* Başlangıçta gizli */
}

.countdown-item:nth-child(1) { animation-delay: 1s; }
.countdown-item:nth-child(2) { animation-delay: 1.2s; }
.countdown-item:nth-child(3) { animation-delay: 1.4s; }
.countdown-item:nth-child(4) { animation-delay: 1.6s; }


@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    }
    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    }
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
    to {
        transform: perspective(400px);
        opacity: 1;
    }
}

.countdown-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    line-height: 1;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.6);
}

.countdown-label {
    font-size: 0.9em;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.8;
}

.social-links {
    margin-top: 30px;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.8em;
    margin: 0 15px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    animation: popIn 0.8s ease-out forwards;
    opacity: 0; /* Başlangıçta gizli */
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
}

.social-icon:nth-child(1) { animation-delay: 2s; }
.social-icon:nth-child(2) { animation-delay: 2.2s; }
.social-icon:nth-child(3) { animation-delay: 2.4s; }
.social-icon:nth-child(4) { animation-delay: 2.6s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Arkaplan animasyonu - Uçan baloncuklar */
body::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" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 50px 50px;
    animation: moveBackground 60s linear infinite;
    z-index: 0;
    opacity: 0.7;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

/* Küçük ekranlar için responsive ayarlar */
@media (max-width: 600px) {
    .title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1em;
    }

    .countdown-item {
        min-width: 90px;
        padding: 15px 10px;
    }

    .countdown-number {
        font-size: 2.2em;
    }

    .countdown-label {
        font-size: 0.8em;
    }

    .social-icon {
        font-size: 1.5em;
        margin: 0 10px;
    }
}