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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: bold;
    color: #003366;
    margin: 0 0 1rem 0;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
    margin: 0 0 1rem 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation Styles */
nav {
    background: #003366;
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.nav-brand img {
    height: clamp(40px, 8vw, 60px);
    width: auto;
}

.nav-brand span {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: clamp(0.85rem, 2vw, 1rem);
    white-space: nowrap;
}

nav a:hover {
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
}

.language-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    min-width: 40px;
}

.language-btn:hover {
    background: #fff;
    color: #003366;
}

.language-btn.active {
    background: #ffcc00;
    color: #003366;
    border-color: #ffcc00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('assets/hero-cnc.jpg') center/cover no-repeat;
    color: #fff;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
    text-align: center;
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

/* CTA Button */
.cta-btn {
    background: #ffcc00;
    color: #003366;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.5rem, 4vw, 2rem);
    border: none;
    border-radius: 6px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-btn:hover {
    background: #ffd633;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 30px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-top: clamp(-30px, -5vw, -40px);
    position: relative;
    z-index: 2;
}

.section-title {
    color: #003366;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
}

/* Services Grid */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 3rem;
}

.service-item {
    background: #f8f9fa;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #ffcc00;
}

.service-item h3 {
    color: #003366;
    margin-bottom: 0.75rem;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.service-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Testimonials */
.testimonials {
    margin-bottom: 3rem;
}

.testimonial {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ffcc00;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.testimonial:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #555;
}

.testimonial strong {
    color: #003366;
    font-weight: 600;
}

/* Clients Section */
.clients {
    margin-bottom: 2rem;
}

.clients-logos {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.clients-logos img {
    height: clamp(30px, 6vw, 50px);
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s;
}

.clients-logos img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* Gallery Styles */
.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
}

.uniform-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.uniform-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Form Styles */
form {
    margin-top: 2rem;
    max-width: 600px;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #003366;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

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

form input[type="submit"] {
    background: #003366;
    color: white;
    border: none;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

form input[type="submit"]:hover {
    background: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Map Styles */
#map iframe {
    width: 100%;
    height: clamp(300px, 50vw, 400px);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
    background: #003366;
    color: #fff;
    margin-top: 3rem;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
}

/* Contact Info Styles */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-item {
    font-size: 1.2rem;
    margin: 1.2rem 0;
    line-height: 1.6;
    color: #333;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-item:first-child {
    margin-top: 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #003366;
    font-weight: 700;
    min-width: 80px;
    flex-shrink: 0;
}

.contact-item a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-item a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.contact-item span {
    color: #333;
    font-weight: 500;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Responsive Breakpoints */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-brand {
        justify-content: center;
        min-width: auto;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .language-switcher {
        order: 2;
        justify-content: center;
    }
    
    .hero {
        min-height: 40vh;
        padding: 2rem 1rem;
    }
    
    .container {
        margin-top: -20px;
        border-radius: 8px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .clients-logos {
        justify-content: center;
    }
    
    .catalog {
        grid-template-columns: 1fr;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    nav {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    nav {
        padding: 1rem 3rem;
    }
    
    .services-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .catalog {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 3rem 4rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('assets/hero-cnc@2x.jpg');
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    nav, .language-switcher, .cta-btn {
        display: none;
    }
    
    .hero {
        background: #003366;
        color: #fff;
        padding: 2rem;
    }
    
    .container {
        box-shadow: none;
        margin-top: 0;
    }
    
    .service-item, .testimonial {
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .container {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .service-item {
        background: #3a3a3a;
        border-color: #4a4a4a;
    }
    
    .testimonial {
        background: #3a3a3a;
        border-color: #4a4a4a;
    }
}