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

:root {
    --primary: #8B1A4A;
    --primary-rgb: 139, 26, 74;
    --primary-light: #C2185B;
    --gold: #C8962A;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #C8962A 50%, #AA7C11 100%);
    --gold-light: #E6C280;
    --cream: #FFF5EE;
    --blush: #FDF2F4;
    --white: #ffffff;
    --text-dark: #2D1B1E;
    --text-muted: #6A4F53;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(139, 26, 74, 0.15);
    --card-shadow: 0 10px 30px -10px rgba(139, 26, 74, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(253, 242, 244, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(230, 194, 128, 0.1) 0%, transparent 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Utilities */
h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.font-script {
    font-family: 'Dancing Script', cursive;
    color: var(--gold);
    font-size: 1.8rem;
}

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

/* Reusable Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 26, 74, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 74, 0.4);
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(200, 150, 42, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 42, 0.4);
    filter: brightness(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 245, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 32px;
    box-shadow: 0 8px 32px rgba(139, 26, 74, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 10px;
    background: rgba(255, 245, 238, 0.95);
    padding: 6px 24px;
    box-shadow: 0 10px 30px rgba(139, 26, 74, 0.12);
    border-color: rgba(139, 26, 74, 0.25);
}

/* Live pulsing button effect */
@keyframes live-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 26, 74, 0.5), 0 4px 15px rgba(139, 26, 74, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(139, 26, 74, 0), 0 6px 20px rgba(139, 26, 74, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 26, 74, 0), 0 4px 15px rgba(139, 26, 74, 0.3);
    }
}

.live-pulse-btn {
    animation: live-glow 2s infinite;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.live-pulse-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-100%, -100%) rotate(30deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(30deg);
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 62px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.nav-links-cta {
    display: none;
}

.nav-cta-mobile {
    display: none;
}

.nav-cta-desktop {
    display: inline-flex;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(139, 26, 74, 0.08);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(139, 26, 74, 0.15);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 27, 30, 0.45);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(139, 26, 74, 0.2);
    border-color: rgba(139, 26, 74, 0.3);
}

/* Section Common Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* Utility Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.pulsing {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Responsive Utilities */
@media (max-width: 992px) {
    .navbar {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 10px 16px;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: 0 2px 16px rgba(139, 26, 74, 0.1);
    }

    .navbar.scrolled {
        top: 0;
        padding: 8px 16px;
    }

    .nav-logo img {
        height: 45px;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 72px 24px 32px;
        background: var(--cream);
        border-left: 1px solid var(--glass-border);
        box-shadow: -8px 0 32px rgba(139, 26, 74, 0.12);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        border-bottom: 1px solid rgba(139, 26, 74, 0.08);
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        font-size: 1rem;
    }

    .nav-links-cta {
        display: block;
        border-bottom: none;
        margin-top: 16px;
        padding-top: 8px;
    }

    .nav-links-cta .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .nav-cta-mobile {
        display: inline-flex;
        padding: 8px 12px;
        font-size: 1rem;
        min-width: 40px;
        margin-left: auto;
    }

    .nav-cta-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: 8px;
    }

    .nav-overlay {
        display: block;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    section {
        padding: 48px 0;
    }

    .container {
        padding: 0 12px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 41px;
    }

    .navbar {
        padding: 8px 10px;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 10px;
    }

    .hero-section {
        padding-top: 58px;
        padding-bottom: 16px;
    }
}

/* Preloader Overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(139, 26, 74, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* GPU Hardware Acceleration to prevent scrolling lag */
.glass-card, .pricing-card, .event-card, .organizer-card {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}
