/* Google Fonts - Cairo (Moved to HTML for performance) */

:root {
    --primary: #5596C7;
    /* User Blue */
    --primary-light: #7ab3e0;
    --accent: #171718;
    /* User Black as accent/contrast */
    --accent-hover: #000000;
    --bg-body: #F1F8FA;
    /* User White */
    --bg-white: #ffffff;
    --text-main: #171718;
    /* User Black */
    --text-light: #52525b;
    --text-white: #ffffff;
    --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);
    --container-padding: 2rem;
    --max-width: 1200px;
    --radius-md: 0.5rem;
    --transition: all 0.3s ease;
}

/* --- Modern Loading Screen --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

#loading-screen.hidden {
    transform: translateY(100%);
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    width: 180px;
    height: auto;
    animation: pulse-logo 2s infinite ease-in-out;
}

.loading-bar-container {
    width: 200px;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    /* We will animate width via JS mostly, or use animation for fallback */
    box-shadow: 0 0 10px rgba(85, 150, 199, 0.5);
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeText 1.5s infinite alternate;
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeText {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

/* Badges */
[class^="badge-"] {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f1f5f9;
    /* Fallback background */
    color: #475569;
    /* Fallback color */
}

.badge-marketing {
    background: #dcfce7;
    color: #166534;
}

.badge-design {
    background: #dbeafe;
    color: #1e40af;
}

.badge-video {
    background: #fef3c7;
    color: #92400e;
}

.badge-tech {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Admin Utility Small Buttons */
.btn-edit-sm,
.btn-delete-sm {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-edit-sm {
    background: #3b82f6;
    color: white;
}

.btn-edit-sm:hover {
    background: #2563eb;
}

.btn-delete-sm {
    background: #fee2e2;
    color: #ef4444;
}

.btn-delete-sm:hover {
    background: #fecaca;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    direction: rtl;
    /* Arabic support */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title>span {
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background-color: transparent;
    /* Initially transparent */
    backdrop-filter: none;
    /* No blur initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    /* No shadow initially */
    padding: 1.5rem 0;
    /* Larger padding initially */
    transition: all 0.4s ease-in-out;
    /* Smooth transition for all properties */
}

/* Scrolled Navbar State */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    /* Sem-transparent white */
    backdrop-filter: blur(12px);
    /* Glass blur */
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
    /* Compact padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    /* Removed default style */
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    transition: var(--transition);
    padding: 0.25rem 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        /* Directly below the navbar */
        left: 0;
        width: 100%;
        height: auto;
        /* Allow content to dictate height */
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #f1f5f9;

        /* Animation: Drop Down */
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        /* Prevent clicking when hidden */
        transition: all 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--primary);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--primary);
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Background Arrows */
.bg-arrow {
    position: absolute;
    z-index: 1;
    /* Below content (z-index 2) */
    pointer-events: none;
    opacity: 0.15;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-body) 0%, #e2e8f0 100%);
    overflow: hidden;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    /* Transition Setup for Page Load */
    transform: translateY(-30vh);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease-in-out;
}

/* Active State Triggered by JS */
.hero-section.hero-active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Abstract Background Shapes */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-section.hero-active .hero-bg-shape {
    opacity: 0.6;
}

.hero-section.hero-active .hero-bg-shape {
    opacity: 0.6;
}

.hero-bg-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(15, 23, 42, 0.1);
}

.hero-bg-2 {
    bottom: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(217, 119, 6, 0.15);
}

/* Scattered Arrows */
.hero-arrow-1,
.hero-arrow-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('../res/bg-arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Position 1: Top Left */
.hero-arrow-1 {
    top: 10%;
    left: 2%;
    transform: rotate(45deg);
    animation: float-arrow-1 15s infinite ease-in-out;
}

/* Position 2: Bottom Right */
.hero-arrow-2 {
    bottom: 15%;
    right: 2%;
    transform: rotate(200deg);
    animation: float-arrow-2 18s infinite ease-in-out;
}

@keyframes float-arrow-1 {
    0% {
        transform: translate(0, 0) rotate(45deg);
    }

    50% {
        transform: translate(20px, 30px) rotate(50deg);
    }

    100% {
        transform: translate(0, 0) rotate(45deg);
    }
}

@keyframes float-arrow-2 {
    0% {
        transform: translate(0, 0) rotate(200deg);
    }

    50% {
        transform: translate(-30px, -20px) rotate(190deg);
    }

    100% {
        transform: translate(0, 0) rotate(200deg);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--primary);
    font-size: 3rem;
    transition: var(--transition);
}

.scroll-down a:hover {
    color: var(--accent);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}



/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    background-color: var(--bg-white);
}

