/* ===========================================
   CSS Variables & Base Styles
=========================================== */
:root {
    /* Primary Colors */
    --primary: #0066cc;
    --primary-dark: #0052A3;
    --primary-light: #3385d6;
    
    /* Secondary Colors */
    --secondary: #00d2d3;
    --secondary-dark: #00a8a9;
    --secondary-light: #33dbdc;
    
    /* Status Colors */
    --success: #10ac84;
    --warning: #ff9f43;
    --danger: #ff4757;
    --info: #2e86de;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #343a40;
    --black: #212529;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Image fallback for broken images */
img[src*=".jpeg"]:not([src]),
img[src*=".jpg"]:not([src]),
img[src*=".png"]:not([src]) {
    background: linear-gradient(45deg, #f1f3f4, #e8eaed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-style: italic;
    min-height: 200px;
}

.btn {
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-call {
    background: linear-gradient(45deg, var(--success), #26de81);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-call:hover {
    background: linear-gradient(45deg, #0da46e, var(--success));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section {
    padding: 100px 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 210, 211, 0.1));
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

:root {
    --vh: 1vh;
}

/* Fix for mobile viewport */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
}

/* Prevent content shift on mobile */
html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    position: relative;
    width: 100%;
}

/* Fix for iOS scrolling */
.hero-section {
    -webkit-overflow-scrolling: touch;
}

/* Prevent text size adjustment on mobile */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
/* ===========================================
   Navigation
=========================================== */
.navbar {
    padding: 20px 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-text h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.brand-text .tagline {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.navbar-nav {
    gap: 10px;
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    color: var(--dark) !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(0, 102, 204, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 8px;
    font-size: 1.1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===========================================
   Mobile Navigation Optimizations
=========================================== */
/* ===========================================
   Mobile Navigation Optimizations
=========================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0 !important;
    }
    
    .navbar.scrolled {
        padding: 10px 0 !important;
    }
    
    .brand-container {
        gap: 10px;
    }
    
    .brand-text h4 {
        font-size: 1.2rem;
    }
    
    .brand-text .tagline {
        font-size: 0.8rem;
    }
    
    /* ADD THIS: Reduce logo size on tablet */
    .brand-text img {
        width: 70px;
        height: 60px;
    }
    
    .navbar-toggler {
        padding: 6px;
        font-size: 0.95rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 15px 0;
        background: var(--white);
        border-radius: var(--radius-md);
        margin-top: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-item:last-child {
        padding: 15px;
    }
    
    .btn-call {
        width: 100%;
        text-align: center;
    }
    
    /* ADD THIS: Adjust hero padding for mobile */
    .hero-section {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 10px 0 !important;
    }
    
    .navbar.scrolled {
        padding: 8px 0 !important;
    }
    
    .brand-text h4 {
        font-size: 1.1rem;
    }
    
    .brand-text .tagline {
        font-size: 0.75rem;
    }
    
    /* ADD THIS: Further reduce logo size on mobile */
    .brand-text img {
        width: 60px;
        height: 50px;
    }
    
    .navbar-toggler {
        padding: 5px;
        font-size: 0.9rem;
    }
    
    .navbar-nav {
        padding: 12px 0;
        margin-top: 8px;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        font-size: 0.95rem;
    }
    
    /* ADD THIS: Adjust hero padding for small mobile */
    .hero-section {
        padding-top: 65px;
    }
}

@media (max-width: 400px) {
    .brand-text h4 {
        font-size: 1rem;
    }
    
    .brand-text .tagline {
        display: none;
    }
    
    /* ADD THIS: Smallest logo size for very small screens */
    .brand-text img {
        width: 50px;
        height: 40px;
    }
    
    .navbar-toggler {
        padding: 4px;
    }
    
    .nav-link {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    /* ADD THIS: Final hero padding adjustment */
    .hero-section {
        padding-top: 60px;
    }
}
/* ===========================================
   Logo Size & Content Visibility Fixes
=========================================== */
.brand-text {
    display: flex;
    align-items: center;
}

.brand-text img {
    width: 90px;
    height: 80px;
    transition: var(--transition);
}

/* Fix for navbar covering hero content */
.hero-section {
    padding-top: 80px; /* Add padding to push content below navbar */
}

/* Adjust hero content container for better spacing */
.hero-section .container {
    padding-top: 20px;
}
/* ===========================================
   Hero Section
=========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a2e5a, #0a3d7a);
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 46, 90, 0.9), rgba(10, 61, 122, 0.9));
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1575429198097-0414ec08e8cd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 99%;
    filter: brightness(1.2) contrast(1.1);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}
/* Add this after all the navbar CSS */
.hero-section .row {
    padding-top: 20px;
}

.hero-pre-title {
    margin-top: 10px;
    margin-bottom: 20px;
}

.hero-title {
    margin-top: 10px;
    margin-bottom: 15px;
}
.hero-pre-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--secondary-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.service-request-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: rgba(0, 102, 204, 0.2);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h4 {
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 30px;
}

.card-body p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.response-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
}

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

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--dark);
    
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 25px;
    font-weight: 500;
}

.mission-statement {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 30px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.mission-icon {
    color: var(--primary);
    font-size: 2rem;
}

.mission-content h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.company-info-container {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.05), rgba(0, 210, 211, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-card h5 {
    margin-bottom: 5px;
    color: var(--dark);
}

.info-card p {
    color: var(--gray);
    margin: 0;
    font-weight: 500;
}

.service-areas-card h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.service-areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-tag {
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 210, 211, 0.1));
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid rgba(0, 102, 204, 0.2);
}

/* ===========================================
   Services Section
=========================================== */
.services-section {
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 2.5rem;
    padding: 30px;
    text-align: center;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.service-type {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-description {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-content h5 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-features {
    margin-bottom: 25px;
}

.service-features li {
    color: var(--gray);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.service-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.detail i {
    color: var(--primary);
}

.service-feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
    text-align: center;
    margin-bottom: 20px;
}

.service-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 210, 211, 0.1));
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.service-feature-card h4 {
    color: var(--dark);
    margin-bottom: 15px;
}

.service-feature-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.feature-list {
    text-align: left;
}

.feature-list li {
    color: var(--gray);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.feature-list li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: var(--primary);
    font-weight: bold;
}

/* ===========================================
   Testimonials Section
=========================================== */
.testimonials-section {
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.03), rgba(0, 168, 204, 0.03));
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
    margin-bottom: 20px;

}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rating {
    color: #ffc107;
}

.rating i {
    margin-right: 2px;
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--dark);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
    position: relative;
    
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: rgba(0, 102, 204, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
    margin-bottom: 20px;

}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.client-info h5 {
    color: var(--dark);
    margin-bottom: 5px;
}

.client-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================================
   Gallery Section - FIXED
=========================================== */
.gallery-section {
    background: var(--light);
}

.gallery-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-comparison-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
}

.gallery-comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.comparison-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.comparison-col {
    flex: 1;
    min-width: 300px;
    padding: 0;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.before-col {
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.02), rgba(255, 71, 87, 0.05));
}

.after-col {
    background: linear-gradient(45deg, rgba(16, 172, 132, 0.02), rgba(16, 172, 132, 0.05));
}

.comparison-label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 2px solid;
}

