/* ===== Color Scheme ===== */
:root {
    --primary: #214377;      /* Dark blue from logo */
    --secondary: #a5292f;    /* Orange accent */
    --accent: #2d5aa0;       /* Medium blue */
    --dark: #222222;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-indicator p {
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .subtitle {
    display: block;
    font-size: 16px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #122a50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 62, 114, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #c53a16;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 2, 2, 0.3);
}

/* ===== Header Styles ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

/* Footer logo container - logo above text */
footer .logo-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

/* Footer logo image styling */
footer .logo-img {
    height: 60px;
    margin-right: 0;
    margin-bottom: 5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

/* Footer logo text styling */
footer .main-logo {
    color: white;
}

.tagline {
    font-size: 12px;
    color: var(--gray);
    margin-top: 3px;
}

/* Footer tagline styling */
footer .tagline {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer first column styling */
footer .footer-col:first-child h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

footer .footer-col:first-child p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 62, 114, 0.8), rgba(26, 62, 114, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s;
}

/* ===== Company Info Section ===== */
.company-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
}

.company-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.company-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.company-logo {
    flex-shrink: 0;
}

.company-logo .logo-img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

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

.company-details {
    text-align: left;
    max-width: 600px;
}

.company-details h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.company-details h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

.company-description {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.company-description p {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 0;
    font-size: 16px;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.company-description p:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.company-description p:last-child {
    margin-bottom: 0;
}

.company-description strong {
    color: #ffd700;
    font-weight: 600;
}

/* ===== About Section ===== */
.about {
    background-color: var(--light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.8;
}
 
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.feature i {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature p {
    font-size: 16px;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
    text-align: left;
}
.feature1.p {
    margin-top: 20px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== Services Section ===== */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    /* Ensure proper touch target */
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

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

.service-card:active {
    transform: scale(0.98);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    background-color: var(--primary);
    color: white;
    font-size: 40px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background-color: var(--secondary);
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.service-content ul {
    list-style: none;
    flex: 1;
}

.service-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: var(--gray);
    line-height: 1.5;
}

.service-content ul li::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 12px;
    top: 5px;
    transition: all 0.3s ease;
}

.service-card:hover .service-content ul li::before {
    color: var(--primary);
    transform: translateX(3px);
}

/* ===== Projects Section ===== */
.projects {
    background-color: var(--light);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--light-gray);
    color: var(--gray);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 62, 114, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.project-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Stats Section ===== */
.stats {
    background: linear-gradient(rgba(26, 62, 114, 0.9), rgba(26, 62, 114, 0.9)), url('https://images.unsplash.com/photo-1605106702734-205df224ecce?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item h3 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-item p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Contact Section ===== */
.contact {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 35px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.info-item i {
    font-size: 24px;
    color: var(--secondary);
    margin-right: 20px;
    margin-top: 3px;
    min-width: 24px;
    text-align: center;
}

.info-item div {
    flex: 1;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

.info-item p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.contact-form h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(33, 67, 119, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--accent);
}

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

.contact-form .btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 67, 119, 0.3);
}

/* ===== Clients Section ===== */
.clients {
    background-color: var(--light);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-logo {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary);
    color: white;
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(247, 238, 238, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgb(238, 231, 231);
    font-size: 14px;
}

.copyright i {
    color: var(--secondary);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Styles ===== */

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .service-card {
        min-height: 220px;
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .service-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        margin: 2% auto;
        max-height: 96vh;
    }
    
    .nav-links a {
        padding: 15px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-modal {
        min-width: 44px;
        min-height: 44px;
    }
    
    .filter-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Service Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .modal-projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-project-card img {
        height: 180px;
    }
    
    .modal-project-info {
        padding: 12px;
    }
    
    .modal-project-info h3 {
        font-size: 16px;
    }
    
    .modal-project-info p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 70vh;
    }
    
    .modal-projects-grid {
        gap: 12px;
    }
    
    .modal-project-card img {
        height: 160px;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 40px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .company-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .company-details {
        text-align: center;
    }
    
    .company-details h2 {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title .subtitle {
        font-size: 14px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        text-align: center;
    }
    
    .feature h4 {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 20px;
    }
    
    .project-filters {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .stat-item p {
        font-size: 16px;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .contact-info h3,
    .contact-form h3 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .info-item {
        padding: 15px;
        margin-bottom: 20px;
        flex-direction: row;
        text-align: left;
        gap: 0;
    }
    
    .info-item i {
        margin-right: 15px;
        margin-top: 3px;
        font-size: 20px;
    }
    
    .info-item h4 {
        font-size: 16px;
    }
    
    .info-item p {
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .contact-form .btn {
        padding: 14px 25px;
        font-size: 14px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .client-logo {
        height: 80px;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .company-details h2 {
        font-size: 24px;
    }
    
    .company-details h3 {
        font-size: 14px;
    }
    
    .company-description {
        padding: 10px;
    }
    
    .company-description p {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    /* Modal responsive fixes */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    .modal-projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Hero slider responsive fixes */
    .slider-nav {
        bottom: 30px;
        gap: 15px;
    }
    
    .slider-nav button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title .subtitle {
        font-size: 12px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .service-icon {
        padding: 20px;
        font-size: 30px;
    }
    
    .service-content {
        padding: 15px;
    }
    
    .service-content h3 {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item h3 {
        font-size: 32px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .client-logo {
        height: 70px;
        padding: 10px;
    }
    
    .logo-img {
        height: 40px;
        margin-right: 10px;
    }
    
    .main-logo {
        font-size: 16px;
    }
    
    .tagline {
        font-size: 10px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    /* Modal responsive fixes for very small screens */
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 50vh;
    }
    
    .close-modal {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
}

/* Fix for touch devices */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .client-logo:hover {
        transform: none;
    }
    
    .client-logo:active {
        transform: scale(0.95);
    }
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
    .nav-links a,
    .btn,
    .filter-btn,
    .service-card,
    .project-card {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent text overflow */
    .service-content h3 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Ensure proper spacing */
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Fix modal positioning on mobile */
    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
    }
    
    /* Ensure buttons are properly sized */
    .hero-buttons .btn {
        min-height: 50px;
        font-size: 16px;
        padding: 15px 25px;
    }
    
    /* Fix navigation menu positioning */
    .nav-links {
        top: 70px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* Ensure proper header height */
    header {
        min-height: 70px;
    }
    
    .navbar {
        min-height: 70px;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .service-card {
        margin: 0 5px 20px 5px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .section-title h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    /* Ensure modal is properly sized */
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-body {
        max-height: 70vh;
        padding: 15px;
    }
    
    /* Fix button sizing */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fix for Android Chrome address bar */
@media screen and (max-height: 600px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.btn-outline-red {
    background-color: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-red:hover {
    background-color: #8b2226;
    border-color: #8b2226;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(165, 41, 47, 0.3);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

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

.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background: var(--secondary);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

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

.slider-dots .dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.2);
    color: #ffd700;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.modal-project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modal-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.modal-project-info {
    padding: 15px;
}

.modal-project-info h3 {
    margin: 0 0 8px 0;
    color: var(--primary);
    font-size: 18px;
}

.modal-project-info p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== Estimate Modal Styles ===== */
.estimate-modal {
    max-width: 800px;
    max-height: 90vh;
}

.urdu-instruction {
    background: #f8f9fa;
    border-left: 4px solid var(--secondary);
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.urdu-instruction p {
    margin: 0;
    color: var(--dark);
    font-size: 14px;
    line-height: 1.5;
}

.estimate-form {
    display: grid;
    gap: 20px;
}

.estimate-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.estimate-form label {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.estimate-form .form-control {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    min-height: 44px; /* Better touch target for mobile */
}

.estimate-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 67, 119, 0.1);
}

.estimate-form select.form-control {
    cursor: pointer;
}

.estimate-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.estimate-form input[type="file"] {
    padding: 8px;
    cursor: pointer;
    border: 2px dashed #e9ecef;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.estimate-form input[type="file"]:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

.estimate-form input[type="file"]:focus {
    border-color: var(--primary);
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(33, 67, 119, 0.1);
}

.estimate-form small {
    color: var(--gray);
    font-size: 12px;
    margin-top: 4px;
}

.submit-estimate {
    margin-top: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px; /* Better touch target for mobile */
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-estimate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 67, 119, 0.3);
}

/* ===== Thank You Modal Styles ===== */
.thank-you-modal {
    max-width: 600px;
    text-align: center;
}

.thank-you-content {
    padding: 20px 0;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.thank-you-content h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 24px;
}

.estimate-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border: 2px solid #e9ecef;
}

.estimate-summary h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.estimate-calculation {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
}

.thank-you-content p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 16px;
}

/* ===== Responsive Design for Estimate Modal ===== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .estimate-modal {
        max-width: 90%;
        margin: 5% auto;
    }
    
    .estimate-form {
        gap: 18px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .estimate-modal {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .estimate-form {
        gap: 15px;
    }
    
    .estimate-form .form-control {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-estimate {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .thank-you-modal {
        margin: 10% auto;
        width: 95%;
    }
    
    .success-icon {
        font-size: 55px;
    }
    
    .thank-you-content h3 {
        font-size: 22px;
    }
    
    .modal-header {
        padding: 18px 25px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .urdu-instruction {
        padding: 14px;
        font-size: 14px;
    }
}

/* Mobile Large */
@media (max-width: 600px) {
    .estimate-modal {
        margin: 2% auto;
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .estimate-form {
        gap: 12px;
    }
    
    .estimate-form .form-control {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .submit-estimate {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
    
    .thank-you-modal {
        margin: 5% auto;
        width: 98%;
    }
    
    .success-icon {
        font-size: 50px;
    }
    
    .thank-you-content h3 {
        font-size: 20px;
    }
    
    .estimate-summary {
        padding: 15px;
        margin: 20px 0;
    }
    
    .estimate-calculation {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    .modal-body {
        padding: 20px 15px;
    }
    
    .estimate-form {
        gap: 10px;
    }
    
    .estimate-form label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .estimate-form .form-control {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .urdu-instruction {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .close-modal {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    
    .submit-estimate {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .thank-you-content {
        padding: 15px 0;
    }
    
    .success-icon {
        font-size: 45px;
        margin-bottom: 15px;
    }
    
    .thank-you-content h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .estimate-summary {
        padding: 12px;
        margin: 15px 0;
    }
    
    .estimate-summary h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .estimate-calculation {
        padding: 10px;
        font-size: 13px;
    }
    
    .thank-you-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .modal-body {
        padding: 15px 12px;
    }
    
    .estimate-form {
        gap: 8px;
    }
    
    .estimate-form label {
        font-size: 12px;
    }
    
    .estimate-form .form-control {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .urdu-instruction {
        padding: 10px;
        font-size: 12px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .submit-estimate {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .success-icon {
        font-size: 40px;
    }
    
    .thank-you-content h3 {
        font-size: 16px;
    }
    
    .estimate-summary {
        padding: 10px;
    }
    
    .estimate-calculation {
        padding: 8px;
        font-size: 12px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .estimate-modal {
        margin: 1% auto;
        max-height: 98vh;
    }
    
    .modal-body {
        padding: 15px 20px;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .estimate-form {
        gap: 8px;
    }
    
    .estimate-form .form-group {
        gap: 4px;
    }
    
    .estimate-form label {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .estimate-form .form-control {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .submit-estimate {
        padding: 8px 20px;
        font-size: 12px;
        margin-top: 5px;
    }
    
    .thank-you-modal {
        margin: 1% auto;
    }
    
    .thank-you-content {
        padding: 10px 0;
    }
    
    .success-icon {
        font-size: 35px;
        margin-bottom: 10px;
    }
    
    .thank-you-content h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .estimate-summary {
        padding: 10px;
        margin: 10px 0;
    }
}