/* ==========================================
   NOOR — PREMIUM BIRTHDAY WEBSITE
   Fully responsive
========================================== */


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #08080a;
    color: #eee8eb;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
    min-width: 0;
}

button {
    font-family: inherit;
}

::selection {
    background: #c6a36a;
    color: #08080a;
}


/* ==========================================
   BACKGROUND
========================================== */

.background {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            #1b141b 0%,
            #0b0a0c 45%,
            #070709 100%
        );
}

.orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .15;
}

.orb-one {
    top: -200px;
    left: -150px;
    background: #9c5678;
}

.orb-two {
    right: -180px;
    top: 25%;
    background: #6e528f;
}

.orb-three {
    bottom: -250px;
    left: 30%;
    background: #b08a50;
}


/* ==========================================
   COUNTDOWN
========================================== */

.countdown-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(155, 103, 126, .12),
            transparent 40%
        ),
        #08080a;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.countdown-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.countdown-content {
    width: min(850px, 100%);
    text-align: center;
    animation: reveal .9s ease;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-label,
.eyebrow,
.section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #bda77d;
}

.lock {
    margin: 25px 0;
    font-size: 22px;
    color: #c6a36a;
    animation: glow 2.5s infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: .5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.countdown-content h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(48px, 7vw, 85px);
    line-height: .98;
    font-weight: 500;
    margin-bottom: 25px;
}

.countdown-content h1 span {
    display: block;
    color: #c6a36a;
}

.countdown-text {
    color: #9e9499;
    font-size: 14px;
    line-height: 1.8;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 50px 0 25px;
}

.timer-unit {
    min-width: 115px;
    padding: 20px 15px;

    border: 1px solid rgba(198, 163, 106, .18);
    background: rgba(255, 255, 255, .025);
    backdrop-filter: blur(10px);
}

.timer-unit strong {
    display: block;
    font-size: 38px;
    font-weight: 500;
    color: #eee8eb;
    font-variant-numeric: tabular-nums;
}

.timer-unit span {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #857d81;
}

.separator {
    color: #a78857;
    font-size: 25px;
}

.unlock-date {
    font-size: 10px;
    letter-spacing: 4px;
    color: #a89a9f;
}

.waiting {
    margin-top: 30px;
    font-size: 11px;
    color: #6e666b;
    font-style: italic;
}


/* ==========================================
   MAIN PAGE
========================================== */

.birthday-page {
    display: none;
}

.birthday-page.show {
    display: block;
    animation: pageReveal 1.3s ease;
}

@keyframes pageReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ==========================================
   HERO
========================================== */

.hero {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    position: relative;

    padding: 40px 25px;
}

.hero-inner {
    width: 100%;
    max-width: 850px;
}

.hero h1 {
    margin: 22px 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(60px, 9vw, 120px);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -4px;
}

.hero h1 span {
    display: block;
    color: #c6a36a;
    font-style: italic;
}

.hero p {
    max-width: 540px;
    margin: 30px auto;

    color: #999095;
    font-size: 15px;
    line-height: 1.8;
}


/* ==========================================
   BUTTON
========================================== */

.premium-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    min-height: 58px;

    padding: 15px 19px 15px 24px;

    border: 1px solid rgba(198, 163, 106, .4);
    background: rgba(198, 163, 106, .08);

    color: #e8dfd3;
    cursor: pointer;

    transition: .35s ease;

    -webkit-tap-highlight-color: transparent;
}

.premium-button b {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;
    background: #c6a36a;
    color: #15110d;

    transition: .35s ease;
}

.premium-button:hover {
    background: rgba(198, 163, 106, .16);
    border-color: #c6a36a;
    transform: translateY(-3px);
}

.premium-button:hover b {
    transform: rotate(45deg);
}

.premium-button:active {
    transform: scale(.98);
}


/* ==========================================
   SCROLL INDICATOR
========================================== */

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 10px;

    white-space: nowrap;

    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #625b5f;
}

.scroll-indicator span {
    width: 5px;
    height: 5px;

    flex-shrink: 0;

    border-radius: 50%;
    background: #c6a36a;

    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: .3;
    }

    50% {
        opacity: 1;
    }
}


/* ==========================================
   WISH SECTION
========================================== */

.wish-section {
    width: min(1000px, calc(100% - 40px));
    margin: auto;
    padding: 140px 0;
}

.section-number {
    margin-bottom: 25px;
    color: #514b4f;
    font-size: 10px;
    letter-spacing: 3px;
}

.wish-section h2,
.final-section h2 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin: 20px 0 60px;
}

.wish-section h2 span,
.final-section h2 span {
    color: #c6a36a;
}

.wish-card {
    width: min(780px, 100%);
    margin-left: auto;

    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .08);

    padding: 35px;
    position: relative;
}

.wish-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 80px;
    height: 1px;

    background: #c6a36a;
}

.card-top {
    display: flex;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, .06);

    color: #bda77d;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.wish-body {
    padding-top: 35px;
}

