/* ========================================
   EMPLOYEES PAGE - MODERN REDESIGN V2
   Ultra Modern Design with Neumorphism & Animations
======================================== */

/* ========================================
   CSS VARIABLES - Modern Color Palette
======================================== */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --secondary-amber: #f59e0b;
    --accent-purple: #8b5cf6;
    --success-green: #10b981;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ========================================
   KEYFRAME ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   HERO SECTION - Cinematic Design
======================================== */
.team-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 50%, var(--accent-purple) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.team-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.team-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

.team-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 3;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 1.5rem;
}

/* ========================================
   FILTER SECTION - Ultra Compact Mobile Design
======================================== */
.filter-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.5s ease-out;
    transition: all 0.3s ease;
}

.filter-section.scrolled {
    box-shadow: var(--shadow-lg);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1rem 0.75rem;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    min-height: 48px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--shadow-sm);
    transform: translateY(-1px);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
}

.search-clear:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.department-filters-wrapper {
    position: relative;
}

.department-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0.5rem 0.75rem;
    margin: 0 -0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.department-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.filter-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    border-color: var(--primary-blue);
}

.filter-btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.filter-scroll-indicators {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.filter-scroll-indicators:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.filter-scroll-left {
    left: 0.5rem;
}

.filter-scroll-right {
    right: 0.5rem;
}

.results-info {
    text-align: center;
    padding: 1rem 1rem 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease-out;
    line-height: 1.4;
}

/* ========================================
   TEAM GRID - Neumorphism Cards
======================================== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.employee-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.1),
        -12px -12px 24px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
}

.employee-card:nth-child(1) { animation-delay: 0.1s; }
.employee-card:nth-child(2) { animation-delay: 0.2s; }
.employee-card:nth-child(3) { animation-delay: 0.3s; }
.employee-card:nth-child(4) { animation-delay: 0.4s; }
.employee-card:nth-child(5) { animation-delay: 0.5s; }
.employee-card:nth-child(6) { animation-delay: 0.6s; }

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.employee-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.15),
        -20px -20px 40px rgba(255, 255, 255, 0.7),
        0 0 0 1px var(--primary-blue-light);
}

.employee-card:hover::before {
    opacity: 1;
}

.employee-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light), #e0e7ff);
}

.employee-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(135deg, var(--secondary-amber), var(--accent-purple)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 2;
}

.employee-card:hover .employee-image-wrapper::after {
    width: 90%;
    height: 90%;
    border-width: 6px;
}

.employee-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.employee-card:hover .employee-image {
    width: 85%;
    height: 85%;
    box-shadow: var(--shadow-2xl);
}

.employee-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--secondary-amber), #fbbf24);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.employee-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.employee-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.employee-card:hover .employee-name {
    color: var(--primary-blue);
}

.employee-position {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.employee-department {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--secondary-amber), #fbbf24);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
    transition: all 0.3s ease;
}

.employee-card:hover .employee-department {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.employee-bio {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.employee-experience {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.employee-experience span:first-child {
    font-size: 1.25rem;
}

.view-profile-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.view-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.view-profile-btn:hover::before {
    left: 100%;
}

.view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    animation: fadeIn 0.5s ease-out;
}

.empty-state h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ========================================
   SINGLE PROFILE - Card Layout with Photo Left, Info Right
======================================== */

/* Back button styling */
.back-to-team {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
}

.back-to-team:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-blue);
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Main Profile Card - Photo Left, Info Right */
.profile-main-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.08),
        -12px -12px 24px rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    animation: fadeInUp 0.8s ease-out;
}

/* Photo Section - Left Side */
.profile-photo-section {
    position: relative;
    width: 100%;
    background: var(--bg-light);
}

.profile-photo-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-photo-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-amber), #fbbf24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Info Section - Right Side */
.profile-info-section {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-badge {
    background: linear-gradient(135deg, var(--secondary-amber), #fbbf24);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.profile-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.profile-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--primary-blue-light);
    margin: 0;
    font-weight: 600;
}

.profile-experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--bg-light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    align-self: flex-start;
}

.profile-experience-badge span:first-child {
    font-size: 1.25rem;
}

.profile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.contact-icon {
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.contact-item a {
    color: var(--primary-blue-light);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

/* Profile details section - Better spacing */
.profile-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Detail cards - Proportional padding */
.detail-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.08),
        -8px -8px 16px rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.detail-card:nth-child(1) { animation-delay: 0.1s; }
.detail-card:nth-child(2) { animation-delay: 0.2s; }
.detail-card:nth-child(3) { animation-delay: 0.3s; }

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-amber), var(--accent-purple));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.1),
        -12px -12px 24px rgba(255, 255, 255, 0.7);
}

.detail-card:hover::before {
    transform: scaleY(1);
}

.detail-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
}

.detail-card p {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.detail-card strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.detail-card a {
    color: var(--primary-blue-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-card a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

/* Skills section - Better layout */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* QR Code section - Centered and proportional */
.qr-code-section {
    text-align: center;
    padding: 1rem 0;
}

.qr-code-section img {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.qr-code-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 639px) {
    .filter-container {
        padding: 0.75rem 0.75rem 0.5rem;
    }
    
    .filter-row {
        gap: 0.5rem;
    }
    
    .search-box input {
        padding: 0.625rem 0.875rem 0.625rem 2.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .search-box::before {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .department-filters {
        gap: 0.375rem;
        padding: 0.125rem 0.375rem 0.625rem;
        margin: 0 -0.375rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .results-info {
        padding: 0.75rem 0.75rem 0.375rem;
        font-size: 0.85rem;
    }
    
    .filter-scroll-indicators {
        display: flex;
    }
    
    .profile-avatar,
    .profile-avatar-fallback {
        width: 280px;
        height: 280px;
        max-width: 90vw;
    }
    
    .profile-name {
        font-size: 2.2rem;
    }
    
    .profile-position {
        font-size: 1.2rem;
    }
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-row {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .profile-details {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-hero {
        padding: 5rem 2rem;
    }
    
    .team-hero h1 {
        font-size: 3.5rem;
    }
    
    /* Profile main card - Side by side layout */
    .profile-main-card {
        grid-template-columns: 400px 1fr;
    }
    
    .profile-photo-full {
        height: 500px;
        object-fit: cover;
    }
    
    .profile-photo-placeholder {
        height: 500px;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .employee-profile {
        padding: 3rem 2rem;
    }
    
    .team-grid {
        padding: 3rem 2rem;
    }
    
    .profile-avatar,
    .profile-avatar-fallback {
        width: 420px;
        height: 420px;
    }
}

/* Extra small mobile devices */
@media (max-width: 380px) {
    .filter-container {
        padding: 0.5rem 0.5rem 0.25rem;
    }
    
    .search-box input {
        padding: 0.5rem 0.75rem 0.5rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .search-box::before {
        left: 0.75rem;
        font-size: 0.9rem;
    }
    
    .department-filters {
        gap: 0.25rem;
        padding: 0 0.25rem 0.5rem;
        margin: 0 -0.25rem;
    }
    
    .filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .results-info {
        padding: 0.5rem 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* 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;
    }
}
