/* 
  Gloomov.com Premium Design System & CSS
  Refined to match the mockup exactly with rich aesthetics, spacing, and micro-animations.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #5f33e1;
    --primary-hover: #4a24c4;
    --primary-light: #f5f3ff;
    --secondary: #0f172a;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-main: #fcfdfe;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --border: #f1f5f9;
    --border-dark: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px rgba(95, 51, 225, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.text-center { text-align: center; }

/* Navbar Refinement */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 13px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: -12px;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-logo svg {
    color: var(--primary);
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    margin-left: 20px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.search-bar {
    position: relative;
    width: 320px;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    background-color: #fcfdfe;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(95, 51, 225, 0.08);
}

.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Premium Capsule Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(95, 51, 225, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-dark);
    color: var(--text-dark);
    font-weight: 550;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px 0;
    background: radial-gradient(circle at 90% 10%, rgba(95, 51, 225, 0.03) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-box-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-box-num {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.stat-box-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Visual Column & Floating Elements */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.hero-guy-img {
    width: 100%;
    height: auto;
    border-radius: 36px;
    z-index: 2;
    position: relative;
}

.floating-card {
    position: absolute;
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    animation: float 4s ease-in-out infinite alternate;
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.card-top-right {
    top: 15%;
    right: -12%;
    width: 200px;
    animation-delay: 0.5s;
}

.card-mid-left {
    bottom: 25%;
    left: -15%;
    width: 210px;
    animation-delay: 1s;
}

.card-bottom-right {
    bottom: 12%;
    right: -5%;
    background-color: #fef08a; /* Yellow badge like mockup */
    border: 3px solid #ffffff;
    border-radius: var(--radius-full);
    padding: 8px 16px;
    box-shadow: var(--shadow-md);
    animation-delay: 1.5s;
}

.card-bottom-right h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: #854d0e;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    margin-bottom: 80px;
}

/* Service Card Refinements */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-featured {
    background-color: var(--success);
    color: #fff;
}

.badge-sponsored {
    background-color: var(--info);
    color: #fff;
}

.card-wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.card-wishlist:hover {
    color: var(--danger);
    background-color: #fff;
}

.service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 10px;
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--secondary);
    margin-bottom: 14px;
    height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title:hover {
    color: var(--primary);
}

.card-freelancer {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 14px;
    margin-top: auto;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-freelancer-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating {
    margin-left: auto;
    font-size: 12.5px;
    color: #f59e0b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating span {
    color: var(--text-muted);
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 12px;
}

.card-price-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

/* Premium Category Pills */
.category-pills-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}
.category-pills-container::-webkit-scrollbar {
    height: 4px;
    display: block;
}
.category-pills-container::-webkit-scrollbar-track {
    background: transparent;
}
.category-pills-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.category-pill {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background-color: #fff;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
}
.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.category-pill.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Horizontal Features Row */
.features-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-circle-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-circle-icon svg {
    width: 18px;
    height: 18px;
}

.feature-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Trust Brands row */
.trust-row {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
}

.trust-row-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.trust-row-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 12px 0;
}

.brand-logo-img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
    height: 24px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.brand-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Sidebar & Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

/* Featured Service Promo Widget (Rocket) */
.widget-rocket-promo {
    background: linear-gradient(135deg, #090616 0%, #15102a 100%);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
}

.widget-rocket-promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--success);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.widget-rocket-promo h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
    max-width: 65%;
}

.widget-rocket-promo p {
    color: var(--text-light);
    font-size: 12.5px;
    margin-bottom: 20px;
    max-width: 70%;
    line-height: 1.4;
}

.widget-rocket-promo .btn {
    background-color: #fff;
    color: var(--secondary);
    font-size: 13px;
    padding: 8px 20px;
}

.rocket-svg-image {
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 110px;
    opacity: 0.9;
}

/* Popular Categories 5x2 Grid Widget */
.categories-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.category-card-small {
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 8px 2px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    height: 80px;
}

.category-card-small:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(95, 51, 225, 0.08);
}

.category-card-small svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    margin-bottom: 6px;
    flex-shrink: 0;
}

.category-card-small span {
    font-size: 8.5px;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
}

/* Timeline vertical widget (Nasıl Çalışır?) */
.timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-vertical-item {
    display: flex;
    gap: 12px;
}

.timeline-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12.5px;
    flex-shrink: 0;
}

.timeline-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.timeline-info p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Testimonial Widget */
.testimonial-widget {
    background-color: #fff;
}

.testimonial-text {
    font-size: 12.5px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Call To Action Widget Widget Bottom */
.cta-widget {
    background: linear-gradient(135deg, #100b2c 0%, #15102a 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.cta-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
}

.cta-widget p {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 20px;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #15102a;
    margin-left: -8px;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.avatar-stack-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--success);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #15102a;
    margin-left: -8px;
}

/* Footer Section */
.footer {
    background-color: #0b071e;
    color: #94a3b8;
    padding: 60px 0 20px 0;
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 40px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--primary);
}

.footer h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form Styles */
.form-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    max-width: 480px;
    margin: 40px auto;
}

.form-title {
    font-size: 24px;
    margin-bottom: 6px;
}

.form-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    background-color: #fdfefe;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(95, 51, 225, 0.08);
}

/* Details Page */
.service-details-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin: 32px 0 64px 0;
}

