body {
    margin: 0;
    background-color: #000;
    padding-top: 80px;
    font-family: 'Roboto', sans-serif;
}

model-viewer {
    width: 75%;
    height: 600px;
    background-color: #191919;
    border-radius: 12px;
}

model-viewer::part(default-progress-bar) {
    background-color: #0081af !important;
    height: 3px !important;
    visibility: visible !important;
}

#top-title-bar {
    position: fixed;
    height: 54px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 20px;
    padding-bottom: 10px;
    background: #121212;
    font-family: 'Roboto', sans-serif;
    overflow: visible !important;

    border: 1px #0081af;
    border-radius: 12px;
}

#top-title-bar .model-card {
    overflow: visible !important;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    background: #121212;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.model-card {
    position: relative;
    background: #1e1e1e;
    overflow: hidden;

    border: 1px solid #333;
    border-radius: 12px;

    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1620px;
    font-family: 'Roboto', sans-serif;
}

.info {
    padding: 0px;
    padding-bottom: 0px;
    font-family: 'Roboto', sans-serif;
}

.info h3 {
    margin: 0 0 10px;
    color: #00d1ff;
    justify-self: center;
    padding-top: 12px;
    font-size: 1.3rem;
    font-family: 'Roboto', sans-serif;
}

.info p {
    font-size: 1rem;
    color: #999;
    line-height: 1.4;
    justify-self: center;
    /* text-align: center; */
    text-align: justify;
    font-family: 'Roboto', sans-serif;
}

.tech-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    opacity: 10%;
    margin: 10px 0;
    width: 40%;
}

.fullscreen-button,
.reset-button,
.nav-button {
    position: absolute;
    bottom: 2%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    color: white;
    background: rgba(0, 209, 255, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: background 0.2s;
    box-sizing: border-box;
}

.reset-button {
    width: 95px;
    left: calc(2% + 50px);
    font-size: 0.9rem;
}

.reset-button:hover {
    background-color: rgba(0, 209, 255, 0.6);
}

.reset-button:active {
    transform: scale(0.95);
}

.fullscreen-button {
    width: 45px;
    left: 2%;
}

.fullscreen-button:hover {
    background: rgba(0, 209, 255, 0.8);
}

.fullscreen-button svg {
    width: 24px;
    height: 24px;
}

model-viewer:fullscreen {
    width: 100vw;
    height: 100vh;
    background-color: #1a1a1a;
}

model-viewer:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

model-viewer:-ms-fullscreen {
    width: 100%;
    height: 100%;
}

.nav-button {
    width: 45px;
    font-size: 1.5rem;
}

.nav-button:hover {
    background: rgba(0, 209, 255, 0.7);
}

.nav-button.left {
    top: 2%;
    left: calc(50% - 75px);
}

.nav-button.right {
    top: 2%;
    left: calc(50% + 30px);
}


:fullscreen .nav-button {
    z-index: 999;
}

.nav-button:disabled {
    background: rgba(128, 128, 128, 0.2);
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.nav-button:disabled:hover {
    background: rgba(128, 128, 128, 0.2);
}

.portfolio-wrapper {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

#backToRootBtn, 
#backToTopBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    height: 40px;
    width: 100px;
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;

    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    color: #00d1ff;
    border: 1px solid rgba(0, 209, 255, 0.3);
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#backToRootBtn {
    left: 8px;
}

#backToTopBtn {
    right: 8px;
    /* display: none; */
}

#backToRootBtn button, 
#backToTopBtn button {
    line-height: 1;
    white-space: nowrap;
    display: block;
    padding-top: 5px;
}

#backToRootBtn:hover, 
#backToTopBtn:hover {
    border-color: #00d1ff;
    transition: all 0.2s ease;
}

#backToTopBtn:active,
#backToRootBtn:active {
    color: white;
    border-color: white;
    transition: all 0.2s ease;
}

.variant-counter {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    padding: 0 10px;
    border-radius: 4px;
    z-index: 100;
    pointer-events: none;
    min-width: 40px;
}

.main-link {
    color: #00d1ff;
    text-decoration: none;
}

.main-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.logo-blue {
    width: 36px;
    height: 36px;
    background-color: rgba(0, 209, 255, 0.85);
    
    position: absolute;
    top: 50%;
    left: 28px;
    translate: -50% -50%;

    -webkit-mask: url('/resources/media/logo.svg') no-repeat center;
    mask: url('/resources/media/logo.svg') no-repeat center;
    
    -webkit-mask-size: contain;
    mask-size: contain;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo-blue:hover {
    background-color: rgba(0, 209, 255, 1.0);
    transform: scale(1.05);
    transition: all 0.2s ease;
  }

.dropdown {
    padding-bottom: 10px; 
    margin-bottom: -10px;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #00d1ff;
    border: 1px solid rgba(0, 209, 255, 0.3);
    border-radius: 12px;

    position: absolute;
    top: 50%;
    /* left: 68px; */
    left: 50%;
    /* translate: -0% -50%; */
    translate: -50% -50%;

    height: 40px;
    padding: 0 20px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dropdown-btn .chevron {
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.dropdown:hover .dropdown-btn {
    border-color: #00d1ff;
}

.dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e1e;
    min-width: 200px;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
    z-index: 99999; 
    overflow: visible; 
}
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown-content a {
    color: #999;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #2a2a2a;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a svg {
    opacity: 0.7;
}

.dropdown-content a:hover {
    background-color: rgba(0, 209, 255, 0.1);
    color: #00d1ff;
}

.dropdown-content a.active {
    color: #00d1ff;
    background-color: rgba(0, 209, 255, 0.05);
    font-weight: bold;
}

.menu-category {
    padding: 12px 16px 5px 16px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #555; /* Subtle grey to distinguish from links */
    letter-spacing: 1px;
  }


