/* =========================================================
    LANDING PAGE — PREMIUM UI (FINAL RESPONSIVE VERSION)
========================================================= */

/* Global variables inherited from theme.css */

/* Buttons inherit from theme.css, additional layout tweaks only */
.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* ---- MAIN WRAPPER ---- */
.landing-container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 25px;
}

/* =========================================================
    HERO SECTION
========================================================= */

.hero-section {
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-body) 100%);
    border-radius: var(--border-radius-lg);
    margin-bottom: 60px;
    box-shadow: var(--shadow-glass);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--color-text-dark);
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    max-width: 800px;
    margin: auto;
    color: var(--color-text-subtle);
    font-size: 20px;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* =========================================================
    SECTION HEADINGS
========================================================= */

.section-block {
    margin: 90px 0;
}

.section-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* =========================================================
    FEATURE GRID
========================================================= */

.feature-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card-modern {
    background: var(--color-bg-card);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.feature-card-modern h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-text-dark);
    font-weight: 700;
}

.feature-card-modern p {
    color: var(--color-text-subtle);
    font-size: 16px;
}

/* =========================================================
    ROLE SECTION
========================================================= */

.role-section {
    background: #f8fafc;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--shadow-subtle);
}

.role-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.role-card-modern {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: 0 6px 18px var(--shadow-subtle);
    transition: transform 0.2s ease;
}

.role-card-modern:hover {
    transform: scale(1.03);
}

.role-card-modern h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.role-card-modern p {
    font-size: 16px;
    color: var(--text-light);
}

/* =========================================================
    DEMO LOGIN BOX
========================================================= */

.demo-box-modern {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    background: #f0f4f8;
    border: 1px solid #d5d9df;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.demo-label {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.demo-value {
    background: white;
    padding: 10px 18px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--color-text-dark);
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}

.demo-divider {
    width: 2px;
    background: #c0c4c9;
    border-radius: 1px;
}

/* =========================================================
    RESPONSIVE BREAKPOINTS
========================================================= */

/* Tablet */
@media (max-width: 950px) {
    .feature-grid-modern {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .landing-container {
        padding: 35px 18px;
    }

    .hero-section {
        padding: 60px 25px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section-heading {
        font-size: 30px;
    }

    .hero-buttons .btn {
        margin: 8px 0;
        width: 100%;
        /* Full width buttons for mobile */
        text-align: center;
    }

    .demo-box-modern {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .demo-divider {
        display: none;
    }

    .demo-value {
        text-align: left;
    }
}

/* Smaller mobile (<500px) */
@media (max-width: 500px) {
    .feature-grid-modern {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-section {
        padding: 45px 20px;
    }
}

/* Ultra-small (<380px) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .landing-container {
        padding: 25px 14px;
    }
}

/* =========================================================
    PREMIUM LOGIN POPUP MODAL
========================================================= */

.login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.login-popup-modal {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-popup-overlay.active .login-popup-modal {
    transform: scale(1) translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    margin-bottom: 32px;
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.popup-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.popup-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-login-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.popup-login-btn.admin-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.popup-login-btn.admin-btn:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.popup-login-btn.recruiter-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #1e293b;
}

.popup-login-btn.recruiter-btn:hover {
    border-color: #6366f1;
    background: #f1f5f9;
    transform: translateX(6px);
}

.btn-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-label {
    font-size: 17px;
    font-weight: 700;
}

.btn-desc {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
}

.popup-login-btn.recruiter-btn .btn-desc {
    color: #64748b;
}

.btn-arrow {
    font-size: 20px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.popup-login-btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.popup-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.popup-footer p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Popup Mobile Responsive */
@media (max-width: 500px) {
    .login-popup-modal {
        padding: 28px 24px;
        margin: 16px;
    }

    .popup-title {
        font-size: 24px;
    }

    .popup-login-btn {
        padding: 14px 16px;
    }

    .btn-icon {
        font-size: 24px;
    }

    .btn-label {
        font-size: 15px;
    }
}