/* Modern Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Reset & Global styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Exception for interview card spacing pseudo-elements */
.interview-detail-card::after {
    margin: 0 !important;
    padding: 0 !important;
}

:root {
    --primary-color: #025982;
    --primary-rgb: 2, 89, 130;
    --primary-dark: #01425e;
    --primary-light: #f0f7fb;
    --accent-color: #ff6b6b;
    --accent-hover: #ff5252;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --bg-gradient-light: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --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.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-speed: 0.3s;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout styles */
.company-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-white);
}

.company-content {
    flex: 1;
    padding-top: 60px !important;
}

.company-footer {
    margin-top: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Section Styles with Gradient Text ===== */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #025982, #01425e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
}

.section-description {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 50rem;
    margin: 1.5rem auto 3.5rem;
    font-weight: 400;
    line-height: 1.8;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e8f4f8 50%, #ffffff 100%);
    overflow: hidden;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Subtle animated background pattern for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(2, 89, 130, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.03) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #025982, #01425e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-description {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Shimmer Button Keyframes ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== Button Styles with Shimmer Effect ===== */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-display);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Shimmer overlay on primary buttons */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 50px;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 89, 130, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 89, 130, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* ===== Process Steps with Glass-morphism ===== */
.process-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(2, 89, 130, 0.08);
    overflow: hidden;
}

/* Top-bar reveal on hover */
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #025982, #01425e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 89, 130, 0.15);
}

/* Gradient number badges */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(2, 89, 130, 0.3);
    margin-top: 0;
    position: relative;
}

/* Subtle ring around step number */
.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(2, 89, 130, 0.15);
}

.step-content {
    flex: 1;
    padding-top: 0;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    margin-top: 0;
    letter-spacing: -0.01em;
}

.step-content p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.step-icon {
    margin-left: 1.5rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

/* ===== Interviews List ===== */
.interviews-list {
    margin-top: 3rem;
}

/* ===== Interview Cards with Glass-morphism ===== */
.interview-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(2, 89, 130, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Top-bar reveal on interview cards */
.interview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #025982, #01425e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.interview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 89, 130, 0.12);
}

.interview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.interview-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.interview-position {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.interview-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-light);
}

.interview-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-scheduled {
    background-color: #e0f2fe;
    color: #0369a1;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
}

.interview-card-content {
    margin-bottom: 1.5rem;
}

.candidate-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.candidate-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #e0eef5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    font-family: var(--font-display);
}

.candidate-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.candidate-name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.candidate-email {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-light);
}

.interview-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text-primary);
}

.meta-value.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.interview-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(2, 89, 130, 0.06);
}

.footer-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--bg-white);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    color: var(--bg-white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: #e2e8f0;
    background-color: var(--bg-white);
    border-radius: 50px;
}

.btn-outline-secondary:hover {
    color: var(--text-primary);
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* ===== Interviews Dashboard ===== */
.interviews-dashboard {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

/* ===== Filters Section with Glass-morphism ===== */
.filters-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(2, 89, 130, 0.08);
}

.filters-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-white);
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    color: var(--text-primary);
    background-color: var(--bg-white);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(2, 89, 130, 0.1);
}

.filters-actions {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

/* ===== Expandable Interview Detail Cards ===== */
.interview-detail-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.3s ease;
    border: 1px solid rgba(2, 89, 130, 0.08);
    overflow: hidden;
    cursor: pointer;
}

/* When expanded, only round the top corners */
.interview-detail-card.expanded {
    border-radius: 20px 20px 0 0;
}

.interview-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.interview-detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    transition: background var(--transition-speed) ease, border-radius 0.3s ease;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer on detail headers */
.interview-detail-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* When expanded, only round the top corners of header */
.interview-detail-card.expanded .interview-detail-header {
    border-radius: 20px 20px 0 0;
}

