/* Premium Custom Animations & Styles : ELITE LIGHT THEME */

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

:root {
    --gold-primary: #b89757;
    --gold-dark: #a38240;
    --gold-light: #d4af37;
    --dark-bg: #0a0a0a;
    --dark-surface: #121212;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
}

.font-serif {
    font-family: 'Playfair Display', serif !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Core Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes floatElement {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatSubtle {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

@keyframes panImage {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Scroll Reveals */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Image Pan */
.pan-image-container {
    overflow: hidden;
}

.pan-image-container img {
    animation: panImage 25s linear infinite alternate;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-dark {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Premium Text & Accents */
.accent-gold-text {
    background: linear-gradient(90deg, var(--gold-light), var(--gold-dark), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shineText 5s infinite linear;
    display: inline-block;
}

.text-gradient-dark {
    background: linear-gradient(135deg, #111, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

/* Theme Dark Sections */
.theme-dark-section {
    background-color: var(--dark-bg);
    color: #f1f1f1;
    position: relative;
}

.theme-dark-section .text-foreground {
    color: #ffffff !important;
}

.theme-dark-section .text-muted-foreground {
    color: #a1a1aa !important;
}

.theme-dark-section .bg-surface {
    background-color: var(--dark-surface) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.theme-dark-section .bg-card {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.theme-dark-section .border-border,
.theme-dark-section .border-border\/60 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Elite Light Cards (Refined) */
.card-elite {
    background-color: #ffffff !important;
    color: #111827 !important;
    --foreground: 222 47% 11%;
    --muted-foreground: 215 16% 47%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.theme-dark-section .card-elite .text-foreground,
.card-elite .text-foreground {
    color: #111827 !important;
}

.theme-dark-section .card-elite .text-muted-foreground,
.card-elite .text-muted-foreground {
    color: #4b5563 !important;
}
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.card-elite::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-elite:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.card-elite::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.card-elite:hover::after {
    transform: scaleX(1);
}

.icon-wrapper-elite {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(184, 151, 87, 0.1), rgba(184, 151, 87, 0.05));
    border: 1px solid rgba(184, 151, 87, 0.2);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.card-elite:hover .icon-wrapper-elite {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: #fff;
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 10px 20px rgba(184, 151, 87, 0.3);
}

/* Premium Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: none;
    z-index: -1;
}

.btn-premium:hover::before {
    animation: sweepShine 0.75s forwards;
}

@keyframes sweepShine {
    100% {
        left: 200%;
    }
}

.btn-premium.gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(184, 151, 87, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-premium.gold:hover {
    box-shadow: 0 12px 25px rgba(184, 151, 87, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-premium.outline {
    background-color: transparent;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.btn-premium.outline:hover {
    border-color: var(--gold-primary);
    background-color: rgba(184, 151, 87, 0.05);
    color: var(--gold-dark);
    transform: translateY(-3px);
}

.btn-premium.outline-hero {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-premium.outline-hero:hover {
    background-color: #fff;
    color: #111;
    border-color: #fff;
    transform: translateY(-3px);
}

/* Image float and elegant wrapper */
.premium-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateZ(0);
}

.premium-image-wrapper.float-slow {
    animation: floatElement 8s ease-in-out infinite;
}

.premium-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    pointer-events: none;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.approved {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.pending {
    background-color: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.status-badge.gold {
    background-color: rgba(184, 151, 87, 0.1);
    color: var(--gold-dark);
    border: 1px solid rgba(184, 151, 87, 0.2);
}

/* Data Rows */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.theme-dark-section .data-row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.data-row:hover {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    border-bottom-color: transparent;
}

.theme-dark-section .data-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Removing Lovable Badge via CSS just in case */
#lovable-badge {
    display: none !important;
}

/* Page Headers Global */
.page-header {
    position: relative;
    padding: 8rem 0 4rem 0;
    background-color: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(#d4af37 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

/* Custom Checkmark List */
.list-premium li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.list-premium li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: 700;
}

/* Decorative Divider */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    margin: 1.5rem 0;
}

/* Layout Utilities Fallbacks */
.gap-y-20 { row-gap: 5rem !important; }
.gap-y-24 { row-gap: 6rem !important; }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem;
    color: #262626;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #262626;
}

.mobile-menu-nav a {
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.text-accent {
    color: var(--gold-primary) !important;
}