/* ==========================================================================
   Jobs Page Redesign - Glassmorphism Styles
   ========================================================================== */

/* ==========================================================================
   SVG Icon Styles - Enhanced Visibility
   ========================================================================== */

/* Icon visibility custom properties for maintainability */
:root {
    /* Default icon state - pure white like landing page */
    --icon-filter-default: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    /* Mint color for hover effects - matching landing page */
    --icon-filter-mint: brightness(0) saturate(100%) invert(83%) sepia(50%) saturate(800%) hue-rotate(100deg) brightness(110%) contrast(90%);
    /* Strong shadow for visibility against glass backgrounds */
    --icon-shadow-default: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    --icon-shadow-hover: drop-shadow(0 0 25px rgba(154, 213, 202, 1));
}

.badge-icon,
.meta-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    /* Pure white with shadow for visibility - matching landing page */
    filter: var(--icon-filter-default) var(--icon-shadow-default) !important;
    opacity: 1 !important;
    transition: all var(--transition-fast);
}

.culture-icon img {
    width: 60px;
    height: 60px;
    /* Pure white with strong shadow - matching landing page style */
    filter: var(--icon-filter-default) var(--icon-shadow-default) !important;
    transition: all var(--transition-normal);
}

.culture-card:hover .culture-icon img {
    transform: scale(1.15) rotate(5deg);
    /* Vibrant mint color on hover - matching landing page */
    filter: var(--icon-filter-mint) var(--icon-shadow-hover);
}

.benefit-icon img {
    width: 32px;
    height: 32px;
    /* Pure white with shadow - matching landing page */
    filter: var(--icon-filter-default) var(--icon-shadow-default) !important;
    transition: all var(--transition-fast);
}

/* Hover states for small icons */
.job-badge:hover .badge-icon,
.job-meta span:hover .meta-icon,
.benefit-item:hover .benefit-icon img {
    /* Mint color on hover with glow - matching landing page */
    filter: var(--icon-filter-mint) var(--icon-shadow-hover);
    transform: scale(1.1) translateY(-2px);
}

/* ==========================================================================
   Button Style Fixes
   ========================================================================== */
/* Ensure no underlines on glass buttons */
a.glass-button,
a.glass-button-primary,
.glass-button,
.glass-button-primary {
    text-decoration: none !important;
}

a.glass-button:hover,
a.glass-button-primary:hover,
a.glass-button:focus,
a.glass-button-primary:focus,
a.glass-button:active,
a.glass-button-primary:active,
a.glass-button:visited,
a.glass-button-primary:visited {
    text-decoration: none !important;
    color: var(--text-primary) !important;
}

/* Ensure filter chips are clickable */
.glass-filter-chip {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.glass-filter-chip:hover {
    transform: translateY(-2px);
}

.glass-filter-chip.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ==========================================================================
   Page Layout
   ========================================================================== */
.jobs-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
}

.animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* Default light mode gradient animation */
    background: linear-gradient(-45deg, #667EEA, #764BA2, #F093FB, #667EEA);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.value-props {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Filter Section
   ========================================================================== */
.filter-section {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg,
        rgba(102, 126, 234, 0.1) 0%,
        transparent 100%);
}

.filter-bar {
    padding: 1.5rem;
}

.filter-controls {
    margin-bottom: 1rem;
}

.filter-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 8px;
}

