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

/* Theme Colors */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --nav-bg: #f3f4f6;
    --nav-text: #23272f;
    --nav-shadow: 0 2px 12px rgba(37, 99, 235, 0.07);
    --white: #e5e7eb;
    --grey: #d1d5db;
    --text-main: #23272f;
    --text-light: #475569;
}

body, .dark-theme {
    background: var(--white);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Mobile-first responsive container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Enhanced Header Card with Mobile Navigation - FIXED RESPONSIVE ISSUES */
.header-card {
    background: url('migration Images/pexels-sametcolakoglu-14859277.jpg') center/cover no-repeat !important;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.13);
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #2563eb;
    position: relative;
    overflow: hidden;
    min-height: 200px; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.88) 60%, rgba(37, 99, 235, 0.75) 100%);
    z-index: 1;
}

.header-title {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.3rem); /* Responsive font size */
    font-weight: 900;
    color: #fff;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    margin-top: 0.2rem;
    line-height: 1.1;
    text-align: center;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    hyphens: auto;
}

.header-tagline {
    color: #e0e7ef;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem); /* Responsive font size */
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    hyphens: auto;
}

/* Page Logo Styles */
.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.header-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.header-menu ul {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1.1rem); /* Responsive gap */
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.header-link {
    color: #fff;
    background: rgba(255,255,255,0.13);
    font-weight: 700;
    font-size: clamp(0.8rem, 2.5vw, 1.08rem); /* Responsive font size */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2rem;
    padding: clamp(0.4rem, 2vw, 0.55rem) clamp(0.8rem, 3vw, 1.3rem); /* Responsive padding */
    border: 2px solid transparent;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border 0.18s;
    display: inline-block;
    position: relative;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10);
    white-space: nowrap;
    min-height: 44px; /* Touch-friendly minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-link:hover, .header-link.active {
    background: #fff;
    color: #2563eb !important;
    border: 2px solid #fff;
}

/* Mobile Navigation Improvements - FIXED */
@media (max-width: 768px) {
    .header-card {
        padding: clamp(1rem, 4vw, 1.5rem) clamp(0.5rem, 3vw, 1rem);
        min-height: 180px;
        margin-bottom: 1.5rem;
    }
    
    .header-logo {
        margin-bottom: 0.8rem;
    }
    
    .page-logo {
        max-width: 150px;
        max-height: 60px;
        padding: 6px;
    }
    
    .header-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .header-tagline {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .header-menu {
        margin-top: 0.8rem;
        width: 100%;
    }
    
    .header-menu ul {
        gap: clamp(0.3rem, 2vw, 0.5rem);
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .header-link {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
        padding: clamp(0.3rem, 2vw, 0.4rem) clamp(0.6rem, 3vw, 0.8rem);
        border-radius: 1rem;
        min-height: 40px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header-card {
        padding: clamp(0.8rem, 3vw, 1rem) clamp(0.3rem, 2vw, 0.5rem);
        min-height: 160px;
        margin-bottom: 1rem;
    }
    
    .header-logo {
        margin-bottom: 0.6rem;
    }
    
    .page-logo {
        max-width: 120px;
        max-height: 50px;
        padding: 4px;
    }
    
    .header-title {
        font-size: clamp(1.1rem, 6vw, 1.5rem);
        line-height: 1.1;
    }
    
    .header-tagline {
        font-size: clamp(0.7rem, 3.5vw, 0.9rem);
        line-height: 1.2;
    }
    
    .header-menu {
        margin-top: 0.6rem;
    }
    
    .header-menu ul {
        gap: clamp(0.2rem, 1.5vw, 0.3rem);
        flex-wrap: wrap;
    }
    
    .header-link {
        font-size: clamp(0.6rem, 3.5vw, 0.8rem);
        padding: clamp(0.25rem, 1.5vw, 0.3rem) clamp(0.5rem, 2.5vw, 0.6rem);
        min-height: 36px;
        border-radius: 0.8rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .header-card {
        padding: 0.6rem 0.3rem;
        min-height: 140px;
    }
    
    .header-logo {
        margin-bottom: 0.5rem;
    }
    
    .page-logo {
        max-width: 100px;
        max-height: 40px;
        padding: 3px;
    }
    
    .header-title {
        font-size: clamp(1rem, 7vw, 1.3rem);
    }
    
    .header-tagline {
        font-size: clamp(0.6rem, 4vw, 0.8rem);
    }
    
    .header-menu ul {
        gap: 0.2rem;
    }
    
    .header-link {
        font-size: clamp(0.5rem, 4vw, 0.7rem);
        padding: 0.2rem 0.4rem;
        min-height: 32px;
    }
}

/* Ensure header elements are always visible */
.header-card,
.header-title,
.header-tagline,
.header-menu,
.header-menu ul,
.header-link,
.header-logo,
.page-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-menu ul {
    display: flex !important;
}

.header-link {
    display: inline-flex !important;
}

.header-logo {
    display: flex !important;
}

.page-logo {
    display: block !important;
}

/* Hero Section Mobile Improvements - FIXED RESPONSIVE ISSUES */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--white) 0%, var(--grey) 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('migration Images/pexels-pixabay-302769.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: -1;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Mobile Hero Improvements - FIXED */
@media (max-width: 768px) {
    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 3rem;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
        min-width: 120px;
        min-height: 44px;
    }
    
    .hero-image {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-card {
        padding: 1.2rem;
        width: 100%;
    }
    
    .hero-card h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .hero-card p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 10px;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        line-height: 1.3;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        min-height: 44px;
    }
    
    .hero-card {
        padding: 1rem;
        width: 100%;
    }
    
    .hero-card h3 {
        font-size: 1rem;
    }
    
    .hero-card p {
        font-size: 0.8rem;
    }
}

/* Services Section Mobile Improvements */
.services-section {
    padding: 4rem 0;
}

.services-section.dark-section {
    background: #1e293b;
    color: #fff;
}

.bg-light {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p, .service-card li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* Mobile Services Improvements */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: 450px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p, .service-card li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.2rem;
    }
}

/* About Section Mobile Improvements */
.about-section {
    padding: 4rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('migration Images/pexels-ekaterinabelinskaya-4922356.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.04;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.feature i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.feature-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.feature-link:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 12px;
    border: 2px solid var(--primary-blue);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Mobile About Improvements */
@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat {
        padding: 1.2rem;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 2rem 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 1.3rem;
    }
}

/* Contact Section Mobile Improvements */
.contact-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Recruitment Images/pexels-fauxels-3184357.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.02;
    z-index: -1;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0.2rem;
    position: relative;
    z-index: 1;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Recruitment Images/pexels-edmond-dantes-4342496.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: -1;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

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

/* Mobile Contact Improvements */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
}

/* Footer Mobile Improvements */
.footer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    color: #fff;
    padding: 3rem 0 1rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Recruitment Images/pexels-burst-544965.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: -1;
}

.footer.dark-footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
}

