/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
}

main {
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Logo Styling */
.logo {
    position: absolute;
    top: 30px;
    left: 50px;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    z-index: 1000; /* Increased to avoid overlap */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Social Icons */
.social {
    position: absolute;
    top: 30px;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000; /* Increased to avoid overlap */
}

.social .bar {
    width: 2px;
    height: 30px;
    background: #fff;
    opacity: 0.5;
}

.social a {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social a:hover {
    color: #ffd700;
    transform: scale(1.2);
}

/* Audio Control Icon */
.audio-control {
    position: fixed; /* Changed to fixed for consistent positioning */
    bottom: 30px;
    right: 50px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1000; /* Increased to ensure visibility */
    transition: transform 0.3s ease, color 0.3s ease;
}

.audio-control i {
    display: inline-block; /* Ensure icon renders correctly */
}

.audio-control:hover {
    color: #ffd700;
    transform: scale(1.2);
}

/* Swiper Styling */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.yellow, .red, .blue, .black {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 1s ease;
}

.yellow {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    opacity: 0.9;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.red {
    background: linear-gradient(135deg, #ff4d4d, #b30000);
    opacity: 0.9;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.blue {
    background: linear-gradient(135deg, #1e90ff, #003087);
    opacity: 0.9;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.black {
    background: linear-gradient(135deg, #333, #000);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

/* Content Styling */
.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
}

.title .small {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.title .big {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.title .big span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.title .big span:hover {
    transform: translateY(-10px);
}

/* Model Viewer Styling */
model-viewer {
    width: 60vw;
    height: 60vh;
    --poster-color: transparent;
    --progress-bar-color: #ffd700;
    --progress-bar-height: 3px;
}

model-viewer:hover {
    --progress-bar-color: #fff;
}

/* Specs Styling */
.specs {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.specs span {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.specs span b {
    color: #ffd700;
    font-size: 1.5rem;
}

button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    background: #ffd700;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.red-c button {
    background: #ff4d4d;
    color: #fff;
}

.blue-c button {
    background: #1e90ff;
    color: #fff;
}

/* Swiper Pagination */
.swiper-pagination {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 500; /* Lower than audio-control to avoid overlap */
}

.swiper-pagination-bullet {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
        left: 20px;
        top: 20px;
    }

    .social {
        right: 20px;
        gap: 15px;
    }

    .audio-control {
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem; /* Smaller but visible on mobile */
        z-index: 1000; /* Ensure it stays above other elements */
    }

    .swiper-pagination {
        right: 20px; /* Adjusted to avoid overlap with audio-control */
    }

    .title .small {
        font-size: 1.5rem;
    }

    .title .big {
        font-size: 4rem;
    }

    model-viewer {
        width: 80vw;
        height: 50vh;
    }

    .specs {
        flex-direction: column;
        gap: 15px;
    }

    button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}