/* Global Jobscout - Luxury Black & Gold Theme */

:root {
    --primary-color: #000000;
    --secondary-color: #D4AF37;
    /* Metallic Gold */
    --accent-color: #FFFFFF;
    --text-color: #E0E0E0;
    --bg-dark: #0A0A0A;
    --card-bg: #111;
    --nav-bg: rgba(0, 0, 0, 0.9);
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F1D389 50%, #D4AF37 100%);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

body.light-mode {
    --primary-color: #FFFFFF;
    --secondary-color: #B8860B;
    /* Darker Gold for visibility */
    --accent-color: #000000;
    --text-color: #333333;
    --bg-dark: #F9F9F9;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --gold-gradient: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #B8860B 100%);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

nav.sticky {
    padding: 10px 50px;
    background: var(--primary-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 60px;
    width: auto;
    transition: var(--transition);
    mix-blend-mode: lighten;
    /* Makes black background transparent */
    filter: contrast(110%) brightness(110%);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

.btn-apply {
    background: var(--gold-gradient);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/hero-bg.jpg') center center / contain no-repeat;
    background-color: #000;
    /* Solid black to match image edges */
    padding: 120px 20px 80px;
}

.hero-logo {
    max-width: 450px;
    /* Adjusted for text-only logo */
    width: 90%;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    animation: glow-logo 4s ease-in-out infinite alternate;
}

@keyframes glow-logo {
    from {
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
    }

    to {
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
    }
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-hero {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

/* Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #050505;
    padding: 60px 10% 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.social-links a:hover {
    filter: drop-shadow(0 0 5px var(--secondary-color));
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #666;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Controls (Language & Theme) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-select {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    font-size: 0.9rem;
}

.lang-select option {
    background: var(--primary-color);
    color: var(--text-color);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* Page spacing for non-hero pages */
main {
    padding-top: 80px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .hero {
        background-attachment: scroll;
        background-position: center center;
        background-size: contain;
        min-height: 50vh;
        /* Shorter hero on mobile to keep containment proportional */
        padding-top: 100px;
    }

    .hero-logo {
        max-width: 300px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hamburger {
        display: block;
        order: 2;
    }

    .nav-controls {
        order: 3;
        gap: 10px;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        background: var(--bg-dark);
        margin-top: 15px;
        border-radius: 8px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    nav .btn-apply {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 20px !important;
        margin: 0 10px;
    }

    .checkbox-group {
        flex-direction: column;
        padding: 15px !important;
        margin: 15px 0 !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px !important;
    }

    section {
        padding: 40px 5%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--secondary-color);
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.modal-content h2,
.modal-content h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--text-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.terms-link {
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
}

/* Multilingual Sections */
.lang-section {
    display: none;
}

.lang-section[data-lang="ar"] {
    direction: rtl;
    text-align: right;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 20px;
    right: 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    z-index: 3000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content {
    flex: 1;
    margin-right: 20px;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 20px;
        bottom: -300px;
        left: 10px;
        right: 10px;
        gap: 15px;
        text-align: center;
    }

    .cookie-banner.show {
        bottom: 10px;
    }

    .cookie-content {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .cookie-btns {
        width: 100%;
        justify-content: center;
    }

    .cookie-btns button {
        width: 100%;
    }
}