/* ===== CSS VARIABLES ===== */
:root {
    /* Premium Blue Color Palette - Streamlined & Professional */
    --c-deep: #0a1428;           /* Deepest navy - for backgrounds */
    --c-navy: #1e293b;           /* Rich navy - primary dark */
    --c-teal: #0891b2;           /* Premium teal - primary accent */
    --c-blue-light: #1e40af;     /* Royal blue - secondary accent */
    --c-blue-medium: #3b82f6;    /* Bright blue - highlights */
    --c-blue-dark: #1e3a8a;      /* Deep blue - depth */
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    --black: #000000;
    
    /* Legacy Support */
    --green: var(--c-teal);
    
    /* Typography System - Professional Landing Page */
    --font-size-xs: 0.8125rem;    /* ~13px */
    --font-size-sm: 0.9375rem;    /* ~15px */
    --font-size-base: 1.05rem;    /* ~16.8px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.35rem;      /* ~21.6px */
    --font-size-2xl: 1.8rem;      /* 28.8px */
    --font-size-3xl: 2.25rem;     /* 36px */
    --font-size-4xl: 2.7rem;      /* 43.2px */
    --font-size-5xl: 2.9rem;      /* 46.4px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --line-height-loose: 1.9;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== BACKGROUND ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 50%, var(--c-blue-light) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Dots overlay limited to top/bottom bands via mask */
.bg-dots {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0 1px, transparent 1.2px);
    background-size: 22px 22px;
    opacity: 0.9;
    transform: rotate(-12deg);
    /* Show only in top ~30% and bottom ~28% (tweak stops to taste) */
    -webkit-mask:
        linear-gradient(to bottom, black 0%, black 30%, transparent 48%),
        linear-gradient(to top, black 0%, black 28%, transparent 50%);
    mask:
        linear-gradient(to bottom, black 0%, black 30%, transparent 48%),
        linear-gradient(to top, black 0%, black 28%, transparent 50%);
}

/* Graceful fallback where mask isn't supported: soften dots in the centre */
@supports not ((-webkit-mask: none) or (mask: none)) {
    .bg-dots {
        background-image:
            radial-gradient(circle, rgba(74, 144, 226, 0.35) 0 1px, transparent 1.2px),
            /* centre fade reduces dot visibility */
            linear-gradient(to bottom, rgba(4, 26, 51, 0) 20%, rgba(4, 26, 51, 0.85) 55%, rgba(4, 26, 51, 0) 80%);
        background-size: 22px 22px, 100% 100%;
        background-blend-mode: normal, multiply;
        opacity: 0.8;
    }
}

/* ===== HERO SECTION ===== */
.careers-hero {
    background: rgba(4, 26, 51, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.careers-hero h1 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
}

.careers-hero h2 {
    font-size: var(--font-size-lg);
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

/* ===== CAREERS CONTENT ===== */
.careers-content {
    padding: 3rem 0;
    background: #ffffff;
}

.careers-text {
    color: var(--c-deep);
    margin-bottom: 3rem;
}

.careers-text h2 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 2rem;
    line-height: var(--line-height-tight);
}

.careers-text p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* ===== CV CARD ===== */
.cv-card {
    background: #ffffff;
    border: 1px solid #6b7280;
    border-radius: 0;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-width: 320px;
    margin: 0 auto;
}

.cv-title {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--c-deep);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cv-text {
    font-size: var(--font-size-sm);
    color: var(--dark-gray);
    line-height: var(--line-height-relaxed);
    margin-bottom: 2rem;
    text-align: center;
}

.btn-cv {
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(10, 20, 40, 0.15);
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.25);
    color: var(--white);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#cv-modal .modal-content,
#contact-sales-modal .modal-content {
    background: var(--white);
    border-radius: 0 !important;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

#cv-modal.modal-overlay.active .modal-content,
#contact-sales-modal.modal-overlay.active .modal-content {
    transform: translateY(0);
}

#cv-modal .modal-header,
#contact-sales-modal .modal-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--c-deep);
    color: #ffffff;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

#cv-modal .modal-header h3,
#contact-sales-modal .modal-header h3 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    margin: 0;
}

#cv-modal .modal-close,
#contact-sales-modal .modal-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: all 0.2s ease;
}

#cv-modal .modal-close:hover,
#contact-sales-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

#cv-modal .modal-body,
#contact-sales-modal .modal-body {
    padding: 1.5rem 2rem;
}

#cv-modal .modal-body p,
#contact-sales-modal .modal-body p {
    font-size: var(--font-size-base);
    color: var(--dark-gray);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1.5rem;
}

#cv-modal .modal-footer,
#contact-sales-modal .modal-footer {
    padding: 0 2rem 1.5rem;
    text-align: center;
}

#cv-modal .btn-modal-submit,
#contact-sales-modal .btn-modal-submit {
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(10, 20, 40, 0.15);
}

#cv-modal .btn-modal-submit:hover,
#contact-sales-modal .btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.25);
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Nunito Sans', sans-serif;
}

.form-control:focus {
    border-color: var(--c-deep);
    box-shadow: 0 0 0 3px rgba(10, 20, 40, 0.1);
    outline: none;
}

.form-control.textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .careers-hero h1 {
        font-size: 2rem;
    }

    .careers-hero h2 {
        font-size: 1.125rem;
    }

    .careers-text h2 {
        font-size: 1.25rem;
    }

    .cv-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    #cv-modal .modal-content,
    #contact-sales-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }

    #cv-modal .modal-header,
    #cv-modal .modal-body,
    #cv-modal .modal-footer,
    #contact-sales-modal .modal-header,
    #contact-sales-modal .modal-body,
    #contact-sales-modal .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