/* Services Accordion (Replaces Grid) */
.services-accordion {
    max-width: 1000px;
    /* Increased max-width for 2 columns */
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns by default */
    gap: 1.5rem;
    align-items: start;
    /* Align items to top */
}

@media (max-width: 900px) {
    .services-accordion {
        grid-template-columns: 1fr;
        /* Single column on medium/small */
        max-width: 600px;
    }
}

.accordion-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
    /* Important for grid alignment */
    position: relative;
    /* Context for absolute bg icon */
}

/* --- Service Blue Variant --- */
.accordion-item.service-blue {
    background: linear-gradient(135deg, var(--primary) 0%, #447ba6 100%);
    border: none;
    color: white;
}

.accordion-item.service-blue .accordion-header h3,
.accordion-item.service-blue .acc-desc,
.accordion-item.service-blue .toggle-icon {
    color: white;
}

.accordion-item.service-blue .acc-desc {
    opacity: 0.9;
}

.accordion-item.service-blue .acc-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.accordion-item.service-blue .accordion-content {
    background-color: transparent;
    /* Show blue card background */
}

/* --- Background Icon Effect --- */
.service-bg-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    /* Position to the left */
    transform: translateY(-50%) rotate(-25deg);
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.03);
    z-index: 1;
    pointer-events: none;
}

.accordion-item.service-blue .service-bg-icon {
    color: rgba(255, 255, 255, 0.1);
}

.accordion-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    /* Center items vertically */
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    /* Changed to transparent to show item background */
    position: relative;
    z-index: 10;
    gap: 1rem;
}

.acc-icon-wrapper {
    flex-shrink: 0;
}

.acc-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accordion-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    /* Remove margin as it is now handled by gap in .acc-top */
}

.acc-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* On mobile, adjust the indentation */
@media (max-width: 600px) {
    .acc-desc {
        padding-right: 0;
        /* Remove indentation on small screens for better space usage */
        margin-top: 0.25rem;
    }
}

.acc-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: #f0f9ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toggle-icon {
    color: #94a3b8;
    transition: transform 0.3s ease;
    margin-right: auto;
    /* Push to far left */
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: white;
    /* Changed from #f8fafc to white per user request */
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    /* Arbitrary large value to allow expansion */
    transition: max-height 0.5s ease-in-out;
}

.service-list {
    padding: 1.5rem 2rem;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #447ba6 100%);
    /* Blue for white cards */
    color: white;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    transition: transform 0.2s;
}

.service-list li strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.service-list li p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.service-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-item-icon {
    font-size: 1.4rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    display: flex !important;
    /* Use inline-flex to behave nicely in flow, but flex inside */
    align-items: center;
    /* Vertical Center */
    justify-content: center;
    /* Horizontal Center */
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 0;
    /* Important to remove any line-height offsets */
}

/* --- Override for Blue Service Cards (White List Items) --- */
.accordion-item.service-blue .service-list li {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.accordion-item.service-blue .service-list li strong {
    color: var(--text-main);
}

.accordion-item.service-blue .service-list li p {
    color: var(--text-light);
}

.accordion-item.service-blue .service-item-icon {
    color: var(--primary);
    background: #f0f9ff;
    border: 1px solid rgba(85, 150, 199, 0.1);
}

/* Ensure the font awesome icon itself has no extra spacing */
.service-item-icon i {
    margin: 0;
    padding: 0;
    line-height: 1;
    /* Reset line-height for the icon character */
    display: block;
    /* Helps with vertical alignment in flex */
}

.service-list li:hover .service-item-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

.service-list li div strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.service-list li div p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 600px) {
    .accordion-header {
        padding: 1rem;
    }

    .acc-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .accordion-header h3 {
        font-size: 1.1rem;
    }

    .service-list {
        grid-template-columns: 1fr;
        padding: 1rem 1rem;
        gap: 1rem;
    }
}

