﻿/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== BODY ===== */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    color: #fff;
    text-align: center;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255,215,0,.15), transparent 40%), radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 40%);
        animation: bgMove 18s ease-in-out infinite alternate;
        z-index: -1;
    }

@keyframes bgMove {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* ===== MAIN CONTAINER ===== */
.container {
    background: rgba(0,0,0,.35);
    padding: 50px 30px;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

    .container::before {
        content: "RANGCHITRAN";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        font-size: 5.5rem;
        font-weight: 900;
        letter-spacing: 10px;
        color: rgba(255,255,255,.05);
        pointer-events: none;
    }

/* ===== HEADINGS ===== */
h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

    h1 span {
        color: #ffd700;
    }

h2 {
    margin-top: 10px;
    font-size: 1.6rem;
    font-weight: 400;
}

.tagline {
    margin-top: 8px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255,215,0,.4);
    animation: luxuryFade 3s ease forwards;
}

@keyframes luxuryFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

p {
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .95;
}

/* ===== BUTTON ===== */
.cta {
    margin-top: 22px;
    display: inline-block;
    padding: 14px 34px;
    border-radius: 60px;
    background: #000;
    color: #ffd700;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #ffd700;
    transition: .3s;
}

    .cta:hover {
        background: #ffd700;
        color: #000;
    }

/* ========================= */
/* ===== POPUP SYSTEM ===== */
/* ========================= */

.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

    /* JS display:flex support (mobile safe) */
    .popup[style*="flex"] .popup-box {
        opacity: 1;
        transform: scale(1);
    }

/* POPUP BOX */
.popup-box {
    position: relative;
    background: #111;
    padding: 26px 22px 22px;
    max-width: 360px;
    width: 50%;
    border-radius: 14px;
    text-align: center;
    opacity: 1;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
    z-index: 20;
}

    .close-btn:hover {
        color: #ffd700;
    }

/* POPUP CONTENT */
.popup-box h3 {
    color: #ffd700;
    margin-bottom: 6px;
}

.popup-box p {
    font-size: .9rem;
    margin-bottom: 10px;
}

.popup-box input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-top: 10px;
    outline: none;
}

.popup-box button {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    background: #ffd700;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

    .popup-box button:hover {
        opacity: .9;
    }

/* ============================= */
/* ===== MOBILE BOTTOM SHEET ==== */
/* ============================= */

@media (max-width: 768px) {

    .popup {
        align-items: flex-end;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .popup-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 24px 18px 28px;
        animation: slideUp .35s ease forwards;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .close-btn {
        top: 12px;
        right: 18px;
        font-size: 26px;
    }
}

/* ===== TEXT RESPONSIVE ===== */
@media (max-width:600px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 1.3rem;
    }
}
