@font-face {
    font-family: "Nobel";
    src: url("../assets/fonts/nobel.ttf");
}

@font-face {
    font-family: "Nobel";
    src: url("../assets/fonts/nobel-book.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Nobel";
    src: url("../assets/fonts/nobel-regular.ttf");
    font-weight: 500;
}

@font-face {
    font-family: "Nobel";
    src: url("../assets/fonts/nobel-bold.ttf");
    font-weight: 700;
}

@font-face {
    font-family: "Bahij";
    src: url("../assets/fonts/bahij.ttf");
}

/* =========================
   Global usage
   ========================= */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}



/* Reset and Base Styles */
* {
    font-family: "Nobel";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-weight: 400;
    line-height: 1.6;
    background: #000;
    color: #fff;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Video Background */
#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Screen Management */
.screen,
.section-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.screen.active,
.section-screen.active {
    opacity: 1;
    visibility: visible;
}

/* Car Selection Screen */
#carSelection {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.car-selector {
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 40px;
}

.main-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.car-list {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.car-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 300px;
    backdrop-filter: blur(5px);
}

.car-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

.car-option h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.car-option p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Main Interface */
#mainInterface {
    position: relative;
}

.touch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.car-title,
.tap-to-start {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.car-title h1,
.tap-to-start {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Main Buttons */
.main-buttons {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 3;
    transition: all 0.5s ease;
}

.main-buttons.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(50px);
}

.main-btn {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.main-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Section Screens */
.section-screen {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 40px;
}

.section-header {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    visibility: hidden;
}

.back-btn {
    background: rgba(100, 100, 100, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(150, 150, 150, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Tab Navigation */
.tab-navigation {
    /* position: absolute;
    bottom: 215px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4; */

    display: flex;
    justify-content: center;
    column-gap: 7px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
}

.tab-btn::before {
    content: '';
    clip-path: polygon(9% 37%, 27% 57%, 43% 68%, 63% 74%, 78% 77%, 100% 75%, 100% 100%, 0 100%, 0 23%);
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #80808054;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Content Display */
.content-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* margin-top: 100px; */
}

.tab-name {
    display: flex;
    column-gap: 15px;
    justify-content: center;

    span {
        font-size: 1.5rem;
        font-weight: 500;
        color: black;
        text-transform: uppercase;
    }

    span.active {
        font-weight: 600;
    }
}

.image-container {
    text-align: center;
    background-color: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    width: 83vw;
    justify-content: space-around;
    row-gap: 30px;
    padding-inline: 100px;
}

.image-container img {
    max-width: 96%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    margin: auto;
}

.color-name {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: black;
    font-weight: 500;
    margin-bottom: 25px;
}

.specs-container {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    width: 100%;
    height: calc(100% - 120px);
    margin-top: 120px;
    overflow-y: auto; */
    display: flex;
}

.specs-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.specs-image img {
    max-width: 100%;
    max-height: 75%;
    object-fit: contain;
    border-radius: 10px;
}

.specs-content {
    overflow-y: auto;
    padding-right: 20px;
    display: none;
}

.specs-category {
    margin-bottom: 30px;
}

.specs-category h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.specs-category ul {
    list-style: none;
}

.specs-category li {
    padding: 8px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 20px;
}

.specs-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #6e7274;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.info-btn {
    background-color: rgb(15, 17, 20);
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px dashed white;
    left: -15px;
    top: 15px;
}

.section-title {
    color: #000;
    padding-block: 10px;
    font-weight: 500;
}

#interiorTabs {
    column-gap: 25px;
}

.prev-arrow {
    left: 210px;
}

.next-arrow {
    right: 210px;
}

/* .nav-arrow.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
} */

/* Responsive Design for 1920x1080 */
@media (max-width: 1920px) {
    .main-title {
        font-size: 3.5rem;
    }

    .car-title h1,
    .tap-to-start {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Error State */
.error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.2rem;
    color: #ff6b6b;
}

.tap-to-start {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out;
}