.detail-gallery {
    margin-bottom: 24px;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-body {
    background-color: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}

.detail-title {
    font-size: 26px;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    margin: 32px 0 64px 0;
}

.dash-sidebar {
    background-color: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 12px 6px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.dash-menu-item {
    margin-bottom: 2px;
}

.dash-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.dash-menu-item a svg {
    color: var(--text-light);
    transition: var(--transition);
    flex-shrink: 0;
}

.dash-menu-item.active a {
    background-color: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(95, 51, 225, 0.2);
}

.dash-menu-item.active a svg {
    color: #fff !important;
}

.dash-menu-item a:hover {
    background-color: var(--primary-light);
    color: var(--primary) !important;
}

.dash-menu-item a:hover svg {
    color: var(--primary) !important;
}

.dash-content {
    background-color: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.dash-title {
    font-size: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-val {
    font-size: 20px;
    font-weight: 800;
}

.metric-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Chat Interface */
.chat-container {
    height: 520px;
    display: grid;
    grid-template-columns: 240px 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chat-users {
    border-right: 1px solid var(--border);
    background-color: #fff;
    overflow-y: auto;
}

.chat-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background-color: #fff;
    transition: var(--transition);
}

.chat-user-row:hover {
    background-color: #f8fafc;
}

.chat-user-row.active {
    background-color: var(--primary-light);
    border-left: 3.5px solid var(--primary);
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-msg {
    max-width: 65%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-msg.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.received {
    align-self: flex-start;
    background-color: #fff;
    color: var(--secondary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0,0,0,0.06);
}

.chat-input-area {
    padding: 16px;
    background-color: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-area input {
    border-radius: 30px !important;
    padding: 12px 20px !important;
    border: 1px solid var(--border-dark);
}

.chat-input-area button {
    border-radius: 30px !important;
    padding: 10px 24px !important;
}
}

/* Admin specific overrides */
.admin-card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.admin-table th {
    background-color: var(--bg-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.admin-table tr {
    transition: var(--transition);
}

.admin-table tr:hover {
    background-color: #f8fafc;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Section Headers and See All Link Styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    line-height: 1.1;
}

.see-all-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 1px solid rgba(95, 51, 225, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.see-all-link::after {
    content: '→';
    font-weight: 800;
    transition: var(--transition);
}

.see-all-link:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(95, 51, 225, 0.15);
}

.see-all-link:hover::after {
    transform: translateX(3px);
}

/* Dropdown Profile Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 6px 0;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    animation: dropdownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 550;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary) !important;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-light);
    transition: var(--transition);
}

.dropdown-item:hover svg {
    color: var(--primary);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .hero-visual {
        order: -1;
    }
    .hero-desc {
        margin: 0 auto 24px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .service-details-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    body {
        padding-bottom: 74px; /* Give room for bottom nav */
        overflow-x: hidden; /* Strict body overflow prevention */
    }
    
    .mobile-bottom-nav {
        display: flex; /* Show bottom nav on mobile */
    }
    
    /* Hero section and visual adjustments */
    .hero-section {
        padding: 40px 0 !important;
        overflow: hidden !important;
    }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 24px !important;
    }
    
    .hero-title {
        font-size: 30px !important;
        line-height: 1.25 !important;
    }
    
    .hero-desc {
        font-size: 14px !important;
        margin: 0 auto 24px auto !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }
    
    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .hero-stats {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
        padding-top: 20px !important;
    }
    
    .floating-card {
        display: none !important; /* Hide off-screen floating cards to prevent overflow */
    }
    
    .hero-visual {
        display: none !important; /* Hide visual row on smaller mobile sizes */
    }
    
    /* Horizontal features list vertical collapse */
    .features-horizontal {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
        gap: 20px !important;
    }
    
    /* Brand logos grid mapping */
    .trust-row-flex {
        justify-content: center !important;
        gap: 16px !important;
    }
    
    .brand-logo-img {
        height: 16px !important;
    }
    
    /* Header optimization on mobile */
    .navbar .search-bar, .nav-auth, .nav-links {
        display: none !important;
    }
    
    .mobile-header-actions {
        display: flex !important;
    }

    /* Dashboard Layout Adjustments */
    .dash-layout, .dashboard-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }
    
    .dash-sidebar {
        width: 100% !important;
        position: static !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        padding-bottom: 16px !important;
        margin-bottom: 16px !important;
    }
    
    /* Turn dashboard sidebar menu into a horizontal scroll menu on mobile */
    .dash-menu {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        scrollbar-width: none;
    }
    .dash-menu::-webkit-scrollbar {
        display: none;
    }
    
    .dash-menu-item {
        margin: 0 !important;
    }
    
    .dash-menu-item a {
        padding: 8px 16px !important;
        white-space: nowrap !important;
        background-color: var(--bg-main) !important;
        border: 1px solid var(--border) !important;
    }
    
    .dash-menu-item.active a {
        background-color: var(--primary-light) !important;
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }

    /* Grid responsiveness */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Table wrapper overflow for mobile */
    .table-responsive, .admin-table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Testimonial slider margin */
    .testimonial-widget {
        margin-bottom: 24px !important;
    }

    /* CTA buttons stack on mobile */
    .cta-flex {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
    }

    /* Auth card adjustments */
    .form-card {
        padding: 24px !important;
        margin: 10px !important;
    }
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    flex: 1;
    transition: color 0.2s ease;
}

.mobile-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.mobile-bottom-nav-item.active {
    color: var(--primary);
}

/* Mobile Orders List wrapping overrides */
@media (max-width: 768px) {
    .order-card-premium {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 16px !important;
    }
    .order-card-main {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }
}

/* Service Detail Portfolio Slider */
.portfolio-slider-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    background-color: var(--bg-main);
    aspect-ratio: 16 / 9;
}

.portfolio-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.portfolio-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.portfolio-slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.portfolio-slider-prev {
    left: 16px;
}

.portfolio-slider-next {
    right: 16px;
}

.portfolio-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.portfolio-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.portfolio-slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}
