:root {
    --PRIMARY: #0f766e;
    --PRIMARY_DARK: #115e59;
    --SECONDARY: #374151;
    --ACCENT: #ea580c;
    --LIGHT_BG: #f8fafc;
    --WHITE: #ffffff;
    --GRAY: #6b7280;
    --LIGHT_GRAY: #d1d5db;
}

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

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

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

/* Header */
.header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--LIGHT_GRAY);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Language Selector */
.language-selector {
    padding: 0.5rem 1rem;
    border: 2px solid var(--PRIMARY);
    background: var(--WHITE);
    color: var(--PRIMARY);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: var(--PRIMARY);
    color: var(--WHITE);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--WHITE);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal h2 {
    color: var(--PRIMARY);
    margin-bottom: 1.5rem;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-btn {
    padding: 1rem;
    border: 2px solid var(--PRIMARY);
    background: var(--WHITE);
    color: var(--PRIMARY);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: var(--PRIMARY);
    color: var(--WHITE);
}

/* Flag icon styles */
.flag-svg {
    width: 1.15rem;
    height: 0.8rem;
    vertical-align: middle;
    display: inline-block;
}

.flag-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.language-label, .language-abbr {
    margin-left: 0.25rem;
    font-weight: 700;
}

.logo {
    font-family: 'Montserrat', 'Trebuchet MS', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--PRIMARY);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', 'Trebuchet MS', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--PRIMARY);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--SECONDARY);
    margin-bottom: 4rem;
}

/* Services Preview - 4 columns on desktop, 2 on tablet, 1 on mobile */
.services-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Ensure good spacing for 4 columns */
@media (min-width: 1200px) {
    .services-preview {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .services-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .services-preview {
        grid-template-columns: 1fr;
    }
}

.service-item {
    padding: 2.5rem 1.5rem;
    background: var(--WHITE);
    border-radius: 12px;
    border: 2px solid var(--LIGHT_GRAY);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.15);
    border-color: var(--PRIMARY);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-family: 'Montserrat', 'Trebuchet MS', sans-serif;
    color: var(--PRIMARY);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-item p {
    color: var(--SECONDARY);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--PRIMARY) 0%, var(--PRIMARY_DARK) 100%);
    border-radius: 16px;
    margin: 4rem 0;
    color: var(--WHITE);
}

.cta-section h2 {
    font-family: 'Montserrat', 'Trebuchet MS', sans-serif;
    color: var(--WHITE);
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--WHITE);
    color: var(--PRIMARY);
}

.btn-primary:hover {
    background: var(--LIGHT_BG);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--WHITE);
    border-color: var(--WHITE);
}

.btn-secondary:hover {
    background: var(--WHITE);
    color: var(--PRIMARY);
    transform: translateY(-2px);
}

/* CTA Sample Link */
.cta-sample-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--WHITE);
    opacity: 0.95;
}

.cta-sample-link a {
    color: var(--WHITE);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cta-sample-link a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--LIGHT_GRAY);
    color: var(--GRAY);
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .service-item {
        padding: 2rem 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 2rem;
        margin: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .cta-sample-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .service-item {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
}
