:root {
    --pink: #ff007f;
    --cyan: #00f2ff;
    --dark: #0a0a0b;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--dark);
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.neon-text-pink {
    color: var(--pink);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.5), 0 0 20px rgba(255, 0, 127, 0.3);
}

.neon-text-cyan {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(0, 242, 255, 0.3);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 10, 11, 0.8), transparent);
}

.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
    gap: 1.5rem;
    flex-shrink: 0;
}

.navbar-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 0, 127, 0.7));
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--pink);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--pink);
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.lang-switch a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.lang-switch a.active {
    color: #fff;
    font-weight: 700;
}

.back-link {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.navbar-geschaeftsbereiche {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.navbar-geschaeftsbereiche:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(0,242,255,0.05);
    box-shadow: 0 0 15px rgba(0,242,255,0.2);
}

/* Drone World - The Magic Happens Here */
.drone-world {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drone-element {
    width: 40%; /* Initial large size */
    max-width: 600px;
    filter: drop-shadow(0 0 25px rgba(0, 242, 255, 0.3));
    will-change: transform;
    opacity: 1;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 100px 10%;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-content {
    max-width: 700px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-description {
    color: #fff;
    font-size: 1.1rem;
    max-width: 600px;
}

.scroll-down {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--pink);
    border-radius: 50%;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Services Section */
.service-points {
    display: flex;
    flex-direction: column;
    gap: 150px;
}

.service-card {
    width: 450px;
    padding: 3rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.reveal-right { align-self: flex-end; }

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.service-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 10%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    border-color: var(--cyan);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* 360 Viewer Section */
.special-section {
    flex-direction: column;
    justify-content: center;
}

.section-header {
    margin-bottom: 4rem;
}

.viewer-container {
    width: 100%;
    height: 60vh;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    z-index: 60; /* above the fixed drone-world (z-index: 50) */
    isolation: isolate;
}

.three-viewer {
    width: 100%;
    height: 100%;
    cursor: grab;
    background: #000;
}

.three-viewer:active { cursor: grabbing; }

.viewer-instruction {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.7), 0 0 25px rgba(255, 0, 127, 0.4);
    border: 1px solid rgba(255, 0, 127, 0.35);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.2);
    pointer-events: auto;
    cursor: default;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease, text-shadow 0.3s ease;
    animation: instructionPulse 2.5s ease-in-out infinite;
    white-space: nowrap;
}

.viewer-instruction:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 0 40px rgba(255, 0, 127, 0.5), 0 8px 20px rgba(0,0,0,0.4);
    text-shadow: 0 0 15px rgba(255, 0, 127, 1), 0 0 35px rgba(255, 0, 127, 0.6);
    animation: none;
}

@keyframes instructionPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 127, 0.2); }
    50%       { box-shadow: 0 0 35px rgba(255, 0, 127, 0.5); }
}

#viewer-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    padding: 1.2rem 2.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.4);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    transition: background 0.3s, box-shadow 0.3s;
}

#viewer-play-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.7);
}

/* CTA Section */
.cta-section {
    min-height: 40vh;
    padding: 100px 10%;
    position: relative;
    z-index: 100;
}

.neon-button {
    display: inline-block;
    text-decoration: none;
    margin-top: 3rem;
    background: transparent;
    border: 2px solid var(--pink);
    color: var(--pink);
    padding: 1.2rem 3rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

.neon-button:hover {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.6);
}

/* Footer */
footer {
    padding: 4rem 10%;
    background: #050505;
    color: #fff;
    font-size: 0.9rem;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--pink);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    width: 300px;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--pink);
    transition: width 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .service-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .reveal-right { align-self: center; }
    .reveal-left { align-self: center; }
}

@media (max-width: 768px) {
    .navbar-center {
        display: none;
    }
    
    .navbar {
        padding: 1rem 5%;
        justify-content: space-between;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .lang-switch {
        font-size: 0.75rem;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1050;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 5%;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .drone-element { 
        width: 85%; 
    }
    
    h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .viewer-container {
        height: 50vh;
    }
    
    .viewer-instruction {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .service-points {
        gap: 80px;
    }
    
    .cta-section {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .neon-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    #viewer-play-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        width: 85%;
        max-width: 280px;
        white-space: normal;
        line-height: 1.3;
    }
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.3);
    border: 1px solid var(--glass-border);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--pink);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}
