/* Landing Page Styles - CVswork */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base */
/* .landing-page * { margin: 0; padding: 0; box-sizing: border-box; } */
.landing-page { font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    flex-direction: column;
}
.bg-image { position: absolute; inset: 0; z-index: 0; }
.bg-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.bg-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.4)); backdrop-filter: blur(2px); }

/* Navbar */
.navbar-custom { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding: 1.25rem 10px; }
.navbar-custom .container { margin: auto; }
.navbar-brand-custom { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.cv-logo { width: 40px; height: 40px; background: #2563eb; border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2); }
.cv-logo span { color: white; font-weight: 700; font-size: 1.25rem; font-style: italic; }
.brand-text { color: white; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.navbar-custom .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.9) !important; font-weight: 500; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 1rem; }
.navbar-custom .navbar-nav .nav-link:hover { color: white !important; }
.btn-contact { color: white !important; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50px; padding: 0.625rem 1.5rem; font-size: 0.875rem; background: transparent; transition: all 0.3s; }
.btn-contact:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.btn-select { background: #10b981; color: white !important; border: none; border-radius: 50px; padding: 0.625rem 1.5rem; font-weight: 600; font-size: 0.875rem; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3); margin-left: 1rem; transition: all 0.3s; }
.btn-select:hover { background: #059669; transform: translateY(-2px); }
.navbar-custom .navbar-toggler { color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 0.5rem 0.75rem; }
.navbar-custom .navbar-toggler:focus { outline: none; box-shadow: none; }

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.main-content > .container {
    width: 100%;
    margin: auto;
}
.main-content .row.align-items-center {
    display: flex;
    align-items: center !important;
    min-height: calc(100vh - 120px);
}

/* Badge */
.badge-platform { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(96, 165, 250, 0.3); border-radius: 50px; margin-bottom: 2rem; }
.ping-dot { position: relative; height: 8px; width: 8px; }
.ping-dot::before { content: ''; position: absolute; height: 100%; width: 100%; border-radius: 50%; background: #60a5fa; opacity: 0.75; animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
.ping-dot::after { content: ''; position: relative; border-radius: 50%; height: 8px; width: 8px; background: #3b82f6; display: block; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.badge-text { color: #bfdbfe; font-size: 0.875rem; font-weight: 500; }

/* Hero Title */
.hero-title { color: white; font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 2rem; }
.gradient-text { background: linear-gradient(to right, #60a5fa, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.hero-description { color: #cbd5e1; font-size: 1.125rem; line-height: 1.75; font-weight: 300; max-width: 42rem; }
.highlight { color: white; font-weight: 500; }

/* Candidates Section */
.candidates-section { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.candidates-avatars { display: flex; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #0f172a; margin-left: -12px; overflow: hidden; }
.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.candidates-info .count { color: white; font-weight: 700; font-size: 0.875rem; margin: 0; }
.candidates-info .label { color: #94a3b8; font-size: 0.875rem; margin: 0; }

/* Form Wrapper */
.form-wrapper { position: relative; }
.form-glow { position: absolute; inset: -4px; background: linear-gradient(to right, #3b82f6, #10b981); border-radius: 1rem; filter: blur(20px); opacity: 0.3; }
.form-card { position: relative; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(40px); border-radius: 1rem; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.5); }
.form-header { background: linear-gradient(to right, #2563eb, #1d4ed8); padding: 1.5rem 2rem; position: relative; overflow: hidden; }
.form-header-icon { position: absolute; top: 1rem; right: 1rem; opacity: 0.1; font-size: 100px; color: white; }
.form-header h2 { color: white; font-size: 1.5rem; font-weight: 700; margin: 0; position: relative; z-index: 10; }
.form-header p { color: #bfdbfe; font-size: 0.875rem; margin: 0.25rem 0 0; position: relative; z-index: 10; }
.form-body { padding: 2rem; }

/* Form Elements */
.landing-page .form-label { color: #64748b; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.375rem; margin-left: 0.25rem; display: block; }
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.125rem; pointer-events: none; transition: color 0.3s; z-index: 5; }
.landing-page .form-control,
.landing-page .custom-select {
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    color: #0f172a !important;
    font-size: 0.95rem !important;
    transition: all 0.3s;
    height: 50px !important;
    width: 100%;
}
.landing-page .form-control:focus,
.landing-page .custom-select:focus {
    background: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none;
}
.input-wrapper:focus-within .input-icon { color: #3b82f6; }
.landing-page .custom-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    padding-right: 2.5rem !important;
}

/* File Upload */
.file-upload-wrapper { position: relative; cursor: pointer; }
.file-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 10; }
.file-upload-area { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 0.75rem; transition: all 0.3s; }
.file-upload-wrapper:hover .file-upload-area { background: white; border-color: #60a5fa; }
.file-upload-content { display: flex; align-items: center; gap: 0.75rem; }
.file-upload-icon-wrapper { padding: 0.5rem; background: #e2e8f0; border-radius: 0.5rem; }
.file-upload-icon-wrapper i { font-size: 1.125rem; color: #64748b; }
.file-upload-text { color: #64748b; font-size: 0.875rem; font-weight: 500; }
.file-upload-button { background: white; color: #64748b; border: 1px solid #e2e8f0; border-radius: 0.375rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.file-formats { color: #94a3b8; font-size: 0.75rem; margin-top: 0.375rem; margin-left: 0.25rem; }

/* Sample CV Link */
.sample-cv-link {
    float: right;
    font-weight: 500;
    font-size: 0.75rem;
    color: #2563eb;
    cursor: pointer;
    text-decoration: none;
    animation: blinker 1s linear infinite;
}
.sample-cv-link:hover { color: #1d4ed8; text-decoration: underline; }
@keyframes blinker { 50% { opacity: 0.3; } }

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white !important;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
    background: linear-gradient(to right, #1d4ed8, #1e40af);
}

/* Terms Text */
.terms-text { text-align: center; color: #94a3b8; font-size: 0.75rem; margin-top: 1rem; }
.terms-text a { color: #2563eb; text-decoration: none; }
.terms-text a:hover { text-decoration: underline; }

/* Alert Messages */
.landing-page .alert-danger {
    /* background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: white; */
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
}
.landing-page .alert-danger p {
    font-size: 0.875rem !important;
    margin: 0;
}

/* Footer Override for Landing */
.landing-page .ftco-footer {
    position: relative !important;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 5px!important;
}

/* Responsive */
@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

@media (max-width: 991px) {
    .navbar-custom .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        padding: 1rem;
        border-radius: 0.75rem;
        margin-top: 1rem;
    }
    .navbar-custom .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    .navbar-custom .navbar-nav .nav-item {
        text-align: center;
    }
    .btn-contact, .btn-select {
        margin: 0.5rem 0;
        display: inline-block;
    }
    .main-content .row.align-items-center {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .hero-title { font-size: 2.5rem; }
    .form-body { padding: 1.5rem; }
    .main-content { padding-top: 5rem; }
    .hero-description { font-size: 1rem; }
    .main-content .row.align-items-center {
        min-height: auto;
    }
}

/* Form Group Spacing */
.landing-page .form-group {
    margin-bottom: 1rem;
}

/* Validation Error Styling */
.landing-page .form-control.error,
.landing-page .custom-select.error {
    border-color: #ef4444 !important;
}
.landing-page label.error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* SweetAlert2 Modern Styles */
.swal2-popup {
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.swal2-title {
    color: #1e293b !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.swal2-html-container {
    color: #64748b !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.swal2-icon {
    border-width: 3px !important;
    margin: 1.5rem auto !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.swal2-styled.swal2-confirm {
    background: linear-gradient(to right, #2563eb, #1d4ed8) !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s !important;
}

.swal2-styled.swal2-confirm:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5) !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

.swal2-styled.swal2-cancel {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s !important;
}

.swal2-styled.swal2-cancel:hover {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.swal2-actions {
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
}

.swal2-close {
    color: #94a3b8 !important;
    font-size: 1.5rem !important;
}

.swal2-close:hover {
    color: #64748b !important;
}

/* Flash Message Modal - Modern Design */
#flashMessageModal .modal-dialog {
    max-width: 450px;
}

#flashMessageModal .modal-content {
    background: transparent;
    border: none;
}

.flash-modal-wrapper {
    position: relative;
}

.flash-modal-glow {
    position: absolute;
    inset: -4px;
    border-radius: 1.5rem;
    filter: blur(20px);
    opacity: 0.4;
}

.flash-modal-glow.flash-success-glow {
    background: linear-gradient(to right, #10b981, #059669);
}

.flash-modal-glow.flash-error-glow {
    background: linear-gradient(to right, #ef4444, #dc2626);
}

.flash-modal-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
}

.flash-modal-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.flash-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    animation: modalIconPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.flash-modal-icon.flash-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.flash-modal-icon.flash-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #ef4444;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

@keyframes modalIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.flash-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.flash-modal-close:hover {
    background: #e2e8f0;
    color: #475569;
    transform: rotate(90deg);
}

.flash-modal-title {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.flash-modal-body {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.flash-modal-btn {
    width: 100%;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.flash-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

.flash-modal-btn:active {
    transform: translateY(0);
}

/* Modal backdrop */
#flashMessageModal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#flashMessageModal .modal-dialog {
    margin: auto;
}
