:root {
    --color-primary: #D4AF37; /* Gold */
    --color-primary-light: #F3E5AB;
    --color-bg-dark: #0A0F1D;
    --color-text: #EAEAEA;
    --color-text-muted: #A0A5B5;
    
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    overflow-x: hidden;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('./assets/bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.1s ease-out;
}

.background-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.9) 0%, rgba(10, 15, 29, 0.6) 100%);
}

/* Layout Elements */
main {
    position: relative;
    z-index: 1;
}

.max-width-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-primary-light);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

/* Hero Section */
.invitation-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.invitation-wrapper {
    width: 100%;
    max-width: 500px;
    perspective: 1000px;
}

/* Glass Panels */
.glass-card, .glass-panel {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: cardAppear 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.glass-panel {
    padding: 4rem 3rem;
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

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

/* Decorative Elements */
.decor {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid var(--color-primary);
    opacity: 0.5;
}

.decor.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.decor.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    margin-top: 2rem;
    text-align: center;
    color: var(--color-primary);
    opacity: 0;
    animation: fadeIn 1s 2s ease forwards, bounce 2s infinite 3s;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.scroll-indicator .arrow {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Typography & Hero specifics */
.subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s 0.5s ease forwards;
}

.title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-primary-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s 0.7s ease forwards;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
    margin: 0 auto;
    opacity: 0;
    animation: expandY 1s 1s ease forwards;
}

.details-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s 1.2s ease forwards;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 300;
}

.detail-item .icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

/* QR Section */
.qr-section {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s 1.4s ease forwards;
}

.qr-code-placeholder {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.qr-code-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: var(--color-primary);
}

.qr-code-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.qr-code-placeholder:hover::before {
    opacity: 1;
}

.qr-inner {
    width: 100%;
    height: 100%;
    color: var(--color-primary-light);
    opacity: 0.8;
}

.qr-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.info-box {
    text-align: center;
}

.info-box .box-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.info-box p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.highlight-text {
    color: var(--color-primary-light) !important;
    font-weight: 500 !important;
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
}

.program-list {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.program-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 1.5rem;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list span {
    color: var(--color-primary);
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 29, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary-light);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    position: relative;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary-light);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 3rem;
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    outline: none;
    display: inline-block;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: 0;
}

.btn-primary:hover {
    color: var(--color-bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover .btn-glow {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes expandY {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .invitation-wrapper { padding: 1rem; }
    .glass-card { padding: 2.5rem 1.5rem; }
    .title { font-size: 2.8rem; }
}

/* Form Styles */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group select option {
    background: var(--color-bg-dark);
    color: var(--color-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}
