/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 1050px;          /* fixed width */
    margin: 0 auto;        /* center horizontally */

    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    flex-wrap: wrap;
    background: #f9f9f9;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img,
.logo svg {
    width: 150px;
    max-width: 100%;
    height: auto;
    transition: 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    border-radius: 4px;
    transition: 0.3s;
}

/* Loading Bar Animation on Hover */
nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #115079;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #115079;
}

nav ul li a:hover::before {
    width: 100%;
}

@keyframes loading {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

/* Active Page Style */
nav ul li a.active {
    color: #115079;
    font-weight: 600;
}

nav ul li a.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #115079;
    animation: none;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    background: none;
    border: none;
    padding: 10px;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Slideshow */
.slideshow-container {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    z-index: 1;
    background-color: #f0f0f0; /* Fallback color */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ensure images are visible */
    display: block;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Slideshow Navigation Dots */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10; /* Increased z-index to be above slides */
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #115079;
    transform: scale(1.2);
    border-color: white;
}


/* Content Sections */
.main-content {
    padding: 60px 0;
}

.main-content-two {
    padding: 40px 0;
}

.section-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #115079;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #115079;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 200px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Feature Box with Bullets */
.feature-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-box ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #444;
    font-size: 15px;
}

.feature-box ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #115079;
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #115079;
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #115079;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.btn:hover {
    background-color: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 77, 153, 0.3);
}

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

/* Clients Section */
.clients-section {
    margin-top: 40px;
}

.clients-section h2 {
    text-align: center;
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
}

.clients-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding: 10px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.clients-grid::-webkit-scrollbar {
    height: 8px;
}

.clients-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.clients-grid::-webkit-scrollbar-thumb {
    background: #115079;
    border-radius: 10px;
}

.clients-grid::-webkit-scrollbar-thumb:hover {
    background: #004d99;
}

.client-card {
    min-width: 220px;
    flex: 0 0 auto;
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    cursor: pointer;
}

.client-card:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 14px 35px rgba(52, 152, 219, 0.35);
}

.client-card:active {
    transform: scale(1.25);
}

/* Projects Section - Horizontal Scroll */
.projects-section {
    margin-top: 50px;
}

.projects-section h2 {
    text-align: center;
    font-size: 1.9rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
}

.projects-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.projects-grid::-webkit-scrollbar {
    height: 6px;
}

.projects-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: #115079;
    border-radius: 10px;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    flex: 0 0 auto;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-info {
    padding: 18px;
}

.project-info h3,
.project-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.4;
}

.project-info p {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

.project-location {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    letter-spacing: 0.4px;
    margin-top: 6px;
}

/* Projects Section 2 - Grid Layout */
.projects-section2 {
    margin-top: 60px;
}

.projects-section2 h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 35px;
    color: #2c3e50;
    letter-spacing: 1px;
}

.projects-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.project-card2 {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: all .35s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.project-card2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.project-title2 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: .4px;
    margin-bottom: 8px;
}

.project-location2 {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.project-location2::before {
    content: "📍";
    font-size: 13px;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.modal-content {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.close:hover {
    color: #3498db;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transform: translateY(-50%);
    transition: color 0.3s ease;
    z-index: 10000;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.prev:hover,
.next:hover {
    color: #3498db;
}

/* Footer */
footer {
    background-color: #66b0df;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .logo img,
    .logo svg {
        width: 160px;
    }
    
    .slideshow-container {
        height: 350px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .main-content {
        padding: 40px 0;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        position: sticky;
        top: 0;
        z-index: 1001;
        background: #f9f9f9;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
    }
    
    .logo img,
    .logo svg {
        width: 140px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding-top: 80px;
        z-index: 1002;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 5px;
        padding: 20px;
    }
    
    nav ul li a {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    nav ul li a::before,
    nav ul li a.active::before {
        height: 100%;
        width: 3px;
        top: 0;
        left: 0;
        bottom: auto;
    }
    
    @keyframes loading {
        0% {
            height: 0;
            top: 0;
        }
        50% {
            height: 100%;
            top: 0;
        }
        100% {
            height: 0;
            top: 100%;
        }
    }
    
    .slideshow-container {
        height: 250px;
        margin-top: 10px;
    }
    
    
    .section-title {
        font-size: 20px;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .clients-section h2,
    .projects-section h2 {
        font-size: 1.8rem;
    }
    
    .project-card {
        min-width: 220px;
    }
    
    .client-card {
        min-width: 180px;
        padding: 15px;
        font-size: 13px;
    }
    
    .projects-grid2 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .prev {
        left: 10px;
        font-size: 30px;
    }
    
    .next {
        right: 10px;
        font-size: 30px;
    }
    
    .close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .logo img,
    .logo svg {
        width: 120px;
    }
    
    .slideshow-container {
        height: 200px;
    }
    
    .slideshow-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        min-height: 180px;
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 13px;
    }
    
    .clients-section h2,
    .projects-section h2 {
        font-size: 1.5rem;
    }
    
    .client-card {
        min-width: 150px;
        padding: 12px;
        font-size: 12px;
    }
    
    .project-card {
        min-width: 200px;
    }
    
    .project-card img {
        height: 150px;
    }
    
    .projects-grid2 {
        grid-template-columns: 1fr;
    }
    
    .prev,
    .next {
        font-size: 25px;
        padding: 10px;
    }
}

/* Extra Large Screens */
@media (min-width: 1600px) {
    .logo img,
    .logo svg {
        width: 240px;
    }
    
    .slideshow-container {
        height: 500px;
    }
}
/* Landscape Mode on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .slideshow-container {
        height: 300px;
    }
}