/* Global safety to prevent horizontal scrolling and layout overflow */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Ensure top navbar never exceeds viewport width */
.modern-navbar, .navbar, header.modern-navbar {
    width: 100%;
}

/* Generic containers should not overflow */
main, .messages-container, .conversation-container, .settings-container, .log-container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Top offset under sticky navbar (must match .modern-navbar height) */
:root {
    --dashboard-nav-top: 70px;
    --dashboard-sidebar-width: 280px;
}

/* Dashboard Wrapper with Sidebar */
.dashboard-wrapper {
    display: block;
    min-height: calc(100vh - var(--dashboard-nav-top));
    position: relative;
    z-index: 1;
}

/* Desktop: fixed rail — always visible while the page scrolls (sticky can scroll away). */
@media (min-width: 901px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: var(--dashboard-nav-top);
        z-index: 50;
        width: var(--dashboard-sidebar-width);
        height: calc(100vh - var(--dashboard-nav-top));
        max-height: calc(100vh - var(--dashboard-nav-top));
    }
    .dashboard-content {
        margin-left: var(--dashboard-sidebar-width);
    }
}

/* Sidebar panel (base rules shared; position set above on wide screens) */
.dashboard-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.sidebar-avatar:hover {
    transform: scale(1.05);
}

.sidebar-user-info h3 {
    margin: 0;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.sidebar-user-info p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #6c757d;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(4px);
}

.sidebar-item:hover::before {
    opacity: 1;
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #667eea;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.sidebar-item.active::before {
    opacity: 1;
}

.sidebar-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.sidebar-text {
    flex: 1;
    font-size: 15px;
}

.sidebar-badge {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid #e9ecef;
    padding: 12px 0;
}

.sidebar-item.logout {
    color: #e74c3c;
}

.sidebar-item.logout:hover {
    background: #fee;
    color: #c0392b;
}

/* Main Content */
.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 32px;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

.dashboard-content::-webkit-scrollbar {
    width: 8px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    animation: fadeIn 0.6s ease-out;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.section-header p {
    color: #6c757d;
    font-size: 1.05rem;
    margin: 8px 0 0 0;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 100px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

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

.empty-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.empty-state h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.empty-state p {
    color: #6c757d;
    margin: 0 0 24px 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Modern Dashboard Client Styles - Inspired by Upwork/Fiverr */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #222;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

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

/* Animated Background Shapes */
.dashboard-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #4facfe 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* --- Modern Navbar --- */
.modern-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    min-height: 70px;
}
.navbar-left {
    display: flex;
    align-items: center;
}
.navbar-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.navbar-logo-img {
    width: 44px;
    height: 44px;
}
.navbar-logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.navbar-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    padding: 2px 8px;
    min-width: 320px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar-search-form:focus-within {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}
.navbar-search-bar {
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 16px;
    outline: none;
    flex: 1;
    border-radius: 24px 0 0 24px;
}
.navbar-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 0 24px 24px 0;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.navbar-search-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 32px;
}
.navbar-icon-link {
    color: #667eea;
    font-size: 22px;
    text-decoration: none;
    margin: 0 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
}
.navbar-icon-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1) rotate(5deg);
}
.navbar-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 24px;
    transition: background 0.2s;
}
.navbar-profile-menu:hover, .navbar-profile-menu.active {
    background: #f5f7fb;
}
.navbar-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.navbar-profile-avatar:hover {
    transform: scale(1.1);
}
.navbar-profile-name {
    font-size: 15px;
    color: #222;
    font-weight: 600;
    margin-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    vertical-align: middle;
}
.navbar-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 200px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.navbar-profile-menu:hover .navbar-dropdown-menu,
.navbar-profile-menu.active .navbar-dropdown-menu {
    display: flex;
}
.navbar-dropdown-menu a {
    color: #333;
    padding: 12px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
}
.navbar-dropdown-menu a:last-child {
    border-bottom: none;
}
.navbar-dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(4px);
}
.logout {
    color: #e74c3c !important;
}
@media (max-width: 900px) {
    .modern-navbar {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        padding: 10px 14px;
        min-height: auto;
        row-gap: 10px;
    }
    .navbar-left {
        flex: 0 0 auto;
    }
    .navbar-center {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
    }
    .navbar-right {
        flex: 1 1 auto;
        justify-content: flex-end;
        margin-left: auto;
        flex-wrap: wrap;
        gap: 8px;
    }
    .navbar-search-form {
        min-width: 0;
        max-width: 100%;
    }

    /* Sidebar + main: horizontal nav strip on small viewports */
    .dashboard-wrapper {
        min-height: auto;
    }
    .dashboard-sidebar {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        max-height: none;
        height: auto;
        z-index: 1;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }
    .dashboard-sidebar .sidebar-header {
        padding: 12px 16px;
    }
    .dashboard-sidebar .sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px 14px;
        gap: 8px;
        flex: 0 0 auto;
        scrollbar-width: thin;
    }
    .dashboard-sidebar .sidebar-item {
        margin: 0;
        flex: 0 0 auto;
        white-space: nowrap;
        border-radius: 999px;
        padding: 10px 16px;
    }
    .dashboard-sidebar .sidebar-item::before {
        display: none;
    }
    .dashboard-sidebar .sidebar-footer {
        display: none;
    }
    .dashboard-content {
        margin-left: 0 !important;
        padding: 16px;
    }
    .section-header h1 {
        font-size: 1.75rem;
    }
    .modern-featured h2 {
        font-size: 1.65rem;
        letter-spacing: 1px;
        margin-bottom: 28px;
    }
}
@media (max-width: 600px) {
    .navbar-logo-text {
        display: none;
    }
    .navbar-search-form {
        padding: 2px 2px;
    }
    .navbar-profile-name {
        display: none;
    }
}

