@font-face {
    font-family: OpenSans-Light;
    src: url("../fonts/OpenSans-Light.ttf");
}
@font-face {
    font-family: OpenSans-Regular;
    src: url("../fonts/OpenSans-Regular.ttf");
}
@font-face {
    font-family: OpenSans-Medium;
    src: url("../fonts/OpenSans-Medium.ttf");
}
@font-face {
    font-family: OpenSans-Bold;
    src: url("../fonts/OpenSans-Bold.ttf");
}
@font-face {
    font-family: OpenSans-ExtraBold;
    src: url("../fonts/OpenSans-ExtraBold.ttf");
}

:root {
    /* Typography */
    --font-theme-light: OpenSans-Light;
    --font-theme-regular: OpenSans-Regular;
    --font-theme-medium: OpenSans-Medium;
    --font-theme-bold: OpenSans-Bold;
    --font-theme-extraBold: OpenSans-ExtraBold;
    
    /* Modern Color Scheme */
    --color-primary: #3498db;
    --color-primary-dark: #2980b9;
    --color-primary-darker: #1f5f8b;
    --color-secondary: #2c3e50;
    --color-secondary-light: #34495e;
    --color-accent: #e74c3c;
    --color-success: #2ecc71;
    --color-warning: #f39c12;
    --color-info: #3498db;
    
    /* Legacy support (maintained for backwards compatibility) */
    --color-theme-red: #3498db !important;
    --color-theme-black: #2c3e50 !important;
    --color-theme-white: #ffffff !important;
    
    /* Gradients */
    --gradient-primary: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    --gradient-accent: linear-gradient(45deg, #ff6b35, #f7931e);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 20px rgba(52, 152, 219, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* Enhanced Scrollbar Styling */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
}

*::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: background var(--transition-normal);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

*::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.05);
}

/* Global Base Styles */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

a:focus {
    text-decoration: none;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Performance optimized box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Smooth scrolling for modern browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Modern Button Components */
.btn-modern {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    font-size: 14px;
    box-shadow: var(--shadow-primary);
    text-transform: none;
}

.btn-modern:hover {
    background: var(--color-primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.btn-modern:active {
    transform: translateY(-1px);
}

.btn-modern:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-modern.btn-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
}

.btn-modern.btn-secondary:hover {
    background: var(--color-secondary-light);
    box-shadow: 0 6px 25px rgba(44, 62, 80, 0.4);
}

.btn-modern.btn-accent {
    background: var(--gradient-accent);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-modern.btn-accent:hover {
    background: linear-gradient(45deg, #f7931e, #e67e22);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

/* Modern Card Component */
.card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.03), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
}

.card-modern:hover::before {
    opacity: 1;
}

/* Loading Animations */
@keyframes modernShimmer {
    0% { 
        background-position: -200% 0; 
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% { 
        background-position: 200% 0; 
        opacity: 0.6;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: modernShimmer 1.5s infinite;
}

/* Modern Badge Component */
.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-modern.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-modern.badge-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.badge-modern.badge-accent {
    background: var(--gradient-accent);
    color: white;
}

/* Modern Form Elements */
.form-modern .form-control {
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-modern .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
    background: white;
}

/* Utility Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.transition-fast { transition: all var(--transition-fast); }
.transition-normal { transition: all var(--transition-normal); }
.transition-smooth { transition: all var(--transition-smooth); }

/* Home */
.custom-popup-tour {
}
.custom-popup-tour .custom-popup-tour-home {
    position: relative;
    width: 400px;
    text-align: center;
}
.custom-popup-tour .custom-popup-tour-home {
    position: relative;
    width: 400px;
    text-align: center;
}
.custom-popup-tour .custom-popup-tour-home .custom-popup-tour-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}
.custom-popup-tour .custom-popup-tour-home .custom-popup-tour-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.custom-popup-tour .custom-popup-tour-home .custom-popup-tour-content h4 {
    color: #fff;
}
.custom-popup-tour .custom-popup-tour-home .custom-popup-tour-content > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.custom-popup-tour .custom-popup-tour-home .custom-popup-tour-content > div a {
    color: var(--color-theme-white);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid var(--color-theme-white);
    background-color: var(--color-theme-red);
}

/**/
.thm-breadcrumb {
    display: -webkit-box;
    display: flex;
    margin: 0;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.thm-breadcrumb li {
    font-size: 14px;
    font-weight: normal;
    border-top: solid 1px rgb(255 255 255 / 30%);
    border-bottom: solid 1px rgb(255 255 255 / 30%);
    padding: 5px 0;
    text-transform: uppercase;
    color: #fff;
}
.thm-breadcrumb li + li::before {
    content: "/";
    margin-left: 15px;
    margin-right: 15px;
}
.thm-breadcrumb li a {
    color: inherit;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    text-decoration: none;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

#relics ul,
#gallery ul {
    padding: 0;
    margin: 0 auto;
    margin-bottom: 15px;
    text-align: left;
    margin-left: 4px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
#relics ul li,
#gallery ul li {
    font-size: 9pt;
    font-weight: 500;
    font-family: var(--font-theme-medium);
    border: 1px solid rgba(0, 0, 0, 0);
    padding: 4px 15px 4px 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
    list-style: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
#relics ul li.selected,
#gallery ul li.selected {
    background-color: var(--color-theme-red);
    color: #fff;
}

.relics-list-container {
    margin-top: 40px;
}

.relic__single {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: var(--thm-black);
    transition: all 0.5s ease;
}
.relic__single:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 10px 10px #00000033;
}
.relic__single::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(49%, rgba(0, 0, 0, 0)),
        color-stop(99%, rgba(0, 0, 0, 0.98)),
        to(rgba(0, 0, 0, 1))
    );
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 49%,
        rgba(0, 0, 0, 0.98) 99%,
        rgba(0, 0, 0, 1) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#000000', GradientType=0);
}

.bg-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
    width: 100%;
}

.relic__content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    opacity: 1;
}

.relic__content h3 {
    color: var(--color-theme-white);
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    font-size: 20px;
}
#relic-detail .relics-list-container .view-tour-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
#relic-detail .relics-list-container .view-tour-3d button {
    color: var(--color-theme-white);
    background-color: var(--color-theme-red);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
#relic-detail .relics-list-container .view-tour-3d button img {
    width: 36px;
}

section#relic-detail {
    padding: 0;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.feature-item {
    flex: 1 1 20%;
    box-sizing: border-box;
}

.feature-item .bg-img,
.feature-item .bg-img-1,
.feature-item .bg-img-2,
.feature-item .bg-img-3,
.feature-item .bg-img-4 {
    padding: 30px;
    min-height: 300px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

/* Ví dụ background */
.bg-img {
    background-image: url("images/asia.jpg");
}
.bg-img-1 {
    background-image: url("images/europe.jpg");
}
.bg-img-2 {
    background-image: url("images/africa.jpg");
}
.bg-img-3 {
    background-image: url("images/america.jpg");
}
.bg-img-4 {
    background-image: url("images/australia.jpg");
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .feature-item {
        flex: 1 1 33.333%;
    }
}
@media screen and (max-width: 768px) {
    .feature-item {
        flex: 1 1 50%;
    }
}
@media screen and (max-width: 480px) {
    .feature-item {
        flex: 1 1 100%;
    }
}
