/* =====================================================
   JobMetasearch - Homepage Styles
   Bootstrap 5.3 + Custom CSS
   ===================================================== */

/* CSS Variables */
:root {
    --brand-purple: #6059C3;
    --brand-purple-dark: #4A47A3;
    --brand-purple-light: #7B75D1;
    --brand-gray-50: #F9FAFB;
    --brand-gray-100: #F3F4F6;
    --brand-gray-200: #E5E7EB;
    --brand-gray-500: #6B7280;
    --brand-gray-600: #4B5563;
    --brand-gray-800: #1F2937;
    --brand-gray-900: #111827;
    --light-purple: #F4F3FF;
    --gradient-primary: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
    --gradient-hero: linear-gradient(180deg, var(--light-purple) 0%, #ffffff 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 10px 30px -10px rgba(96, 89, 195, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-gray-800);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-gray-900);
}

/* Buttons Override */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-elevated);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(96, 89, 195, 0.4);
    background: var(--gradient-primary);
}

.btn-outline-secondary {
    border: 1px solid var(--brand-gray-200);
    color: var(--brand-gray-800);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--brand-gray-100);
    border-color: var(--brand-gray-300);
    color: var(--brand-gray-900);
}

.btn-light {
    background: #fff;
    color: var(--brand-purple);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--brand-gray-50);
    color: var(--brand-purple-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-fixed {
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-gray-100);
}

.navbar {
    padding: 1rem 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-gray-900);
}

.navbar-nav .nav-link {
    color: var(--brand-gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-gray-900);
}

.navbar-toggler {
    color: var(--brand-gray-800);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    position: relative;
    padding: 2rem 0 2rem;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-blob-1 {
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(96, 89, 195, 0.08);
}

.hero-blob-2 {
    bottom: -10rem;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(96, 89, 195, 0.06);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--light-purple);
    border: 1px solid rgba(96, 89, 195, 0.2);
    margin-bottom: 2rem;
}

.hero-badge i {
    color: var(--brand-purple);
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-gray-800);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--brand-gray-900);
}

@media (min-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--brand-gray-600);
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}

@media (min-width: 576px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 576px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .hero-stats {
        gap: 2rem;
        max-width: 32rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand-gray-900);
    margin-bottom: 0.25rem;
}

@media (min-width: 576px) {
    .stat-value {
        font-size: 2.25rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-gray-500);
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features-section {
    padding: 2rem 0;
    background: #fff;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle-1 {
    font-size: 1.125rem;
    color: var(--brand-gray-600);
    margin-bottom: 0.5rem;
}

.section-subtitle-2 {
    font-size: 1rem;
    color: var(--brand-gray-500);
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--brand-gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 89, 195, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: var(--light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(96, 89, 195, 0.15);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--brand-purple);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--brand-gray-900);
}

.feature-description {
    color: var(--brand-gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 5rem 0;
    background: var(--light-purple);
}

@media (min-width: 992px) {
    .cta-section {
        padding: 7rem 0;
    }
}

.cta-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    background: var(--gradient-primary);
    overflow: hidden;
    text-align: center;
}

@media (min-width: 992px) {
    .cta-card {
        padding: 4rem 3rem;
    }
}

.cta-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.cta-blob-1 {
    top: 0;
    left: 25%;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.08);
}

.cta-blob-2 {
    bottom: 0;
    right: 25%;
    width: 12rem;
    height: 12rem;
    background: rgba(255, 255, 255, 0.06);
}

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

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 992px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i:last-child {
    transform: translateX(4px);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer-section {
    background: var(--brand-gray-900);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-brand .brand-logo {
    background: var(--brand-purple);
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    max-width: 20rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #fff;
}

.social-link i {
    font-size: 1.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-badge {
    animation-delay: 0s;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-cta {
    animation-delay: 0.3s;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-brand {
    color: var(--brand-purple);
}

.bg-brand {
    background: var(--brand-purple);
}

.bg-brand-light {
    background: var(--light-purple);
}

/* =====================================================
   ABOUT PAGE STYLES
   ===================================================== */

/* About Hero */
.about-hero-section {
    position: relative;
    padding: 5rem 0 5rem;
    background: var(--gradient-hero);
    overflow: hidden;
}

@media (min-width: 992px) {
    .about-hero-section {
        padding: 9rem 0 6rem;
    }
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--brand-gray-900);
}

@media (min-width: 576px) {
    .about-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .about-hero-title {
        font-size: 3.5rem;
    }
}

.about-hero-subtitle {
    font-size: 1.125rem;
    color: var(--brand-gray-600);
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.7;
}

@media (min-width: 576px) {
    .about-hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Story Section */
.story-section {
    padding: 5rem 0;
    background: #fff;
}

@media (min-width: 992px) {
    .story-section {
        padding: 7rem 0;
    }
}

.story-content p {
    font-size: 1.125rem;
    color: var(--brand-gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Values Section */
.values-section {
    padding: 5rem 0;
    background: var(--brand-gray-50);
}

@media (min-width: 992px) {
    .values-section {
        padding: 7rem 0;
    }
}

.value-card {
    padding: 2rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--brand-gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 89, 195, 0.3);
    transform: translateY(-4px);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease;
}

.value-card:hover .value-icon {
    background: rgba(96, 89, 195, 0.15);
}

.value-icon i {
    font-size: 1.75rem;
    color: var(--brand-purple);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--brand-gray-900);
}

.value-description {
    color: var(--brand-gray-600);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background: #fff;
}

@media (min-width: 992px) {
    .how-it-works-section {
        padding: 7rem 0;
    }
}

.step-card {
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--brand-gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    position: relative;
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 89, 195, 0.3);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand-gray-900);
}

.step-description {
    color: var(--brand-gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Active nav link */
.navbar-nav .nav-link.active {
    color: var(--brand-purple);
    font-weight: 600;
}