.wish-body p {
    color: #9b9296;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 20px;
}

.wish-body .hello {
    color: #eee8eb;
    font-family: "Playfair Display", serif;
    font-size: 27px;
}

.wish-body strong {
    color: #c6a36a;
    font-weight: 500;
}

.signature {
    margin-top: 35px;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.signature span {
    color: #6f676b;
    font-size: 12px;
}

.signature strong {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: #c6a36a;
}


/* ==========================================
   LITTLE SECTION
========================================== */

.little-section {
    width: min(1000px, calc(100% - 40px));
    margin: auto;
    padding: 80px 0 160px;
}

.little-box {
    padding: 90px 40px;

    text-align: center;

    border: 1px solid rgba(198, 163, 106, .15);

    background:
        radial-gradient(
            circle at center,
            rgba(198, 163, 106, .08),
            transparent 55%
        );
}

.sparkle {
    color: #c6a36a;
    font-size: 25px;
    margin-bottom: 25px;
}

.little-label {
    color: #777075;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 9px;
}

.little-box h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 6vw, 75px);
    font-weight: 500;
    line-height: 1;
    margin: 20px 0;
}

.little-box h2 span {
    color: #c6a36a;
    font-style: italic;
}

.little-text {
    color: #82797e;
    font-size: 14px;
}


/* ==========================================
   FINAL
========================================== */

.final-section {
    width: min(1000px, calc(100% - 40px));
    margin: auto;

    padding: 100px 0 150px;

    text-align: center;
}

.final-section > p {
    max-width: 550px;

    margin: -25px auto 35px;

    color: #8e8589;
    line-height: 1.8;
    font-size: 14px;
}

.final-message {
    width: min(650px, 100%);
    margin: 40px auto 0;

    padding: 40px;

    border: 1px solid rgba(198, 163, 106, .2);
    background: rgba(255, 255, 255, .025);

    display: none;

    animation: finalReveal .8s ease;
}

.final-message.show {
    display: block;
}

@keyframes finalReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-icon {
    color: #c6a36a;
    font-size: 30px;
    margin-bottom: 20px;
}

.final-message h3 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 18px;
}

.final-message p {
    color: #91888d;
    font-size: 14px;
    line-height: 1.9;
}

.final-wish {
    margin-top: 25px;

    color: #c6a36a;

    font-family: "Playfair Display", serif;
    font-size: 24px;
}


/* ==========================================
   FOOTER
========================================== */

footer {
    text-align: center;
    padding: 40px 20px 70px;
    color: #575155;
}

.footer-line {
    width: 60px;
    height: 1px;

    margin: 0 auto 25px;

    background: #c6a36a;
    opacity: .5;
}

.footer-symbol {
    color: #c6a36a;
    margin-bottom: 15px;
}

footer p {
    font-size: 11px;
    margin-bottom: 8px;
}

footer span {
    font-size: 9px;
    letter-spacing: 3px;
}


/* ==========================================
   CONFETTI
========================================== */

#confetti {
    position: fixed;
    inset: 0;

    z-index: 5000;

    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;

    font-size: 14px;

    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform:
            translateY(110vh)
            rotate(720deg);

        opacity: 0;
    }
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .countdown-content {
        max-width: 700px;
    }

    .timer {
        gap: 10px;
    }

    .timer-unit {
        min-width: 95px;
    }

    .hero h1 {
        font-size: clamp(58px, 10vw, 90px);
    }
}


/* ==========================================
   MOBILE — 650px
========================================== */

