@import url("common.css");
@import url("animation.css");

/* 3D Effects and Enhanced Styling */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Great+Vibes&display=swap');

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Subtle photo enhancement to make portraits and gallery images pop */
.photo-enhance {
    filter: saturate(1.03) contrast(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
    border-radius: 0.75rem;
}

.photo-enhance:hover {
    transform: translateY(-6px) scale(1.02);
    filter: saturate(1.06) contrast(1.05);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}

/* Accessibility & readability improvements */
:root {
    --base-font-size: 18px;
    --text-color: #222222;
    --muted-color: #6c6c72;
    --accent: #b66d52; /* warm rose/gold */
    --accent-2: #f2d9c8; /* soft background accent */
}

/* Dark theme variable overrides to ensure readable text */
html[data-bs-theme="dark"] {
    --text-color: #f3efe9; /* light warm text */
    --muted-color: #cfc9c3;
    --accent: #e8b79f;
    --accent-2: #2b2b2b;
}

html {
    font-size: var(--base-font-size);
}

body {
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem; /* equals --base-font-size */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure generic text elements inherit readable color in dark theme */
html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] p,
html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] label,
html[data-bs-theme="dark"] small,
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .nav-link {
    color: var(--text-color) !important;
}

/* Buttons accent in dark */
html[data-bs-theme="dark"] .btn-outline-auto {
    --bs-btn-color: var(--accent);
    --bs-btn-border-color: var(--accent);
}

/* Headings scaling for improved legibility */
p, li, label, .small { font-size: 1rem; }
/* Headings style */
h1 { font-size: 2.6rem; line-height: 1.08; margin-bottom:0.5rem; color: var(--text-color); }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom:0.4rem; color: var(--text-color); }
h3 { font-size: 1.25rem; color: var(--text-color); }
p, li, label, .small { font-size: 1rem; color: var(--text-color); }

/* Decorative heading font */
.font-esthetic {
    font-family: 'Playfair Display', 'Georgia', serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    color: var(--text-color);
}
p, li, label, .small { font-size: 1rem; }

/* Form elements and nav readability */
.form-control, .form-select, .btn { font-size: 1rem; }

/* Make carousel captions and small text a bit larger */
.carousel .carousel-caption, .text-secondary, small { font-size: 0.98rem; color: var(--muted-color); }

/* Slightly larger profile images on small screens for readability */
@media screen and (max-width: 576px) {
    .img-center-crop { width: 14rem; height: 14rem; }
}

/* 3D Effects and Enhanced Animations */
.wedding-card {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.wedding-card:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2);
}

.heart-float {
    animation: heartFloat 3s ease-in-out infinite;
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

.sparkle {
    position: relative;
    overflow: hidden;
}

.sparkle::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.romantic-glow {
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-elements {
    position: relative;
}

.floating-elements::after {
    content: '💕';
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 1.5rem;
    animation: floatAround 8s ease-in-out infinite;
}

.floating-elements::before {
    content: '🌸';
    position: absolute;
    bottom: 10%;
    left: 10%;
    font-size: 1.2rem;
    animation: floatAround 6s ease-in-out infinite reverse;
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-15px) translateX(10px) rotate(90deg); }
    50% { transform: translateY(-30px) translateX(0px) rotate(180deg); }
    75% { transform: translateY(-15px) translateX(-10px) rotate(270deg); }
}

.enhanced-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enhanced-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.enhanced-button:hover::before {
    left: 100%;
}

.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.hero-text {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

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

.profile-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.profile-3d:hover {
    transform: rotateY(15deg) rotateX(10deg) scale(1.05);
}

.wedding-date-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.wedding-date-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

.countdown-number {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-3d {
    perspective: 1000px;
}

.gallery-item {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.02);
}

.event-schedule-card {
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.95), rgba(255, 243, 247, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
    border-radius: 32px;
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.event-schedule-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 30%),
                radial-gradient(circle at bottom right, rgba(255, 215, 245, 0.22), transparent 40%);
    pointer-events: none;
}

.schedule-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    overflow: hidden;
    transform-style: preserve-3d;
}

.schedule-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 25%),
                radial-gradient(circle at bottom right, rgba(255, 220, 245, 0.25), transparent 35%);
    pointer-events: none;
}

.schedule-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
    border-radius: 0 0 24px 24px;
}

.schedule-card:hover {
    transform: translateY(-14px) rotateX(3deg) rotateY(1deg) scale(1.02);
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.18);
}

.schedule-card h4 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.schedule-card p {
    position: relative;
    z-index: 2;
}

.wedding-date-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 255, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.14);
}

.wedding-date-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.16), transparent 35%);
    pointer-events: none;
}

.verse-card {
    background: linear-gradient(135deg, rgba(255, 228, 196, 0.8), rgba(255, 182, 193, 0.8));
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.verse-card::after {
    content: '📖';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.7;
}

.story-card {
    background: linear-gradient(135deg, rgba(176, 224, 230, 0.8), rgba(255, 218, 185, 0.8));
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.story-card::after {
    content: '💫';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.7;
}

.footer-signature {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced mobile responsiveness */
@media screen and (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .wedding-card {
        transform: none;
    }

    .wedding-card:hover {
        transform: scale(1.01);
    }
}

/* Particle Effects */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: floatingHearts 12s ease-in-out infinite;
}

/* Enhanced Glass Effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.rainbow-border {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    padding: 2px;
    border-radius: 25px;
}

.rainbow-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 23px;
}

/* Interactive Elements */
.interactive-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-hover:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pulse-on-hover:hover {
    animation: glowPulse 1s ease-in-out infinite;
}

/* Decorative Elements */
.decorative-flower {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: floatingHearts 15s ease-in-out infinite;
}

.decorative-star {
    position: absolute;
    font-size: 1.5rem;
    color: #ffd700;
    animation: sparkle3D 3s ease-in-out infinite;
}

/* Parallax Effect */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateZ(-1px) scale(2);
    z-index: -1;
}

/* Enhanced Typography */
.hero-title-enhanced {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Loading Animation Enhancement */
.loading-spinner {
    animation: morphingShape 2s ease-in-out infinite;
}

/* GIF floating animation removed */