:root {
    --bg-dark: #0B0E14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-main: #FFFFFF;
    --text-muted: #8899A6;
    --primary: #0070F3; /* Electric Blue */
    --border-color: rgba(255, 255, 255, 0.05);
    
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #202023;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #4fd1c5;
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--primary);
    transition: all 0.2s ease;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: #202023;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
    max-height: 56px;
    height: auto;
    max-width: 250px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
}

.nav-links a::after {
    content: attr(data-longest);
    height: 0;
    visibility: hidden;
    overflow: visible;
    pointer-events: none;
    user-select: none;
}

.nav-links .btn-primary-outline {
    align-items: center;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 140px 20px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-visual {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 300px;
    object-fit: cover;
}

.hero-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    display: inline-block;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 auto 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Section Styling */
.section {
    padding: 50px 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    border-bottom: 4px solid #525252;
    display: inline-block;
    padding-bottom: 4px;
    border-radius: 2px;
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    background: rgba(0, 112, 243, 0.05);
}

.package-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.package-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 44px;
}

.package-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.package-features li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Why Us */
.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    margin-bottom: 24px;
    padding-left: 32px;
    position: relative;
    color: var(--text-muted);
}

.features-list li strong {
    color: var(--text-main);
}

.features-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Final Portfolio Showcase Fix - Clean Version */
.portfolio-slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden; /* Prevent horizontal overflow */
    padding: 60px 0 30px 0;
}

.portfolio-track-wrapper {
    width: 100%;
    overflow: hidden; /* Clip horizontal slides */
}

.portfolio-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.portfolio-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 100px 70px 100px; /* 70px bottom padding to contain absolute phone mockup */
    position: relative;
    box-sizing: border-box;
}

.project-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px;
}

.mockup-group {
    flex: 1.5;
    position: relative;
}

.browser-mockup {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.1);
}

.browser-header {
    background: #222;
    padding: 10px 15px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #333;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-content {
    aspect-ratio: 16/10;
    overflow: visible;
    background: #000;
}

.browser-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.phone-mockup {
    position: absolute;
    width: 220px;
    aspect-ratio: 9/19.5;
    background: #000;
    border: 10px solid #222;
    border-radius: 36px;
    right: -30px;
    bottom: -60px; /* Breakout! */
    box-shadow: 0 40px 80px rgba(0,0,0,0.9);
    overflow: visible;
    z-index: 10;
}

.phone-content {
    width: 100%;
    height: 100%;
}

.phone-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.project-info {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Slider Controls at Sides */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1000;
}

.slider-btn {
    pointer-events: auto;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.3) !important;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 3rem;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}

.slider-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.slider-btn:hover {
    color: #fff !important;
    transform: scale(1.2);
}

@media (max-width: 1200px) {
    .project-showcase {
        flex-direction: column;
        text-align: center;
        gap: 80px;
    }
    .portfolio-slide {
        padding: 0 60px;
    }
    .phone-mockup {
        width: 180px;
        right: 0;
        bottom: -20px;
    }
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 1100px) {
    .project-showcase {
        flex-direction: column;
        text-align: center;
    }
    .portfolio-slide {
        padding: 0 40px;
    }
    .phone-mockup {
        width: 150px;
        right: 0;
    }
}

@media (max-width: 992px) {
    .project-info h3 { font-size: 3rem; }
    .project-info p { font-size: 1.1rem; }
    .phone-mockup { width: 180px; right: 5%; }
}