.interview-detail-header:hover {
    background: linear-gradient(135deg, var(--primary-dark), #013448);
}

.detail-header-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.detail-icon {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.interview-detail-card:hover .detail-icon {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.detail-icon svg {
    width: 24px;
    height: 24px;
}

.interview-detail-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: white;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.expand-icon {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 1rem;
}

.interview-detail-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.interview-detail-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                background-color 0.3s ease;
    background-color: transparent;
    border-radius: 0;
}

.interview-detail-card.expanded .interview-detail-content {
    max-height: 1500px;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 0 0 20px 20px;
}

/* ===== Interview Details Section ===== */
.interview-details {
    padding: 5rem 0;
    background-color: var(--bg-white);
    margin: 0;
}

.interview-details-container {
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Simple and direct spacing solution */
.interview-detail-card {
    margin-bottom: 2rem !important;
}

/* Target specific cards to ensure spacing */
#analise-curriculo-detail {
    margin-bottom: 2rem !important;
}

#entrevista-tecnica-detail {
    margin-bottom: 2rem !important;
}

#teste-comportamental-detail {
    margin-bottom: 2rem !important;
}

#teste-personalidade-detail {
    margin-bottom: 2rem !important;
}

#entrevista-cultural-detail {
    margin-bottom: 2rem !important;
}

#raciocinio-logico-detail {
    margin-bottom: 0 !important;
}

/* Additional spacing method using transform for stubborn cases */
#entrevista-tecnica-detail,
#teste-comportamental-detail,
#teste-personalidade-detail,
#entrevista-cultural-detail {
    transform: translateY(0);
    position: relative;
}

/* Force visual separation using padding and border */
.interview-details-container > .interview-detail-card:not(:last-child) {
    padding-bottom: 2rem !important;
    border-bottom: 2rem solid transparent !important;
    box-sizing: content-box !important;
}

/* Individual spacing for problematic cards */
#entrevista-tecnica-detail {
    margin-top: 2rem !important;
}

#teste-comportamental-detail {
    margin-top: 2rem !important;
}

/* ===== Chat Interface Styles ===== */
.chat-container {
    background-color: transparent;
    border-radius: 0 0 20px 20px;
    padding: 1.5rem;
    min-height: 200px;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.user-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 5px 20px;
    max-width: 70%;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 12px rgba(2, 89, 130, 0.2);
}

.bot-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.bot-avatar svg {
    width: 20px;
    height: 20px;
    color: white;
}

.bot-bubble {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(2, 89, 130, 0.08);
    padding: 1.5rem;
    border-radius: 20px 20px 20px 5px;
    max-width: 75%;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.bot-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
}

.bot-response-section {
    margin-bottom: 1.5rem;
}

.bot-response-section:last-child {
    margin-bottom: 0;
}

.bot-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.bot-section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.bot-text {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bot-benefits-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.bot-benefits-list li {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
}

.bot-benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-color), #4CAF50);
    border-radius: 50%;
}

.bot-benefits-list li:last-child {
    margin-bottom: 0;
}

.chat-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(2, 89, 130, 0.08);
    text-align: center;
}

/* CTA button with shimmer */
.chat-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(2, 89, 130, 0.2);
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.chat-cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 50px;
    pointer-events: none;
}

.chat-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 89, 130, 0.35);
    text-decoration: none;
    color: white;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interview-detail-card.expanded .typing-indicator {
    opacity: 1;
    animation: fadeIn 0.5s ease 0.3s both;
}

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

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.preloader::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--primary-rgb), 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--bg-gradient);
    z-index: 99998;
    width: 0%;
    transition: width 0.1s linear;
}

.typing-dots {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    padding: 4rem 0;
    margin: 0;
    box-shadow: var(--shadow-sm);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

/* Decorative element for stats section */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

/* ===== Feature Sections ===== */
.feature-section {
    padding: 5rem 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Interview Process Section ===== */
.interview-process {
    position: relative;
    background-color: var(--bg-white);
}

.process-steps {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ===== Interview Types Section with Glass-morphism Cards ===== */
.interview-types {
    position: relative;
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.interview-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.interview-type-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(2, 89, 130, 0.08);
    position: relative;
    overflow: hidden;
}

/* Top-bar reveal on interview type cards */
.interview-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #025982, #01425e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

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

/* Radial glow ::after on hover */
.interview-type-card::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(2, 89, 130, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.interview-type-card:hover::after {
    opacity: 1;
}

.interview-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(2, 89, 130, 0.15);
}

.interview-type-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(2, 89, 130, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.interview-type-card:hover .interview-type-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 89, 130, 0.4);
}

.interview-type-icon svg {
    width: 28px;
    height: 28px;
}

.interview-type-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.interview-type-card p {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.interview-type-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.badge {
    background: linear-gradient(135deg, var(--primary-light), #e0eef5);
    color: var(--primary-color);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(2, 89, 130, 0.1);
}

/* Interview type button with shimmer */
.interview-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(2, 89, 130, 0.2);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.interview-type-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 50px;
    pointer-events: none;
}

.interview-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 89, 130, 0.35);
    text-decoration: none;
    color: white;
}

.interview-types-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Enhanced Responsive Styles ===== */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .hero-section {
        padding: 4.5rem 1rem;
        min-height: 80vh;
    }

    .feature-section {
        padding: 4.5rem 0;
    }
}

