/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #000000; /* Schwarz */
    --secondary-color: #000000; /* Schwarz */
    --accent-color: #000000; /* Schwarz */
    --light-bg: #ffffff; /* Haupt-Hintergrund: Weiß */
    --dark-text: #1a1a1a;
    --light-text: #6f6f6f;
    --border-color: #e9e9ea;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.10);
    --transition: all 0.32s cubic-bezier(0.2, 0, 0, 1);
    --nav-offset: 86px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: transparent;
    background-image: url('../images/3.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    background: #000000;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    z-index: 3000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 12px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section h1,
section h2,
section h3,
section h4,
main h1,
main h2,
main h3,
main h4 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 8rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    perspective: 1200px;
    transform: translateZ(0) rotateX(0.5deg);
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.55rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    transition: var(--transition);
}

.logo-img {
    height: 82px;
    width: auto;
    position: relative;
    z-index: 20;
}

.logo-text {
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    perspective: 1000px;
    justify-content: center;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #f5f5f5;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.45rem 0;
    border-bottom: 2px solid transparent;
    position: relative;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.nav-link:hover,
.nav-link.active {
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
    transform: scale(1.08) translateY(-2px);
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.nav-link-button {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
}

/* ===== HOME NAV TRANSPARENCY ===== */
.home .navbar {
    background: transparent;
    box-shadow: none;
}

.home .navbar::after {
    background: transparent;
}

.home .nav-link {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.home .nav-link:hover,
.home .nav-link.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.home .lang-selector {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
    z-index: 1200;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== LANGUAGE SELECTOR ===== */
.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    gap: 1rem;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #000000, #000000);
    border: 2px solid #000000;
    cursor: pointer;
    font-weight: 700;
    color: #ffffff;
}

.lang-selector img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-dropdown {
    position: absolute;
    right: 20px;
    top: 64px;
    background: var(--light-bg);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 2000;
}

.lang-dropdown.active,
.lang-dropdown.open {
    display: block;
}

.lang-btn {
    background: transparent;
    color: inherit;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.lang-dropdown button {
    display: block;
    width: 200px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.lang-dropdown button:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-offset));
    padding-top: var(--nav-offset);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: none;
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
}

.hero-video,
.hero-background img {
    display: none; /* use background image instead of embedded video for consistent glossy look */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--dark-text);
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 6px 30px rgba(255,255,255,0.12);
}

.hero-text {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}
.hero-title {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 2px 10px rgba(0,0,0,0.5);
    color: #ffffff;
}
.hero-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 0 3px 15px rgba(0,0,0,0.7);
    font-weight: 600;
    color: #ffffff;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 500;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(180deg, #000000, #000000);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.btn-secondary {
    background: linear-gradient(180deg, #ffffff, #f6f6f6);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #fefefe, #efefef);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== KEY FACTS SECTION ===== */
.keyfacts {
    padding: 2rem 0;
    background: transparent;
}

.keyfacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 993px) {
    .keyfacts-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 1200px;
        margin: 2rem auto 0;
        align-items: stretch;
        gap: 0.9rem;
    }
}

.keyfact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    cursor: pointer;
}

.keyfact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.keyfact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(180deg, #ffffff, var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transform: scale(1);
    transition: var(--transition);
}

.keyfact-card:hover .keyfact-icon {
    transform: scale(1.15) rotate(10deg);
}

.keyfact-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.keyfact-card p {
    color: #e6e6e6;
    font-size: 0.95rem;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--secondary-color);
    margin: 1rem auto 8rem;
    position: relative;
    padding-bottom: 1rem;
    display: block;
    width: fit-content;
    background: #ffffff;
    padding: 0.4rem 1.2rem 1.1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-text h2,
.contact-form-wrapper h2,
.contact-info-wrapper h2,
.cta-content h2 {
    text-align: center;
}

