/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { line-height: 1.6; color: #333; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: bold; color: #222; }
.logo span { color: #007bff; }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: #007bff; }

/* Banner */
.banner {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1600x900') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content h1 { font-size: 3rem; margin-bottom: 1rem; }
.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* Services */
.services { padding: 80px 5%; text-align: center; background: #f9f9f9; }
.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.service-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-box i { font-size: 2.5rem; color: #007bff; margin-bottom: 15px; }

/* Client Logo Slider */
.clients { padding: 60px 0; overflow: hidden; background: white; text-align: center; }
.slider { margin: auto; position: relative; width: 90%; }
.slide-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 20s linear infinite;
}
.slide { width: 250px; height: 100px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #ccc; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* Footer */
footer { background: #222; color: white; padding: 40px 5%; text-align: center; }
.footer-links { list-style: none; display: flex; justify-content: center; margin: 20px 0; }
.footer-links li { margin: 0 15px; }
.footer-links a { color: #bbb; text-decoration: none; font-size: 0.9rem; }
.social-icons a { color: white; margin: 0 10px; font-size: 1.2rem; transition: 0.3s; }
.social-icons a:hover { color: #007bff; }
.copyright { margin-top: 20px; font-size: 0.8rem; color: #777; }

/* Contact Page Specifics */
.contact-mini-banner {
    height: 40vh; /* Shorter than home banner */
    background: linear-gradient(135deg, #1a1a1a 0%, #0056b3 100%);
    text-align: center;
}

.contact-details {
    padding: 80px 8%;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -120px; /* Overlap effect */
}

.info-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* Responsive adjustment for the overlap */
@media (max-width: 768px) {
    .contact-grid {
        margin-top: 20px;
    }
}
/* About & Services Styling */
.about-banner { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600'); }
.services-banner { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?w=1600'); }

.about-content, .services-list { padding: 80px 8%; }
.container { max-width: 1000px; margin: 0 auto; text-align: center; }

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.mv-card {
    padding: 40px;
    background: var(--light);
    border-radius: 12px;
}

.mv-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* Detailed Services Layout */
.detailed-service {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 50px;
}

.detailed-service.reverse { flex-direction: row-reverse; }

.service-text h2 { font-size: 2.2rem; color: var(--dark); margin-bottom: 20px; }
.service-text ul { list-style: none; margin-top: 20px; }
.service-text ul li { margin-bottom: 10px; font-weight: 600; color: var(--primary); }
.service-text i { margin-right: 10px; }

@media (max-width: 768px) {
    .mission-vision-grid, .detailed-service { 
        grid-template-columns: 1fr; 
        flex-direction: column;
    }
}

/* Clients Page Specifics */
.client-banner {
    height: 45vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.client-portfolio {
    padding: 80px 8%;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.85); /* G2 Primary Blue with Transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overlay-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: center;
    padding: 0 20px;
}

/* Hover Actions */
.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item:hover .overlay-text {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
