/*
  Starhire — starhire.com
  Custom styles for recruitment sections.
  Base template styles remain in templatemo-personal-style.css.
*/

/* ─── Logo Image ─── */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-img:hover {
    opacity: 0.85;
}

/* ─── Hero Extras ─── */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-button.cta-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-note {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

/* ─── Nav CTA Button ─── */
.nav-links a.nav-cta {
    padding: 0.55rem 1.6rem;
    background: var(--gradient-primary);
    color: var(--text-light) !important;
    -webkit-text-fill-color: var(--text-light) !important;
    border-radius: 30px;
    font-weight: 600;
    border-bottom: none;
}

.nav-links a.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.nav-links a.nav-cta::after {
    display: none;
}

/* Mobile menu – extra items (5-7) */
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.6s; }
.mobile-menu.active .mobile-nav-links li:nth-child(7) { transition-delay: 0.7s; }

/* ─── Section Subtitle ─── */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin: -2.5rem auto 4rem;
    line-height: 1.7;
}

/* ─── Features Section ─── */
.features-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: var(--gradient-primary);
    border-color: transparent;
}

.feature-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}

.feature-card:hover .feature-icon-wrap svg {
    stroke: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.93rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ─── Stats Section ─── */
.stats-section {
    background: var(--gradient-elegant);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><pattern id='sg' width='10' height='10' patternUnits='userSpaceOnUse'><path d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.5'/></pattern></defs><rect width='100' height='100' fill='url(%23sg)'/></svg>");
    opacity: 0.6;
}

.stats-section .floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-number span:first-child {
    font-size: 3rem;
}

.stat-suffix {
    font-size: 1.8rem !important;
    font-weight: 600;
    opacity: 0.85;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.75rem;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-number span:first-child { font-size: 2.5rem; }
}

/* ─── Jobs Section ─── */
.jobs-section {
    background: var(--bg-primary);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.job-card {
    background: var(--bg-card);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.job-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.job-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
    transition: opacity 0.3s ease;
}

.job-card:hover .job-image::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(139, 92, 246, 0.35));
}

.job-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.job-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.job-salary {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.job-features-list {
    list-style: none;
    margin: 0 0 1.5rem;
    flex: 1;
}

.job-features-list li {
    padding: 0.45rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.93rem;
    line-height: 1.5;
}

.job-features-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.job-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.job-apply-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    text-align: center;
    align-self: flex-start;
    letter-spacing: 0.3px;
}

.job-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.35);
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

/* ─── Process / How to Apply Section ─── */
.process-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}

.process-step {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin-bottom: 7rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step.reverse {
    flex-direction: row-reverse;
}

.step-img {
    flex: 1;
    height: 360px;
    border-radius: 25px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.step-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent 70%);
}

.step-content {
    flex: 1;
    padding: 1rem 0;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-elegant);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1.25rem;
    opacity: 0.4;
    letter-spacing: -2px;
}

.step-content h3 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .process-step,
    .process-step.reverse {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }

    .step-img { height: 260px; width: 100%; }
    .step-number { font-size: 3.5rem; }
    .step-content h3 { font-size: 1.5rem; }
}

/* ─── FAQ Section ─── */
.faq-section {
    background: var(--bg-primary);
    position: relative;
}

.faq-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: var(--bg-card);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.25);
}

.faq-btn {
    width: 100%;
    padding: 1.4rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: 1rem;
    transition: color 0.3s ease;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.faq-btn:hover {
    color: var(--primary-color);
}

.faq-btn.active {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    line-height: 1;
}

.faq-btn.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.75rem;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0 1.75rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.93rem;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-columns { grid-template-columns: 1fr; }
}

/* ─── Testimonials Section ─── */
.testimonials-section {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(99, 102, 241, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.25);
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
}

.star {
    color: #f59e0b;
    font-size: 1.15rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.author-info h4 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* ─── Position Selector (Contact Section) ─── */
.position-selector {
    margin: 2.5rem 0 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    text-align: left;
}

.position-selector h4 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.position-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.position-option {
    cursor: pointer;
    display: block;
}

.position-option input[type="radio"] {
    display: none;
}

.position-label {
    display: block;
    padding: 1.35rem 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.position-label strong {
    display: block;
    font-size: 0.97rem;
    color: white;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.position-label em {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
}

.position-option input:checked + .position-label {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.position-option:hover .position-label {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.selector-note {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
    min-height: 1.2em;
}

@media (max-width: 560px) {
    .position-options { grid-template-columns: 1fr; }
}

/* ─── Contact Section Overrides ─── */
.contact .contact-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.contact-iframe {
    width: 100%;
    min-height: 1200px;
    border: none;
    display: block;
    margin-top: 3rem;
}

/* ─── Custom Modal ─── */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.custom-modal.modal-open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
}

.modal-box {
    position: relative;
    background: var(--bg-primary);
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 5;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    overflow-y: auto;
    padding: 2rem;
    flex: 1;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .submit-btn {
    padding: 0.75rem 2rem;
    margin: 0;
}

.terms-section {
    margin-bottom: 1.5rem;
}

.terms-section h6 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.terms-section p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ─── WhatsApp Float Button ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ─── Footer Updates ─── */
.footer-left a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-left a:hover {
    color: white;
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}