/* --- Modern Filters --- */
.modern-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 12px 0 32px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modern-filters select {
    padding: 12px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #333;
    min-width: 180px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
.modern-filters select:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.5);
}
.modern-filters select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}
@media (max-width: 700px) {
    .modern-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        margin-left: 0;
        margin-right: 0;
    }
    .modern-filters select {
        min-width: 120px;
        width: 100%;
    }
    .modern-filters form[style*="display:flex"],
    .modern-filters #advancedFilters {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        justify-content: stretch !important;
    }
}

/* --- Modern Featured Photographers Grid --- */
.modern-featured {
    padding: 20px 0 60px 0;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}
.modern-featured h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    position: relative;
    padding-bottom: 20px;
    animation: titleSlide 0.8s ease-out;
}

.modern-featured h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modern-photographer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1200px) {
    .modern-photographer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 800px) {
    .modern-photographer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
.modern-photographer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.2s, transform 0.2s;
}
.modern-photographer-card-link:hover .modern-photographer-card {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25), 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-8px) scale(1.03);
    cursor: pointer;
    border-color: rgba(102, 126, 234, 0.5);
}
.modern-photographer-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    position: relative;
    min-height: 380px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardFadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

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

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.modern-service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}
.modern-card-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px 24px 18px 24px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}
.modern-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    left: 24px;
    top: -40px;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 2;
    transition: transform 0.3s ease;
}

.modern-photographer-card:hover .modern-profile-pic {
    transform: scale(1.1) rotate(5deg);
}
.modern-text-info {
    margin-top: 45px;
    width: 100%;
}
.modern-text-info h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.modern-photographer-card:hover .modern-text-info h3 {
    transform: translateX(4px);
}
.modern-text-info .description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modern-text-info .rating {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.online-status {
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-status span[style*="#27ae60"] {
    color: #27ae60 !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
.modern-text-info .price {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.2rem;
    position: absolute;
    bottom: 18px;
    right: 24px;
}
.modern-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.modern-photographer-card:hover .modern-badge {
    transform: scale(1.1) rotate(-5deg);
}

