/* ==========================================================================
   Vision Axis Corporation - Design System & Custom CSS
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;       /* Deep Navy Slate */
    --secondary: #1b263b;     /* Slate Blue Dark */
    --accent: #2563eb;        /* Vibrant Royal Blue */
    --accent-hover: #1d4ed8;  /* Royal Blue Darker */
    --accent-light: #dbeafe;  /* Soft Blue Tint */
    --bg-light: #f8fafc;      /* Off-White / Soft Slate */
    --bg-card: #ffffff;
    --text-dark: #0f172a;     /* Charcoal Black */
    --text-muted: #64748b;    /* Warm Slate Gray */
    --text-light: #ffffff;
    --border-color: #e2e8f0;  /* Clean Slate Border */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.05), 0 2px 4px -1px rgba(15,23,42,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -2px rgba(15,23,42,0.04);
    --shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.05);
}

/* Base Styles */
body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* Buttons */
.btn-custom {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-light) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary-custom {
    background-color: var(--white);
    color: var(--primary) !important;
    border: 1px solid var(--border-color);
}
.btn-secondary-custom:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* Header & Navigation */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    padding: 15px 0;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand span {
    color: var(--accent);
}

.navbar-custom .nav-link {
    font-weight: 500;
    color: var(--primary);
    padding: 8px 16px !important;
    border-radius: 6px;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-item.active .nav-link {
    color: var(--accent);
    background-color: var(--accent-light);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 120px 0;
    background: radial-gradient(circle at 10% 20%, rgba(219, 234, 254, 0.5) 0%, rgba(255, 255, 255, 0.9) 90%);
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(var(--accent-light), transparent 70%);
    z-index: 1;
    opacity: 0.6;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.25rem;
    position: relative;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px auto;
}

/* Custom Cards */
.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Industries & Countries List */
.country-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.country-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 10%, rgba(15, 23, 42, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
}

.country-overlay h4 {
    color: var(--white);
    margin: 0 0 4px 0;
    font-size: 1.25rem;
}

.country-overlay span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Stats Counter Badge */
.stat-box {
    text-align: center;
    padding: 40px 20px;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

/* Jobs Section Styling */
.job-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.job-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}
.badge-urgent {
    background-color: #ef4444;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.job-meta-item {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.job-meta-item i {
    color: var(--accent);
    margin-right: 6px;
}

/* Sidebar filter stylings */
.filter-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

/* Testimonial slider css */
.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 15px;
    border: 1px solid var(--border-color);
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    background-color: var(--border-color);
}
.rating-stars {
    color: #f59e0b; /* Amber */
    margin-bottom: 16px;
}

/* Footer styling */
.footer-custom {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-custom h5 {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-custom .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-custom .footer-links li {
    margin-bottom: 12px;
}

.footer-custom .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-custom .footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-custom .newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
}

.footer-custom .newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-custom .newsletter-form button {
    border-radius: 0 8px 8px 0;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0 20px;
}

.footer-custom .newsletter-form button:hover {
    background-color: var(--accent-hover);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Toast styling override */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
}

/* Loading animations */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--accent-light);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

/* Admin Dashboard Specific Layouts */
.admin-body {
    background-color: #f1f5f9;
}

.admin-sidebar {
    background-color: var(--primary);
    color: var(--white);
    min-height: 100vh;
    padding: 24px 0;
    position: fixed;
    width: 260px;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .sidebar-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    padding: 0 24px;
    margin-bottom: 40px;
    display: block;
    color: var(--white);
}

.admin-sidebar .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar .sidebar-menu li a {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.admin-sidebar .sidebar-menu li a i {
    width: 24px;
    margin-right: 12px;
}

.admin-sidebar .sidebar-menu li a:hover,
.admin-sidebar .sidebar-menu li.active a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent);
}

.admin-content-wrapper {
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

.admin-navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    margin-left: 260px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.admin-card-stat {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-stat .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-card-stat.closed .stat-icon {
    background-color: #fee2e2;
    color: #ef4444;
}

.admin-card-stat.pending .stat-icon {
    background-color: #fef3c7;
    color: #d97706;
}

/* Responsiveness overrides */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .admin-sidebar {
        width: 70px;
    }
    .admin-sidebar .sidebar-logo span,
    .admin-sidebar .sidebar-menu li a span {
        display: none;
    }
    .admin-content-wrapper,
    .admin-navbar {
        margin-left: 70px;
    }
}
@media (max-width: 575.98px) {
    .section-padding {
        padding: 60px 0;
    }
    .navbar-brand {
        font-size: 1.25rem;
    }
}
