:root {
    --navy-blue: #0a192f;
    --red: #e4002b;
    --white: #ffffff;
    --light-grey: #f0f2f5;
    --dark-grey: #333;
    --text-color: #5a6a7e;
    --sans-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans-serif); background-color: var(--white); color: var(--text-color); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
h1, h2, h3 { color: var(--navy-blue); font-weight: 700; }
h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 700px; margin: -1.5rem auto 3rem auto; }

.btn { display: inline-block; padding: 12px 28px; background-color: var(--red); color: var(--white); text-decoration: none; font-weight: bold; border-radius: 5px; transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease; border: none; cursor: pointer; }
.btn:hover { background-color: #c00024; transform: translateY(-2px); }

.main-header { position: sticky; top: 0; width: 100%; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 15px 0; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav a { text-decoration: none; color: var(--navy-blue); font-weight: 600; position: relative; padding-bottom: 5px; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--red); transition: width var(--transition-speed) ease; }
.main-nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 25px; }
.language-switcher span { cursor: pointer; font-weight: bold; color: var(--text-color); transition: color var(--transition-speed); }
.language-switcher span:hover { color: var(--red); }
.language-switcher span.active { color: var(--red); text-decoration: underline; }

.hero { position: relative; height: 90vh; background-color: var(--navy-blue); background-image: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center; display: flex; align-items: center; color: var(--white); padding: 0 0 130px 0; }
    .hero__content { position: relative; z-index: 2; }
.hero__badge { background-color: rgba(255, 255, 255, 0.1); color: var(--white); padding: 8px 15px; border-radius: 20px; font-weight: bold; display: inline-block; margin-bottom: 1rem; border: 1px solid rgba(255, 255, 255, 0.2); }
.hero h1 { color: var(--white); }
.hero__stats { position: absolute; bottom: 30px; left: 0; right: 0; margin-left: auto; margin-right: auto; width: 90%; max-width: 900px; background-color: var(--white); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 15px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); text-align: center; z-index: 10; }
.stat__item h3 { font-size: 2.2rem; color: var(--red); line-height: 1; margin-bottom: 5px; }
.stat__item p { font-weight: 600; color: var(--text-color); font-size: 0.9rem; margin: 0; }

#about { padding-top: 100px; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; align-items: center; }
.about-vision-mission { margin-top: 2rem; }
.about-vision-mission h3 { color: var(--red); }

.services { background: var(--light-grey); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 3rem; }
.service-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.service-card__icon { font-size: 3rem; color: var(--red); margin-bottom: 1rem; }

.coverage-section { text-align: center; padding-top: 40px; }
#map { width: 100%; height: 500px; border-radius: 12px; z-index: 1; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-top: 30px; border: 2px solid var(--light-grey); }

.portfolio-grid { display: grid; gap: 15px; margin-bottom: 3rem; }
.portfolio-item { overflow: hidden; position: relative; border-radius: 8px; min-height: 250px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-speed) ease, opacity 0.5s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; bottom: -100%; left: 0; width: 100%; padding: 20px; background: rgba(10, 25, 47, 0.9); color: white; transition: bottom 0.4s ease; }
.portfolio-item:hover .portfolio-overlay { bottom: 0; }
.portfolio-overlay h4 { color: var(--white); margin-bottom: 5px; }

.interactive-section { background: var(--navy-blue); color: var(--white); }
.interactive-section h2 { color: var(--white); }
.interactive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; margin-top: 2rem; }
.calculator-box { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); color: var(--white);}
.calculator-box h3 { color: var(--white); }
.calc-input-group label { color: var(--white); display: block; margin-bottom: 10px; font-weight: bold; }
input[type=range] { width: 100%; cursor: pointer; accent-color: var(--red); }
.slider-value { text-align: right; font-weight: bold; color: var(--red); font-size: 1.2rem; margin-top: 5px; }
.calc-results { display: flex; justify-content: space-between; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }
.calc-result-item h4 { font-size: 2rem; color: #4CAF50; margin: 0; } 
.calc-result-item p { margin: 0; font-size: 0.9rem; opacity: 0.8; }

.step-form-container { background: var(--white); color: var(--text-color); border-radius: 12px; padding: 40px; position: relative; overflow: hidden; }
.form-progress { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.form-progress::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 4px; background: var(--light-grey); transform: translateY(-50%); z-index: 1; }
.progress-step { width: 30px; height: 30px; background: var(--light-grey); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; position: relative; z-index: 2; transition: all var(--transition-speed); }
.progress-step.active { background: var(--navy-blue); color: var(--white); }
.progress-step.completed { background: var(--red); color: var(--white); }
.form-step { display: none; animation: slideIn 0.5s ease; }
.form-step.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.selection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; }
.select-card { border: 2px solid var(--light-grey); border-radius: 8px; padding: 15px; text-align: center; cursor: pointer; transition: all 0.2s; }
.select-card:hover, .select-card.selected { border-color: var(--red); background: rgba(228, 0, 43, 0.05); color: var(--navy-blue); font-weight: bold;}

