/* ============================================
   TENANT PUBLIC PAGES - MODERN DESIGN SYSTEM
   Enhanced Version with Advanced Styling
   ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6, #10b981);
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --card-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --card-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 0.3rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-section: 5rem;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body Enhancements */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Sections - Enhanced */
.hero-section {
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 3rem 3rem;
}

/* Ensure all text in hero reads white on gradient */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .lead,
.hero-section a,
.hero-section .nav-link,
.hero-section .text-muted {
    color: #fff !important;
    opacity: 1;
}

/* About hero variant */
.about-hero,
.about-hero h1,
.about-hero h2,
.about-hero p,
.about-hero .lead,
.about-hero a {
    color: #fff !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    animation: heroShift 20s ease-in-out infinite;
}

/* Gradient Buttons */
.btn-gradient-primary {
    background-image: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    color: #fff !important;
    border: none;
    box-shadow: var(--card-shadow-md);
    transition: var(--transition-fast);
}

.btn-gradient-primary:hover,
.btn-gradient-primary:focus {
    filter: brightness(0.98);
    box-shadow: var(--card-shadow-lg);
}

.btn-gradient-primary:active {
    filter: brightness(0.95);
    box-shadow: var(--card-shadow);
}

@keyframes heroShift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.35rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

/* Modern Cards - Enhanced */
.modern-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card .card-body {
    padding: 2rem;
}

/* Feature Cards - Enhanced */
.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--card-shadow-xl);
    transform: translateY(-8px) scale(1.02);
}

.feature-card:hover::after {
    opacity: 0.03;
}

.feature-card>* {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    border-radius: 1.25rem;
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.feature-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Section Spacing */
.section-padding {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 3rem;
}

/* Buttons - Enhanced */
.btn-gradient {
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    border: none;
    color: white;
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-gradient::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;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.35);
    color: white;
}

.btn-gradient:active {
    transform: translateY(-1px) scale(0.98);
}

/* Button Variants */
.btn-outline-primary {
    border: 2px solid var(--tbs-primary);
    color: var(--tbs-primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--tbs-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

/* Stats Section */
.stats-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tbs-primary);
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: #64748b;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Job Cards - Enhanced */
.job-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.job-card:hover {
    border-color: var(--tbs-primary);
    box-shadow: var(--card-shadow-lg);
    transform: translateY(-4px);
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card .company-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.job-card:hover .company-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.job-card h5 a:hover {
    color: var(--tbs-primary);
}

.job-card .company-name {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Badge Styles - Enhanced */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition-fast);
}

.badge-modern:hover {
    transform: scale(1.05);
}

.badge-modern.bg-primary {
    background: linear-gradient(135deg, var(--tbs-primary), #2563eb) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.badge-modern.bg-secondary {
    background: linear-gradient(135deg, var(--tbs-secondary, #10b981), #059669) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-modern.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.testimonial-card .quote-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #475569;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author .name {
    font-weight: 600;
    color: #1e293b;
}

.testimonial-author .position {
    font-size: 0.875rem;
    color: #64748b;
}

/* Accordion Styles */
.accordion-modern .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-modern .accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    color: white;
}

.accordion-modern .accordion-body {
    padding: 1.5rem;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--tbs-primary);
    box-shadow: var(--card-shadow-hover);
    transform: scale(1.05);
}

.pricing-card:hover {
    border-color: var(--tbs-primary);
    box-shadow: var(--card-shadow);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tbs-primary);
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1.25rem;
    color: #64748b;
}

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

.pricing-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Search Form - Enhanced */
.search-form-modern {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow-xl);
    border: 1px solid var(--glass-border);
}

.search-form-modern .form-control,
.search-form-modern .form-select {
    border: 2px solid #e5e7eb;
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: white;
}

.search-form-modern .form-control:focus,
.search-form-modern .form-select:focus {
    border-color: var(--tbs-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.search-form-modern .form-control::placeholder {
    color: #94a3b8;
}

.search-form-modern .btn {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-secondary, #10b981));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        border-radius: 0 0 2rem 2rem;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

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

    .search-form-modern {
        padding: 1.5rem;
    }

    .btn-gradient {
        padding: 0.75rem 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}