/* ===================================================
   MODERN CEMETERY WEBSITE - PREMIUM DESIGN SYSTEM
   ================================================== */

:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --accent-gradient: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
    --dark-bg: #0f0f0f;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-color: #e0e0e0;
    --gold: #d4af37;
    --success: #27ae60;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-family-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-serif: 'Georgia', serif;
    
    /* Transitions & Animations */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
    
    /* Shadow Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===================================================
   GLOBAL STYLES
   ================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family-main);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================================
   NAVIGATION BAR - MODERN GLASSMORPHISM
   ================================================== */

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2c3e50 !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.brand-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    transform: rotate(0deg);
}

.navbar-brand:hover .brand-icon-wrap {
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease-out;
}

.nav-link:hover {
    color: #8e44ad !important;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-gradient);
    border: none;
    color: white !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(142, 68, 173, 0.4);
}

/* ===================================================
   HERO SECTION - EPIC LANDING EXPERIENCE
   ================================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 50%, #eff2f5 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(142, 68, 173, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.08) 0%, transparent 50%);
    animation: drift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out 0.1s both;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-actions {
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.hero-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white !important;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(142, 68, 173, 0.4);
}

.btn-outline-secondary {
    border: 2px solid var(--text-dark);
    color: var(--text-dark) !important;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--text-dark);
    color: white !important;
    transform: translateY(-3px);
}

/* Hero Stats Card */
.hero-stats-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    animation: slideInRight 0.8s ease-out 0.2s both;
    perspective: 1000px;
}

.hero-stat {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-gradient);
    transition: var(--transition-smooth);
    transform: translateY(0);
}

.hero-stat:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hero-stat .label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8e44ad;
    margin-bottom: 0.5rem;
}

.hero-stat .value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hero-stat .hint {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===================================================
   PARALLAX SECTIONS
   ================================================== */

.parallax-layer {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform;
    z-index: -1;
}

/* ===================================================
   MAP SECTION - 3D INTERACTIVE
   ================================================== */

.map-3d-section {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--light-bg), white);
    margin-top: 2rem;
}

.map-3d-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 600px;
    animation: fadeInUp 0.8s ease-out;
}

#map3d {
    width: 100%;
    height: 100%;
}