/* Clients Section */
.clients-section {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--bg-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        /* Smaller gap for mobile */
    }
}

/* New Card Design */
.client-card {
    background-color: #f8fafc;
    /* Subtle contrast against white bg */
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Skeleton Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.client-card.skeleton {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.client-card:hover {
    transform: translateY(-7px);
    border-color: rgba(85, 150, 199, 0.3);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4), 0 0 20px rgba(85, 150, 199, 0.1);
}

.client-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transform: scale(1);
    transition: var(--transition);

    /* Loading State */
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.client-card img.loaded {
    opacity: 1;
}

.client-card:hover img.loaded {
    transform: scale(1.05);
    /* Zoom effect only when loaded */
}

/* Badge Example (Optional based on image asterisk) */
.client-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Show More Button */
.show-more-btn {
    margin-top: 3rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.5;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.show-more-btn:hover {
    background: var(--primary);
    color: white;
}

.footer {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 2rem 0;
    text-align: center;
}

/* --- Admin Dashboard Redesign --- */
#dashboard-section {
    background-color: #f8fafc;
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
}

/* Progress Back to Top Button */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 2px rgba(85, 150, 199, 0.1);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap::after {
    position: absolute;
    font-family: 'Font Awesome 6 Free';
    content: '\f062';
    /* Arrow Up */
    font-weight: 900;
    text-align: center;
    line-height: 46px;
    font-size: 18px;
    color: var(--primary);
    left: 0;
    top: 0;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 1;
    transition: all 200ms linear;
}

.progress-wrap:hover::after {
    opacity: 0;
}

.progress-wrap::before {
    position: absolute;
    font-family: 'Font Awesome 6 Free';
    content: '\f062';
    /* Arrow Up */
    font-weight: 900;
    text-align: center;
    line-height: 46px;
    font-size: 18px;
    opacity: 0;
    background-image: linear-gradient(298deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    left: 0;
    top: 0;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 2;
    transition: all 200ms linear;
}

.progress-wrap:hover::before {
    opacity: 1;
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: var(--primary);
    stroke-width: 4;
    transition: all 200ms linear;
    box-sizing: border-box;
}

/* Floating Navbar */
.admin-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 90%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}



.nav-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    /* Handle small screens */
    width: 100%;
}

.nav-item {
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    /* For links */
    font-size: 0.95rem;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.nav-item.active {
    background-color: var(--primary);
    color: white;
}

.nav-item.danger {
    color: #ef4444;
    margin-right: auto;
    /* Push to far left (RTL) */
}

.nav-item.danger:hover {
    background-color: #fef2f2;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: #e2e8f0;
    margin: 0 0.5rem;
}

/* Dashboard Grid */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
    /* Space for Nav */
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
        padding-top: 100px;
        width: 100%;
        box-sizing: border-box;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 500px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dash-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    /* For link cards */
    display: block;
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.dash-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Icon Colors */
.dash-icon.blue {
    background-color: #eff6ff;
    color: #3b82f6;
}

.dash-icon.orange {
    background-color: #fff7ed;
    color: #f97316;
}

.dash-icon.purple {
    background-color: #faf5ff;
    color: #a855f7;
}

.dash-icon.green {
    background-color: #f0fdf4;
    color: #22c55e;
}

.dash-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.dash-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Section Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-back {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Admin Card (Forms) */
.admin-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Admin Inputs */
.admin-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.2s;
    outline: none;
    background-color: #fff;
}

.admin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(85, 150, 199, 0.1);
}

.admin-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #374151;
    font-size: 0.95rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background-color: #eff6ff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    margin-top: 1rem;
}

.upload-area:hover {
    background-color: #e0f2fe;
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Admin Table */
.admin-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    /* Allow horizontal scroll */
}

