:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --neon-primary: #00f3ff;
    --neon-secondary: #bc13fe;
    --card-bg: rgba(20, 20, 20, 0.8);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

#spotlight-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Neon Text Utility */
.neon-text {
    color: var(--neon-primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5),
                 0 0 20px rgba(0, 243, 255, 0.3),
                 0 0 40px rgba(0, 243, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.75rem 2rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.3));
    transition: filter 0.3s;
}

.logo-img:hover {
    filter: drop-shadow(0 0 14px rgba(0, 243, 255, 0.6));
}

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

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

.navbar-geschaeftsbereiche:hover {
    color: #fff;
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-secondary);
    text-shadow: 0 0 10px var(--neon-secondary);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch button {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s;
    border-radius: 4px;
}

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

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.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 button.active {
    border-color: var(--neon-primary);
    color: var(--neon-primary);
    text-shadow: 0 0 5px var(--neon-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.pre-title {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.main-title {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 25px;
    line-height: 0.7;
}

.title-small {
    font-size: 2.5rem;
    letter-spacing: 5px;
    display: block;
    opacity: 0.9;
    margin-bottom: -10px;
}

.subtitle {
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
    opacity: 0.8;
    margin: 0 auto; /* Ensure centering */
}

/* Scroll indicator... */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--neon-primary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Scrollytelling Section */
.scrolly-section {
    height: 500vh; /* creates scrollable space for 240 frames */
    position: relative;
    background-color: #000;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#scroll-sequence {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform; /* Hint for performance */
}

.scrolly-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    will-change: opacity;
    z-index: 10;
}

.scrolly-floating-text {
    position: absolute;
    font-size: 8vw; /* Responsive huge text */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1vw;
    z-index: 15;
    pointer-events: none;
    left: 50%;
    transform: translate(-50%, 100vh); /* Start off-screen bottom */
    will-change: transform, opacity;
    text-align: center;
    width: 100%;
}

/* Services Section (3D Grid) */
.services-section {
    padding: 100px 50px;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3D Card Effects */
.card-3d-wrapper {
    perspective: 1000px;
    height: 400px;
}

.card-3d {
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 15px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    cursor: pointer;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.card-3d-wrapper:hover .card-3d::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 60%;
    transform: translateZ(20px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    overflow: hidden;
    background: #0a0a0a; /* Placeholder color */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-3d-wrapper:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    transform: translateZ(40px);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--neon-secondary);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.3);
}

.card-content p {
    font-size: 1rem;
    color: #ccc;
    font-weight: 300;
}

footer {
    padding: 100px 50px 30px;
    text-align: center;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
footer h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.btn-glow-pink {
    display: inline-block;
    padding: 15px 40px;
    margin-top: 30px;
    margin-bottom: 60px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    background: transparent;
    border: 2px solid #ff00ff;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.4);
    transition: all 0.3s ease;
    animation: pinkGlow 2s infinite alternate;
}
.btn-glow-pink:hover {
    background: #ff00ff;
    box-shadow: 0 0 35px rgba(255, 0, 255, 0.8), inset 0 0 25px rgba(255, 0, 255, 0.8);
    transform: scale(1.05);
}
@keyframes pinkGlow {
    from {
        box-shadow: 0 0 10px rgba(255, 0, 255, 0.3), inset 0 0 10px rgba(255, 0, 255, 0.3);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 0, 255, 0.6), inset 0 0 20px rgba(255, 0, 255, 0.6);
    }
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 30px;
}
.footer-links a {
    color: #ffffff;
    opacity: 0.5;
    font-size: 0.8rem;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links a:hover {
    opacity: 1;
}

/* =========================================
   RESPONSIVE DESIGN (Smartphones & Tablets)
   ========================================= */

@media (max-width: 768px) {
    /* Navbar stack */
    .navbar {
        padding: 0.6rem 1rem;
        display: flex; /* Override grid if needed, but flex is easier here */
        justify-content: space-between;
    }
    .navbar-center {
        display: none;
    }
    .logo-img {
        height: 36px;
    }

    .hamburger {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 105;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
    
    /* Hero Typography */
    .main-title {
        font-size: 3rem;
        letter-spacing: 5px;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    .title-small {
        font-size: 1.2rem;
        letter-spacing: 3px;
        margin-bottom: 10px;
    }
    .pre-title {
        font-size: 16px;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }
    .subtitle {
        font-size: 15px;
        padding: 0 20px;
    }
    
    /* Scrolly Section */
    .scrolly-floating-text {
        font-size: 12vw; 
        letter-spacing: 2vw;
    }

    /* Services Grid */
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .services-section {
        padding: 50px 20px;
    }
    .services-grid {
        gap: 30px;
    }
    
    /* Cards */
    .card-3d-wrapper {
        height: 350px; 
    }
    .card-content h3 {
        font-size: 1.3rem;
    }

    /* Footer */
    footer {
        padding: 60px 20px 30px;
    }
    footer h2 {
        font-size: 1.8rem;
    }
    .btn-glow-pink {
        padding: 12px 30px;
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .footer-links {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
    }
}
