/* ============================================================
   GLOBAL STYLES
   ============================================================ */
:root {
    --primary: #2563eb;
    --secondary: #475569;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f1f5f9;
    --dark: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ============================================================
   SCROLLBAR STYLES
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-scrolled {
    background: rgba(37, 99, 235, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand span {
    font-size: 1.3rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary) 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.wave-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   JOB CARDS
   ============================================================ */
.job-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
}

.job-card .company-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.company-logo img {
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
}

.blog-card .card-img-top {
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stat-item {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.stat-item h3 {
    font-weight: 800;
    font-size: 3rem;
}

.stat-icon {
    opacity: 0.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-links .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
}

/* ============================================================
   BUTTON HOVER EFFECTS
   ============================================================ */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================================
   INPUT FOCUS EFFECTS
   ============================================================ */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================================
   JOB DETAILS PAGE
   ============================================================ */
.job-details-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.job-details-header .company-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.dashboard-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ============================================================
   PAYMENT PAGE
   ============================================================ */
.payment-method-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.payment-method-card .method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    margin: 0 auto 1rem;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.bg-primary .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 15px 20px;
}

.bg-primary .btn-warning {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.rounded-3 {
    border-radius: 16px !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* ============================================================
   BADGE STYLES
   ============================================================ */
.badge.bg-opacity-10 {
    background: rgba(108, 117, 125, 0.1) !important;
}

/* ============================================================
   ANIMATION DELAYS
   ============================================================ */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .wave-divider svg {
        height: 40px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .bg-primary .form-control {
        border-radius: 50px;
    }
    
    .bg-primary .btn-warning {
        border-radius: 50px;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .job-card .company-logo img {
        width: 40px;
        height: 40px;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}