.map-3d-overlay {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.map-3d-overlay i {
    font-size: 2rem;
    color: #8e44ad;
}

.map-3d-overlay .title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.map-3d-overlay .subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

.map-legend-3d {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 100;
    max-width: 280px;
    animation: slideInRight 0.6s ease-out 0.3s both;
}

.legend-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legend-list {
    list-style: none;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.legend-item:hover {
    background: rgba(142, 68, 173, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.dot-central { background: #3498db; }
.dot-church { background: #e74c3c; }
.dot-memorial { background: #f39c12; }
.dot-special { background: #9b59b6; }
.dot-chapel { background: #1abc9c; }
.dot-hospital { background: #e67e22; }
.dot-children { background: #c0392b; }

.legend-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legend-text .name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.legend-text .desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===================================================
   HISTORY SECTION - ENHANCED LAYOUT
   ================================================== */

.history-section {
    padding: var(--spacing-2xl) 0;
    background: white;
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.history-header {
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.history-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideInLeft 0.8s ease-out;
}

.history-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.history-image:hover img {
    transform: scale(1.05);
}

.history-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.history-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.history-body {
    position: relative;
    z-index: 1;
}

.history-text {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gradient);
    animation: slideInLeft 0.8s ease-out 0.1s both;
}

.history-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

.history-text p:last-child {
    margin-bottom: 0;
}

.history-text strong {
    color: #8e44ad;
    font-weight: 700;
}

.history-aside {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.8s ease-out 0.1s both;
    position: sticky;
    top: 120px;
}

.history-aside-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-aside-title i {
    color: #8e44ad;
}

.history-aside-list li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.history-aside-list li:last-child {
    border-bottom: none;
}

.history-aside-list .label {
    font-weight: 700;
    color: #8e44ad;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-aside-list .value {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ===================================================
   CELEBRITIES SECTION - CARD GRID
   ================================================== */

.celebrities-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, white 0%, var(--light-bg) 100%);
    position: relative;
}

.celebrities-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(circle at 50% 0%, rgba(142, 68, 173, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.celebrities-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.celebrities-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.celebrities-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.celebrities-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.celebrities-card img,
.celebrities-card .mb-2 {
    width: 100%;
    height: 220px;
    object-fit: cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
    transition: var(--transition-smooth);
}

.celebrities-card:hover img,
.celebrities-card:hover .mb-2 {
    transform: scale(1.08);
}

.celebrities-card button {
    padding: 0;
    width: 100%;
    display: block;
}

.celebrities-card button img {
    width: 100%;
    margin: 0;
}

.celebrities-caption {
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================
   CHURCH SECTION & PERSON INFO
   ================================================== */

.person-info-block {
    padding: var(--spacing-2xl) 0;
    background: white;
    position: relative;
}

.breadcrumb-links {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.6s ease-out;
}

.breadcrumb-link {
    color: #8e44ad;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: #3498db;
    text-decoration: underline;
}

.divider {
    color: var(--border-color);
}

.person-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.2;
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.person-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.person-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 120px;
}

.person-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.person-image:hover img {
    transform: scale(1.05);
}

.person-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gradient);
}

.bio-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.bio-text:last-child {
    margin-bottom: 0;
}

.bio-text strong {
    color: #8e44ad;
    font-weight: 700;
}

/* ===================================================
   FOOTER
   ================================================== */

.separator-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    margin: 2rem 0;
}

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 150%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(142, 68, 173, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-box {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.footer-box h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-box p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.footer-box a {
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.footer-box a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-box .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease-out;
}

.footer-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--text-dark);
    transform: translateY(-4px);
}

/* ===================================================
   MEMORIAL OVERLAY - SLIDE-OUT PANEL
   ================================================== */

.memorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 1rem;
}

.memorial-overlay.open {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.memorial-dialog {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.memorial-overlay:not(.open) .memorial-dialog {
    animation: slideOutScale 0.3s ease-out forwards;
}

.memorial-close {
    position: sticky;
    top: 0;
    right: 1rem;
    z-index: 100;
    background: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #8e44ad;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    float: right;
}

.memorial-close:hover {
    transform: rotate(90deg);
    color: #e74c3c;
}

.Memorial-info-block {
    padding: 2rem;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.Memorial-content {
    display: grid;
    gap: 2rem;
}

.secondary-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.Memorial-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.Memorial-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.Memorial-image:hover img {
    transform: scale(1.08);
}

.Memorial-details {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gradient);
}

/* ===================================================
   MODALS - BOOTSTRAP OVERRIDE
   ================================================== */

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-dark);
}

.btn-close {
    color: #8e44ad;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    opacity: 1;
    color: #e74c3c;
}

/* ===================================================
   ANIMATIONS
   ================================================== */

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

/* ===================================================
   PARALLAX EFFECT - JAVASCRIPT POWERED
   ================================================== */

.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

/* ===================================================
   RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .person-content,
    .history-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .history-aside {
        position: static;
        top: auto;
    }

    .secondary-images {
        grid-template-columns: 1fr;
    }

    .map-3d-wrapper {
        height: 400px;
    }

    .celebrities-section {
        padding: 2rem 0;
    }

    .footer-box {
        margin-bottom: 1.5rem;
    }

    .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .map-3d-overlay,
    .map-legend-3d {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .celebrities-card button img,
    .celebrities-card .mb-2 {
        height: 180px;
    }

    .main-image img {
        height: 250px;
    }
}

/* ===================================================
   UTILITY CLASSES
   ================================================== */

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: var(--transition-smooth);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* ===================================================
   SCROLLBAR STYLING
   ================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: #8e44ad;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c2e81;
}

/* ===================================================
   LOADING & TRANSITIONS
   ================================================== */

body.loading {
    pointer-events: none;
}

body.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}
