/* =========================
   Base & Reset
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: #070b14;
    color: #ffffff;
    position: relative;
}

/* =========================
   Aurora Background
========================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,0,150,.20), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(0,255,255,.15), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(255,120,0,.18), transparent 35%);
    filter: blur(90px);
    z-index: -2;
    animation: aurora 12s linear infinite alternate;
}

@keyframes aurora {
    from { transform: translateX(-50px); }
    to { transform: translateX(50px); }
}

/* =========================
   Loader & Cursor
========================= */
#loader {
    position: fixed;
    inset: 0;
    background: #05070f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader-heart {
    font-size: 5rem;
    animation: pulse 1s infinite;
}

#loader h2 {
    margin-top: 20px;
    font-weight: 600;
    color: #fff;
}

@keyframes pulse {
    50% { transform: scale(1.3); }
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.cursor {
    width: 22px;
    height: 22px;
    border: 2px solid #ff4fa2;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #ff4fa2;
}

/* =========================
   Hero Section
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 30px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    margin-bottom: 25px;
    color: #fff;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: .9;
    color: #fff;
}

.start-btn {
    margin-top: 35px;
    padding: 16px 35px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4fa2, #ff8f70);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: .4s;
}

.start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(255,79,162,.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.4s infinite;
    z-index: 2;
    color: #fff;
}

@keyframes bounce {
    50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================
   General Sections
========================= */
section {
    padding: 120px 8%;
    position: relative;
    z-index: 2;
}

h1, h2, h3, h4 {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* =========================
   Gift Section
========================= */
.gift-section {
    text-align: center;
}

.gift-section h2 {
    font-size: 3rem;
    margin-bottom: 60px;
}

.gift-container {
    display: flex;
    justify-content: center;
}

.gift-box {
    position: relative;
    width: 220px;
    height: 220px;
    cursor: pointer;
    transition: .6s;
}

.gift-box:hover {
    transform: rotate(-6deg) scale(1.05);
}

.gift-body {
    width: 220px;
    height: 170px;
    background: linear-gradient(135deg, #ff4fa2, #ff7f7f);
    position: absolute;
    bottom: 0;
    border-radius: 12px;
}

.gift-lid {
    width: 240px;
    height: 50px;
    background: #ff5da8;
    position: absolute;
    left: -10px;
    top: 0;
    border-radius: 12px;
    z-index: 3;
    transition: 1s;
}

.gift-ribbon-v {
    width: 25px;
    height: 220px;
    background: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.gift-ribbon-h {
    width: 220px;
    height: 25px;
    background: #fff;
    position: absolute;
    top: 65px;
    z-index: 2;
}

.gift-text {
    margin-top: 30px;
    font-size: 1.1rem;
    color: #fff;
}

/* =========================
   Letter Section
========================= */
.letter-card {
    max-width: 850px;
    margin: auto;
    padding: 45px;
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.letter-card h2 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.5rem;
}

#letter-text {
    line-height: 2;
    font-size: 1.1rem;
    color: #fff;
}

/* =========================
   Gallery Section
========================= */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.photo-card {
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    transition: transform .4s ease;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
}

.photo-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* =========================
   Final Section & Fireworks
========================= */
.final-section {
    text-align: center;
}

.final-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

#surpriseBtn {
    padding: 18px 40px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4fa2, #ff9d4d);
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

#finalMessage {
    display: none;
    margin-top: 60px;
}

#finalMessage h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ffb6e1);
    -webkit-background-clip: text;
    color: transparent;
}

#finalMessage p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

#finalMessage h3 {
    font-size: 2rem;
}

#fireworks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

footer {
    text-align: center;
    padding: 80px 20px;
    opacity: .8;
}

/* =========================
   CREATOR & PAY (Cute Glassmorphism)
========================= */
#creator-panel {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    /* Aurora effect is handled by body background, this stays transparent */
    background: rgba(0, 0, 0, 0.4); 
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 35px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #fff;
    position: relative;
}

/* Header */
.card-header { text-align: center; margin-bottom: 25px; }
.card-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, #ffb6e1);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
}
.card-header p { color: #ccc; font-size: 0.95rem; }

/* Cute Inputs in Dark Mode */
.input-group { margin-bottom: 18px; text-align: left; }
.input-group label {
    display: block;
    font-size: 0.95rem;
    color: #ff99cc;
    margin-bottom: 8px;
    font-weight: 600;
}
.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s ease;
    font-family: inherit;
}
.input-group input:focus, .input-group textarea:focus {
    border-color: #ff4fa2;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 79, 162, 0.3);
}
.input-group input::placeholder, .input-group textarea::placeholder {
    color: #888;
}

/* Bouncy Button */
.bouncy-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff4fa2, #ff8f70);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
}
.bouncy-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 79, 162, 0.4);
}

/* Pay Overlay - MOVED TO BOTTOM */
#pay-overlay {
    position: relative; /* Fixed hata diya */
    width: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    padding: 60px 20px 80px 20px; /* Top aur Bottom space de diya */
    animation: popUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    0% { transform: translateY(50px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.pay-box { 
    text-align: center; 
    padding: 35px 30px; 
    margin: 0 auto; /* Card ko center mein set karega */
}

.floating-emoji {
    font-size: 3.5rem;
    margin-bottom: 10px;
    animation: float 2s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.pay-box h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #fff !important;
}
.subtitle { color: #ccc; font-size: 0.95rem; }

.features-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 18px;
    text-align: left;
    font-size: 0.95rem;
    color: #eee;
    font-weight: 500;
    border: 1px dashed rgba(255,255,255,0.3);
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff99cc;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 79, 162, 0.3);
}

.text-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.95rem;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
.text-btn:hover { color: #fff; text-decoration: underline; }
.trust-badge { margin-top: 15px; font-size: 0.75rem; color: #888; }

/* Copy Link Container */
.copy-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}
.copy-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}
#copy-btn {
    background: #ff4fa2;
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
#copy-btn:hover { background: #ff6b6b; transform: scale(1.05); }
.hint-text { margin-top: 15px; font-size: 0.9rem; color: #ffb6e1; font-weight: 600; }

/* Mobile Adjustments */
@media(max-width: 768px) {
    .hero h1 { font-size: 2.7rem; }
    .section-title, .gift-section h2, .final-content h2 { font-size: 2rem; }
    #finalMessage h1 { font-size: 2.8rem; }
    .letter-card { padding: 25px; }
    .photo-card img { height: 340px; }
    .glass-card { padding: 25px; width: 95%; }
}