@media (max-width: 650px) {

    .desktop {
        display: none;
    }

    /* COUNTDOWN */

    .countdown-screen {
        padding: 20px 14px;
    }

    .countdown-content {
        width: 100%;
    }

    .mini-label {
        font-size: 8px;
        letter-spacing: 2.5px;
    }

    .lock {
        margin: 20px 0;
        font-size: 20px;
    }

    .countdown-content h1 {
        font-size: clamp(43px, 13vw, 56px);
        line-height: .98;
        letter-spacing: -1.5px;
        margin-bottom: 20px;
    }

    .countdown-text {
        font-size: 13px;
        line-height: 1.7;
        padding: 0 8px;
    }

    /* TIMER */

    .timer {
        width: 100%;

        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 7px;

        margin: 32px auto 22px;
    }

    .timer-unit {
        min-width: 0;
        width: 100%;

        padding: 13px 4px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .timer-unit strong {
        font-size: clamp(21px, 7vw, 28px);
        line-height: 1.1;
    }

    .timer-unit span {
        margin-top: 6px;

        font-size: 6px;
        letter-spacing: 1px;

        white-space: nowrap;
    }

    .separator {
        display: none;
    }

    .unlock-date {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .waiting {
        margin-top: 24px;
        font-size: 10px;
    }


    /* HERO */

    .hero {
        min-height: 100svh;
        padding: 35px 18px 80px;
    }

    .hero-inner {
        width: 100%;
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 2.5px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 68px);
        letter-spacing: -2px;
        line-height: .92;
        margin: 20px 0;
    }

    .hero p {
        max-width: 330px;

        margin: 24px auto;

        font-size: 13px;
        line-height: 1.75;
    }

    .premium-button {
        width: auto;
        max-width: 100%;

        min-height: 54px;

        gap: 16px;

        padding: 12px 14px 12px 19px;

        font-size: 13px;
    }

    .premium-button b {
        width: 29px;
        height: 29px;
    }

    .scroll-indicator {
        bottom: 22px;

        font-size: 7px;
        letter-spacing: 2px;
    }


    /* SECTIONS */

    .wish-section,
    .little-section,
    .final-section {
        width: calc(100% - 28px);
    }

    .wish-section {
        padding: 90px 0;
    }

    .section-number {
        margin-bottom: 18px;
        font-size: 8px;
        letter-spacing: 2px;
    }

    .section-label {
        font-size: 8px;
        letter-spacing: 2.5px;
    }

    .wish-section h2,
    .final-section h2 {
        font-size: clamp(38px, 11vw, 48px);
        line-height: 1.05;
        margin: 18px 0 42px;
    }


    /* WISH CARD */

    .wish-card {
        width: 100%;
        padding: 23px 18px;
    }

    .wish-card::before {
        width: 60px;
    }

    .card-top {
        padding-bottom: 16px;

        font-size: 8px;
        letter-spacing: 2px;
    }

    .wish-body {
        padding-top: 25px;
    }

    .wish-body p {
        font-size: 13px;
        line-height: 1.85;
        margin-bottom: 18px;
    }

    .wish-body .hello {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .signature {
        margin-top: 28px;
    }

    .signature span {
        font-size: 11px;
    }

    .signature strong {
        font-size: 21px;
    }


    /* LITTLE SECTION */

    .little-section {
        padding: 45px 0 100px;
    }

    .little-box {
        padding: 65px 18px;
    }

    .sparkle {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .little-label {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .little-box h2 {
        font-size: clamp(43px, 13vw, 58px);
        margin: 18px 0;
    }

    .little-text {
        font-size: 12px;
        line-height: 1.7;
    }


    /* FINAL */

    .final-section {
        padding: 80px 0 110px;
    }

    .final-section > p {
        max-width: 320px;

        margin: -15px auto 30px;

        font-size: 13px;
        line-height: 1.8;
    }

    .final-message {
        width: 100%;

        margin-top: 30px;

        padding: 30px 18px;
    }

    .final-icon {
        font-size: 27px;
        margin-bottom: 16px;
    }

    .final-message h3 {
        font-size: 25px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .final-message p {
        font-size: 13px;
        line-height: 1.8;
    }

    .final-wish {
        font-size: 21px;
        line-height: 1.3;
    }


    /* FOOTER */

    footer {
        padding: 35px 18px 55px;
    }

    footer p {
        font-size: 10px;
    }

    footer span {
        font-size: 8px;
        letter-spacing: 2px;
    }
}


/* ==========================================
   SMALL PHONES — 375px
========================================== */

@media (max-width: 375px) {

    .countdown-screen {
        padding: 18px 10px;
    }

    .countdown-content h1 {
        font-size: 43px;
    }

    .countdown-text {
        font-size: 12px;
    }

    .timer {
        gap: 5px;
    }

    .timer-unit {
        padding: 11px 3px;
    }

    .timer-unit strong {
        font-size: 20px;
    }

    .timer-unit span {
        font-size: 5.5px;
        letter-spacing: .7px;
    }

    .unlock-date {
        font-size: 6.5px;
        letter-spacing: 1.5px;
    }

    .hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero p {
        font-size: 12px;
    }

    .premium-button {
        font-size: 12px;
        gap: 12px;
        padding-left: 16px;
    }

    .wish-section,
    .little-section,
    .final-section {
        width: calc(100% - 22px);
    }

    .wish-section h2,
    .final-section h2 {
        font-size: 38px;
    }

    .wish-card {
        padding: 21px 15px;
    }

    .wish-body p {
        font-size: 12.5px;
    }

    .little-box {
        padding: 58px 15px;
    }

    .final-message {
        padding: 27px 15px;
    }
}


/* ==========================================
   VERY SMALL PHONES — 320px
========================================== */

@media (max-width: 330px) {

    .countdown-content h1 {
        font-size: 39px;
    }

    .timer {
        gap: 3px;
    }

    .timer-unit {
        padding: 10px 2px;
    }

    .timer-unit strong {
        font-size: 18px;
    }

    .timer-unit span {
        font-size: 5px;
        letter-spacing: .4px;
    }

    .unlock-date {
        font-size: 6px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 11.5px;
    }

    .premium-button {
        width: 100%;
    }

    .wish-body p {
        font-size: 12px;
    }
}


/* ==========================================
   REDUCE MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}