/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 120px;
    transition: height 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    height: 80px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    transition: height 0.3s ease;
}

.header.scrolled .header-content {
    height: 80px;
}

.logo img {
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #d32f2f;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #d32f2f;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector select {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.btn-contact {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-contact:hover {
    background: #b71c1c;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25));
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block !important;
    background: #d32f2f !important;
    color: white !important;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    position: relative;
    z-index: 999;
    margin-top: 20px;
    border: 2px solid white;
}

.btn-hero:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Technology Section */
.technology {
    padding: 100px 0;
    background: #f8f9fa;
}

.technology-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
}

.technology-left {
    flex: 0 0 auto;
}

.technology-left .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.technology-divider {
    width: 4px;
    height: 80px;
    background: #d32f2f;
    flex-shrink: 0;
    margin-top: 10px;
}

.technology-right {
    flex: 1;
    padding-top: 10px;
}

.technology-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* Certifications Section */
.certifications {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.certifications-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 50px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.cert-item {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.cert-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cert-item img {
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.cert-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.cert-item .cert-standards {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.cert-item .cert-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 500;
}

.btn-secondary {
    background: transparent;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d32f2f;
    color: white;
}

/* Business Areas */
.business-areas {
    padding: 80px 0;
    background: #f8f9fa;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.business-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.business-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.business-content {
    padding: 20px;
    text-align: center;
}

.business-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.read-more {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #b71c1c;
}

/* Partners Section */
.partners {
    padding: 80px 120px;
    background: white;
    text-align: center;
}

.partners-container {
    position: relative;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease;
    width: calc(100% * 2); /* Double width for cloned items */
}

.partner-item {
    flex: 0 0 calc(100% / 6); /* Show 3 items at once, so each is 1/6 of double width */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.partner-item img {
    height: 120px;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-item img:hover {
    transform: scale(1.1);
}

.partners-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(211, 47, 47, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    color: white;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-nav:hover {
    background: rgba(211, 47, 47, 1);
}

.partners-nav-prev {
    left: -35px;
}

.partners-nav-next {
    right: -35px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    min-width: 300px;
}

.services-divider {
    width: 3px;
    height: 80px;
    background: #dc2626;
    margin-top: 10px;
    flex-shrink: 0;
}

.services-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    flex: 1;
    padding-top: 10px;
}

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

.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #dc2626;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
}

.service-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.service-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.service-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.service-badge {
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    align-self: flex-start;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li:before {
    content: '•';
    color: #dc2626;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-note {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 0 6px 6px 0;
    color: #1e40af;
    font-size: 0.9rem;
    font-style: italic;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #dc2626;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
        margin: 0 20px;
    }
}

/* Footer */
.footer {
    background: #f5f5f5;
    color: #333;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-logo-large {
    height: 120px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #d32f2f;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: #d32f2f;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #666;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d32f2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .header.scrolled {
        height: 60px;
    }
    
    .header-content {
        height: 70px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        gap: 10px;
    }
    
    .header.scrolled .header-content {
        height: 60px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .header.scrolled .logo img {
        height: 40px;
    }
    
    .nav {
        position: relative;
        order: -1;
        justify-self: start;
    }
    
    .logo {
        justify-self: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #d32f2f;
        background: #f8f9fa;
        padding-left: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-right {
        z-index: 1001;
        justify-self: end;
    }
    
    .btn-contact {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn-hero {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .technology-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .technology-divider {
        width: 80px;
        height: 4px;
        margin-top: 0;
    }
    
    .certifications-grid,
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .partner-item {
        flex: 0 0 calc(100% / 4); /* Show 2 items at once on tablets */
    }
    
    .partners-nav {
        width: 40px;
        height: 40px;
    }
    
    .partners {
        padding: 80px 40px;
    }
    
    .partners-nav-prev {
        left: -35px;
    }
    
    .partners-nav-next {
        right: -35px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .partners-track {
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .services-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .services-title {
        font-size: 2rem;
        min-width: auto;
    }
    
    .services-divider {
        width: 50px;
        height: 3px;
        margin-top: 0;
    }
    
    .services-description {
        padding-top: 0;
    }
}

/* Form Message Styles */
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .certifications-grid,
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .partner-item {
        flex: 0 0 calc(100% / 2); /* Show 1 item at once on mobile */
    }
    
    .partner-item img {
        height: 80px;
        max-width: 120px;
    }
    
    .partners-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
.partners-nav-prev {
        left: -35px;
    }
    
    .partners-nav-next {
        right: -35px;
    }
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.accessibility-icon {
    width: 60px;
    height: 60px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.accessibility-icon:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.accessibility-icon:focus {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

.accessibility-popup {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: white;
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 20px;
    max-width: 300px;
    width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Open Sans', sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.accessibility-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.accessibility-popup::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #dc2626;
}

.accessibility-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.accessibility-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #dc2626;
}

.accessibility-popup-header i {
    font-size: 20px;
}

.accessibility-popup-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    color: #dc2626;
}

.accessibility-popup-content {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.accessibility-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.accessibility-popup-close:hover {
    color: #374151;
}

@media (max-width: 768px) {
    .accessibility-popup {
        max-width: 250px;
        width: 250px;
        left: -10px;
    }
    
    .accessibility-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .accessibility-widget {
        bottom: 20px;
        left: 15px;
    }
}
