/* CSS Variables based on Logo Palette */
:root {
    --primary-color: #1ea0e6;
    /* Bright cyan/blue from drop */
    --primary-dark: #1282be;
    --secondary-color: #143c68;
    /* Dark navy from 'BAYERN' text */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-color);
}

/* Typography & Buttons */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn-primary,
.btn-primary-sm {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(30, 160, 230, 0.4);
}

.btn-primary:hover,
.btn-primary-sm:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 160, 230, 0.5);
}

.btn-primary-sm {
    padding: 10px 24px;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--bg-white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

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

.w-100 {
    width: 100%;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    width: 100%;
    padding: 0 3vw;
}

.logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    filter: drop-shadow(0 4px 10px rgba(30, 160, 230, 0.35)); /* Brand colored subtle glow/shadow */
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-links a:not(.btn-primary-sm) {
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a:not(.btn-primary-sm)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover::after,
.nav-links a:not(.btn-primary-sm).active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 12px 22px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 160, 230, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.lang-selector:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(30, 160, 230, 0.6);
}

.lang-selector i {
    color: white;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .lang-selector i,
.custom-dropdown.open .dropdown-selected i {
    transform: rotate(180deg);
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dropdown-selected img {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 170px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    border: 1px solid var(--border-color);
}

.custom-dropdown.open .dropdown-options {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-option img {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('Logo.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
    color: var(--bg-white);
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 60, 104, 0.7) 0%, rgba(20, 60, 104, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

/* 3D Floating Logo & Lightning */
.hero-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    z-index: 2;
}

.hero-logo-3d {
    width: 350px;
    max-width: 90vw;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(30, 160, 230, 0.6), 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2) inset;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    animation: float3d 10s linear infinite;
}

.lightning-bolt {
    position: absolute;
    width: 90%;
    height: 90%;
    top: -40%;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    filter: drop-shadow(0 0 8px rgba(30, 160, 230, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
}

.bolt-left {
    left: -40%;
    animation: flash-lightning 4s infinite;
}

.bolt-right {
    right: -40%;
    animation: flash-lightning 4s infinite 2s;
}

.lightning-bolt path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: miter;
}

@keyframes flash-lightning {
    0%, 92% { opacity: 0; transform: scale(0.95); }
    93% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 20px #1ea0e6) drop-shadow(0 0 40px #fff); }
    94% { opacity: 0; }
    95% { opacity: 0.8; transform: scale(1.05); }
    96% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes float3d {
    0% { transform: perspective(1000px) rotateX(10deg) rotateY(0deg) translateY(0px); }
    25% { transform: perspective(1000px) rotateX(10deg) rotateY(90deg) translateY(-10px); }
    50% { transform: perspective(1000px) rotateX(10deg) rotateY(180deg) translateY(-20px); }
    75% { transform: perspective(1000px) rotateX(10deg) rotateY(270deg) translateY(-10px); }
    100% { transform: perspective(1000px) rotateX(10deg) rotateY(360deg) translateY(0px); }
}

.hero-logo-3d:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05) translateY(-10px);
    box-shadow: 0 0 45px rgba(30, 160, 230, 0.9), 0 35px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.3) inset;
    animation-play-state: paused;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(30, 160, 230, 0.2);
    border: 1px solid rgba(30, 160, 230, 0.5);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #a8dfff;
    backdrop-filter: blur(4px);
}

.hero-subtitle i {
    color: var(--primary-color);
    margin-right: 5px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(30, 160, 230, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-image-inner img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 4px solid var(--bg-white);
}

.experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 600;
}

.about-content .subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--secondary-color);
}

.about-features li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.info-card .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 160, 230, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-card h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.info-card p {
    color: var(--text-light);
}

.contact-form-container {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group:last-of-type,
.form-group:nth-last-of-type(2) {
    grid-column: span 2;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 160, 230, 0.1);
    background-color: var(--bg-white);
}

.contact-form button {
    grid-column: span 2;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 5px rgba(30, 160, 230, 0.4));
}

.footer-logo p {
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 160px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 160px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        overflow-y: auto;
        margin-left: 0;
        transform: none;
    }

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

    .mobile-toggle {
        display: block;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group {
        grid-column: span 1 !important;
    }

    .contact-form button {
        grid-column: span 1;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .lang-selector {
        margin-top: 15px;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.85);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-body h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: white;
    font-size: 1.3rem;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}