.search-section {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-highlight {
    font-weight: bold;
    color: var(--accent-color);
}

/* ==========================================================================
   Jobs Grid
   ========================================================================== */
.jobs-section {
    padding: 4rem 0;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* Job Card Styles */
.job-card {
    position: relative;
    transition: all var(--transition-normal);
}

.job-card:hover {
    /* Match standard glass-card hover from glassmorphism.css */
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.job-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.job-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.job-type {
    font-size: 0.875rem;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.job-content {
    margin-bottom: 1.5rem;
}

.job-summary {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-requirements h4,
.job-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.job-requirements ul,
.job-details ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.job-requirements li,
.job-details li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.job-details {
    margin-top: 1rem;
}

.job-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* ==========================================================================
   Culture Section
   ========================================================================== */
.culture-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.culture-card {
    text-align: center;
    transition: transform var(--transition-normal);
}

.culture-card:hover {
    /* Consistent with glass-card hover */
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.culture-icon {
    margin-bottom: 1rem;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.culture-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.culture-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits-section {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-content h4 {
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.benefit-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 4rem 0 6rem;
}

.cta-section .glass-card {
    padding: 3rem;
}

.cta-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    /* Timeline adjustments for tablets */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .timeline-item:nth-child(odd) .timeline-time,
    .timeline-item:nth-child(even) .timeline-time {
        left: -80px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: -60px;
        right: auto;
    }
}

/* ==========================================================================
   Mobile Timeline Optimization (768px and below)
   ========================================================================== */
@media (max-width: 768px) {
    /* Simplify timeline to single column vertical layout */
    .timeline::before {
        left: 20px; /* Move line to left edge */
        width: 3px; /* Slightly thicker for better visibility */
        background: linear-gradient(180deg,
            transparent 0%,
            rgba(102, 126, 234, 0.4) 5%,
            rgba(102, 126, 234, 0.4) 95%,
            transparent 100%);
    }

    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 2rem; /* Increased spacing between items */
        padding: 1.25rem; /* Slightly more padding for touch targets */
        padding-left: 70px; /* Space for icon on left */
        position: relative;
    }

    /* Reset all positioning for both odd/even items */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Position time inside the card at top */
    .timeline-time {
        position: static !important; /* Remove absolute positioning */
        display: block;
        font-weight: 700;
        font-size: 1rem;
        color: var(--primary-color);
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding-left: 0;
    }

    /* Simplify time positioning for all items */
    .timeline-item:nth-child(odd) .timeline-time,
    .timeline-item:nth-child(even) .timeline-time {
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    /* Icon positioning - fixed to left side */
    .timeline-icon {
        position: absolute !important;
        left: -25px !important; /* Centered on timeline line (20px + 3px/2 + icon-width/2) */
        right: auto !important;
        top: 1.25rem !important;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border: 4px solid rgba(102, 126, 234, 0.2); /* Add border for depth */
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    }

    /* Consistent icon positioning for all items */
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: -25px !important;
        right: auto !important;
    }

    .timeline-icon img {
        width: 28px;
        height: 28px;
    }

    /* Enhanced hover state for touch devices */
    .timeline-item:active .timeline-icon {
        transform: scale(1.1);
        box-shadow: 0 6px 24px rgba(102, 126, 234, 0.6);
    }

    /* Improve content readability */
    .timeline-content h4 {
        font-size: 1.15rem;
        margin-bottom: 0.625rem;
        line-height: 1.4;
        color: var(--text-primary);
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--text-secondary);
        margin: 0;
    }

    /* Add subtle animation for better UX */
    .timeline-item {
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }

    .timeline-item:nth-child(1) { animation-delay: 0.1s; }
    .timeline-item:nth-child(2) { animation-delay: 0.2s; }
    .timeline-item:nth-child(3) { animation-delay: 0.3s; }
    .timeline-item:nth-child(4) { animation-delay: 0.4s; }
    .timeline-item:nth-child(5) { animation-delay: 0.5s; }
    .timeline-item:nth-child(6) { animation-delay: 0.6s; }

    /* Enhance glassmorphism effect on mobile */
    .timeline-item.glass-card {
        background: rgba(255, 255, 255, 0.12); /* Slightly more opaque for readability */
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    /* Improve touch target size */
    .timeline-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 60px 20px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .filter-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        justify-content: center;
        width: 100%;
    }

    .search-wrapper {
        width: 100%;
    }

    .jobs-grid {
        gap: 1.5rem;
    }

    .job-card {
        margin: 0 -10px;
    }

    .culture-grid {
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .benefits-showcase {
        grid-template-columns: 1fr !important;
    }

    .team-grid {
        grid-template-columns: 1fr !important;
    }

    .job-actions {
        flex-direction: column;
    }

    .job-actions .glass-button:not(.save-job-btn) {
        width: 100%;
        text-align: center;
    }

    .job-actions .save-job-btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .value-props {
        flex-direction: column;
        align-items: center;
    }

    .glass-badge {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .glass-button {
        width: 100%;
    }

    /* Timeline micro-adjustments for very small screens */
    .timeline::before {
        left: 15px; /* Even closer to edge */
    }

    .timeline-icon {
        left: -10px !important; /* Adjust for narrower spacing */
        width: 44px;
        height: 44px;
        border-width: 3px;
    }

    .timeline-icon img {
        width: 24px;
        height: 24px;
    }

    .timeline-item {
        padding-left: 50px; /* Reduce left padding */
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .timeline-time {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content h4 {
        font-size: 1.05rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Reduce section title size */
    .day-in-life-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .filter-section,
    .hero-section,
    .cta-section {
        display: none;
    }

    .job-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.job-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.job-card.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Application Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Override hidden class for modal when shown */
.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-right: 50px;
}

/* Form Styling */
.application-form {
    position: relative;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.file-info,
.char-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.char-count {
    text-align: right;
}

/* Progress Bar */
.form-progress {
    margin: 2rem 0;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 33.33%; /* Default width for first step */
}

/* Data attribute based width - can be set via JavaScript */
.progress-fill[data-initial-width="33.33"] {
    width: 33.33%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 200px;
    margin: 0 auto;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: bold;
    transition: all var(--transition-fast);
}

.step-indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-indicator.completed {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* Autosave Indicator */
.autosave-indicator {
    position: absolute;
    top: -40px;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.autosave-indicator.show {
    opacity: 1;
}

.autosave-text {
    color: #4caf50;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.autosave-text::before {
    content: "✓";
    margin-right: 5px;
}

/* Results Count */
.results-count {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.1);
}

.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
}

.testimonial-track {
    position: relative;
    min-height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    padding: 0 2rem;
}

.testimonial-quote::before {
    content: """;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.author-name {
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.author-role {
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.author-tenure {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    /* Match glass-button hover style */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%);
    transform: scale(1.05);
}

.carousel-btn img {
    width: 20px;
    height: 20px;
    /* Pure white icons */
    filter: var(--icon-filter-default);
    transition: all var(--transition-fast);
}

.carousel-btn:hover img {
    /* Subtle glow effect on hover */
    filter: var(--icon-filter-default) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ==========================================================================
   Day in the Life Section
   ========================================================================== */
.day-in-life-section {
    padding: 4rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 10%,
        rgba(255, 255, 255, 0.2) 90%,
        transparent 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    width: calc(50% - 40px);
    animation: fadeInUp 0.6s ease;
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
}

.timeline-time {
    position: absolute;
    top: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-time {
    right: calc(100% + 60px);
}

.timeline-item:nth-child(even) .timeline-time {
    left: calc(100% + 60px);
}

.timeline-icon {
    position: absolute;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.timeline-item:nth-child(odd) .timeline-icon {
    left: -60px;
}

.timeline-item:nth-child(even) .timeline-icon {
    right: -60px;
}

.timeline-icon img {
    width: 24px;
    height: 24px;
    /* Pure white icons */
    filter: var(--icon-filter-default);
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-icon img {
    transform: scale(1.2);
    /* Mint color on hover with glow */
    filter: var(--icon-filter-mint) var(--icon-shadow-hover);
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Team Showcase Section
   ========================================================================== */
.team-showcase-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.1);
}

.team-stats {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
    padding: 2rem;
    transition: transform var(--transition-normal);
}

.team-card:hover {
    /* Consistent with glass-card hover */
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.department-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.department-icon img {
    width: 50px;
    height: 50px;
    /* Pure white with strong shadow - matching landing page */
    filter: var(--icon-filter-default) var(--icon-shadow-default) !important;
    transition: all var(--transition-normal);
}

.team-card:hover .department-icon img {
    transform: scale(1.15) rotate(5deg);
    /* Vibrant mint on hover - matching landing page */
    filter: var(--icon-filter-mint) var(--icon-shadow-hover);
}

.team-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Enhanced Benefits Section
   ========================================================================== */
.benefits-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-highlight {
    padding: 2rem;
    transition: transform var(--transition-normal);
}

.benefit-highlight:hover {
    /* Consistent with glass-card hover */
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon img {
    width: 35px;
    height: 35px;
    /* Pure white with shadow - matching landing page */
    filter: var(--icon-filter-default) var(--icon-shadow-default) !important;
    transition: all var(--transition-fast);
}

.benefit-highlight:hover .highlight-icon img {
    transform: scale(1.1);
    /* Mint hover effect - matching landing page */
    filter: var(--icon-filter-mint) var(--icon-shadow-hover);
}

.benefit-highlight h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.benefit-details {
    margin-bottom: 1rem;
}

.benefit-metric {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

/* Lazy loaded sections */
.section-lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section-loaded {
    opacity: 1;
}

/* Optimized image loading - only for non-SVG images */
img:not([src*=".svg"]) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Lazy loading effect - only for content images, not SVG icons or avatars */
img:not(.loaded):not([src*=".svg"]):not(.author-avatar) {
    /* Disabled - no lazy loading implementation currently */
    /* opacity: 0.5; */
    /* filter: blur(5px); */
}

/* Ensure SVG icons have no background */
img[src*=".svg"] {
    background: transparent !important;
}

/* Hardware acceleration for animations */
.glass-card,
.timeline-item,
.testimonial-slide,
.team-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce paint areas */
.job-card,
.culture-card,
.benefit-highlight {
    contain: layout style paint;
}

/* Optimize text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Critical CSS for above-the-fold content */
.hero-section {
    contain: layout;
}

/* ==========================================================================
   Inline Style Replacements
   ========================================================================== */
/* Replace inline display styles */
.hidden {
    display: none;
}

.carousel-nav-prev {
    transform: rotate(-90deg);
}

.carousel-nav-next {
    transform: rotate(90deg);
}

/* ==========================================================================
   Week 5: Saved Jobs & Alerts Section
   ========================================================================== */
.saved-section {
    padding: 4rem 0;
}

.saved-header {
    text-align: center;
    margin-bottom: 3rem;
}

.saved-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.hub-card {
    padding: 2rem;
    text-align: center;
}

.hub-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
}

.hub-icon img {
    width: 40px;
    height: 40px;
    filter: var(--icon-filter-default);
}

.hub-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.saved-jobs-list {
    min-height: 120px;
    margin-bottom: 1.5rem;
}

.saved-job-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-job-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 1rem;
}

.alert-setup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.status-tracker {
    margin: 1.5rem 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.status-label {
    color: var(--text-secondary);
}

.status-count {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2px 10px;
    border-radius: 12px;
}

/* Save Job Button */
.save-job-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.save-job-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.save-job-btn.saved {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.save-job-btn .save-icon {
    font-size: 20px;
    transition: all var(--transition-normal);
}

.save-job-btn.saved .save-icon {
    animation: bookmarkBounce 0.3s ease;
}

/* Replace empty heart with filled heart when saved */
.save-job-btn.saved .save-icon {
    font-size: 0; /* Hide the original empty heart */
}

.save-job-btn.saved .save-icon::before {
    content: '♥';
    font-size: 20px; /* Show filled heart at proper size */
}

@keyframes bookmarkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Interactive Preview */
.job-preview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.job-preview-modal.active {
    transform: translate(-50%, -50%) scale(1);
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10002;
}

.notification-toast.show {
    transform: translateX(0);
}

/* ==========================================================================
   Week 6: Dark Mode Support
   ========================================================================== */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode-toggle img {
    width: 24px;
    height: 24px;
    filter: var(--icon-filter-default);
}

/* Dark Mode Styles */
body.dark-mode {
    --text-primary: #E4E4E7;
    --text-secondary: rgba(228, 228, 231, 0.8);
    --text-muted: rgba(228, 228, 231, 0.6);
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-bg-hover: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body.dark-mode .gradient-background {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .animated-gradient {
    /* Dark mode animated gradient with purple/blue tones */
    background: linear-gradient(-45deg, #2d3561, #0f3460, #533483, #2d3561);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

body.dark-mode .glass-card,
body.dark-mode .glass-panel {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .glass-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Accessibility Focus Indicators */
*:focus {
    outline: 3px solid rgba(102, 126, 234, 0.6);
    outline-offset: 2px;
}

.glass-button:focus,
.glass-filter-chip:focus {
    outline: 3px solid rgba(102, 126, 234, 0.8);
    outline-offset: 3px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    /* Hide unnecessary elements */
    .dark-mode-toggle,
    .filter-section,
    .hero-section,
    .testimonials-section,
    .culture-section,
    .saved-section,
    .team-section,
    .benefits-section,
    .timeline-section,
    .cta-section,
    .modal-overlay,
    .notification-toast,
    .save-job-btn,
    .expand-btn,
    footer {
        display: none !important;
    }

    /* Reset backgrounds */
    body,
    .jobs-page {
        background: white !important;
        color: black !important;
    }

    /* Simplify job cards */
    .job-card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    /* Show job details by default */
    .job-details {
        display: block !important;
    }

    /* Clean typography */
    h1, h2, h3 {
        color: black !important;
        page-break-after: avoid;
    }

    p, ul, li {
        color: black !important;
    }

    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
    }

    /* Optimize for paper */
    @page {
        margin: 2cm;
    }
}

/* ==========================================================================
   Keyboard Navigation Enhancements
   ========================================================================== */
.keyboard-nav .glass-card:focus-within {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.4);
}

/* Improve tab order */
.job-card {
    position: relative;
}

.job-card .apply-btn {
    order: -1; /* Prioritize apply button in tab order */
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */
@media (prefers-contrast: high) {
    .glass-card {
        border: 2px solid currentColor;
    }

    .glass-button {
        border: 2px solid currentColor;
        font-weight: 700;
    }

    .glass-filter-chip.active {
        background: var(--primary-color);
        color: white;
    }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.glass-button:focus,
.glass-filter-chip:focus,
.glass-input:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        border: 2px solid currentColor;
    }

    .glass-button {
        border: 2px solid currentColor;
    }
}