.admin-table {
    width: 100%;
    min-width: 600px;
    /* Force scroll on small screens */
    border-collapse: collapse;
}

@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-back {
        width: 100%;
        text-align: center;
        display: block;
    }
}

.admin-table th {
    background-color: #eff6ff;
    /* Light Blue */
    color: #1f2937;
    font-weight: 700;
    padding: 1.2rem;
    text-align: right;
    border-bottom: 2px solid #e0f2fe;
}

.admin-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-weight: 500;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: #dcfce7;
    color: #166534;
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-submit:hover {
    background-color: #2c5282;
    /* Dark Blue */
    transform: translateY(-2px);
}

/* --- Responsive Adjustments (Must be at the end to override base styles) --- */
@media (max-width: 768px) {
    .admin-nav {
        width: 95%;
        padding: 0.5rem;
        border-radius: 12px;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .nav-content {
        gap: 0.5rem;
        flex-wrap: nowrap !important;
        white-space: nowrap;
        min-width: min-content;
    }

    .nav-item {
        padding: 0.6rem;
        font-size: 0 !important;
        /* Force hide text */
    }

    .nav-item i {
        display: inline-block !important;
        /* Show icon */
        font-size: 1.2rem;
        margin: 0 !important;
    }

    /* Specific Table Columns Hiding */
    #clients-manage .admin-table th:nth-child(1),
    #clients-manage .admin-table td:nth-child(1),
    #clients-manage .admin-table th:nth-child(3),
    #clients-manage .admin-table td:nth-child(3),
    #clients-manage .admin-table th:nth-child(4),
    #clients-manage .admin-table td:nth-child(4) {
        display: none;
    }

    #clients-manage .form-actions {
        justify-content: center;
    }

    /* Services: Hide # (1), Desc (3), Icon (4) */
    #services-manage .admin-table th:nth-child(1),
    #services-manage .admin-table td:nth-child(1),
    #services-manage .admin-table th:nth-child(3),
    #services-manage .admin-table td:nth-child(3),
    #services-manage .admin-table th:nth-child(4),
    #services-manage .admin-table td:nth-child(4) {
        display: none;
    }

    /* Fix Table Width & Padding on Mobile */
    .admin-table {
        min-width: 100% !important;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem;
    }

    #clients-manage .admin-table td,
    #services-manage .admin-table td {
        vertical-align: middle;
    }

    /* Stack Form Grids */
    .admin-card form>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* --- FEATURES / BENTO GRID --- */
.features-section {
    padding: 8rem 0;
    background-color: #f8fafc;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.bento-item {
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Specific Item Layouts */
.item-large {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary) 0%, #447ba6 100%);
    color: white;
}

.item-tall {
    grid-row: span 2;
    background-color: white;
}

.item-wide {
    grid-column: span 2;
    background: white;
}

/* Gradients & Colors */
.bento-gradient-1 {
    background: linear-gradient(135deg, var(--primary) 0%, #447ba6 100%);
    color: white;
}

.bento-gradient-2 {
    background: linear-gradient(135deg, var(--accent) 0%, #2a2a2c 100%);
    color: white;
}

.bento-white {
    background-color: white;
}

.bento-dark {
    background-color: var(--accent);
    color: white;
}

/* Content Styling */
.bento-content {
    z-index: 2;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Text at bottom */
    text-align: right;
}

.item-tall .bento-content {
    justify-content: space-between;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: auto;
    /* Pushes icon to top */
    display: inline-block;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.bento-white .bento-icon {
    background: #f0f9ff;
    color: var(--primary);
}

.bento-dark .bento-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.bento-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.bento-item p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Decorative Background Elements */
.bento-bg-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 10rem;
    opacity: 0.1;
    transform: rotate(15deg);
    pointer-events: none;
    color: white;
}

.bento-shapes span {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bento-shapes span:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
}

.bento-shapes span:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -20%;
    left: 20%;
}

/* --- CONTACT SECTION (Light Clean Theme) --- */
.contact-section {
    padding-top: 8rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-body);
    /* Light background */
    color: var(--text-main);
}

