/* Root variables */
:root {
    --primary-red: #c50000;
    --dark-red: #8c0000;
    --light-red: #ff0000;
    --darker-bg: #0a0a0a;
    --dark-bg: #1a1a1a;
    --text-light: #e0e0e0;
    --text-dark: #2c2c2c;
}

@font-face {
    font-family: Samurai;
    src: url("../resources/CFSamuraiBob.ttf");
}

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

body {
    background: var(--darker-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(197, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 10, 0.98);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: height 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--light-red);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.vacancy-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-red), var(--light-red));
    overflow: hidden;
    margin-top: 80px;
}

.vacancy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../resources/heroimg.jpg') center/cover;
    opacity: 0.2;
}

.vacancy-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
}

.hero-content h1 {
    /* font-family: Samurai, sans-serif; */
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease;
}

.vacancy-type-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Back Button */
.back-button-container {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    color: white;
    transform: translateX(-5px);
}

/* Main Content */
.vacancy-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.content-wrapper {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Image Card */
.image-card {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(197, 0, 0, 0.1), rgba(140, 0, 0, 0.1));
    border-bottom: 1px solid rgba(197, 0, 0, 0.3);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Details Card */
.details-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.8));
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.details-card h2 {
    /* font-family: Samurai, sans-serif; */
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--light-red), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.details-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.details-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-card h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--light-red), var(--primary-red));
    border-radius: 2px;
}

.details-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.details-card ul li {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.details-card ul li:hover {
    padding-left: 3rem;
    color: white;
}

.details-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Apply Button */
.apply-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--light-red), var(--primary-red));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 5px 25px rgba(197, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.apply-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.apply-button:hover::before {
    left: 100%;
}

.apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(197, 0, 0, 0.6);
    color: white;
}

/* Footer */
.footer {
    background: black;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: Samurai, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.footer-section p {
    margin: 0.5rem 0;
    color: #ccc;
}

.footer-section a,
.footer-section .clickable {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-section a:hover,
.footer-section .clickable:hover {
    color: var(--primary-red);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
}

.footer-btn:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 0, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .image-card img {
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        padding: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1000;
    }

    .vacancy-hero {
        min-height: 350px;
        margin-top: 70px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .back-button-container {
        margin: 2rem auto 0;
        padding: 0 1rem;
    }

    .vacancy-content {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .details-card {
        padding: 2rem 1.5rem;
    }

    .details-card h2 {
        font-size: 1.6rem;
    }

    .details-card h3 {
        font-size: 1.3rem;
    }

    .apply-button {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
}

@media (max-width: 500px) {
    .logo img {
        height: 40px;
    }

    .details-card {
        padding: 1.5rem 1rem;
    }

    .details-card p,
    .details-card ul li {
        font-size: 1rem;
    }
}