/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #00a0e9;
    --light-color: #f5f9ff;
    --dark-color: #001a33;
    --text-color: #333;
    --background-color: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Language Switcher */
#language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

#language-switcher button {
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

#language-switcher button.active {
    background-color: var(--primary-color);
    color: white;
}

/* Language Display */
.en, .nav-en {
    display: none !important;
}

body.en .en {
    display: block !important;
}

body.en .de {
    display: none !important;
}

body.en .nav-en {
    display: block !important;
}

body.en .nav-de {
    display: none !important;
}

/* Make sure buttons are properly shown/hidden */
body.en .submit-button.de,
body.de .submit-button.en {
    display: none !important;
}

body.en .submit-button.en,
body.de .submit-button.de {
    display: inline-block !important;
}

body.en .cta-button.de,
body.de .cta-button.en {
    display: none !important;
}

body.en .cta-button.en,
body.de .cta-button.de {
    display: inline-block !important;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--light-color);
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('../images/digital_blue.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.blue-bg {
    background-color: var(--light-color);
}

.content-with-image {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content-with-image.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-container {
    flex: 1;
    text-align: center;
}

.section-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: white;
}

.cta-button.primary:hover {
    background-color: #0089c7;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

/* Process Steps */
.process-steps {
    margin-top: 40px;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Discovery Call Section */
.discovery-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.discovery-text {
    flex: 1;
}

.discovery-image {
    flex: 1;
    text-align: center;
}

/* Testimonials */
.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    padding: 30px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--light-color);
    font-family: Georgia, serif;
    z-index: 0;
    opacity: 0.5;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: bold;
    margin-top: 15px;
    text-align: right;
    color: var(--primary-color);
}

/* Contact Form */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.submit-button {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

.info-block {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-block h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.info-block p {
    margin-bottom: 15px;
}

.info-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-block a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0;
}

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

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-with-image,
    .content-with-image.reverse,
    .discovery-content {
        flex-direction: column;
    }
    
    .image-container,
    .discovery-image {
        margin-top: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 300px;
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    #hero {
        padding: 60px 0;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.8rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
