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

:root {
    --gold: #D4AF37;
    --gold-light: #f1e5ac;
    --charcoal: #2C3E50;
    --off-white: #FBFAF5;
    --white: #ffffff;
    --text: #444;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--text);
    line-height: 1.7;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--charcoal);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(251, 250, 245, 0.3), rgba(251, 250, 245, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-out;
}

.pre-title {
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.quote-container {
    margin: 20px 0;
}

.quote-container p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--charcoal);
}

.ornament {
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 20px auto;
    position: relative;
}

.ornament::before {
    content: '✵';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: var(--gold);
    font-size: 1.2rem;
}

.date {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 30px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.personal-sub {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--charcoal);
    font-family: 'Playfair Display', serif;
    margin-top: 20px;
    animation: fadeInUp 2s ease;
}

.personal-note {
    font-size: 1.2rem;
    line-height: 2;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.quote-section .glass-card {
    max-width: 800px;
    margin: 0 auto;
}

.quran-verse {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    margin: 20px 0;
    color: var(--charcoal);
}

.verse-ref {
    font-weight: 600;
    color: var(--gold);
}

.fa-quote-left {
    color: var(--gold-light);
    font-size: 2.5rem;
}

/* Spin Wheel Revamp */
.spin-wheel-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.spin-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 40px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--charcoal);
    z-index: 10;
}

.premium-btn {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--white);
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.premium-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
}

.result-message {
    margin-top: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--charcoal);
    min-height: 2rem;
}

/* Bank info */
.bank-info {
    margin-top: 40px;
    animation: fadeInUp 1s ease;
}

.hidden {
    display: none;
}

.bank-details {
    max-width: 500px;
    margin: 0 auto;
}

.bank-logo {
    height: 40px;
    margin-right: 15px;
    vertical-align: middle;
}

.account {
    background: rgba(212, 175, 55, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.acc-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
}

.acc-name {
    width: 100%;
    font-weight: 600;
    color: var(--gold);
}

.copy-btn {
    background: var(--charcoal);
    color: var(--off-white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.nominal-display {
    font-size: 1.2rem;
}

#winning-nominal {
    color: var(--gold);
}

/* Greetings */
.greetings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

#greetingForm {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    height: 150px;
}

.guest-book {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 10px;
}

.greeting-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-left: 5px solid var(--gold);
}

.greeting-card strong {
    display: block;
    color: var(--gold);
    margin-bottom: 5px;
}

.greeting-card small {
    display: block;
    margin-top: 10px;
    color: #aaa;
}

/* Tips Section */
.tips-section {
    background: rgba(212, 175, 55, 0.03);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tip-card {
    transition: var(--transition);
    padding: 30px;
}

.tip-card:hover {
    transform: scale(1.05);
    background: var(--white);
}

.tip-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.tip-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tip-card p {
    font-style: italic;
    color: #666;
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--off-white);
    padding: 60px 0;
    text-align: center;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-top: 20px;
    color: var(--gold);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media (max-width: 900px) {
    .greetings-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .spin-container {
        width: 280px;
        height: 280px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 60px 0;
    }
}