:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --accent: #5e5ce6;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --bg-dark: #f8f9fa;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) var(--bg-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Header */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 65px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

header .logo {
    justify-self: start;
}

header nav {
    justify-self: center;
}

header .cta-button, header > a:last-child {
    justify-self: end;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-primary);
}

.cta-button {
    background: var(--text-primary);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Hero Static Layout */
.hero-static-layout {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Background image with overlay */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-ui-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.hero-main-card {
    pointer-events: auto;
    max-width: 520px;
    padding: 50px 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.hero-main-card h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #1a202c;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.hero-main-card p {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 35px;
    line-height: 1.5;
}

.boka-nu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #1a202c;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-decoration: none;
}

.boka-nu-btn:hover {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.hero-services-grid {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 500px;
}

.service-mini-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    text-decoration: none;
    display: block;
}

.service-mini-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.6));
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-mini-card .icon {
    font-size: 1.1rem;
    margin-bottom: 15px;
    background: #1a202c;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.service-mini-card h4 {
    font-size: 0.95rem;
    color: #1a202c;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.2;
}

.service-mini-card p {
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.4;
}

/* Services Interactive Section */
.services-interactive {
    padding: 60px 2%;
    max-width: 1600px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.interactive-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 20px;
    min-height: 400px;
    overflow: hidden;
}

.car-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

#car-3d-canvas {
    width: 100%;
    height: 600px;
    position: relative;
    cursor: grab;
}

#car-3d-canvas:active {
    cursor: grabbing;
}

/* Menu items for 3D car */
.services-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-item.active {
    background: var(--accent);
    border-color: var(--accent);
}

.menu-item.active h4, .menu-item.active p {
    color: #ffffff;
}

.menu-item h4 { margin-bottom: 2px; }
.menu-item p { font-size: 0.8rem; color: var(--text-secondary); }
.menu-item.active h4 { color: #ffffff; }
.menu-item.active p { color: rgba(255, 255, 255, 0.8); }

.loading-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    z-index: 5;
}

.hotspot-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.hotspot {
    pointer-events: auto;
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

.pulse {
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 0 rgba(94, 92, 230, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(94, 92, 230, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(94, 92, 230, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(94, 92, 230, 0); }
}

/* Part Overlay Animation */
.part-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 100;
    border-radius: 20px;
}

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

#part-img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    transform: translateX(-100px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.part-overlay.active #part-img {
    transform: translateX(0);
}

.part-info {
    max-width: 400px;
    padding: 40px;
    margin-left: 40px;
}

.part-info h3 { font-size: 2rem; margin-bottom: 15px; }
.part-info p { color: var(--text-secondary); margin-bottom: 30px; }

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 3rem;
    cursor: pointer;
}

/* Old menu styles removed */

@media (max-width: 1024px) {
    .hero-ui-overlay {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
    }
    .hero-main-card {
        margin-bottom: 250px;
    }
    .hero-services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
    }
    
    .interactive-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .services-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
    }
    .menu-item { min-width: 250px; }
    
    #part-img {
        width: 200px;
        height: 200px;
    }
    .part-overlay {
        flex-direction: column;
        padding: 40px 20px;
    }
    .part-info { margin-left: 0; margin-top: 20px; text-align: center; }
}

@media (max-width: 768px) {
    #contactForm {
        grid-template-columns: 1fr !important;
    }
    #contactForm > div, #contactForm > button {
        grid-column: 1 !important;
    }
}

/* Interactive Elements */
.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(94, 92, 230, 0.4);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delay Utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    header {
        width: 95%;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header .logo {
        margin-right: auto;
    }
    header .cta-button {
        margin-right: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }
    nav.active {
        opacity: 1;
        pointer-events: auto;
    }
    nav ul {
        flex-direction: column;
        gap: 40px;
    }
    nav a {
        font-size: 1.5rem;
    }
    
    #about {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    body.mobile-nav-active {
        overflow: hidden;
    }
}

/* Service Page Specific Styles */
.services-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    background: radial-gradient(circle at 50% 50%, rgba(94, 92, 230, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.hotspot-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(94, 92, 230, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hotspot-btn:hover {
    transform: scale(1.2);
    background: #fff;
}

.hotspot-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: hotspotPulse 2s infinite;
}

@keyframes hotspotPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hotspot-label {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    border: 1px solid var(--glass-border);
    font-weight: 600;
}

.hotspot-btn:hover .hotspot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Service Modal Utility */
.service-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-overlay.active {
    display: flex;
    opacity: 1;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px;
    max-width: 650px;
    width: 95%;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-overlay.active .service-card {
    transform: translateY(0);
}

.price-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.price-item:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.02);
}

.price-item .name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.price-item .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
}

.elderly-help {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 15px 30px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 100;
}

.elderly-help span { font-weight: 500; font-size: 1rem; color: var(--text-secondary); }