.input-group { margin-bottom: 15px; text-align: left; }
.input-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
.input-group input, .input-group textarea, .input-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; }
.form-actions { display: flex; justify-content: space-between; margin-top: 25px; }
.btn-secondary { background: var(--light-grey); color: var(--dark-grey); }

.clients { background-color: var(--light-grey); padding: 60px 0; overflow: hidden; }
.marquee-container { display: flex; width: 100%; overflow: hidden; position: relative; }
.marquee-container::before, .marquee-container::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--light-grey), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--light-grey), transparent); }
.marquee-content { display: flex; align-items: center; gap: 80px; padding-right: 80px; animation: scroll-marquee 20s linear infinite; flex-shrink: 0; }
.marquee-container:hover .marquee-content { animation-play-state: paused; }
.client-logo { height: 65px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: all var(--transition-speed) ease; }
.client-logo:hover { filter: grayscale(0%); opacity: 1; }
@keyframes scroll-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.certifications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cert-item { border: 2px solid var(--light-grey); padding: 15px 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; text-align: left; background: var(--white); }
.cert-img { height: 65px; width: 65px; object-fit: contain; flex-shrink: 0; }
.cert-text h3 { font-size: 1.1rem; color: var(--red); margin-bottom: 2px; }
.cert-text p { font-size: 0.85rem; color: var(--text-color); margin: 0; font-weight: bold; }

.main-footer { background-color: var(--dark-grey); color: var(--light-grey); padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-column h4 { color: var(--white); margin-bottom: 1.5rem; position: relative; }
.footer-column h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 2px; background: var(--red); }
.footer-column ul { list-style: none; }
.footer-column a { color: var(--light-grey); text-decoration: none; display: block; margin-bottom: 10px; transition: color var(--transition-speed) ease; }
.footer-column a:hover { color: var(--red); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #444; }

.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    h1 { font-size: 2.8rem; } h2 { font-size: 2rem; }
    .about-content { grid-template-columns: 1fr; }
    .interactive-grid { grid-template-columns: 1fr; }
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 25px; height: 3px; background-color: var(--navy-blue); transition: 0.3s; border-radius: 2px;}

.floating-btn { display: none; position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background-color: var(--red); color: var(--white); border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.floating-btn:active { transform: scale(0.9); }

@media (max-width: 768px) {
    .logo-img { height: 45px !important; } 
    .desktop-cta { display: none; } 
    .floating-btn { display: flex; } 
    .hamburger { display: flex; margin-left: 15px; }
    .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background: white; box-shadow: 0 10px 15px rgba(0,0,0,0.1); flex-direction: column; padding: 20px 0; display: none; }
    .main-nav.active { display: flex; } 
    .main-nav ul { flex-direction: column; align-items: center; gap: 20px; padding: 0; }
    .hero { height: auto; min-height: 100vh; padding: 60px 0 40px 0; flex-direction: column; justify-content: flex-start; }
    .hero__content { text-align: center; margin-top: 0; }
    .section-subtitle { margin: 0 auto 2rem auto; }
    .hero__stats { position: relative; bottom: auto; transform: none; grid-template-columns: 1fr; width: 90%; margin-top: 30px; margin-left: auto; margin-right: auto; padding: 10px 15px; }
    .stat__item { padding: 8px 0; border-bottom: 1px solid var(--light-grey); }
    .stat__item:last-child { border-bottom: none; }
    #about, .services { padding-top: 60px; }
    #map { height: 350px; }
}

@media (max-width: 480px) { h1 { font-size: 2.2rem; } }

#languageModal { display: none; position: fixed; bottom: 30px; right: 30px; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 9999; border-left: 5px solid var(--red); max-width: 300px; }
#languageModal p { margin-bottom: 15px; color: var(--navy-blue); font-weight: 500; }
#languageModal button { padding: 8px 15px; margin-right: 10px; cursor: pointer; border-radius: 4px; border: 1px solid var(--red); background: white; transition: 0.3s; }
#languageModal button:last-child { background: var(--red); color: white; }
#languageModal button:hover { background: #c00024; color: white; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 25, 47, 0.8); z-index: 10000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-box { background: var(--white); padding: 30px; border-radius: 12px; max-width: 400px; width: 90%; text-align: center; position: relative; transform: translateY(-20px); transition: transform 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; cursor: pointer; color: var(--text-color); line-height: 1; }
.modal-close:hover { color: var(--red); }