/* Careers Page - Sophisticated Modern Design */

/* Reset and Base */
* {
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: var(--navbar-height, 80px);
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(251, 146, 60, 0.04) 0%, transparent 50%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: heroFadeIn 1s ease-out;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9333ea;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-display, 'Crimson Text', serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    animation: heroFadeIn 1s ease-out 0.2s backwards;
}

.hero-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.3);
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Section Headers */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem; /* Reduce bottom margin */
}

.section-title {
    font-family: var(--font-display, 'Crimson Text', serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Culture Section */
.culture {
    background: var(--bg-secondary);
    position: relative;
    padding-bottom: 2rem; /* Reduce bottom padding */
}

.values-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 0; /* Remove bottom margin */
}

/* Responsive adjustments for values showcase */
@media (max-width: 1024px) {
    .values-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .values-showcase {
        grid-template-columns: 1fr;
    }
}

/* Work Life Section (soft benefits) */
.worklife {
    padding-top: 0;
    margin-top: -5rem; /* Even tighter spacing between sections */
    background: var(--bg-secondary); /* Same background as culture section */
    padding-bottom: 3rem; /* Reduce bottom padding */
}

.worklife .container {
    padding-top: 0;
}

.worklife .section-intro {
    margin-bottom: 1.5rem; /* Reduce margin */
    position: relative;
    padding-top: 0.5rem; /* Minimal padding */
}

/* Add a subtle separator line before worklife section */
.worklife .section-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
    border-radius: 2px;
}

.worklife .section-description {
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

.worklife .values-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 0;
}

/* Remove special styling - worklife items will use same style as culture values */

.value-item {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9333ea, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.value-item:hover::before {
    transform: scaleX(1);
}

.value-icon {
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9333ea;
}

.value-item h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    background: var(--bg-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-content .section-title {
    text-align: left;
    margin-bottom: 2.5rem;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.benefit:hover {
    background: var(--bg-secondary);
    transform: translateX(8px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.benefit-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.benefit-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.visual-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visual-stat {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Positions Section */
.positions {
    background: var(--bg-secondary);
}

.positions-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.positions-sidebar {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: calc(var(--navbar-height, 80px) + 1rem);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.filter-option:hover {
    opacity: 0.8;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    accent-color: #9333ea;
    cursor: pointer;
}

.filter-option span:first-of-type {
    flex: 1;
    color: var(--text-primary);
}

.filter-option .count {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--text-secondary);
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.position-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.position-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #9333ea, #ec4899);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.position-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
    border-color: #9333ea;
}

.position-card:hover::before {
    transform: scaleY(1);
}

.position-card:hover .position-arrow {
    transform: translateX(4px);
}

.position-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.position-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.position-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8125rem;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tag:first-child {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.position-arrow {
    font-size: 1.5rem;
    color: #9333ea;
    transition: transform 0.3s ease;
}

.careers-cta {
    margin-top: 2rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(236, 72, 153, 0.05));
    border: 2px dashed rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Process Section */
.process {
    background: var(--bg-primary);
}

.process .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: #9333ea;
    border-color: #9333ea;
    color: white;
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.08) 0%, 
        rgba(236, 72, 153, 0.05) 100%);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display, 'Crimson Text', serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons - Fixed styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    box-shadow: 0 8px 24px -8px rgba(147, 51, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(147, 51, 234, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: #9333ea;
    color: #9333ea;
    background: rgba(147, 51, 234, 0.05);
}

.btn-secondary {
    background: var(--bg-primary);
    color: #9333ea;
    border: 2px solid #9333ea;
}

.btn-secondary:hover {
    background: #9333ea;
    color: white;
    transform: translateY(-2px);
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #9333ea;
}

.footer-eeo {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .positions-container {
        grid-template-columns: 1fr;
    }
    
    .positions-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .values-showcase {
        grid-template-columns: 1fr;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        flex-direction: column;
        align-items: center;
    }
    
    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: 31px;
        right: auto;
        width: 2px;
        height: calc(100% - 64px);
    }
    
    .process-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .step-number {
        margin: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Ensure proper theme variable fallbacks */
:root {
    --navbar-height: 80px;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --font-display: 'Crimson Text', serif;
}

[data-theme="dark"],
:root[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --border-color: #374151;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    height: var(--navbar-height, 80px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo Visibility Based on Theme */
.logo {
    height: 40px;
    width: auto;
}

/* Default state (dark theme) */
.dark-logo {
    display: block;
}

.light-logo {
    display: none;
}

/* Hide dark logo in light theme */
[data-theme="light"] .dark-logo,
:root[data-theme="light"] .dark-logo {
    display: none;
}

/* Hide light logo in dark theme */
[data-theme="dark"] .light-logo,
:root[data-theme="dark"] .light-logo {
    display: none;
}

/* Show light logo in light theme */
[data-theme="light"] .light-logo,
:root[data-theme="light"] .light-logo {
    display: block;
}

/* Show dark logo in dark theme */
[data-theme="dark"] .dark-logo,
:root[data-theme="dark"] .dark-logo {
    display: block;
}

/* Theme Toggle Button Styling */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
}

.theme-toggle .icon {
    width: 20px;
    height: 20px;
}

/* Default state (dark theme) for icons */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* Hide moon icon in light theme */
[data-theme="light"] .theme-toggle .moon-icon,
:root[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Hide sun icon in dark theme */
[data-theme="dark"] .theme-toggle .sun-icon,
:root[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

/* Show sun icon in light theme */
[data-theme="light"] .theme-toggle .sun-icon,
:root[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

/* Show moon icon in dark theme */
[data-theme="dark"] .theme-toggle .moon-icon,
:root[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}