/* Service Text Background Improvements */
.service-card, .service-card h3, .service-card p, .service-card li, .service-card ul {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
} 

.service-text-bg {
    background: rgba(20, 24, 38, 0.82);
    color: #fff;
    border-radius: 1.2em;
    padding: 0.5em 1.1em;
    margin: 0.4em 0;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    max-width: 90%;
    word-break: break-word;
}

.service-text-bg h3,
.service-text-bg p,
.service-text-bg ul,
.service-text-bg li {
    color: #fff !important;
    margin: 0.2em 0;
    text-shadow: none;
}

/* Section Background Images */
.migration-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.migration-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('migration Images/pexels-pixabay-302769.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: -1;
}

.recruitment-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
}

.recruitment-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Recruitment Images/pexels-burst-544965.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: -1;
}

.about-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.about-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('migration Images/pexels-ekaterinabelinskaya-4922356.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.06;
    z-index: -1;
}

.contact-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
}

.contact-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Recruitment Images/pexels-edmond-dantes-4342496.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.07;
    z-index: -1;
}

/* Dedicated Page Background Styles */
.migration-services-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(37, 99, 235, 0.9) 100%);
}

.migration-services-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('migration Images/pexels-pixabay-302769.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
}

.recruitment-services-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(37, 99, 235, 0.9) 100%);
}

.recruitment-services-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Recruitment Images/pexels-burst-544965.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.12;
    z-index: -1;
}

.migration-about-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.migration-about-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('migration Images/pexels-arlindphotography-33181588.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: -1;
}

