:root {
    --primary-color: #ff4d6d;
    --bg-color: #1a1a2e;
    --text-color: #eaeaea;
    --card-bg: #16213e;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* GİRİŞ EKRANI */
#login-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.login-box {
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
}

.login-box input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.login-box button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.hidden {
    display: none;
}

/* HERO BÖLÜMÜ */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#heart-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-text,
.scroll-down {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    }

    to {
        text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color), 0 0 40px var(--primary-color);
    }
}

.heart-beat {
    display: inline-block;
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* SAYAÇ */
.counter-container {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.time-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.time-box span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.time-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.8;
}

/* YAZI EFEKTLERİ */
.typing-text,
.typing-text-delayed {
    font-size: 1.2rem;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink .75s step-end infinite;
}

.typing-text-delayed {
    animation-delay: 3s;
    animation: typing 3s steps(30, end) 3s forwards, blink .75s step-end infinite;
    opacity: 0;
}

@keyframes typing {
    from {
        width: 0;
        opacity: 1;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary-color);
    }
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.content {
    padding: 20px;
    /* GALAXY BACKGROUND */
    background:
        radial-gradient(circle at top right, rgba(255, 77, 109, 0.2), transparent 40%),
        radial-gradient(circle at bottom left, rgba(65, 88, 208, 0.2), transparent 40%),
        linear-gradient(135deg, #0e0b1f, #1a1438);
    background-size: 200% 200%;
    animation: nebulaMove 10s ease infinite alternate;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    color: #fff;
}

@keyframes nebulaMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.content:hover {
    transform: scale(1.02);
}

.side-photo {
    position: absolute;
    top: 0;
    width: 350px;
    padding: 20px;
    /* GALAXY BACKGROUND (Match content) */
    background:
        radial-gradient(circle at top right, rgba(255, 77, 109, 0.2), transparent 40%),
        radial-gradient(circle at bottom left, rgba(65, 88, 208, 0.2), transparent 40%),
        linear-gradient(135deg, #0e0b1f, #1a1438);
    background-size: 200% 200%;
    animation: nebulaMove 10s ease infinite alternate;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 10;
}

.side-photo:hover {
    transform: scale(1.02);
    z-index: 11;
}

.side-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.left .side-photo {
    left: 110%;
}

.right .side-photo {
    right: 110%;
}

@media screen and (max-width: 900px) {
    .side-photo {
        display: none;
    }
}

.content img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
    display: block;
}

/* SCROLL ANIMATION */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* TIMELINE HEAT ICONS */
.container::after {
    content: '❤️';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 0 10px var(--primary-color);
}

.right::after {
    left: -13px;
}

/* DATE BADGES */
.date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(255, 77, 109, 0.4);
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .left,
    .right {
        left: 0;
    }

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

    .container::after {
        left: 18px;
    }

    .right::after {
        left: 18px;
    }
}

/* EFEKTLER */
.falling-heart {
    position: fixed;
    top: -10vh;
    color: var(--primary-color);
    font-size: 20px;
    z-index: 9999;
    pointer-events: none;
    animation: fall linear forwards;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.cursor-heart {
    position: fixed;
    top: 0;
    left: 0;
    font-size: 20px;
    color: var(--primary-color);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    animation: cursorFadeOut 0.8s linear forwards;
}

@keyframes cursorFadeOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -150%) scale(2);
        opacity: 0;
    }
}

/* SHOOTING STARS */
.shooting-star {
    position: fixed;
    left: 50%;
    top: 50%;
    height: 2px;
    background: linear-gradient(-45deg, rgba(255, 255, 255, 1), rgba(0, 0, 255, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 1));
    animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
    z-index: 0;
    opacity: 0;
}

.shooting-star::before,
.shooting-star::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), rgba(255, 255, 255, 1), rgba(0, 0, 255, 0));
    transform: translateX(50%) rotateZ(45deg);
    border-radius: 100%;
    animation: shining 3000ms ease-in-out infinite;
}

.shooting-star::after {
    transform: translateX(50%) rotateZ(-45deg);
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 100px;
    }

    100% {
        width: 0;
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotateZ(45deg);
        opacity: 1;
    }

    100% {
        transform: translateX(300px) translateY(300px) rotateZ(45deg);
        opacity: 0;
    }
}

@keyframes shining {
    0% {
        width: 0;
    }

    50% {
        width: 30px;
    }

    100% {
        width: 0;
    }
}