@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset and Normalize - Cross-browser compatibility */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Custom CSS for AMGroup Website */

:root {
    --primary-blue: #1e4a6b;
    --secondary-blue: #2c5f7f;
    --primary-gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --gradient-start: #1e4a6b;
    --gradient-end: #2c5f7f;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(30, 74, 107, 0.3);
}

/* Global Styles */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

h1 { font-size: clamp(1.75rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 4vw, 2rem); }
h4 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
h6 { font-size: 1rem; }

p {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.7;
}

p.lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

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

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 3vw, 32px);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn:focus {
    outline: 2px solid rgba(30, 74, 107, 0.5);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-dark);
    color: var(--white);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-light:hover,
.btn-light:focus {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    color: var(--primary-blue);
}

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

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

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

@supports not (scroll-behavior: smooth) {
    /* fallback for browsers that don't support smooth scrolling */
    html {
        scroll-behavior: auto;
    }
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 1rem 0;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--primary-blue);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    max-height: 50px;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--secondary-blue);
}

.nav-link {
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    display: inline-block;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 74, 107, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,1000 0,700"/><circle fill="rgba(255,255,255,0.02)" cx="200" cy="200" r="300"/><circle fill="rgba(255,255,255,0.01)" cx="800" cy="800" r="400"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Homepage-specific hero adjustments: prevent fixed navbar overlap and use background image */
.home .hero-section {
    padding-top: clamp(60px, 8vw, 80px);
    min-height: calc(100vh - clamp(60px, 8vw, 80px));
    background-image: url('../assets/home\ 1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-background-attachment: scroll; /* iOS fallback */
}

.home .hero-section::before {
    z-index: 1;
}

.home .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
    z-index: 2;
}

.home .hero-section .container {
    position: relative;
    z-index: 3;
}

/* Page Header: make all page headers match the hero section dimensions and layout */
.page-header {
    padding: clamp(60px, 8vw, 80px) 0 clamp(30px, 5vw, 50px);
    min-height: calc(100vh - clamp(60px, 8vw, 80px));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.page-header::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 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,1000 0,700"/><circle fill="rgba(255,255,255,0.02)" cx="200" cy="200" r="300"/><circle fill="rgba(255,255,255,0.01)" cx="800" cy="800" r="400"/></svg>');
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.page-header h1 {
    color: var(--white);
    font-size: clamp(1.75rem, 8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section p,
.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: 600px;
}

.hero-section .btn {
    margin: clamp(0.25rem, 1vw, 0.5rem);
}

/* Statistics Section */
.stats-section {
    background-color: var(--light-gray);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.stat-item {
    text-align: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    transition: all 0.3s ease;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

/* When stat items appear inside a colored (primary) section, make them transparent
   and ensure text is readable (white). This fixes the Healthcare Achievements section. */
.bg-primary .stat-item {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.bg-primary .stat-item h3,
.bg-primary .stat-item .stat-number,
.bg-primary .stat-item .display-4 {
    color: var(--white) !important;
}

.bg-primary .stat-item p,
.bg-primary .stat-item .lead {
    color: rgba(255,255,255,0.9) !important;
}

/* Ensure Success Stories cards inside primary sections are readable */
.bg-primary .card {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.bg-primary .card .card-body,
.bg-primary .card .card-title,
.bg-primary .card h5,
.bg-primary .card .card-text,
.bg-primary .card small,
.bg-primary .card .lead {
    color: rgba(255,255,255,0.95) !important;
}

.bg-primary .card .feature-icon.bg-light {
    background-color: var(--white) !important;
    color: var(--primary-blue) !important;
}

.stat-number {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Alexandria', sans-serif;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: clamp(50px, 12vw, 80px);
    height: clamp(50px, 12vw, 80px);
    margin: 0 auto 1.5rem;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background-color: var(--secondary-blue);
}

/* Cards and Sections */
.section-padding {
    padding: clamp(2.5rem, 8vw, 5rem) 0;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: clamp(-8px, -1vw, -10px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(40px, 10vw, 60px);
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.hover-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-light);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
    border: 1px solid rgba(0,0,0,0.05);
}

.hover-card:hover,
.hover-card:focus {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium) !important;
    border-color: var(--primary-blue);
}

.company-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 2px solid transparent;
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

.company-card:hover,
.company-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.company-logo {
    max-width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.company-name {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.company-description {
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-icon {
    width: clamp(50px, 12vw, 70px);
    height: clamp(50px, 12vw, 70px);
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hover-card:hover .feature-icon,
.hover-card:focus .feature-icon {
    transform: scale(1.1);
    background-color: var(--primary-blue) !important;
    color: var(--white);
}

/* Industries Section */
.industries-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.industries-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="1000,0 0,300 0,1000 1000,700"/><circle fill="rgba(255,255,255,0.02)" cx="800" cy="200" r="250"/></svg>');
    pointer-events: none;
}

.industries-section .container {
    position: relative;
    z-index: 2;
}

.industries-section h2 {
    color: var(--white);
}

.industry-card {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border-radius: 15px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

.industry-card:hover,
.industry-card:focus {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.industry-number {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.industry-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.industry-description {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Footer */
footer {
    background: var(--text-dark) !important;
    color: var(--white);
    padding: clamp(2rem, 4vw, 3rem) 0 1rem;
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

footer p, footer li {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: var(--primary-blue) !important;
}

footer .border-top {
    border-color: rgba(255,255,255,0.1) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.social-links a:hover,
.social-links a:focus {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design - Mobile First */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .hero-section, .page-header {
        text-align: center;
        padding: 60px 20px 30px;
        min-height: 60vh;
    }
    
    .section-padding {
        padding: 2.5rem 0.5rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 40px;
        max-height: 40px;
    }
    
    .nav-link {
        padding: 0.5rem 0.5rem;
        margin: 0;
    }
    
    .company-card, .hover-card, .industry-card {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .service-card .service-image {
        height: 140px;
    }
    
    .service-media {
        min-height: 180px;
    }
    
    .service-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section, .page-header {
        text-align: center;
        padding: 100px 20px 40px;
        min-height: calc(100vh - 100px);
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-brand {
        margin-bottom: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .company-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card .service-image {
        height: 160px;
    }
    
    .service-media {
        min-height: 220px;
    }
    
    .service-row {
        padding: 2rem 0;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1,
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p,
    .page-header p {
        font-size: 1.05rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .company-card {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 993px) {
    .hero-section h1,
    .page-header h1 {
        font-size: 3rem;
    }
    
    .hero-section p,
    .page-header p {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-card .service-image {
        height: 160px;
    }
}

/* Cross-browser form support */
input,
textarea,
select {
    font-family: inherit;
    font-size: 16px; /* prevents zoom on iOS */
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 74, 107, 0.1);
    outline: none;
}

/* Ensure text within any .bg-primary.text-white section stays white */
.bg-primary.text-white,
.bg-primary.text-white h1,
.bg-primary.text-white h2,
.bg-primary.text-white h3,
.bg-primary.text-white h4,
.bg-primary.text-white p,
.bg-primary.text-white ul,
.bg-primary.text-white li,
.bg-primary.text-white .lead {
    color: var(--white) !important;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-blue);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) #f1f1f1;
}

/* Neutralize Bootstrap/Tailwind .bg-transparent */
.bg-transparent {
    background-color: inherit !important;
    background-image: none !important;
}

/* Healthcare service cards */
.service-card {
    border: 0;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border-radius: 8px;
}

.service-card .service-image {
    height: clamp(140px, 20vw, 180px);
    background-size: cover;
    background-position: center;
}

.service-card .card-body {
    padding: 1rem;
}

.service-card .card-title {
    font-size: clamp(1rem, 1.5vw, 1.05rem);
}

.service-card .card-text {
    font-size: clamp(0.9rem, 1.2vw, 0.95rem);
    color: var(--text-muted);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
}

/* Zig-zag service rows */
.service-row {
    padding: clamp(1.5rem, 3vw, 3rem) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.service-row:last-of-type {
    border-bottom: 0;
}

.service-media {
    background-size: cover;
    background-position: center center;
    min-height: clamp(180px, 40vw, 320px);
}

.service-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Print styles */
@media print {
    .navbar, footer, .btn {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Alexandria', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-dark);
    color: var(--white);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-light:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    color: var(--primary-blue);
}

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

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

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.navbar-brand:hover {
    color: var(--secondary-blue);
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,1000 0,700"/><circle fill="rgba(255,255,255,0.02)" cx="200" cy="200" r="300"/><circle fill="rgba(255,255,255,0.01)" cx="800" cy="800" r="400"/></svg>');
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Homepage-specific hero adjustments: prevent fixed navbar overlap and use background image */
.home .hero-section {
    /* Reserve space for the fixed navbar so content doesn't get hidden under it */
    padding-top: 80px;
    /* Make hero fill the viewport minus the navbar height */
    min-height: calc(100vh - 80px);
    /* Replace gradient with background image for homepage only. Adjust path if you prefer a different image in /assets/ */
    background-image: url('../assets/home\ 1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* keep existing decorative SVG overlay (via ::before) and add a subtle dark overlay for readability */
}

.home .hero-section::before {
    /* ensure decorative SVG stays beneath the overlay */
    z-index: 1;
}

.home .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45); /* dark overlay to keep white text readable */
    pointer-events: none;
    z-index: 2;
}

.home .hero-section .container {
    /* ensure content sits above overlays */
    position: relative;
    z-index: 3;
}

/* Page Header: make all page headers match the hero section dimensions and layout */
.page-header {
    /* Reserve space for fixed navbar */
    padding-top: 80px;
    /* Make page header fill the viewport minus navbar height */
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.page-header::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 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,1000 0,700"/><circle fill="rgba(255,255,255,0.02)" cx="200" cy="200" r="300"/><circle fill="rgba(255,255,255,0.01)" cx="800" cy="800" r="400"/></svg>');
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-section .btn {
    margin: 0.5rem;
}

/* Statistics Section */
.stats-section {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: 2rem;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

/* When stat items appear inside a colored (primary) section, make them transparent
   and ensure text is readable (white). This fixes the Healthcare Achievements section. */
.bg-primary .stat-item {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.bg-primary .stat-item h3,
.bg-primary .stat-item .stat-number,
.bg-primary .stat-item .display-4 {
    color: var(--white) !important;
}
.bg-primary .stat-item p,
.bg-primary .stat-item .lead {
    color: rgba(255,255,255,0.9) !important;
}

/* Ensure Success Stories cards inside primary sections are readable */
.bg-primary .card {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
.bg-primary .card .card-body,
.bg-primary .card .card-title,
.bg-primary .card h5,
.bg-primary .card .card-text,
.bg-primary .card small,
.bg-primary .card .lead {
    color: rgba(255,255,255,0.95) !important;
}
.bg-primary .card .feature-icon.bg-light {
    /* keep icon background light for contrast */
    background-color: var(--white) !important;
    color: var(--primary-blue) !important;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Alexandria', sans-serif;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background-color: var(--secondary-blue);
}

/* Cards and Sections */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.hover-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-light);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium) !important;
    border-color: var(--primary-blue);
}

.company-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
    border: 2px solid transparent;
    margin-bottom: 2rem;
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-medium);
    border-color: var(--primary-blue);
}

.company-logo {
    max-width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.company-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.hover-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: var(--primary-blue) !important;
    color: var(--white);
}

/* Industries Section */
.industries-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.industries-section::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 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="1000,0 0,300 0,1000 1000,700"/><circle fill="rgba(255,255,255,0.02)" cx="800" cy="200" r="250"/></svg>');
    pointer-events: none;
}

.industries-section .container {
    position: relative;
    z-index: 2;
}

.industries-section h2 {
    color: var(--white);
}

.industry-card {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 2rem;
}

.industry-card:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.industry-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.industry-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.industry-description {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--text-dark) !important;
    color: var(--white);
    padding: 3rem 0 1rem;
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer p, footer li {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue) !important;
}

footer .border-top {
    border-color: rgba(255,255,255,0.1) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}



