/* 
    Mat7afi Design System 
    Colors: Navy, Brown, Cream
*/

:root {
    --navy: #0A192F;
    --navy-dark: #060D1A;
    --navy-light: #172A45;
    --brown: #5B3A1B;
    --brown-light: #8B5E34;
    --cream: #FFFDD0;
    --cream-dark: #E6E4B8;
    --accent: #D97706; /* Golden Bronze */
    --white: #ffffff;
    --text-cream: #FFFDD0;
    --text-navy: #0A192F;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Removed English Font Settings to keep layout stable across all languages */
    html[lang="en"] .brand-text .en-name { display: block !important; }
    
    html[lang="fr"] .brand-text .en-name { display: block !important; }
    
    /* Mobile App Design Tokens */
    --mobile-bg: #F8F9FA;
    --mobile-card: #FEFCE8;
    --mobile-text: #422006;
    --mobile-divider: rgba(66, 32, 6, 0.1);
}

/* Background Utilities */
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }
.bg-brown-gradient { background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%) !important; }


.text-accent { color: var(--accent) !important; }
.text-cream { color: var(--cream) !important; }

/* Performance Optimization */
section:not(#home) {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}
.museum-card, .btn-premium, .btn-download, .item-btn, .store-link img {
    will-change: transform;
}
.text-navy { color: var(--navy) !important; }

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

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}


body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--navy);
    color: var(--text-cream);
    line-height: 1.6;
    text-rendering: optimizeSpeed;
    animation: fadeInPage 0.4s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, h5, .en-name {
    font-family: 'Outfit', 'Cairo', sans-serif;
}

.fw-black { font-weight: 900; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--brown);
    border-radius: 10px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    z-index: 1000;
}

