/* Ransite Invitation - Custom Stylesheet */

/* Custom Variables */
:root {
    --primary: #00236f;
    --primary-container: #1e3a8a;
    --secondary: #505f76;
    --background: #f7f9fb;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f4f6;
    --accent-silver: #e2e8f0;
    --ink-black: #0f172a;
}

/* Global Font Overrides for Elegance & Maximum Legibility */
body, p, span, button, a, input, select, textarea, .font-body-md, .font-body-lg, .font-label-md {
    font-family: 'Outfit', sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .font-headline-lg, .font-headline-md, .font-headline-sm, .font-display-lg, .brand-text {
    font-family: 'Cormorant Garamond', serif !important;
}

/* Enforce Icon Font Family */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}

/* Base custom behavior and scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--surface-container-low);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Infinite Marquee Scroll Animations */
@keyframes marquee-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.marquee-track-left {
    display: flex;
    width: max-content;
    animation: marquee-scroll-left 40s linear infinite;
}

.marquee-track-right {
    display: flex;
    width: max-content;
    animation: marquee-scroll-right 40s linear infinite;
}

/* Pause scroll on hover for interactive feel */
.marquee-container:hover .marquee-track-left,
.marquee-container:hover .marquee-track-right {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    width: 280px;
    margin: 0 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--accent-silver);
    background-color: var(--surface-container-lowest);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marquee-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 35, 111, 0.1), 0 10px 10px -5px rgba(0, 35, 111, 0.04);
    border-color: var(--primary-container);
}

/* Template Grid Animation */
.template-grid-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-Entrance Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 100ms;
}

.reveal-delay-200 {
    transition-delay: 200ms;
}

.reveal-delay-300 {
    transition-delay: 300ms;
}

/* Lightbox Modal Stylings */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: var(--surface-container-lowest);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

/* Micro-animations and hover effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn-hover-effect:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Glowing text effects */
.text-glow {
    text-shadow: 0 0 20px rgba(182, 196, 255, 0.4), 0 0 60px rgba(182, 196, 255, 0.15);
}

/* Premium tab line indicator */
.tab-active-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* Template Card Title - Use clean sans-serif instead of serif heading font */
.template-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

/* Hero Floating Animation */
@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}

/* Hero Ambient Glow Orbs */
.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    animation: orbPulse 8s ease-in-out infinite;
}

.hero-glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(182, 196, 255, 0.6), transparent 70%);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.hero-glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 140, 0.4), transparent 70%);
    bottom: 15%;
    right: -3%;
    animation-delay: 3s;
}

.hero-glow-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 225, 255, 0.5), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
}

@keyframes orbPulse {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(1.15);
    }
}

/* Hero editorial italic accent */
.hero-accent {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Hero CTA button pulse glow */
@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 0 4px 35px rgba(255, 255, 255, 0.35), 0 0 60px rgba(182, 196, 255, 0.15);
    }
}

.hero-btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}
