/* Global Styles */
:root {
    --primary-color: #ffffff;
    --accent-color: #ff6b35;
    /* Industrial Orange */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Outfit', sans-serif;
}

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

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    background-color: #111;
    color: var(--primary-color);
}

/* Background Layer */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #111;
    /* Fallback color */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    filter: brightness(0.6);
}

.bg-image.active {
    opacity: 1;
}

/* Main Content */
.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: auto;
    /* Allow clicking links */
    width: 100%;
    padding: 40px 20px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    /* Subtle dark backing */
    border-radius: 50%;
    /* Soften the edges of the gradient */
}

.brand-title {
    font-size: 12vw;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    /* Stronger shadow */
}

.brand-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

/* Draggable Navigation */
.nav-container {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--glass-shadow);
    z-index: 100;
    cursor: grab;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    touch-action: none;
    /* Prevent default touch scrolling */
}

.nav-container:active {
    cursor: grabbing;
}

.nav-handle {
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    margin-bottom: 5px;
}

.handle-bar {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.nav-item {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.nav-item:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    z-index: 10;
}

.nav-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .brand-title {
        font-size: 18vw;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .nav-container {
        left: 20px;
        top: 20px;
        transform: none !important;
        /* Reset drag position on resize if needed, though JS handles logic */
    }
}

/* Footer */
.main-footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: auto;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.footer-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Inner Page Layout */
.page-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Enable scrolling */
    padding: 100px 20px 60px;
    /* Top padding for header/nav space */
    z-index: 9999;
    /* Ensure it's well above background */
    pointer-events: auto;
}

.glass-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    /* Darker background for better contrast */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    color: #fff;
}

.glass-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.glass-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.glass-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.glass-content ul {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.glass-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.glass-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.glass-content a:hover {
    border-color: var(--accent-color);
}

/* Inner Page Nav */
.page-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    /* Ensure it's above the page wrapper (9999) */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.page-nav a:hover,
.page-nav a.active {
    opacity: 1;
    color: var(--accent-color);
}