:root {
    --gold: #d4af37;
    --gold-bright: #f9e29b;
    --dark: #050505;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default for custom cursor */
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dynamic Background */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.9)),
        url('bg_modern.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: bgScale 20s infinite alternate linear;
}

@keyframes bgScale {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Invitation Card */
.scene {
    perspective: 1000px;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    z-index: 10;
}

.invitation-card {
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    pointer-events: none;
}

/* Header */
.main-logo {
    max-width: 200px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.text-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Content */
.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Services Grid */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
    padding: 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 1.2rem;
    color: var(--gold);
}

.service-item span {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Form */
.modern-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.modern-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.modern-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 25px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

.modern-form button {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.modern-form button:hover {
    background: #fff;
    transform: translateX(3px);
}

/* Success Message */
.success-message {
    margin-top: 20px;
    color: var(--gold);
    font-size: 0.9rem;
}

.hidden { display: none; }

/* Footer */
footer {
    margin-top: 50px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

.copyright {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: revealIn 0.8s forwards ease-out;
}

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

.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.5s; }

/* Mobile Tweaks */
@media (max-width: 600px) {
    .invitation-card {
        padding: 40px 20px;
    }
    .modern-form {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        border: none;
        gap: 10px;
    }
    .modern-form input {
        background: rgba(255, 255, 255, 0.05);
        height: 55px;
        border-radius: 100px;
        border: 1px solid var(--glass-border);
    }
    .modern-form button {
        height: 55px;
        justify-content: center;
    }
}
