/* Custom CSS for Swift Staffing */
:root {
    --primary-blue: #0a1f44;
    --gold: #d4af37;
    --white: #ffffff;
    --light-blue: #1e3a8a;
    --dark-blue: #0c1a36;
}

.bg-primary-blue {
	background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-container {
    text-align: center;
}

.logo-placeholder {
    padding: 20px;
    border-radius: 50%;
    /*background: rgba(255, 255, 255, 0.1);*/
    display: inline-block;
    margin-bottom: 20px;
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold), 0 0 30px var(--gold);
    }
    to {
        box-shadow: 0 0 20px var(--gold), 0 0 30px var(--gold), 0 0 40px var(--gold);
    }
}

.logo-text {
    display: block;
    margin-top: 10px;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Promotion Banner */
.promotion-banner {
    background: linear-gradient(90deg, var(--gold), #ffec8b);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 1030;
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    white-space: nowrap;
    padding-right: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.header {
    background-color: var(--dark-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
    background-color: rgba(212, 175, 55, 0.1);
}

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

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

/* Buttons */
.btn-gold {
    background-color: var(--gold);
    color: var(--primary-blue);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #c19b2e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hover-gold:hover {
    color: var(--gold) !important;
}

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

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

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

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-blue));
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .marquee-content {
        font-size: 0.8rem;
    }
}

/* Additional Utility Classes */
.shadow-gold {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.border-gold {
    border-color: var(--gold) !important;
}

.hover-lift:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-img {
    max-height: 50px; /* Adjust based on your logo size */
    width: auto;
    max-width: 200px; /* Prevent logo from being too wide */
    object-fit: contain;
    transition: all 0.3s ease;
}

/* For smaller screens */
@media (max-width: 768px) {
    .logo-img {
        max-height: 40px;
        max-width: 150px;
    }
}

/* Loading screen logo */
.loading-logo {
    max-height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

/* Logo glow effect */
.logo-container.glow img {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    transition: filter 0.3s ease;
}

.logo-container.glow:hover img {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

/* For the loading screen glow */
.logo-placeholder.glow img {
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8)) 
               drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
    }
}

/* Navigation with logo */
.navbar-brand {
    padding: 0;
}

.navbar-brand .logo-wrapper {
    height: 60px; /* Match your navbar height */
    display: flex;
    align-items: center;
}

/* Footer logo adjustments */
.footer .logo-img {
    max-height: 40px;
    max-width: 180px;
}

/* Hover effects for logo */
.logo-container:hover {
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .navbar-brand .logo-img {
        max-height: 35px;
        max-width: 120px;
    }
    
    .loading-logo {
        max-height: 60px;
        max-width: 200px;
    }
}

/* Ensure logo doesn't stretch on mobile */
.logo-img {
    height: auto;
    width: auto;
}