.before-label {
    background: rgba(255, 255, 255, 0.95);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.3);
}

.after-label {
    background: rgba(255, 255, 255, 0.95);
    color: var(--success);
    border-color: rgba(16, 172, 132, 0.3);
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 10px;
    background: transparent;
}

.comparison-image:hover {
    transform: scale(1.03);
}

.comparison-image:before {
    content: "Image Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray);
    font-style: italic;
    display: none;
}

.comparison-image[src=""],
.comparison-image:not([src]) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f1f3f4, #e8eaed);
}

.comparison-image[src=""]:before,
.comparison-image:not([src]):before {
    display: block;
}

.gallery-description {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.03), rgba(0, 168, 204, 0.03));
}

.gallery-description h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.gallery-description p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================================
   Team Section - FIXED FOR FULL PHOTOS
=========================================== */
.team-section {
    background: var(--white);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;

}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-photo-container {
    width: 100%;
    padding: 0;
    height: 500px; /* Increased height for full portrait photos */
}

.team-photo-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Added padding to show full photo with space around */
}

/* CHANGED: Show full portrait photos with contain instead of cover */
.team-photo-img {
    width: auto; /* Changed from 100% to auto */
    height: 100%; /* Full height of container */
    max-width: 100%; /* Don't exceed container width */
    object-fit: contain; /* Changed from cover to show full image */
    object-position: center top; /* Align from top for portrait photos */
    transition: transform 0.5s ease;
}

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

.team-photo-img:before {
    content: "Team Photo";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray);
    font-style: italic;
    display: none;
}

.team-photo-img[src=""],
.team-photo-img:not([src]) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
}

.team-photo-img[src=""]:before,
.team-photo-img:not([src]):before {
    display: block;
}

.team-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto;
}

.team-info h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    line-height: 1.2;
}

.position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.2;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.expertise-tags span {
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 210, 211, 0.1));
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid rgba(0, 102, 204, 0.2);
    line-height: 1.2;
}

.bio {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.bio:last-child {
    margin-bottom: 0;
}

.team-expertise {
    margin-top: 60px;
    text-align: center;
}

.team-expertise h4 {
    color: var(--dark);
    margin-bottom: 30px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.expertise-item i {
    color: var(--success);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.expertise-item span {
    color: var(--gray);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.4;
}

/* ===========================================
   Contact Section
=========================================== */
.contact-section {
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.03), rgba(0, 168, 204, 0.03));
}

.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 210, 211, 0.1));
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.phone-number,
.email {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    line-height: 1.2;
}

