* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ae954f 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

/* Header */
.header {
    background: #e0d3c3;
    color: #694f43;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 350px;
    height: 120px;
    border-radius: 15px;
    object-fit: contain;
/*    background: Gainsboro;*/
    padding: 5px;
/*    box-shadow: 0 5px 15px rgba(0,0,0,0.2);*/
    display: block;
    flex-shrink: 0;
	margin-top: 1.5rem;
}

.logo-fallback {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.company-name {
	font-family: 'Arial Black', 'Arial Bold', sans-serif;
	letter-spacing: 1px;
    font-size: 1.6rem;
    font-weight: 700;
    background: black /*linear-gradient(45deg, #667eea, #764ba2);*/
   /* -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;*/
	margin-top: 1rem;
}

.tagline {
	font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-size: 1.1rem;
    opacity: 0.5;
    margin-top: 0.1rem;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    background: #b79977;
    border-color: rgba(102, 126, 234, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.lang-btn.active:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-1px);
}

.flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav {
    background: #34495e;
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: #b79977;;
    border-bottom-color: #764ba2;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 3rem 2rem;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Home Page */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    overflow: hidden;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 2rem auto;
    max-width: 800px;
    color: #555;
}

.partners-section {
    margin-top: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* References Gallery */
.gallery-container {
    margin-top: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 2rem;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Google Maps container */
.google-maps-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
}

.google-maps-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    color: #2c3e50;
    border-left: 4px solid #667eea;
    backdrop-filter: blur(5px);
    max-width: calc(100% - 30px);
    z-index: 10;
}

.map-instructions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    max-width: calc(100% - 30px);
    z-index: 10;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.modal-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 15px 0;
    color: white;
}

.modal-counter {
    color: white;
    font-size: 18px;
    opacity: 0.8;
}

.close {
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    user-select: none;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.modal-nav:disabled:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-50%) scale(0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        border-radius: 0;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-link {
        padding: 0.8rem 1rem;
    }

    .company-name {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Language selector mobile styles */
    .language-selector {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        justify-content: center;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .flag {
        width: 16px;
        height: 10px;
    }

    /* Header responsive adjustments */
    .header {
        padding: 1.5rem 1rem;
    }

    /* Modal navigation for mobile */
    .modal-nav {
        font-size: 24px;
        padding: 10px 15px;
        top: 45%;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }

    .modal-counter {
        font-size: 16px;
    }

    .close {
        font-size: 35px;
    }

    /* About section responsive */
    #about > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .language-selector {
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 6px;
    }

    .flag {
        width: 14px;
        height: 9px;
    }

    .company-name {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Very small screens - map optimizations */
    .google-maps-container {
        height: 250px !important;
        border-radius: 10px !important;
    }
    
    .map-overlay {
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
    }
    
    /* Ensure no horizontal overflow */
    .main-content {
        padding: 2rem 1rem !important;
    }
    
    .contact-card {
        padding: 1.5rem !important;
    }
    
    /* Force block layout for map buttons on very small screens */
    .contact-card div[style*="margin-top"] a {
        display: block !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
        max-width: 100% !important;
        padding: 10px 8px !important;
        font-size: 0.8rem !important;
        box-sizing: border-box !important;
    }
    
    /* Company data responsive */
    #contact div[style*="company-data"] div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
        text-align: left !important;
    }
    
    #contact div[style*="company-data"] p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
}