@media (max-width: 1280px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .hero-section {
        padding: 4rem 1rem;
        min-height: 75vh;
    }

    .feature-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.25rem);
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .stats-section {
        padding: 3.5rem 0;
    }

    .stats-container {
        padding: 0 2rem;
    }

    .process-step,
    .template-card {
        padding: 2rem;
    }

    .interview-detail-header {
        padding: 1.5rem 2rem;
    }

}

@media (max-width: 1024px) {
    .hero-section {
        padding: 3.5rem 1rem;
        min-height: 70vh;
    }

    .hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
        max-width: 90%;
    }

    .section-title {
        font-size: clamp(1.7rem, 5vw, 2rem);
    }

    .feature-section {
        padding: 3.5rem 0;
    }

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

    .interview-process .process-steps {
        gap: 2.5rem;
    }

    .interview-templates {
        padding: 3.5rem 0;
    }

    .interview-details {
        padding: 3.5rem 0;
    }


    .filters-form {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .interview-meta {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.25rem;
    }

    .interview-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .interview-status {
        align-self: flex-start;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-item p {
        font-size: 1rem;
    }

    .process-step {
        padding: 1.75rem;
    }

    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
        margin-right: 1.5rem;
    }

    .step-content h3,
    .template-card h3 {
        font-size: 1.25rem;
    }

    .step-content p,
    .template-card p,
    .detail-description,
    .detail-section p,
    .detail-benefits li {
        font-size: 1rem;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.75rem;
    }

    .template-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.5rem;
    }

    .interview-detail-header h3 {
        font-size: 1.35rem;
    }

    .detail-section h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    .interviews-dashboard {
        padding: 3rem 0;
    }

    .hero-section {
        padding: 3rem 1rem;
        min-height: 65vh;
    }

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

    .stats-section {
        padding: 2.5rem 0;
    }

    .interview-templates {
        padding: 3rem 0;
    }

    .interview-details {
        padding: 3rem 0;
    }


    .hero-description {
        max-width: 90%;
    }

    .section-title {
        font-size: clamp(1.7rem, 5vw, 2rem);
    }

    .section-title:after {
        width: 4rem;
    }

    .filters-form {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .filters-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .btn {
        padding: 0.7rem 1.25rem;
    }

    .interview-card-header {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        padding: 3rem 1rem;
        min-height: 70vh;
    }

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

    .stats-section {
        padding: 2.5rem 0;
    }

    .interview-templates {
        padding: 3rem 0;
    }

    .interview-details {
        padding: 3rem 0;
    }


    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .hero-description {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        max-width: 95%;
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 1.85rem);
    }

    .filters-form {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .interview-meta {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.25rem;
    }

    .interview-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .interview-status {
        align-self: flex-start;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.95rem;
    }

    .process-step {
        padding: 1.5rem;
        flex-direction: row;
        align-items: flex-start;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-right: 1.25rem;
        margin-top: 0;
        flex-shrink: 0;
    }

    .step-content {
        padding-top: 0;
        flex: 1;
    }

    .step-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
        margin-top: 0;
    }

    .step-content p,
    .template-card p,
    .detail-description,
    .detail-section p,
    .detail-benefits li {
        font-size: 1rem;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.75rem;
    }

    .template-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.5rem;
    }

    .interview-detail-header h3 {
        font-size: 1.35rem;
    }

    .detail-section h4 {
        font-size: 1.15rem;
    }

    /* Reduce glass blur on mobile for performance */
    .interview-card,
    .interview-type-card,
    .process-step,
    .filters-section,
    .interview-detail-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2.5rem 1rem;
        min-height: 70vh;
    }

    .feature-section {
        padding: 2.5rem 0;
    }

    .stats-section {
        padding: 2rem 0;
    }

    .interview-templates {
        padding: 2.5rem 0;
    }

    .interview-details {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .hero-description {
        font-size: clamp(0.8rem, 4vw, 0.95rem);
    }

    .interviews-dashboard {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }

    .section-title:after {
        width: 3rem;
    }

    .filters-section {
        padding: 1.25rem;
    }

    .filters-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .interview-card {
        padding: 1.25rem;
    }

    .interview-title {
        font-size: 1.2rem;
    }

    .candidate-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .candidate-name {
        font-size: 1rem;
    }

    .interview-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .interview-card-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-container {
        margin-top: 2rem;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item {
        margin: 0;
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .process-steps {
        gap: 2rem;
    }

    .process-step {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .step-content {
        padding-top: 0;
    }

    .templates-grid {
        gap: 1.25rem;
    }

    .template-card {
        padding: 1.5rem;
    }

    .interview-detail-header {
        padding: 1.25rem 1.5rem;
    }

    .interview-detail-header h3 {
        font-size: 1.25rem;
    }

    .detail-icon {
        width: 48px;
        height: 48px;
        margin-right: 1rem;
    }

    .detail-icon svg {
        width: 24px;
        height: 24px;
    }

    .interview-detail-card.expanded .interview-detail-content {
        padding: 1.5rem 1.25rem;
    }

    .detail-section {
        padding: 1.25rem;
    }

    .detail-section h4 {
        font-size: 1.15rem;
    }

    /* Disable glass blur on small screens for performance */
    .interview-card,
    .interview-type-card,
    .process-step,
    .filters-section,
    .interview-detail-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg-white);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0.75rem;
        min-height: 65vh;
    }

    .feature-section {
        padding: 2rem 0;
    }

    .stats-section {
        padding: 1.5rem 0;
    }

    .interview-templates {
        padding: 2rem 0;
    }

    .interview-details {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: clamp(1.4rem, 8vw, 1.9rem);
    }

    .hero-description {
        font-size: clamp(0.75rem, 4.5vw, 0.9rem);
    }

    .section-title {
        font-size: clamp(1.4rem, 7vw, 1.6rem);
    }

    .filters-section {
        padding: 1rem;
    }

    .filters-form {
        gap: 0.75rem;
    }

    .interview-card {
        padding: 1rem;
    }

    .interview-card-content {
        margin-bottom: 1rem;
    }

    .interview-meta {
        gap: 0.75rem;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .footer-actions {
        gap: 0.5rem;
    }

    .footer-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

@media (max-width: 375px) {
    .chat-cta {
    font-size: 10px;
    padding: 8px 16px;
    width: 90%;
   }
    .container {
        padding: 0 0.75rem;
    }

    .hero-section {
        padding: 1.5rem 0.5rem;
        min-height: 60vh;
    }

    .feature-section {
        padding: 1.5rem 0;
    }

    .stats-section {
        padding: 1.25rem 0;
    }

    .interview-templates {
        padding: 1.5rem 0;
    }

    .interview-details {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.25rem, 9vw, 1.7rem);
    }

    .hero-description {
        font-size: clamp(0.7rem, 5vw, 0.85rem);
    }

    .section-title {
        font-size: clamp(1.25rem, 8vw, 1.5rem);
    }

    .filters-section,
    .interview-card {
        padding: 0.875rem;
    }

    .interview-title {
        font-size: 1.1rem;
    }

    .candidate-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .candidate-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .step-content h3,
    .template-card h3 {
        font-size: 1.1rem;
    }

    .step-content p,
    .template-card p,
    .detail-description,
    .detail-section p,
    .detail-benefits li {
        font-size: 0.9rem;
    }

    .detail-section h4 {
        font-size: 1.05rem;
    }

    .detail-cta,
    .template-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