.phone-number:hover,
.email:hover {
    color: var(--primary-dark);
}

.contact-details p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.small {
    font-size: 0.85rem !important;
    color: var(--gray) !important;
    line-height: 1.3 !important;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.service-tags span {
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 210, 211, 0.1));
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(0, 102, 204, 0.2);
    line-height: 1.2;
}

.contact-form-container {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 102, 204, 0.1);
    height: 100%;
    margin-bottom: 15px;
}

.contact-form-container h4 {
    color: var(--dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
    line-height: 1.2;
}

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

.form-group label {
    display: block;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.2;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
    line-height: 1.5;
}

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

.form-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
    line-height: 1.4;
}

/* ===========================================
   Footer
=========================================== */
.footer {
    background: linear-gradient(45deg, #0a2e5a, #0a3d7a);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-logo h4 {
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.footer-logo .tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    line-height: 1.2;
}

.footer .description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.footer-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-areas span {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.2;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===========================================
   Back to Top Button
=========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===========================================
   Enhanced Responsive Styles
=========================================== */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .comparison-col {
        height: 350px;
    }
    
    .team-photo-container {
        height: 450px; /* Adjusted for smaller screens */
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .comparison-col {
        height: 300px;
    }
    
    .team-photo-container {
        height: 400px; /* Adjusted for tablet */
    }
    
    .team-info {
        padding: 1.5rem;
    }
    
    .team-info h3 {
        font-size: 1.6rem;
    }
    
    .gallery-description {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .comparison-row {
        flex-direction: column;
    }
    
    .comparison-col {
        flex: 0 0 100%;
        height: 300px;
        min-height: 300px;
    }
    
    .team-photo-container {
        height: 350px; /* Adjusted for mobile */
    }
    
    .team-card {
        margin-bottom: 2rem;
    }
    
    .team-info h3 {
        font-size: 1.5rem;
    }
    
    .bio {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .image-wrapper {
        height: 100%;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 20px 0;
        background: var(--white);
        border-radius: var(--radius-md);
        margin-top: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 15px !important;
        display: block;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-item:last-child {
        padding: 15px;
    }
    
    .btn-call {
        margin-top: 0;
        display: block;
        width: 100%;
    }
    
    .comparison-label {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    /* Adjust team photo wrapper padding for mobile */
    .team-photo-wrapper {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-pre-title {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .comparison-col {
        height: 250px;
        min-height: 250px;
    }
    
    .team-photo-container {
        height: 320px; /* Adjusted for small mobile */
    }
    
    .comparison-label {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    .team-info h3 {
        font-size: 1.3rem;
    }
    
    .position {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .expertise-tags {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .expertise-tags span {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .bio {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
    
    .gallery-description {
        padding: 1rem;
    }
    
    .gallery-description h4 {
        font-size: 1.3rem;
    }
    
    .gallery-description p {
        font-size: 0.9rem;
    }
    
    .service-request-card,
    .service-card,
    .service-feature-card,
    .testimonial-card,
    .contact-info,
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .contact-icon {
        align-self: flex-start;
    }
    
    .contact-form-container .row {
        margin: 0 -8px;
    }
    
    .contact-form-container .col-md-6,
    .contact-form-container .col-12 {
        padding: 0 8px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-areas {
        justify-content: center;
    }
    
    .footer-contact p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Adjust team photo for very small screens */
    .team-photo-wrapper {
        padding: 10px;
    }
}

/* Extra Small Devices (less than 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .comparison-col {
        height: 220px;
        min-height: 220px;
    }
    
    .team-photo-container {
        height: 280px; /* Minimum height for very small screens */
    }
    
    .team-info h3 {
        font-size: 1.2rem;
    }
    
    .bio {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .mission-statement {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .mission-icon {
        align-self: center;
    }
    
    .team-photo-wrapper {
        padding: 8px;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }
    
    .comparison-col {
        height: 250px;
    }
    
    .team-photo-container {
        height: 300px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form-container,
    .back-to-top,
    .btn-call {
        display: none !important;
    }
    
    .section {
        padding: 40px 0 !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .hero-overlay,
    .hero-background {
        display: none;
    }
    
    .team-card,
    .service-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .team-photo-container {
        height: 300px !important;
    }
}

/* ===========================================
   Animation Keyframes
=========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

/* ===========================================
   Utility Classes
=========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Image loading skeleton */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Ensure all images are responsive */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Fix for iOS input zoom */
@media screen and (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Additional fix for very tall portrait photos */
@media (min-width: 1200px) {
    .team-photo-container {
        height: 550px; /* Extra tall for desktop if needed */
    }
}

/* Center images for landscape photos */
@media (orientation: landscape) and (max-width: 992px) {
    .team-photo-img {
        object-fit: contain;
        object-position: center center;
    }
}