:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f8f9fa;
    --text-secondary: #a0a0ab;
    --accent-primary: #EE3124; /* Match the logo's red */
    --accent-secondary: #B31B15; /* Darker red for gradients */
    --error: #FF3366;
    --success: #00E676;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 180px; /* Increased from 120px */
    width: auto;
    display: block;
    max-width: 100%;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 100px; /* Shrinks slightly when scrolled */
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.6rem; /* Reduced padding from 0.8rem 2rem */
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem; /* slightly smaller font */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(238, 49, 36, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 49, 36, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(-45deg, #EE3124, #000080, #7000FF);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite, diveInHero 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: center center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.6) 50%, rgba(5,5,5,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeUp 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: float 2s infinite ease-in-out;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

/* Details Section */
.details-section {
    padding: 8rem 0;
    position: relative;
    background: radial-gradient(circle at top right, rgba(238, 49, 36, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(179, 27, 21, 0.1), transparent 40%);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

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

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cards-grid .glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(238, 49, 36, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sub-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* RSVP Section */
.rsvp-section {
    padding: 6rem 0 10rem;
    position: relative;
}

.rsvp-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* Geometric decoration for card */
.rsvp-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--accent-secondary);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.rsvp-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: var(--accent-primary);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.rsvp-content {
    position: relative;
    z-index: 1;
}

.rsvp-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -3rem;
    margin-bottom: 3rem;
}

/* Form Styles */
.rsvp-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(238, 49, 36, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem; /* Reduced from 1.2rem */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Success Message */
.message-box {
    text-align: center;
    padding: 3rem 0;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.message-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--success);
}

.hidden {
    display: none !important;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 2rem 0;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes diveInHero {
    0% {
        transform: scale(1.3);
        filter: blur(15px);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        gap: 1rem;
    }

    .logo-img {
        height: 120px; /* Adjusted for mobile */
    }

    .navbar.scrolled .logo-img {
        height: 80px;
    }

    .btn-nav {
        padding: 0.5rem 1rem; /* Smaller button for mobile nav */
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn-primary, .hero-cta .btn-secondary {
        text-align: center;
        width: 100%;
    }
    
    .rsvp-container {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
