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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: radial-gradient(
        circle at top left,
        #28103a 0,
        #0c0712 42%,
        #07050b 100%
    );
    color: #fff;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}


/* =========================
   GENEL KART TASARIMLARI
========================= */

.card,
.wish,
.letter,
.story article,
.grid div {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}


/* =========================
   GİRİŞ EKRANI
========================= */

.welcome {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    max-width: 680px;
    width: 100%;
    padding: 48px;
    border-radius: 30px;
    text-align: center;
}

.card h1 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    margin-bottom: 20px;
}

.card p {
    color: #d3c6d8;
    line-height: 1.7;
}

.specialTitle {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    text-align: center;

    color: #ffffff;

    letter-spacing: 2px;
    line-height: 1.2;

    margin: 30px 0;

    text-shadow:
        0 0 10px rgba(255, 95, 155, 0.8),
        0 0 20px rgba(255, 95, 155, 0.6),
        0 0 40px rgba(167, 92, 255, 0.5);

    animation: titleGlow 2.5s ease-in-out infinite alternate;
}

@keyframes titleGlow {

    from {
        text-shadow:
            0 0 10px rgba(255, 95, 155, 0.5),
            0 0 20px rgba(255, 95, 155, 0.4);
    }

    to {
        text-shadow:
            0 0 15px rgba(255, 95, 155, 1),
            0 0 30px rgba(255, 95, 155, 0.8),
            0 0 50px rgba(167, 92, 255, 0.7);
    }
}
/* =========================
   GİRİŞ / ŞİFRE ALANI
========================= */

.login {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.login input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.login button,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 15px 24px;
    background: linear-gradient(
        135deg,
        #ff5f9b,
        #a75cff
    );
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

#loginMessage {
    margin-top: 12px;
    color: #ff9cb7;
}


/* =========================
   NAVBAR
========================= */

nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1060px, calc(100% - 28px));
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 18px;
    border-radius: 999px;

    background: rgba(20, 10, 28, 0.65);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

nav button {
    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}


/* =========================
   HERO / ANA EKRAN
========================= */

.hero {
    min-height: 100vh;

    display: grid;
    place-items: center;

    text-align: center;

    padding: 100px 24px 40px;
}

.hero h2 {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.95;

    margin: 18px 0;
}

.hero p {
    color: #cdbfd1;
    margin-bottom: 28px;
}


/* =========================
   GENEL SECTION
========================= */

.section {
    width: min(1100px, calc(100% - 32px));

    margin: auto;
    padding: 90px 0;

    text-align: center;
}

.section h3 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 12px;
}

.sub {
    color: #cdbfd1;
    margin-bottom: 30px;
}


/* =========================
   SAYAÇ GRID
========================= */

.grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.grid div {
    padding: 28px 12px;
    border-radius: 24px;
}

.grid b {
    display: block;

    font-size: clamp(2rem, 6vw, 4rem);
}

.grid span {
    color: #cdbfd1;
}


/* =========================
   HİKAYE BÖLÜMÜ
========================= */

.story {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;

    margin-top: 34px;
}

.story article {
    padding: 28px;

    border-radius: 24px;

    text-align: left;
}

.story h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.story p {
    color: #cdbfd1;

    line-height: 1.7;
}


/* =========================
   MEKTUP
========================= */

.letter {
    max-width: 820px;

    margin: 30px auto 0;

    padding: 40px;

    border-radius: 26px;

    text-align: left;

    line-height: 1.9;

    background: #fff9f3;
    color: #3c2933;
}

.letter p {
    margin: 14px 0;
}


/* =========================
   DİLEK / SÜRPRİZ
========================= */

.wish {
    max-width: 900px;

    margin: auto;

    padding: 60px 28px;

    border-radius: 34px;
}

.gift {
    font-size: 3.6rem;
}

.wish p {
    color: #cdbfd1;

    margin: 10px 0 24px;
}

.wishText {
    font-size: clamp(2rem, 6vw, 4rem) !important;

    color: #ff9fc4 !important;

    font-family: Georgia, serif;

    margin-top: 30px !important;

    line-height: 1.2;
}

.wishText:not(.hidden) {
    animation: show 0.6s ease both;
}


/* =========================
   DİLEK ANİMASYONU
========================= */

@keyframes show {

    from {
        opacity: 0;

        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;

        transform: none;
    }
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 28px;

    color: #94879a;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================
   KONFETİ
========================= */

.confetti {
    position: fixed;

    top: -20px;

    width: 9px;
    height: 15px;

    z-index: 999;

    pointer-events: none;

    animation: fall linear forwards;
}

@keyframes fall {

    to {
        transform: translate3d(
            var(--drift),
            110vh,
            0
        ) rotate(900deg);
    }
}


/* =========================
   TEK FOTOĞRAF BÖLÜMÜ
========================= */

.photoSection {
    padding-top: 70px;
}

.photoHeading {
    max-width: 850px;

    margin: 0 auto 40px;
}

.smallTitle {
    display: inline-block;

    color: #ff9fc4;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.14em;

    font-size: 0.76rem;

    margin-bottom: 14px;
}

.photoHeading h3,
.letterSection h3 {
    font-size: clamp(2.1rem, 5vw, 4rem);

    line-height: 1.08;
}

.photoHeading p {
    max-width: 700px;

    margin: 18px auto 0;

    color: #cdbfd1;

    line-height: 1.8;
}


/* =========================
   FOTOĞRAF KARTI
========================= */

.singlePhotoWrap {
    display: flex;

    justify-content: center;
}

.singlePhotoCard {
    width: min(520px, 100%);

    padding: 12px;

    border-radius: 34px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0.04)
    );

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.singlePhotoCard img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 25px;
}

.photoCaption {
    padding: 18px 14px 10px;

    color: #eadfeb;

    font-size: 0.92rem;

    line-height: 1.6;
}


/* =========================
   MEKTUP BÖLÜMÜ
========================= */

.letterSection {
    padding-top: 60px;
}

.letterStart {
    font-size: 1.3rem;
}

.letterEnd {
    font-size: 1.25rem;

    font-weight: 700;

    color: #a22f5b;
}


/* =========================
   TELEFON UYUMLULUĞU
========================= */

@media (max-width: 760px) {

    .card {
        padding: 34px 22px;
    }

    .login {
        flex-direction: column;
    }

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

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

    .section {
        padding: 70px 0;
    }

    .photoHeading h3,
    .letterSection h3 {
        font-size: clamp(2rem, 10vw, 3.4rem);
    }

    .singlePhotoCard {
        width: min(430px, 100%);
    }
}