@media (max-width: 768px) {
    .portfolio-slider-container {
        padding: 40px 0 30px 0;
    }
    .portfolio-slide {
        padding: 0 45px 30px 45px;
    }
    .project-showcase {
        gap: 50px;
        min-height: auto;
    }
    .project-info {
        padding: 24px 20px;
        border-radius: 16px;
        text-align: left;
    }
    .project-info h3 {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }
    .project-info p {
        font-size: 1rem !important;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    .project-info ul {
        align-self: flex-start;
    }
    .phone-mockup {
        width: 105px !important;
        right: -10px !important;
        bottom: -25px !important;
        border-width: 5px !important;
        border-radius: 18px !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem !important;
    }
    .slider-controls {
        left: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .portfolio-slide {
        padding: 0 35px 25px 35px;
    }
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.6rem !important;
    }
    .slider-controls {
        left: 2px;
        right: 2px;
    }
    .project-showcase {
        gap: 35px;
    }
    .phone-mockup {
        width: 85px !important;
        right: -8px !important;
        bottom: -20px !important;
        border-width: 4px !important;
        border-radius: 14px !important;
    }
}

/* About Section */
.about-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

/* Why Us Section Grid Layout */
.why-us-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.why-us-content {
    border-radius: 12px;
    padding: 40px;
}

.google-review-card {
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Safety visibility for hero */
.hero-content, .hero-visual {
    opacity: 1 !important;
    transform: none !important;
}

/* Animations - Force visible to fix the black screen issue */
.fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Fallback: If JS is disabled or fails, show content anyway */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

.fade-in.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure Hero is always visible or fades in quickly */
.hero .fade-in {
    opacity: 1 !important;
}

/* Nav Actions & Language Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}



/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}

/* Mobile menu open state */
@media (max-width: 992px) {
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(10, 10, 15, 0.95) !important;
        padding: 20px 0 !important;
        backdrop-filter: blur(10px) !important;
    }
}

/* Language-based content visibility for legal pages */
html[lang="de"] #en-content,
html[lang="de"] .legal-divider {
    display: none;
}
html[lang="en"] #de-content,
html[lang="en"] .legal-divider {
    display: none;
}

/* Glassmorphism Styling */
.package-card,
.project-info,
.about-content,
.why-us-content,
.booking-text,
.local-card,
.trust-card,
.google-review-card,
.booking-placeholder {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.package-card:hover,
.project-info:hover,
.about-content:hover,
.why-us-content:hover,
.local-card:hover,
.trust-card:hover,
.booking-text:hover,
.google-review-card:hover,
.booking-placeholder:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(0, 112, 243, 0.4) !important;
    box-shadow: 0 25px 50px rgba(0, 112, 243, 0.25) !important;
}

/* Local Services Bento Grid (Local Businesses & Practices Focus with Blue Accents) */
.local-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.local-card {
    border-radius: 16px;
    padding: 35px 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.local-card-icon {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(0, 112, 243, 0.35));
    color: var(--primary);
    display: inline-flex;
    align-items: center;
}

.local-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.local-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
}

.about-content {
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    text-align: left !important;
    margin: 0 !important;
}

.trust-card {
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(0, 112, 243, 0.2) !important;
}



.trust-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Booking text adjustment */
.booking-text {
    padding: 32px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Rules for New Sections */
@media (max-width: 992px) {
    .local-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Float Animations - Desktop Only (CPU Efficiency for Mobile) */
@media (min-width: 768px) {
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-4px); } /* ultra gentle drift */
        100% { transform: translateY(0px); }
    }

    @keyframes float-reverse {
        0% { transform: translateY(0px); }
        50% { transform: translateY(4px); } /* ultra gentle drift */
        100% { transform: translateY(0px); }
    }

    /* Asynchronous Floating for Local Cards & Trust Cards */
    .local-services-grid .local-card:nth-child(1) {
        animation: float 8s ease-in-out infinite; /* slow, premium pacing */
    }
    .local-services-grid .local-card:nth-child(2) {
        animation: float-reverse 9s ease-in-out infinite;
    }
    .local-services-grid .local-card:nth-child(3) {
        animation: float 10s ease-in-out infinite;
    }
    .trust-card,
    .why-us-content,
    .booking-text {
        animation: float 9s ease-in-out infinite;
    }
    .booking-placeholder,
    .google-review-card {
        animation: float-reverse 10s ease-in-out infinite;
    }

    /* Logo animation */
    .logo img {
        animation: float 7s ease-in-out infinite;
    }
}