/* Dropdown Custom Styles - Premium Look */
.dropdown-menu {
    background: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(217, 119, 6, 0.2) !important;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    min-width: 180px;
    margin-top: 15px !important;
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item {
    color: var(--cream) !important;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item.active, .dropdown-item:active {
    background: linear-gradient(135deg, var(--accent), var(--brown-light)) !important;
    color: var(--navy-dark) !important;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
}

.dropdown-item:hover:not(.active) {
    background-color: rgba(217, 119, 6, 0.15) !important;
    color: var(--accent) !important;
    transform: scale(1.02);
}

.dropdown-item::before {
    content: '\f0ac';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.dropdown-item:hover::before, .dropdown-item.active::before {
    opacity: 1;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar.scrolled {
    background: #0A192F !important;
    backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 253, 208, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-logo {
    height: 48px;
    width: 48px;
    object-fit: contain;
    background: #ffffff !important;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1.5px solid var(--accent);
    margin-left: 12px;
    display: inline-block;
    transition: var(--transition);
}

.footer-logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    background: #ffffff !important;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1.5px solid var(--accent);
    margin-bottom: 20px;
}


.navbar-toggler {
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .navbar {
        background: var(--navy-dark) !important;
        padding: 12px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    .navbar-collapse {
        background: rgba(10, 25, 47, 0.98); /* Navy with transparency */
        backdrop-filter: blur(10px);
        margin-top: 15px;
        padding: 30px;
        border-radius: 20px;
        border: 1px solid rgba(255, 253, 208, 0.2);
        box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    }
    
    .nav-link {
        margin: 15px 0;
        text-align: center;
        font-size: 1.1rem;
    }

    .btn-download {
        display: block;
        text-align: center;
        margin: 10px auto;
        width: 100%;
        max-width: 250px;
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.en-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cream);
    letter-spacing: 1px;
}

.ar-name {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.nav-link {
    color: var(--cream) !important;
    font-weight: 600;
    margin: 0 15px;
    position: relative;
    opacity: 0.8;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-download {
    background: var(--brown);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-download:hover {
    background: transparent;
    border-color: var(--brown);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(91, 58, 27, 0.3);
}

.btn-download-mobile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream) !important;
    padding: 6px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}

@media (max-width: 575px) {
    .btn-download-mobile {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        padding: 0;
    }
}

.btn-download-mobile:hover {
    background: rgba(217, 119, 6, 0.2);
    border-color: var(--accent);
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('../assets/Cover.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 8vh; /* Added to push the vertically centered content up */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-dark) 20%, rgba(10, 25, 47, 0.8) 100%);
}

.hero-brand-typography {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 0 auto 2rem auto; /* Centers the block horizontally on mobile */
    max-width: 100%;
}

@media (min-width: 992px) {
    .hero-brand-typography {
        margin-inline-start: 0;
        margin-inline-end: auto;
    }
}

.mat7afi-spaced {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 0.8rem;
    color: var(--cream);
    margin-right: -0.8rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.mat7afi-slogan {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.8rem;
    white-space: nowrap;
}

.slogan-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.slogan-divider .line {
    height: 1.5px;
    width: 60px;
    background-color: var(--brown-light);
}

.slogan-divider .pharaonic-eye {
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(217, 119, 6, 0.5));
    transform: scale(1.1);
}

.futuristic-badge {
    display: flex;
    width: fit-content;
    margin: 0 auto 1.5rem auto; /* Center perfectly on mobile */
    align-items: center;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    gap: 10px;
}

@media (min-width: 992px) {
    .futuristic-badge {
        margin-inline-start: 0;
        margin-inline-end: auto;
    }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

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

.gradient-text {
    background: linear-gradient(to left, var(--accent), var(--brown-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cream-50 {
    color: rgba(255, 253, 208, 0.7);
}

.btn-premium {
    background: linear-gradient(to right, var(--brown), var(--brown-light));
    color: var(--white);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    border: none;
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.btn-outline-premium {
    border: 2px solid var(--cream);
    color: var(--cream);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

.btn-outline-premium:hover {
    background: var(--cream);
    color: var(--navy);
}

.hero-mockup-wrapper {
    position: relative;
    z-index: 1;
}

.hero-mockup {
    max-width: 250px;
    margin-top: 50px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8));
    animation: floating 6s ease-in-out infinite;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

.hero-logo-mockup {
    max-width: 350px;
    filter: drop-shadow(0 0 50px rgba(217, 119, 6, 0.4));
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(217, 119, 6, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 60px rgba(217, 119, 6, 0.6)); transform: scale(1.05); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* Museums Section */
.bg-navy-dark {
    background-color: var(--navy-dark) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.text-cream {
    color: var(--cream) !important;
}

.section-heading {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cream);
}

.section-subheading {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
}

.heading-underline {
    width: 80px;
    height: 4px;
    background: var(--brown);
    margin: 20px auto;
}

.museum-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    min-height: 420px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.museum-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.card-img-wrap {
    position: relative;
    height: 210px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Mobile-style overlays */
.card-grey-overlay {
    position: absolute;
    inset: 0;
    background: rgba(217, 217, 217, 0.4); /* Color(0x66D9D9D9) */
    z-index: 1;
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

.card-content {
    position: relative;
    padding: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.card-content h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    text-align: start;
}

.museum-category {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.learn-more {
    color: var(--accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: var(--transition);
}

.learn-more:hover {
    color: var(--cream);
    gap: 15px;
}

/* Features Section */
.bg-cream {
    background-color: var(--cream);
    color: var(--navy);
}

.text-navy {
    color: var(--navy);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--navy);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 15px;
    margin-left: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 10px;
}

/* AI Box */
.bg-brown-gradient {
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
}

.ai-box {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 253, 208, 0.1);
}

.ai-icon-large {
    font-size: 4rem;
    opacity: 0.8;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 20px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.95rem;
}

.system-msg {
    background: var(--navy);
    color: var(--cream);
    align-self: flex-start;
    border-bottom-right-radius: 0;
}

.user-msg {
    background: var(--brown);
    color: var(--white);
    align-self: flex-end;
    border-bottom-left-radius: 0;
}

.chat-input-wrap {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-send {
    width: 50px;
    height: 50px;
    background: var(--brown);
    color: white;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-send:hover {
    background: var(--navy);
    transform: scale(1.05);
}

/* CTA Card */
.bg-navy-gradient {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.cta-card {
    border: 1px solid rgba(255, 253, 208, 0.1);
}

.store-link img {
    height: 60px;
    transition: var(--transition);
}

.store-link:hover img {
    transform: translateY(-5px);
}

/* Footer */
.footer-logo {
    height: 70px;
}

.footer-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 253, 208, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 200px; /* Uniform width for professional look */
}

.footer-links a:hover {
    color: var(--white);
    background: var(--brown);
    border-color: var(--brown-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.footer-credit {
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-credit-list li {
    margin-bottom: 0.25rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 253, 208, 0.1);
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--navy);
    transform: translateY(-5px);
}

/* Museums Section */
#museums {
    background-color: #FEFCE8 !important;
}
#museums .section-heading {
    color: var(--navy-dark) !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 900 !important;
    font-size: 48px !important;
}
#museums .section-subheading {
    color: rgba(10, 25, 47, 0.7) !important; /* Muted navy for subtitle */
    font-family: 'Cairo', sans-serif !important;
    font-weight: 400 !important;
    font-size: 20px !important;
}

/* Gallery Section */
.gallery-item {
    background: rgba(10, 25, 47, 0.5); /* Navy with some transparency for glass effect */
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: var(--transition);
    border: 1px solid rgba(217, 119, 6, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    border-color: var(--accent);
    background: rgba(10, 25, 47, 0.8);
}

.gallery-img {
    width: 100%;
    border-radius: 15px;
    object-fit: contain;
}

/* Coming Soon & Disabled Styles */
.bg-brown {
    background-color: var(--brown) !important;
}

.disabled-link {
    cursor: not-allowed;
    opacity: 0.6;
    filter: grayscale(1);
    pointer-events: none;
}

.store-link-wrapper {
    display: inline-block;
}

.coming-soon-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-heading { font-size: 2.8rem; }
    .display-2 { font-size: 3.5rem; }
}

@media (max-width: 991px) {
    .section-heading { font-size: 2.4rem; }
    .display-2 { font-size: 3rem; }
    .hero-mockup { max-width: 220px; }
    .reset-card { padding: 30px 20px; }
}

@media (max-width: 767px) {
    .navbar { padding: 10px 0; }
    .nav-logo { height: 45px; width: 45px; margin-left: 10px; }
    .en-name { font-size: 1.1rem; }
    .ar-name { font-size: 0.75rem; }
    
    .section-heading { font-size: 2rem; }
    .display-2 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 1rem !important; }
    .hero-section { padding-top: 100px; text-align: center; }
    .hero-mockup { max-width: 180px; margin: 20px auto; }
    
    .mat7afi-spaced { font-size: 1.5rem; letter-spacing: 0.5rem; margin-right: -0.5rem; }
    .mat7afi-slogan { font-size: 0.95rem; }
    .slogan-divider .pharaonic-eye { font-size: 1.6rem; }
    .slogan-divider .line { width: 30px; }
    
    .lead { font-size: 1.05rem; line-height: 1.8; padding: 0 10px; margin-bottom: 2rem !important; }
    
    .btn-premium, .btn-outline-premium { 
        padding: 12px 25px; 
        font-size: 0.95rem; 
        width: 100%; 
        justify-content: center;
    }
    .feature-item { text-align: start; }
    .reset-section { padding: 100px 15px; }

    /* Fixed buttons on artifact page */
    .btn-back { top: 15px; right: 15px; width: 40px; height: 40px; }
    .btn-home { top: 15px; right: 65px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .display-2 { font-size: 2rem; }
    .section-heading { font-size: 1.8rem; }
    .brand-text { display: none; } /* Hide text logo on very small screens to save space */
    
    .feature-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .ai-box .p-5 { padding: 30px !important; }
}

/* Fix for any potential overflow on small screens */
img {
    max-width: 100%;
    height: auto;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

.container {
    padding-right: 20px;
    padding-left: 20px;
}

/* Enhanced Responsiveness */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 25, 47, 0.98); /* Match Navy theme */
        border: 1px solid rgba(217, 119, 6, 0.2);
    }
    .section-heading { font-size: 2.5rem; }
    .hero-section { text-align: center; }
    .hero-mockup { max-width: 200px; margin: 40px auto; }
}

@media (max-width: 767px) {
    .section-heading { font-size: 2rem; }
    .section-subheading { font-size: 0.9rem; letter-spacing: 1px; }
    .display-2 { font-size: 2.2rem; }
    .hero-section { padding-top: 80px; }
    
    .museum-card { margin-bottom: 10px; }
    .card-content { padding: 20px; }
    
    .artifact-header { min-height: 250px; padding: 20px 0; }
    .artifact-header-img { width: 95%; }
    .artifact-content-wrap { margin-top: -30px; }
    
    .feature-item { text-align: start; }
    .feature-icon { margin-left: 15px; width: 45px; height: 45px; font-size: 1.2rem; }
    
    .ai-box .p-5 { padding: 25px !important; }
}

@media (max-width: 576px) {
    html { scroll-behavior: auto !important; }
    
    .display-2 { font-size: 1.8rem; }
    .section-heading { font-size: 1.7rem; }
    .btn-premium, .btn-outline-premium { padding: 12px 20px; font-size: 0.9rem; }
    
    .artifact-card { height: 300px; }
    .artifact-card-img { height: 150px; }
    .artifact-card-title { font-size: 0.95rem; }
    .artifact-card-body { padding: 10px; }
    
    .mobile-info-card { padding: 15px; border-radius: 15px; }
    .mobile-icon-circle { width: 35px; height: 35px; margin-left: 10px; }
    
    .audio-card { padding: 15px; gap: 10px; }
    .mobile-play-btn { width: 50px; height: 50px; font-size: 1.5rem; }
}
/* Reset Password Page */
.reset-section {
    min-vh: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
}

.reset-card {
    background: var(--navy-light);
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 253, 208, 0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    text-align: center;
}

.reset-card h2 {
    color: var(--cream);
    margin-bottom: 30px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 20px;
    text-align: start;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 600;
}

.form-control-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 253, 208, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--white);
    transition: var(--transition);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

#access-denied {
    display: none;
}

.status-msg {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-weight: 600;
}

.status-success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 253, 208, 0.15);
    padding: 15px 50px 15px 20px;
    border-radius: 50px;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.15);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
}


.timer-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-box {
    background: rgba(217, 119, 6, 0.05);
    border: 1px solid rgba(217, 119, 6, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.timer-box i {
    font-size: 1.2rem;
}

.timer-low {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    color: #f87171;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(248, 113, 113, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}


/* Skeleton Loading */
.skeleton {
    background: #e2e8f0;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

.skeleton-card {
    height: 300px;
    border-radius: 20px;
}

/* Artifact Details Page (Mobile Design) */
.artifact-page-body {
    background-color: var(--mobile-bg) !important;
    color: var(--mobile-text);
}

.artifact-header {
    min-height: 300px;
    height: auto;
    position: relative;
    overflow: visible;
    background-color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.artifact-header-img {
    max-width: 600px;
    width: 90%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin: 20px auto;
    display: block;
}

.artifact-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--mobile-bg), transparent);
}

.artifact-content-wrap {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    padding-bottom: 100px;
}

.section-title-mobile {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mobile-text);
    margin-bottom: 15px;
    text-align: right;
}

.mobile-info-card {
    background: var(--mobile-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.mobile-info-row {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
    border-bottom: 1px solid var(--mobile-divider);
}

.mobile-info-row:last-child {
    border-bottom: none;
}

.mobile-icon-circle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-left: 15px;
    color: var(--mobile-text);
}

.mobile-info-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 10px;
}

.mobile-info-value {
    color: #666;
    font-size: 0.85rem;
    flex-grow: 1;
}

.description-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--mobile-divider);
    line-height: 2;
    font-size: 0.95rem;
    color: #444;
}

.audio-card {
    background: var(--mobile-card);
    border-radius: 20px;
    padding: 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    direction: ltr; /* Play button on the left for audio standard */
}

.audio-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-waveform-container {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.waveform-bar {
    width: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: var(--transition);
}

.waveform-bar.active {
    background: var(--mobile-text);
}

.audio-waveform-container.playing .waveform-bar {
    animation: waveform-animation 1s ease-in-out infinite alternate;
}

.audio-waveform-container.playing .waveform-bar:nth-child(even) {
    animation-duration: 0.7s;
}

@keyframes waveform-animation {
    from { transform: scaleY(1); }
    to { transform: scaleY(1.3); }
}

.audio-time {
    font-size: 0.75rem;
    color: #999;
    font-family: 'Outfit', sans-serif;
}

.mobile-play-btn {
    width: 65px;
    height: 65px;
    background: #3B2403;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex-shrink: 0;
}

.mobile-play-btn:hover {
    transform: scale(1.05);
    background: #4B3413;
}

.btn-back {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--mobile-text);
    text-decoration: none;
    transition: var(--transition);
}

.btn-back:hover {
    transform: scale(1.1);
    background: var(--mobile-text);
    color: white;
}

.btn-home {
    position: fixed;
    top: 20px;
    right: 75px;
    z-index: 100;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--mobile-text);
    text-decoration: none;
    transition: var(--transition);
}

.btn-home:hover {
    transform: scale(1.1);
    background: var(--mobile-text);
    color: white;
}

.artifact-content-wrap {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    padding-bottom: 100px;
}

.section-title-mobile {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mobile-text);
    margin-bottom: 15px;
    text-align: right;
}

.mobile-info-card {
    background: var(--mobile-card);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.mobile-info-row {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
    border-bottom: 1px solid var(--mobile-divider);
}

.mobile-info-row:last-child {
    border-bottom: none;
}

.mobile-icon-circle {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-left: 15px;
    color: var(--mobile-text);
}

.mobile-info-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 10px;
}

.mobile-info-value {
    color: #666;
    font-size: 0.85rem;
    flex-grow: 1;
}

.description-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--mobile-divider);
    line-height: 2;
    font-size: 0.95rem;
    color: #444;
}

.audio-card {
    background: var(--mobile-card);
    border-radius: 20px;
    padding: 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    direction: ltr; /* Play button on the left for audio standard */
}

.audio-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-waveform-container {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.waveform-bar {
    width: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: var(--transition);
}

.waveform-bar.active {
    background: var(--mobile-text);
}

.audio-waveform-container.playing .waveform-bar {
    animation: waveform-animation 1s ease-in-out infinite alternate;
}

.audio-waveform-container.playing .waveform-bar:nth-child(even) {
    animation-duration: 0.7s;
}

@keyframes waveform-animation {
    from { transform: scaleY(1); }
    to { transform: scaleY(1.3); }
}

.audio-time {
    font-size: 0.75rem;
    color: #999;
    font-family: 'Outfit', sans-serif;
}

.mobile-play-btn {
    width: 65px;
    height: 65px;
    background: #3B2403;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex-shrink: 0;
}

.mobile-play-btn:hover {
    transform: scale(1.05);
    background: #4B3413;
}

.btn-back {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--mobile-text);
    text-decoration: none;
    transition: var(--transition);
}

.btn-back:hover {
    transform: scale(1.1);
    background: var(--mobile-text);
    color: white;
}

.btn-home {
    position: fixed;
    top: 20px;
    right: 75px;
    z-index: 100;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--mobile-text);
    text-decoration: none;
    transition: var(--transition);
}

.btn-home:hover {
    transform: scale(1.1);
    background: var(--mobile-text);
    color: white;
}

/* Smart Services Section */
.smart-services-section {
    padding: 100px 0;
    background-color: var(--navy);
}

.status-card {
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%); /* Trial theme by default */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.status-card.premium {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.status-card i {
    font-size: 2rem;
    color: #fbbf24;
}

.status-card h3 {
    margin: 0;
    font-weight: 800;
}

.status-card p {
    margin-top: 10px;
    opacity: 0.8;
}

.btn-activate {
    background: #fbbf24;
    color: #1e1b4b !important;
    font-weight: 800;
    padding: 12px 25px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-activate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.smart-feature-card {
    border-radius: 25px;
    padding: 30px;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.smart-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-blue {
    background: linear-gradient(135deg, #172554 0%, #0f172a 100%);
}

.card-brown {
    background: linear-gradient(135deg, #422006 0%, #854d0e 100%);
}

.feature-icon-wrap {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.mobile-info-card h3, .mobile-info-card p {
    text-align: start;
    margin-bottom: 10px;
}

.smart-feature-card h4 {
    font-weight: 800;
    margin-bottom: 12px;
}

.smart-feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-badge {
    position: absolute;
    top: 30px;
    left: 30px; /* Reversed for RTL since parent is RTL */
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

.feature-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.feature-footer i {
    opacity: 0.5;
    font-size: 1.2rem;
}

@media (max-width: 767px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .smart-services-section {
        padding: 60px 0;
    }
}

.activation-input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 15px;
}

.activation-input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 10px 15px !important;
    box-shadow: none !important;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 1px;
}

.activation-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-activate-v2 {
    background: #fbbf24;
    color: #1e1b4b;
    border: none;
    padding: 8px 25px;
    border-radius: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-activate-v2:hover {
    transform: scale(1.05);
    background: white;
}

@media (max-width: 576px) {
    .activation-input-group {
        flex-direction: column;
    }
    .btn-activate-v2 {
        width: 100%;
        justify-content: center;
    }
}
/* AI Feature Modals Styling */
.border-accent {
    border: 2px solid var(--accent) !important;
}

.camera-wrapper {
    overflow: hidden;
    background: #000;
}

.scan-line-animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    animation: scanMove 3s linear infinite;
    z-index: 10;
}

@keyframes scanMove {
    0% { top: 0%; }
    100% { top: 100%; }
}

.ai-analysis-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Voice Animation */
.voice-wave-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-wave-container .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: voiceWave 2s linear infinite;
    opacity: 0;
}

.voice-wave-container .wave:nth-child(2) { animation-delay: 0.6s; }
.voice-wave-container .wave:nth-child(3) { animation-delay: 1.2s; }

@keyframes voiceWave {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

#ai-result.analyzing {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}
/* Enhanced Responsiveness for Smart Services */
@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .smart-services-section {
        padding: 80px 0;
    }
    .status-card {
        padding: 30px;
        text-align: center;
    }
    .status-card .row {
        flex-direction: column;
        gap: 20px;
    }
    .smart-feature-card {
        min-height: 340px;
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .smart-services-section h2 {
        font-size: 2rem;
    }
    .activation-input-group {
        flex-direction: column;
        padding: 15px;
    }
    .btn-activate-v2 {
        width: 100%;
        justify-content: center;
    }
    .card-badge {
        top: 20px;
        left: 20px;
    }
    /* Modals responsive adjustments */
    .modal-dialog {
        margin: 10px;
    }
    .camera-wrapper {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .smart-services-section {
        padding: 60px 0;
    }
    .smart-feature-card {
        padding: 20px;
        min-height: auto;
    }
    .feature-icon-wrap {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .smart-feature-card h4 {
        font-size: 1.2rem;
    }
}

/* Museum Page Premium Header */
.museum-hero-premium {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.museum-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.5s ease;
}

.museum-hero-premium:hover .museum-hero-img {
    transform: scale(1.05);
}

.museum-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.2) 0%, rgba(9, 9, 11, 0.7) 60%, var(--navy-dark) 100%);
    z-index: 2;
}

.btn-back-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn-back-circle:hover {
    background: var(--accent);
    color: var(--navy);
    transform: scale(1.1);
}

.museum-header-nav {
    position: absolute;
    top: 30px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.museum-hero-content {
    position: absolute;
    bottom: 50px;
    right: 40px;
    left: 40px;
    z-index: 5;
    color: var(--cream);
}

.search-section-museum {
    padding: 30px 0;
    background-color: transparent;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.museum-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 5px 25px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.museum-search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.2);
}

.museum-search-box input {
    flex: 1;
    background: transparent !important;
    padding: 15px 10px;
    outline: none;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
}

.museum-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.museum-search-box i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.museum-search-box i:hover {
    transform: scale(1.1);
}

.museum-title-main {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .museum-title-main {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .museum-title-main {
        font-size: 1.8rem;
    }
}


/* Modal UI Fixes */
.modal-content {
    border-radius: 30px !important;
}

#webcam {
    object-fit: cover;
    max-height: 60vh;
}

.voice-wave-container {
    transform: scale(0.8);
}/* Native-like Artifact Card (Flutter Match) */
.artifact-card-link {
    text-decoration: none !important;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.artifact-card-link:hover {
    transform: scale(1.05);
}

.artifact-card {
    height: 350px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #5b4d45 0%, #060d1a 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 992px) {
    .artifact-card {
        height: 320px; /* Make it slightly smaller on desktop but still proportional */
    }
}

.artifact-card-img {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 190px;
    margin: 15px 15px 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.artifact-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.artifact-card:hover .artifact-card-img img {
    transform: translateY(-5px);
}

.artifact-card-title, .artifact-card-subtitle {
    margin: 0;
    text-align: center;
}

.artifact-card-overlay {
    display: none;
}

.artifact-card-body {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px 15px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 13, 26, 0.9) 30%, rgba(6, 13, 26, 0.98) 100%);
    text-align: center;
    z-index: 3;
    width: 100%;
    margin-top: auto;
}

.artifact-card-title {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
    line-height: 1.35;
}

.artifact-card-subtitle {
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: normal;
    font-family: 'Cairo', sans-serif;
}

/* No Image Fallback */
.artifact-card.no-image .artifact-card-img {
    display: none !important;
}

.artifact-card.no-image .artifact-card-body {
    margin: auto 0;
    background: none;
    padding: 30px 20px;
}


/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 15px;
}

.skeleton-card {
    height: 350px;
    width: 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Button Styles */
.lang-toggle {
    padding: 0 15px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white !important;
    font-size: 1.1rem;
    transition: var(--transition);
    border-radius: 6px;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-2px);
}

.navbar.scrolled .lang-toggle {
    border-color: var(--navy);
    background: var(--navy);
    color: white !important;
}

.navbar.scrolled .lang-toggle:hover {
    background: var(--navy-dark);
}

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
    background: rgba(10, 25, 47, 0.98); /* Navy background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 12px 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 1000;
    border-radius: 25px;
    border: 1px solid rgba(217, 119, 6, 0.2); /* Subtle gold border */
    transition: var(--transition);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(10, 25, 47, 0.98);
}

.nav-item-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6); /* Lighter text for navy background */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    padding: 8px 15px;
    border-radius: 20px;
}

[data-theme="dark"] .nav-item-bottom {
    color: rgba(255, 253, 208, 0.5);
}

.nav-item-bottom i {
    font-size: 1.35rem;
    margin-bottom: 6px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item-bottom:hover {
    background: rgba(91, 58, 27, 0.08); /* Transparent Brown */
}

.nav-item-bottom:hover i {
    transform: translateY(-4px) scale(1.15);
    background: linear-gradient(to left, var(--accent), var(--brown-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item-bottom.active {
    color: var(--accent);
}

.nav-item-bottom.active i {
    transform: translateY(-4px);
    background: linear-gradient(to left, var(--accent), var(--brown-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(217, 119, 6, 0.3));
}

.nav-item-bottom.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 6px;
    height: 6px;
    background: linear-gradient(to left, var(--accent), var(--brown-light));
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

/* Fix spacing for body when bottom nav is active */
@media (max-width: 991px) {
    body {
        padding-bottom: 100px;
    }
}
/* Premium Top Controls */
.btn-icon, .btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
}
.btn-lang {
    height: 38px;
    padding: 0 15px;
    font-weight: 700;
}
.btn-icon:hover, .btn-lang:hover, .btn-icon.active {
    background: rgba(217, 119, 6, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.2);
}
.btn-icon i, .btn-lang i {
    font-size: 1rem;
}

/* Fix mobile bottom padding */
@media (max-width: 991px) {
    body {
        padding-bottom: 80px !important;
    }
}

/* Extra Small Devices Adjustments */
@media (max-width: 360px) {
    .section-heading { font-size: 1.5rem !important; }
    .display-2 { font-size: 1.6rem !important; }
    .mat7afi-spaced { font-size: 1.2rem !important; letter-spacing: 0.3rem !important; margin-right: -0.3rem !important; }
    .mobile-bottom-nav { padding: 8px 2px !important; }
    .nav-item-bottom { padding: 6px 10px !important; font-size: 0.65rem !important; }
    .nav-item-bottom i { font-size: 1.1rem !important; }
    .hero-mockup { max-width: 150px !important; }
    .btn-premium, .btn-outline-premium { padding: 10px 15px !important; font-size: 0.85rem !important; }
}

/* Extra Large Devices Adjustments */
@media (min-width: 1400px) {
    .container { max-width: 1320px !important; }
    .display-2 { font-size: 4rem !important; }
    .section-heading { font-size: 3.5rem !important; }
    .lead { font-size: 1.3rem !important; }
    .hero-mockup { max-width: 300px !important; }
}

/* Sleek Premium 3D Badge on Artifact Cards */
.btn-3d-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 5;
    background: rgba(254, 252, 232, 0.95); /* matching --mobile-card */
    border: 1px solid rgba(66, 32, 6, 0.2);
    color: #422006; /* matching --mobile-text */
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-3d-badge:hover {
    transform: scale(1.1);
    background: #3b2403; /* matching --premium-brown */
    color: white;
    border-color: #3b2403;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

