/* Globals & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0056b3;
    --secondary-color: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #e5e5e5;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section { padding: 80px 0; }
.section-padding-small { padding: 40px 0; }

.bg-light { background-color: var(--light-bg); }
.text-muted { color: var(--text-light); }
.text-center { text-align: center; }

/* Utilities */
.img-fluid { max-width: 100%; height: auto; display: block; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
a { text-decoration: none; }
ul { list-style: none; }

/* Buttons */
.btn-primary, .btn-large {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover, .btn-large:hover {
    background: #004494;
    transform: translateY(-2px);
}

.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-right: 15px;
}
.btn-outline:hover { background: var(--white); color: var(--text-dark); }

/* Typography */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title.left-align { text-align: left; }
.section-title.left-align .line { margin: 10px 0; }
.section-title h2 { font-size: 2.2rem; text-transform: uppercase; letter-spacing: 1px; }
.line { width: 60px; height: 3px; background: var(--primary-color); margin: 10px auto; }

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000; padding: 15px 0; transition: 0.3s;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--secondary-color); letter-spacing: 2px; }
.logo span { color: var(--primary-color); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-dark); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section (FIXED ALIGNMENT) */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center; /* This centers the content perfectly vertically */
    text-align: center;
    padding-top: 60px; /* Offset for navbar */
}
.hero-content { color: var(--white); }
.hero h1 { font-size: 4rem; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--primary-color); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; letter-spacing: 1px; }
.hero-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }

/* Brands */
.brand-logos {
    display: flex; justify-content: center; gap: 40px;
    margin-top: 20px; font-size: 2.5rem; color: #adb5bd;
    flex-wrap: wrap;
}

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.align-center { align-items: center; }

/* About */
.about p { margin-bottom: 15px; color: var(--text-light); }
.about-image img { width: 100%; height: 400px; object-fit: cover; }

/* Services */
.card { background: var(--white); padding: 30px; border-radius: 8px; text-align: center; transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }

/* Products */
.product-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border-color); transition: 0.3s;
}
.product-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.product-img { width: 100%; height: 250px; object-fit: cover; }
.product-info { padding: 25px; }
.product-info h3 { margin-bottom: 10px; color: var(--primary-color); }
.product-info p { color: var(--text-light); font-size: 0.95rem; }

/* Testimonials */
.testimonial-card {
    background: var(--white); padding: 30px; border-radius: 8px;
    text-align: center; border-top: 4px solid var(--primary-color);
}
.quote-icon { font-size: 2rem; color: var(--border-color); margin-bottom: 15px; }
.testimonial-card p { font-style: italic; color: var(--text-light); margin-bottom: 20px; }
.testimonial-card h4 { color: var(--text-dark); margin-bottom: 5px; }
.testimonial-card span { font-size: 0.85rem; color: var(--primary-color); font-weight: 600; }

/* Contact Section */
.contact-list { margin-bottom: 30px; }
.contact-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; color: var(--text-light); }
.contact-list i { color: var(--primary-color); font-size: 1.2rem; }
.map-container { border-radius: 8px; overflow: hidden; margin-top: 20px; }
.contact-form { background: var(--light-bg); padding: 40px; border-radius: 8px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc;
    border-radius: 5px; font-size: 1rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color);
}

/* Footer */
footer { background: #111; color: var(--white); padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { margin-bottom: 20px; color: var(--primary-color); font-size: 1.2rem; }
.footer-col p { color: #aaa; margin-bottom: 10px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aaa; transition: 0.3s; }
.footer-links a:hover { color: var(--primary-color); }
.social-links a {
    color: var(--white); background: #333; width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-right: 10px; transition: 0.3s;
}
.social-links a:hover { background: var(--primary-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; color: #777; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .btn-outline { margin-bottom: 10px; margin-right: 0; }
}

/* Certifications Section */
.cert-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}
.cert-card:hover {
    transform: translateY(-5px);
}
.cert-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f0f0f0;
    overflow: hidden;
    cursor: pointer;
}
.cert-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps document proportions perfect without clipping */
    padding: 15px;
    transition: 0.4s ease;
}
.cert-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 86, 179, 0.2); /* Tinted primary color */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s ease;
}
.cert-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.8);
    transition: 0.3s ease;
}
.cert-img-wrapper:hover .cert-overlay {
    opacity: 1;
}
.cert-img-wrapper:hover .cert-overlay i {
    transform: scale(1);
}
.cert-img-wrapper:hover .cert-thumbnail {
    transform: scale(1.05);
}
.cert-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.cert-info p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* Lightbox Modal Configuration */
.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; /* Stays above the sticky navbar */
    padding-top: 100px; 
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}
#lightboxCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-weight: 500;
}
.lightbox-close {
    position: absolute;
    top: 35px;
    right: 45px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
}

/* Lightbox Animation */
@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .lightbox-content { max-width: 95%; }
    .lightbox-close { top: 15px; right: 25px; }
}

/* Customisation Process Timeline */
.process-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
    margin-top: 50px;
}

/* The Connecting Line behind the icons */
.process-wrapper::before {
    content: '';
    position: absolute;
    top: 50px; /* aligns exactly with the middle of the icon circles */
    left: 5%;
    width: 90%;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-icon-box {
    width: 100px;
    height: 100px;
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    transition: all 0.4s ease;
}

.step-content {
    opacity: 0.6;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0 10px;
}

/* Interactive Hover Animations */
.process-step:hover .step-icon-box,
.process-step.active .step-icon-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
}

.process-step:hover .step-number,
.process-step.active .step-number {
    background: var(--white);
    color: var(--primary-color);
}

.process-step:hover .step-content,
.process-step.active .step-content {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover .step-content h3,
.process-step.active .step-content h3 {
    color: var(--primary-color);
}

/* Mobile Vertical Layout for the Timeline */
@media (max-width: 900px) {
    .process-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .process-wrapper::before {
        width: 3px;
        height: 100%;
        left: 50px; /* Align to the left side */
        top: 0;
    }
    .process-step {
        width: 100%;
        margin-bottom: 30px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    .step-icon-box {
        margin: 0 25px 0 0;
        min-width: 100px;
    }
    .step-content {
        opacity: 1;
        transform: translateY(0);
        background: var(--white);
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border-left: 4px solid var(--primary-color);
    }
    .step-content p {
        padding: 0;
    }
}
@media (max-width: 480px) {
    .process-wrapper::before { display: none; } /* hide line on very small screens */
    .process-step { flex-direction: column; align-items: center; text-align: center; }
    .step-icon-box { margin: 0 0 20px 0; }
    .step-content { border-left: none; border-top: 4px solid var(--primary-color); }
}