.recruitment-about-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.recruitment-about-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Recruitment Images/pexels-myatezhny39-2209529.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.07;
    z-index: -1;
}

/* Hero Section Backgrounds for Dedicated Pages */
.migration-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.migration-hero::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.recruitment-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.recruitment-hero::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

/* Section CTA Styles */
.section-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.section-cta .btn {
    font-size: 1.1rem;
    padding: 15px 35px;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.section-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3);
}

/* Enhanced Service Cards with Better Image Integration */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(29, 78, 216, 0.85) 100%);
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%);
}

/* Mobile Service Text Background */
@media (max-width: 768px) {
    .service-text-bg {
        max-width: 95%;
        padding: 0.4em 0.8em;
        font-size: 0.9rem;
    }
    
    /* Disable fixed background attachment on mobile for better performance */
    .migration-bg::before,
    .recruitment-bg::before,
    .about-bg::before,
    .contact-bg::before,
    .header-card::before,
    .about-section::before,
    .contact-form::before,
    .contact-item::before,
    .hero-card::before,
    .footer::before {
        background-attachment: scroll;
    }
    
    /* Reduce backdrop-filter on mobile for better performance */
    .contact-form,
    .contact-item,
    .hero-card,
    .stat,
    .social-links a {
        backdrop-filter: blur(5px);
    }
    
    .section-cta {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .section-cta .btn {
        font-size: 1rem;
        padding: 12px 25px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .service-text-bg {
        max-width: 100%;
        padding: 0.3em 0.6em;
        font-size: 0.85rem;
    }
    
    .section-cta {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .section-cta .btn {
        font-size: 0.95rem;
        padding: 10px 20px;
        min-width: 160px;
    }
}

/* Additional Mobile Utilities - FIXED RESPONSIVE ISSUES */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    /* Better mobile spacing */
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Improved mobile typography */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
    }
    
    /* Better mobile images */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Mobile-specific button improvements */
    .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.025em;
        white-space: nowrap;
    }
    
    /* Mobile form improvements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
        padding: 12px 16px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile card improvements */
    .service-card,
    .hero-card,
    .contact-item {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile navigation improvements */
    .header-menu ul {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .header-link {
        min-height: 44px;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 1rem;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    /* Mobile section improvements */
    section {
        padding: 2rem 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .section-header {
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .section-header p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    /* Mobile grid improvements */
    .services-grid,
    .about-stats {
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile contact improvements */
    .contact-content {
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-item {
        padding: 1rem;
        min-height: auto;
        width: 100%;
    }
    
    .contact-item i {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile footer improvements */
    .footer-content {
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-section {
        text-align: center;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    
    /* Ensure all elements are visible */
    .header-card,
    .hero,
    .services-section,
    .about-section,
    .contact-section,
    .footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Extra small mobile improvements */
    .header-card {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .header-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .header-tagline {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .header-menu ul {
        padding: 0;
    }
    
    .header-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0;
    }
    
    /* Mobile hero improvements */
    .hero {
        padding-top: 40px;
        padding-bottom: 2rem;
        min-height: auto;
    }
    
    .hero-container {
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .hero-image {
        gap: 0.8rem;
    }
    
    .hero-card {
        padding: 1rem;
    }
    
    .hero-card h3 {
        font-size: 1rem;
    }
    
    .hero-card p {
        font-size: 0.8rem;
    }
    
    /* Mobile services improvements */
    .services-section {
        padding: 1.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p,
    .service-card li {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.8rem;
    }
    
    .service-icon i {
        font-size: 1.1rem;
    }
    
    /* Mobile about improvements */
    .about-section {
        padding: 1.5rem 0;
    }
    
    .about-text h2 {
        font-size: 1.6rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-features {
        gap: 0.8rem;
    }
    
    .feature {
        font-size: 0.9rem;
        gap: 0.6rem;
    }
    
    .feature i {
        font-size: 1rem;
    }
    
    .about-stats {
        gap: 0.8rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 1.2rem;
    }
    
    .stat p {
        font-size: 0.8rem;
    }
    
    /* Mobile contact improvements */
    .contact-section {
        padding: 1.5rem 0;
    }
    
    .contact-item {
        padding: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item i {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    /* Mobile footer improvements */
    .footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .btn, .header-link, .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
    }
    
    .contact-item {
        min-height: 44px;
    }
    
    /* Prevent text selection on interactive elements */
    .btn, .header-link {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better mobile scrolling */
    .header-menu ul {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    
    /* Mobile-specific animations */
    .service-card:hover,
    .hero-card:hover,
    .contact-item:hover {
        transform: none;
    }
    
    /* Mobile-specific focus states */
    .btn:focus,
    .header-link:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Improved scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
    }
    
    /* Mobile-specific viewport improvements */
    .header-card,
    .hero,
    .services-section,
    .about-section,
    .contact-section,
    .footer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Mobile-specific container improvements */
    .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile-specific grid improvements */
    .services-grid,
    .about-content,
    .contact-content,
    .footer-content {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile-specific accessibility improvements - FIXED */
@media (max-width: 768px) {
    /* Better focus indicators for mobile */
    .btn:focus-visible,
    .header-link:focus-visible {
        outline: 3px solid var(--primary-blue);
        outline-offset: 2px;
        border-radius: 8px;
    }
    
    /* Better contrast for mobile */
    .header-link {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.15);
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .header-link:hover,
    .header-link.active {
        background: #fff;
        color: #2563eb !important;
    }
    
    /* Better mobile text contrast */
    .service-card h3,
    .service-card p,
    .service-card li {
        color: #fff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    /* Mobile-specific loading states */
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    /* Mobile-specific error states */
    .form-group input:invalid,
    .form-group select:invalid,
    .form-group textarea:invalid {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    }
    
    /* Ensure background images are always visible */
    .header-card {
        background: url('migration Images/pexels-sametcolakoglu-14859277.jpg') center/cover no-repeat !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    /* Ensure all text is readable */
    .header-title,
    .header-tagline {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        color: #fff !important;
    }
    
    /* Ensure logo is visible and properly sized */
    .header-logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .page-logo {
        display: block !important;
        max-width: 150px !important;
        max-height: 60px !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Mobile-specific performance optimizations - FIXED */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .service-card,
    .hero-card,
    .contact-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    /* Optimize mobile images */
    .main-hero-img {
        object-fit: cover;
        width: 100%;
        height: auto;
        border-radius: 12px;
    }
    
    /* Mobile-specific font loading */
    body {
        font-display: swap;
    }
}

/* Extra small screen fixes */
@media (max-width: 320px) {
    .header-card {
        padding: 0.5rem 0.2rem;
        min-height: 120px;
    }
    
    .header-logo {
        margin-bottom: 0.4rem;
    }
    
    .page-logo {
        max-width: 80px;
        max-height: 35px;
        padding: 2px;
    }
    
    .header-title {
        font-size: clamp(0.9rem, 8vw, 1.2rem);
        line-height: 1.1;
    }
    
    .header-tagline {
        font-size: clamp(0.5rem, 4.5vw, 0.7rem);
        line-height: 1.1;
    }
    
    .header-menu ul {
        gap: 0.1rem;
        flex-wrap: wrap;
    }
    
    .header-link {
        font-size: clamp(0.4rem, 4.5vw, 0.6rem);
        padding: 0.15rem 0.3rem;
        min-height: 28px;
        border-radius: 0.6rem;
    }
    
    .hero-container {
        padding: 0 5px;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.2rem, 7vw, 1.6rem);
    }
    
    .hero-content p {
        font-size: clamp(0.7rem, 4vw, 0.9rem);
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        min-height: 40px;
    }
    
    .container {
        padding: 0 5px;
    }
}

/* Mobile-specific print styles */
@media print {
    .header-card,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    .hero,
    .services-section,
    .about-section,
    .contact-section {
        page-break-inside: avoid;
    }
} 

.migration-hero, .recruitment-hero {
    min-height: 380px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    display: flex;
    align-items: center;
}

@media (max-width: 700px) {
    .migration-hero, .recruitment-hero {
        min-height: 260px !important;
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
} 

/* Always enforce header-card background image and gradient */
.header-card {
    background: url('migration Images/pexels-sametcolakoglu-14859277.jpg') center/cover no-repeat !important;
}
.header-card::before {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.88) 60%, rgba(37, 99, 235, 0.75) 100%) !important;
}

/* Dedicated page hero section: force short height */
.hero.migration-hero,
.hero.recruitment-hero,
.migration-hero.hero,
.recruitment-hero.hero,
.migration-hero,
.recruitment-hero {
    min-height: 280px !important;
    height: auto !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    display: flex;
    align-items: center;
}

.hero.migration-hero .hero-container,
.hero.recruitment-hero .hero-container,
.migration-hero.hero .hero-container,
.recruitment-hero.hero .hero-container,
.migration-hero .hero-container,
.recruitment-hero .hero-container {
    gap: 2rem !important;
    padding: 0 20px !important;
}

.hero.migration-hero .hero-content h1,
.hero.recruitment-hero .hero-content h1,
.migration-hero.hero .hero-content h1,
.recruitment-hero.hero .hero-content h1,
.migration-hero .hero-content h1,
.recruitment-hero .hero-content h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.hero.migration-hero .hero-content p,
.hero.recruitment-hero .hero-content p,
.migration-hero.hero .hero-content p,
.recruitment-hero.hero .hero-content p,
.migration-hero .hero-content p,
.recruitment-hero .hero-content p {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 700px) {
    .hero.migration-hero,
    .hero.recruitment-hero,
    .migration-hero.hero,
    .recruitment-hero.hero,
    .migration-hero,
    .recruitment-hero {
        min-height: 200px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .hero.migration-hero .hero-content h1,
    .hero.recruitment-hero .hero-content h1,
    .migration-hero.hero .hero-content h1,
    .recruitment-hero.hero .hero-content h1,
    .migration-hero .hero-content h1,
    .recruitment-hero .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero.migration-hero .hero-content p,
    .hero.recruitment-hero .hero-content p,
    .migration-hero.hero .hero-content p,
    .recruitment-hero.hero .hero-content p,
    .migration-hero .hero-content p,
    .recruitment-hero .hero-content p {
        font-size: 1rem !important;
    }
} 

/* EXTREMELY AGGRESSIVE OVERRIDE for dedicated page hero sections */
body .hero.migration-hero,
body .hero.recruitment-hero,
body .migration-hero.hero,
body .recruitment-hero.hero,
body .migration-hero,
body .recruitment-hero {
    min-height: 180px !important;
    max-height: 220px !important;
    height: 200px !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

body .hero.migration-hero .hero-container,
body .hero.recruitment-hero .hero-container,
body .migration-hero.hero .hero-container,
body .recruitment-hero.hero .hero-container,
body .migration-hero .hero-container,
body .recruitment-hero .hero-container {
    gap: 1rem !important;
    padding: 0 20px !important;
    max-height: 190px !important;
    overflow: hidden !important;
    grid-template-columns: 3fr 1fr !important;
    align-items: center !important;
}

body .hero.migration-hero .hero-content h1,
body .hero.recruitment-hero .hero-content h1,
body .migration-hero.hero .hero-content h1,
body .recruitment-hero.hero .hero-content h1,
body .migration-hero .hero-content h1,
body .recruitment-hero .hero-content h1 {
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.1 !important;
}

body .hero.migration-hero .hero-content p,
body .hero.recruitment-hero .hero-content p,
body .migration-hero.hero .hero-content p,
body .recruitment-hero.hero .hero-content p,
body .migration-hero .hero-content p,
body .recruitment-hero .hero-content p {
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
}

/* Make the hero image much smaller */
body .hero.migration-hero .hero-image,
body .hero.recruitment-hero .hero-image,
body .migration-hero.hero .hero-image,
body .recruitment-hero.hero .hero-image,
body .migration-hero .hero-image,
body .recruitment-hero .hero-image {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    max-width: 120px !important;
    max-height: 120px !important;
}

body .hero.migration-hero .hero-card,
body .hero.recruitment-hero .hero-card,
body .migration-hero.hero .hero-card,
body .recruitment-hero.hero .hero-card,
body .migration-hero .hero-card,
body .recruitment-hero .hero-card {
    padding: 0.8rem !important;
    border-radius: 8px !important;
    max-height: 60px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .hero.migration-hero .hero-card h3,
body .hero.recruitment-hero .hero-card h3,
body .migration-hero.hero .hero-card h3,
body .recruitment-hero.hero .hero-card h3,
body .migration-hero .hero-card h3,
body .recruitment-hero .hero-card h3 {
    font-size: 0.7rem !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.1 !important;
}

body .hero.migration-hero .hero-card p,
body .hero.recruitment-hero .hero-card p,
body .migration-hero.hero .hero-card p,
body .recruitment-hero.hero .hero-card p,
body .migration-hero .hero-card p,
body .recruitment-hero .hero-card p {
    display: none !important;
}

@media (max-width: 700px) {
    body .hero.migration-hero,
    body .hero.recruitment-hero,
    body .migration-hero.hero,
    body .recruitment-hero.hero,
    body .migration-hero,
    body .recruitment-hero {
        min-height: 120px !important;
        max-height: 150px !important;
        height: 130px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    body .hero.migration-hero .hero-container,
    body .hero.recruitment-hero .hero-container,
    body .migration-hero.hero .hero-container,
    body .recruitment-hero.hero .hero-container,
    body .migration-hero .hero-container,
    body .recruitment-hero .hero-container {
        max-height: 110px !important;
        grid-template-columns: 2.5fr 1fr !important;
        gap: 0.5rem !important;
    }
    
    body .hero.migration-hero .hero-content h1,
    body .hero.recruitment-hero .hero-content h1,
    body .migration-hero.hero .hero-content h1,
    body .recruitment-hero.hero .hero-content h1,
    body .migration-hero .hero-content h1,
    body .recruitment-hero .hero-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    body .hero.migration-hero .hero-content p,
    body .hero.recruitment-hero .hero-content p,
    body .migration-hero.hero .hero-content p,
    body .recruitment-hero.hero .hero-content p,
    body .migration-hero .hero-content p,
    body .recruitment-hero .hero-content p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    body .hero.migration-hero .hero-image,
    body .hero.recruitment-hero .hero-image,
    body .migration-hero.hero .hero-image,
    body .recruitment-hero.hero .hero-image,
    body .migration-hero .hero-image,
    body .recruitment-hero .hero-image {
        max-width: 80px !important;
        max-height: 80px !important;
        gap: 0.3rem !important;
    }
    
    body .hero.migration-hero .hero-card,
    body .hero.recruitment-hero .hero-card,
    body .migration-hero.hero .hero-card,
    body .recruitment-hero.hero .hero-card,
    body .migration-hero .hero-card,
    body .recruitment-hero .hero-card {
        padding: 0.5rem !important;
        max-height: 40px !important;
    }
    
    body .hero.migration-hero .hero-card h3,
    body .hero.recruitment-hero .hero-card h3,
    body .migration-hero.hero .hero-card h3,
    body .recruitment-hero.hero .hero-card h3,
    body .migration-hero .hero-card h3,
    body .recruitment-hero .hero-card h3 {
        font-size: 0.6rem !important;
    }
} 

/* Hide hero section entirely on dedicated pages */
body .hero.migration-hero,
body .hero.recruitment-hero,
body .migration-hero.hero,
body .recruitment-hero.hero,
body .migration-hero,
body .recruitment-hero {
    display: none !important;
} 

/* Performance optimizations - FIXED RESPONSIVE ISSUES */
* {
    box-sizing: border-box;
}

/* Optimize image loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shifts - but allow content to flow properly */
.service-card {
    contain: layout style paint;
    min-height: 500px;
    height: auto;
    overflow: visible;
}

.hero-card {
    contain: layout style paint;
}

/* Optimize background images */
.service-card::before,
.hero-card::before,
.migration-bg::before,
.recruitment-bg::before,
.about-bg::before,
.contact-bg::before {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    will-change: opacity, transform;
}

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

/* Optimize font loading */
body {
    font-display: swap;
}

/* Optimize critical rendering path */
.header-card,
.hero,
.services-section {
    contain: layout style paint;
}

/* Final safeguards to ensure elements are always visible */
.header-card,
.header-title,
.header-tagline,
.header-menu,
.header-menu ul,
.header-link,
.header-logo,
.page-logo,
.hero,
.hero-container,
.hero-content,
.hero-content h1,
.hero-content p,
.hero-buttons,
.btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-menu ul {
    display: flex !important;
}

.header-link,
.btn {
    display: inline-flex !important;
}

/* Ensure proper viewport handling */
@media screen and (max-width: 100vw) {
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .header-card,
    .hero,
    .services-section,
    .about-section,
    .contact-section,
    .footer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
} 