@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0A1931; /* Navy Blue */
    --secondary-color: #15325B;
    --accent-color: #1E5C9A;
    --background-color: #F5F7F8;
    --white-color: #FFFFFF;
    --dark-color: #050E1D;
    --text-color: #334155;
    --light-gray: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(14, 42, 58, 0.05);
    --box-shadow-hover: 0 20px 40px rgba(14, 42, 58, 0.12);
}

/* Reset & Base Styles */
html, body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 100vw;
    overflow-x: hidden !important;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent-color);
}

/* Section Header */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
.section-title-center {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.section-title-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Custom Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: var(--transition);
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.border-primary {
    border-color: var(--primary-color) !important;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}
.btn-accent:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Navigation & Header */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a {
    color: rgba(255,255,255,0.8);
}
.top-bar a:hover {
    color: var(--white-color);
}

.main-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: var(--transition);
    padding: 4px 0;
}
.main-navbar.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 4px 0;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--white-color);
    font-size: 1.6rem;
}
.navbar-brand span {
    color: var(--accent-color);
}

.navbar-logo {
    height: 90px;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    transform: scale(1.85);
    transform-origin: left center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sticky-nav .navbar-logo {
    height: 65px;
    transform: scale(1.45);
}
@media (max-width: 767.98px) {
    .navbar-logo {
        height: 65px;
        transform: scale(1.45);
    }
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 10px 15px !important;
    position: relative;
    transition: var(--transition);
}
.nav-link:hover, 
.nav-link.active {
    color: var(--accent-color) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Navbar Toggle for Mobile */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.15) !important;
    padding: 6px 12px;
}
.navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Mega Menu */
.mega-menu {
    position: static !important;
}
.mega-menu-dropdown {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    border: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 25px;
    background-color: var(--white-color);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 500px;
    background-color: var(--primary-color);
}
#heroCarousel .carousel-item {
    height: calc(100vh - 120px);
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}
#heroCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(14, 42, 58, 0.9) 30%, rgba(30, 92, 122, 0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white-color);
}
.hero-content h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}
.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    animation: fadeInUp 1.2s ease-out;
}
.hero-btns .btn {
    margin: 4px !important;
}

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

/* Floating Search Widget */
.search-widget {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

/* Feature Cards & Badges */
.card-custom {
    background-color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}
.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.job-card {
    border-left: 5px solid var(--primary-color);
}
.job-card.urgent {
    border-left-color: #ef4444;
}
.job-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
}
.badge-urgent {
    background-color: #fee2e2;
    color: #ef4444;
}
.badge-featured {
    background-color: #e0f2fe;
    color: #0284c7;
}

.country-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.country-card:hover img {
    transform: scale(1.1);
}
.country-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(14, 42, 58, 0.95), transparent);
    padding: 20px;
    color: var(--white-color);
}
.country-card-overlay h4 {
    color: var(--white-color);
    margin-bottom: 5px;
}

/* Success Counters */
.counter-box {
    text-align: center;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 10px;
}

/* Testimonial slider */
.testimonial-card {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.rating-stars i {
    color: #fbbf24;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--box-shadow);
}
.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    padding: 20px;
    border-radius: var(--border-radius) !important;
}
.accordion-button:not(.collapsed) {
    background-color: var(--background-color);
    color: var(--secondary-color);
    box-shadow: none;
}

/* Footer styling */
.main-footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}
.main-footer h4, .main-footer h5 {
    color: var(--white-color);
    margin-bottom: 25px;
    font-family: var(--font-heading);
}
.main-footer a {
    color: rgba(255,255,255,0.7);
}
.main-footer a:hover {
    color: var(--white-color);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.85rem;
}

/* Floating Widgets */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white-color);
    background-color: #128c7e;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    border: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* General Pages Custom Header */
.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    margin-bottom: 60px;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 42, 58, 0.85);
}
.page-header-content {
    position: relative;
    z-index: 10;
    color: var(--white-color);
}
.page-header-content h1 {
    color: var(--white-color);
    font-size: 2.75rem;
}

/* ==========================================
   ADMIN PANEL CUSTOM STYLES
   ========================================== */
.admin-body {
    background-color: #f8fafc;
}
.admin-navbar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.admin-sidebar {
    background-color: var(--white-color);
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
}
.admin-sidebar .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: #475569 !important;
    padding: 12px 20px !important;
    border-radius: 8px;
    margin: 4px 10px;
}
.admin-sidebar .nav-link::after {
    display: none;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background-color: rgba(30, 92, 122, 0.08);
    color: var(--secondary-color) !important;
}
.admin-sidebar .nav-link i {
    width: 24px;
    font-size: 1.1rem;
}
.admin-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
}
.admin-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Table styles */
.admin-table thead {
    background-color: var(--background-color);
    color: var(--primary-color);
}
.admin-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.admin-table td {
    vertical-align: middle;
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease-in-out;
    flex: 1;
    height: 100%;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-nav-item:hover, 
.mobile-nav-item:focus {
    color: var(--primary-color);
}

.mobile-nav-item.active {
    color: var(--secondary-color);
}

/* Mobile Layout Padding Adjustments */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px !important;
    }
    .whatsapp-float {
        bottom: 80px !important;
    }
    .back-to-top {
        bottom: 80px !important;
    }
}

/* Scroll Reveal Animation Transitions */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Directional Variants */
.reveal-left {
    transform: translateX(-40px);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right {
    transform: translateX(40px);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale {
    transform: scale(0.92);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed,
.reveal-right.revealed {
    transform: translateX(0);
    opacity: 1;
}
.reveal-scale.revealed {
    transform: scale(1);
    opacity: 1;
}

/* Transition Delays for Staggered Cards */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Strict Mobile Viewport & Overflow Prevention */
html {
    overflow-x: hidden !important;
    width: 100%;
}
body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}
@media (max-width: 767.98px) {
    body, html {
        overflow-x: hidden !important;
        max-width: 100%;
    }
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }
}

/* Premium Preloader Styles */
.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0E2A3A 0%, #050E1D 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-svg circle {
    transform-origin: center;
    animation: spinPreloader 2.2s linear infinite;
}
.preloader-bar {
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}
.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #38bdf8);
    animation: preloaderProgress 0.7s ease-in-out forwards;
}
@keyframes spinPreloader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes preloaderProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}
