:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #4f46e5; /* Indigo */
    --accent-hover: #6366f1;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling entirely */
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overscroll-behavior: none;
}

/* 3D Canvas */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

/* Main UI */
.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    pointer-events: none; /* Let touches pass through to canvas by default */
}

header {
    pointer-events: auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
    font-weight: 300;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    pointer-events: auto;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn:active {
    transform: scale(0.96);
}

.btn.primary {
    background-color: var(--accent-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--accent-hover);
}

.btn.secondary {
    background-color: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

/* Bottom Sheets */
.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    padding: 1.5rem;
    padding-bottom: env(safe-area-inset-bottom, 2rem);
    z-index: 30;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 1.5rem auto;
}

.bottom-sheet h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
    overflow-y: auto;
    max-height: 50vh;
}

.service-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-list h3 {
    font-size: 1.1rem;
    color: var(--accent-hover);
    margin-bottom: 0.5rem;
}

.service-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}

.contact-link {
    display: block;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

.close-sheet {
    background-color: rgba(255,255,255,0.1);
    color: white;
    margin-top: auto;
}

/* Backdrop */
.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}