
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --gold: #ffd166;
    --purple: #28103e;
    --dark: #10091f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: #fff4df;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #180c28;
    border-bottom: 1px solid #ffd16644;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 24px;
    color: var(--gold);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Hero */
.hero {
    min-height: 600px;
    padding: 130px 20px;
    background:
        radial-gradient(circle at center, #4b1b57, #10091f 70%);
    position: relative;
    overflow: hidden;
}

.subtitle {
    color: var(--gold);
    letter-spacing: 5px;
}

h1 {
    font: italic bold clamp(50px, 9vw, 100px)
          'Playfair Display', serif;
    color: var(--gold);
    margin: 25px 0;
    text-shadow: 0 0 30px #ff9c3b;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
    line-height: 1.7;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 25px;
    border-radius: 30px;
    border: 1px solid var(--gold);
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin: 10px;
}

.primary {
    background: linear-gradient(135deg, #ffdf79, #ff9f2e);
    color: #30112a;
}

.secondary {
    background: transparent;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px #ffd16666;
}

/* Sections */
section {
    padding: 80px 20px;
}

h2 {
    font: italic bold 40px 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 20px;
}

section > p {
    color: #d8cbe5;
    margin-bottom: 35px;
}

/* Diyas */
.diyas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    margin: 50px 0;
}

.diya {
    width: 120px;
    cursor: pointer;
    position: relative;
    padding-top: 40px;
}

.bowl {
    height: 50px;
    background: linear-gradient(#ffb347, #9e390c);
    border: 2px solid #ffd166;
    border-radius: 10px 10px 60px 60px;
    box-shadow: 0 10px 20px #0005;
}

.flame {
    position: absolute;
    width: 18px;
    height: 30px;
    background: orange;
    border-radius: 50% 10% 50% 50%;
    left: 50%;
    top: 10px;
    transform: translateX(-50%) scale(0);
    transition: 0.3s;
}

.diya.lit .flame {
    transform: translateX(-50%) scale(1);
    background: radial-gradient(white, yellow, orange);
    box-shadow: 0 0 25px orange;
    animation: flicker 0.8s infinite alternate;
}

@keyframes flicker {
    from { transform: translateX(-50%) scale(1) rotate(-4deg); }
    to { transform: translateX(-50%) scale(1.1) rotate(4deg); }
}

.diya span {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    border: 1px solid #d99c45;
    border-radius: 20px;
    color: var(--gold);
}

.message {
    margin: 30px auto;
    max-width: 600px;
    padding: 20px;
    border: 1px solid #d99c45;
    border-radius: 15px;
    color: #ffe3a5;
}

/* Wishes */
.wish-box {
    max-width: 500px;
    margin: auto;
    padding: 30px;
    background: #28103e;
    border: 1px solid #ffd16655;
    border-radius: 20px;
}

input, select {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ffffff33;
    background: #160b25;
    color: white;
}

.wish-preview {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #54224e, #210e37);
    border: 1px solid var(--gold);
    border-radius: 15px;
}

.wish-preview h3 {
    font: italic bold 28px 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 15px;
}

.wish-preview p {
    line-height: 1.6;
}

/* Rangoli */
.rangoli {
    width: 180px;
    height: 180px;
    margin: 40px auto;
    border-radius: 50%;
    background: repeating-conic-gradient(
        #ffcf55 0 8deg,
        #e93d9a 8deg 16deg,
        #6639db 16deg 24deg,
        #25d5b2 24deg 32deg
    );
    box-shadow: 0 0 35px #e93d9a55;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    padding: 30px;
    border-top: 1px solid #ffffff22;
    color: #d8cbe5;
}

/* Fireworks */
.firework {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 25%;
    left: 20%;
    border-radius: 50%;
    background: #ffd166;
    box-shadow: 0 0 30px 10px #ff6bba;
    animation: burst 2s infinite;
}

.firework.second {
    left: 80%;
    top: 20%;
    animation-delay: 1s;
}

@keyframes burst {
    0% { transform: scale(0.2); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: scale(8); opacity: 0; }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 100px 20px;
    }

    section {
        padding: 60px 15px;
    }
}