/* Background Animated Shapes */
.contact-bg-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(85, 150, 199, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.contact-section .section-title h2 {
    color: var(--primary);
}

.contact-section .section-title p {
    color: var(--text-light);
}

/* Contact Cards Grid */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns for WhatsApp & Phone */
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 2;
}

/* Light Card Style */
.contact-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Icon Box Styling */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    color: white;
    /* Flip to white on hover */
}

/* Specific Hover Colors for Icons */
.contact-card.whatsapp:hover .icon-box {
    background: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.contact-card.email:hover .icon-box {
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(85, 150, 199, 0.2);
}

.contact-card.phone:hover .icon-box {
    background: #F59E0B;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    direction: ltr;
    /* For emails/numbers */
}

/* Arrow Icon */
.arrow-icon {
    position: absolute;
    top: 1.5rem;
    right: auto;
    left: 1.5rem;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    color: var(--text-light);
}

.contact-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* --- Contact Section Extras (Socials & Location) --- */
.contact-extra {
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.social-location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Common Box Style */
.socials-box,
.location-box {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.socials-box:hover,
.location-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.socials-box h3,
.location-box h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-light);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: white;
    transform: scale(1.1) rotate(10deg);
    border-color: transparent;
}

/* Brand Gradients on Hover */
.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.facebook:hover {
    background: #1877F2;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.social-link.snapchat:hover {
    background: #FFFC00;
    color: black;
}

.social-link.tiktok:hover {
    background: #000000;
}

/* Location Box */
.location-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.location-content i {
    color: var(--primary);
    font-size: 1.3rem;
}

.btn-location {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-location:hover {
    box-shadow: 0 10px 15px -3px rgba(85, 150, 199, 0.3);
}

/* Works Showcase (Improved Filter & Loop Prep) */
.works-section {
    padding: 10rem 0;
    background-color: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.works-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 2vw;
}

/* Redesigned Filter */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0rem auto;
    backdrop-filter: blur(15px);
    padding: 0.6rem;
    border-radius: 100px;
    width: 100%;
    position: relative;
    z-index: 5;
}

.filter-btn {
    padding: 0.7rem 1.8rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(85, 150, 199, 0.3);
}

.filter-btn:hover:not(.active) {
    background: rgba(85, 150, 199, 0.08);
    color: var(--primary);
}

.works-showcase-container {
    position: relative;
    margin: 1rem 0;
    z-index: 2;
}

.works-showcase {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    cursor: grab;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

/* Peek effect: Subtle padding to show the next card's edge */
.works-showcase {
    padding-inline: 4rem;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .works-showcase {
        padding-inline: 12vw;
        /* Increased side padding to force more 'peek' */
        gap: 1rem;
    }
}

.works-showcase.centered-slider {
    padding-inline: 0 !important;
    justify-content: center;
    overflow-x: hidden;
}

.works-showcase.few-items-2 {
    gap: 6rem;
    /* More gap when only two items */
}

@media (max-width: 900px) {
    .works-showcase.few-items-2 {
        gap: 3rem;
    }
}

.works-showcase.few-items-1 {
    gap: 0;
}

.works-showcase::-webkit-scrollbar {
    display: none;
}

.works-showcase:active {
    cursor: grabbing;
}

/* Card Sizing Refined for 'Peek' */
.work-card {
    flex: 0 0 380px;
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    height: 520px;
    background: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    scroll-snap-align: center;
}

.works-showcase.few-items-2 .work-card {
    flex: 0 0 380px;
    /* Slightly smaller to ensure peek fits well */
}

.coming-soon-card {
    background: #f1f5f9 !important;
    border: 2px dashed #cbd5e1;
    box-shadow: none !important;
}

.coming-soon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.coming-soon-placeholder span {
    font-size: 2.5rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .work-card {
        flex: 0 0 75vw;
        height: 400px;
    }
}

.work-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(85, 150, 199, 0.12);
}

.work-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.work-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.work-card:hover .work-tag {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.work-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 0.7;
}

.work-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-img-wrapper img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    color: white;
    z-index: 2;
}