/* ===== SERVICES PREVIEW SECTION ===== */
.services-preview {
    padding: 2.5rem 0;
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f7f7f7);
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-link {
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    background: rgba(255,255,255,0.98);
}

.service-link:hover {
    background: #fff;
    color: var(--secondary-color);
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.5rem;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: #ffffff;
}

.service-card p {
    color: #e6e6e6;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
}

/* ===== WHY US SECTION ===== */
.why-us {
    padding: 2.5rem 0;
    background: transparent;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.why-us-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.why-us-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    cursor: pointer;
}

.why-us-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.why-us-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.why-us-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.why-us-info p {
    color: #e6e6e6;
    font-size: 0.95rem;
    text-align: center;
}

.why-us-image {
    position: relative;
}

.image-3d-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    perspective: 1000px;
    transform: rotateX(5deg) rotateY(-5deg);
    transition: var(--transition);
}

.image-3d-wrapper:hover {
    transform: rotateX(0deg) rotateY(0deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.image-3d-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.why-us-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 2rem 0;
    background: transparent;
    color: #ffffff;
    text-align: center;
}

.cta-content {
    display: inline-block;
    max-width: 720px;
    padding: 2.5rem 3rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    padding-bottom: 0.5rem;
}

.footer-logo {
    width: 500px;
    height: auto;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a {
    color: #ffffff;
    transition: var(--transition);
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: white;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.mobile-contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2100;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-contact-link {
    flex: 1;
    text-align: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 0.72rem 0.5rem;
    font-weight: 600;
}

.mobile-contact-link-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    :root {
        --nav-offset: 76px;
    }

    body,
    .hero-background {
        background-attachment: scroll;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.7rem 18px;
    }

    .nav-actions {
        margin-left: 0;
        order: 2;
        width: auto;
        gap: 0.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 18px;
        right: 18px;
        flex-direction: column;
        background: rgba(16, 16, 16, 0.96);
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-md);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 1100;
    }

    .nav-link {
        width: 100%;
        display: flex;
        padding: 0.65rem 0.5rem;
        border-bottom: none;
        justify-content: center;
        text-align: center;
    }

    .nav-link:hover,
    .nav-link.active {
        transform: none;
        border-bottom-color: transparent;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 560px;
        height: auto;
        padding-top: calc(var(--nav-offset) + 1rem);
        padding-bottom: 2.5rem;
    }

    .hero-text {
        width: min(100%, 760px);
        padding: 1.6rem;
    }

    .keyfacts-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-us-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-content {
        width: min(100%, 760px);
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.68rem 18px;
    }

    .nav-actions {
        margin-left: 0;
        order: 2;
        width: auto;
        gap: 0.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        flex-direction: column;
        background: rgba(16, 16, 16, 0.96);
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-md);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 1100;
    }

    .nav-link {
        width: 100%;
        display: flex;
        padding: 0.65rem 0.5rem;
        border-bottom: none;
        justify-content: center;
        text-align: center;
    }

    .nav-link:hover,
    .nav-link.active {
        transform: none;
        border-bottom-color: transparent;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 540px;
        height: auto;
        padding-top: calc(var(--nav-offset) + 1rem);
        padding-bottom: 2.5rem;
    }

    .hero-text {
        width: min(100%, 700px);
        padding: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .why-us-content {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .keyfacts-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    body {
        padding-bottom: 74px;
    }

    .mobile-contact-bar {
        display: flex;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-offset: 72px;
    }

    .container {
        padding: 0 14px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-meta {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .keyfacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-container {
        padding: 0.75rem 14px;
    }

    .cta-content {
        padding: 1.4rem 1rem;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .nav-link-button {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }

    .lang-selector,
    #langSelector .lang-btn {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .nav-menu {
        left: 14px;
        right: 14px;
    }

    .logo-img {
        height: 48px;
    }

    .hero-text {
        padding: 1.25rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile: reduce heavy shadows for better performance and visual clarity */
    .navbar { box-shadow: none; }
    .keyfact-card, .service-card, .why-us-item, .image-3d-wrapper, .footer { box-shadow: none !important; }
    .keyfact-card:hover, .service-card:hover, .why-us-item:hover { transform: none !important; }
    .flip-card .flip-card-inner { transition: none; }
    .flip-card:hover .flip-card-inner { transform: none; }
    .image-3d-wrapper { transform: none; perspective: none; }
    .team-card-image img.team-photo { width: 140px; height: 140px; }


    /* Extra small screens: soften all shadows */
    .nav-container, .container, .footer { box-shadow: none; }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0.9rem 18px;
    }

    .nav-menu {
        gap: 1.2rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-text {
        max-width: 80%;
    }

    .footer-content {
        gap: 2rem;
    }
}

/* ===== GLOBAL FX LAYER ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    z-index: 5000;
    background: linear-gradient(90deg, #ffffff, #e6e6e6);
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.cursor-orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 50;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.effects-ready .cursor-orb {
    opacity: 1;
}

.fx-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.fx-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
    animation: floatParticle linear infinite;
    will-change: transform, opacity;
}

@keyframes floatParticle {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.55;
    }
    60% {
        opacity: 0.35;
    }
    100% {
        transform: translate3d(0, -120vh, 0) scale(1.15);
        opacity: 0;
    }
}

.fx-tilt {
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.fx-tilt-layer {
    transform: translateZ(20px);
}

.fx-magnetic {
    transition: transform 0.2s ease;
    will-change: transform;
}

.fx-reveal {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.fx-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.keyfact-card,
.service-card,
.quality-card,
.value-card,
.team-card,
.contact-form-wrapper,
.contact-info-wrapper,
.faq-item,
.cta-content,
.why-us-item {
    position: relative;
    isolation: isolate;
}

.keyfact-card::after,
.service-card::after,
.quality-card::after,
.value-card::after,
.team-card::after,
.contact-form-wrapper::after,
.contact-info-wrapper::after,
.faq-item::after,
.cta-content::after,
.why-us-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0) 82%);
    transform: translateX(-125%);
    transition: transform 0.9s ease;
    pointer-events: none;
    z-index: 2;
}

.keyfact-card:hover::after,
.service-card:hover::after,
.quality-card:hover::after,
.value-card:hover::after,
.team-card:hover::after,
.contact-form-wrapper:hover::after,
.contact-info-wrapper:hover::after,
.faq-item:hover::after,
.cta-content:hover::after,
.why-us-item:hover::after {
    transform: translateX(125%);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-progress,
    .cursor-orb,
    .fx-particles {
        display: none !important;
    }

    .fx-reveal,
    .fx-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== DASHBOARD + LANG DROPDOWN STYLES ===== */
.dashboard-container { max-width: 1100px; margin: 2rem auto; padding: 1rem; }
#uploads form, #msgForm { margin-bottom: 1rem; display:flex; gap:.5rem; align-items:center; }
#fileLists a { color: var(--accent-color); text-decoration: underline; }
.msg { border: 1px solid rgba(0,0,0,0.06); padding: .75rem; margin-bottom: .5rem; border-radius: 6px; }

/* Inline language selector (fallback for our small dropdown) */
#langSelector { position: relative; display:inline-flex; align-items:center; gap:8px; }
.lang-btn { background: transparent; border: 1px solid rgba(0,0,0,0.08); padding:6px 8px; border-radius:6px; cursor:pointer; }
.lang-dropdown { display:none; position:absolute; right:0; top:40px; background:white; box-shadow:0 6px 20px rgba(0,0,0,0.08); border-radius:6px; padding:6px; z-index: 3000; }
.lang-dropdown.open { display:block; }
.lang-item { display:block; background:transparent; border:none; padding:6px 10px; cursor:pointer; width:100%; text-align:left; }
.lang-item.selected { font-weight:700; }

/* Team photo sizing */
.team-card-image img.team-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 8px; }