/* Creative Top Link Indicator */
.work-link-top {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.work-card:hover .work-link-top {
    background: white;
    color: var(--primary);
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.work-overlay h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.work-overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Simplified Nav */
.showcase-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.showcase-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Responsive Overrides */
@media (max-width: 600px) {
    .works-filter {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .item-large,
    .item-wide,
    .item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile */
        gap: 1rem;
        /* Smaller gap for mobile */
    }
}

@media (max-width: 768px) {
    .social-location-container {
        grid-template-columns: 1fr;
    }
}

/* 
--- 
Team / Employee Cards & Directory 
--- 
*/

.emp-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emp-hero::before {
    content: 'TEAM';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(85, 150, 199, 0.03);
    z-index: 0;
    white-space: nowrap;
}

.emp-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.emp-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-filter-container {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1.2rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(85, 150, 199, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: inherit;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(85, 150, 199, 0.3);
}

.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    margin-bottom: 2rem;
}

/* --- Employee Card Redesign --- */
.employee-card {
    background: white;
    border-radius: 30px;
    overflow: visible;
    /* To allow badges/elements to pop out if needed */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 2rem;
    /* Give space for popping images */
    display: flex;
    flex-direction: column;
}

.employee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(85, 150, 199, 0.15);
}

.emp-img-wrapper {
    width: 160px;
    height: 160px;
    margin: -3rem auto 1rem;
    position: relative;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Organic shape */
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--bg-body);
}

.employee-card:hover .emp-img-wrapper {
    border-radius: 50%;
    transform: scale(1.05) rotate(3deg);
    border-color: var(--primary);
}

.emp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.6s ease;
}

.employee-card:hover .emp-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.emp-info {
    padding: 1rem 1.5rem 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.emp-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.emp-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
    background: rgba(85, 150, 199, 0.08);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Social Links at Bottom */
.emp-social-bottom {
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.emp-social-bottom a {
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
}

.emp-social-bottom a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(85, 150, 199, 0.2);
    border-color: var(--primary);
}


.emp-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-founder {
    background: #fbbf24;
    color: #78350f;
}

.badge-manager {
    background: #818cf8;
    color: #1e1b4b;
}

.badge-creative {
    background: #f472b6;
    color: #500724;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #94a3b8;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 768px) {
    .emp-hero {
        padding: 60px 0 60px;
    }

    .emp-hero h1 {
        font-size: 2.2rem;
    }

    .emp-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .emp-hero::before {
        font-size: 8rem;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .emp-hero h1 {
        font-size: 1.8rem;
    }

    .emp-hero p {
        font-size: 0.9rem;
    }
}

/* --- Team Modern Preview (Creative & Compact) --- */
.team-modern-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.team-modern-card {
    position: relative;
    width: 180px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tm-image {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    /* Organic shape */
    overflow: hidden;
    background: #f1f5f9;
    transition: all 0.6s ease;
    filter: grayscale(100%);
}

.team-modern-card:hover .tm-image {
    border-radius: 50%;
    filter: grayscale(0%);
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(85, 150, 199, 0.2);
}

.tm-content {
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.tm-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.tm-content p {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.tm-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin: 8px auto 0;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.team-modern-card:hover .tm-dot {
    opacity: 1;
    transform: scale(1);
}

.team-modern-card:hover .tm-content h3 {
    color: var(--primary);
}

/* Minimalist Button */
.btn-minimal {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.btn-minimal i {
    font-size: 0.7rem;
    width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-minimal:hover {
    color: var(--primary);
    gap: 1.2rem;
}

.btn-minimal:hover i {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 600px) {
    .team-modern-wrapper {
        gap: 2rem;
    }

    .team-modern-card {
        width: 140px;
    }

    .tm-image {
        width: 110px;
        height: 110px;
    }
}

/* --- Employee Page Modern Header --- */
.emp-page-header {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.btn-back-main {
    background: white;
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-back-main:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    color: white;
}

.emp-page-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .emp-hero {
        padding: 120px 0 60px;
    }

    .emp-page-header {
        top: 1.5rem;
        padding: 0 1.5rem;
    }

    .emp-page-logo {
        height: 45px;
    }
}