

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    direction: rtl;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 0%;
    margin-left: 15px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo-image.no-hover {
    transition: none;
}

.logo-image.no-hover:hover {
    transform: none;
    box-shadow: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffc107;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Special highlight for contact link */
.nav-link[href="#contact"] {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    margin: -8px -16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
}

.nav-link[href="#contact"]:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
}

.nav-link[href="#contact"]::after {
    display: none; /* Remove the underline for contact link */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffc107;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-image: url('assets/images/background/her1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

/* Remove the ::before pseudo-element since we're using direct background */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffc107" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    margin-top: -50px; /* Compensate for navbar height */
}

/* Mobile hero content optimization */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 15px;
        margin-top: -30px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 10px;
        margin-top: -20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }
}

.hero-trust-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 50px;
    padding: 12px 30px;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
}

.hero-trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
}

.trust-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #ffc107;
}

.trust-stars {
    display: flex;
    gap: 3px;
}

.trust-stars i {
    font-size: 12px;
    color: #ffc107;
    animation: starTwinkle 2s ease-in-out infinite;
}

.trust-stars i:nth-child(1) { animation-delay: 0s; }
.trust-stars i:nth-child(2) { animation-delay: 0.2s; }
.trust-stars i:nth-child(3) { animation-delay: 0.4s; }
.trust-stars i:nth-child(4) { animation-delay: 0.6s; }
.trust-stars i:nth-child(5) { animation-delay: 0.8s; }

.trust-text {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.trust-text i {
    font-size: 14px;
    color: #ffffff;
    animation: usersPulse 2s ease-in-out infinite;
}

@keyframes usersPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Typewriter effect setup for multi-line text */
    opacity: 1;
    transform: translateY(0);
    text-shadow: none;
    position: relative;
    overflow: hidden;
    white-space: pre-line; /* Allow line breaks */
    border-right: 3px solid #ffc107;
    width: 0;
    animation: blink 1s infinite;
    transition: border-right 0.3s ease;
    line-height: 1.2; /* Better line spacing for multi-line */
    min-height: 2.4em; /* Reserve space for 2 lines */
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: #ffc107;
    }
}

/* Final state after typewriter completes */
.hero-title.completed {
    width: auto !important;
    overflow: visible !important;
    white-space: pre-line !important;
    animation: none !important;
    border-right: none !important;
    line-height: 1.2 !important;
}

.hero-title.typewriter {
    animation: typewriter 3s steps(40, end) 0.8s forwards, blink 1s infinite;
    width: 0;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #cccccc;
    line-height: 1.8;
    /* Faster subtitle animation */
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubtitleAppear 0.6s ease-out 0.3s forwards;
}

@keyframes heroSubtitleAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
    animation: heroButtonsAppear 1s ease-out 0.8s both;
}

@keyframes heroButtonsAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    animation: starsGlow 2s ease-in-out infinite alternate;
}

.hero-stars i {
    font-size: 1.5rem;
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    transition: all 0.3s ease;
}

.hero-stars i:nth-child(1) { animation-delay: 0s; }
.hero-stars i:nth-child(2) { animation-delay: 0.2s; }
.hero-stars i:nth-child(3) { animation-delay: 0.4s; }
.hero-stars i:nth-child(4) { animation-delay: 0.6s; }
.hero-stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes starsGlow {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #0a0a0a;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.btn-secondary:hover {
    background: #ffc107;
    color: #0a0a0a;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    /* Faster scroll indicator appearance */
    opacity: 0;
    animation: scrollIndicatorAppear 0.8s ease-out 1s forwards, bounce 2s 1.8s infinite;
}

@keyframes scrollIndicatorAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid #ffc107;
    border-bottom: 3px solid #ffc107;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #ffc107;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    padding: 0.5rem 0;
    color: #cccccc;
    position: relative;
    padding-right: 25px;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #ffc107;
    font-weight: bold;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.manager-photo-container {
    position: relative;
    width: 400px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manager-photo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.manager-photo-bg::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ffc107, #ff8c00, #ffc107);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    animation: glow 3s ease-in-out infinite alternate;
}

.manager-photo {
    position: relative;
    z-index: 2;
    width: 320px;
    height: 420px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.manager-photo:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 193, 7, 0.2);
}

.manager-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9) contrast(1.1);
}

.manager-photo:hover .manager-img {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

.manager-info {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    min-width: 200px;
}

.manager-info h3 {
    color: #ffc107;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.manager-info p {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: 500;
}

.manager-info p:last-child {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.manager-info .fa-eye {
  font-size: 0.9em;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.6);
    }
}

/* Lawyers Section with Carousel */
.lawyers {
    background: #0a0a0a;
    position: relative;
}

/* Lawyers See More Section */
.lawyers-see-more-section {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.btn-see-more {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #0a0a0a;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-see-more::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 ease;
}

.btn-see-more:hover::before {
    left: 100%;
}

.btn-see-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
    border-color: #ffc107;
}

.btn-see-more i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-see-more:hover i {
    transform: scale(1.1);
}

/* Lawyers Page Styles */
.lawyers-page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lawyers-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffc107" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header-content p {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #888888;
}

.breadcrumb a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff8c00;
}

.breadcrumb span {
    color: #666666;
}

/* All Lawyers Section */
.all-lawyers-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.lawyer-card-full {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.lawyer-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s ease;
}

.lawyer-card-full:hover::before {
    left: 100%;
}

.lawyer-card-full:hover {
    transform: translateY(-10px);
    border-color: #ffc107;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.1);
}

.lawyer-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid #ffc107;
    transition: all 0.3s ease;
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.lawyer-card-full:hover .lawyer-image {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.lawyer-card-full:hover .lawyer-image img {
    transform: scale(1.1);
}

.lawyer-info h3 {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lawyer-info .specialty {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.lawyer-info .experience {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.lawyer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.skill-tag {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.1), rgba(255, 140, 0, 0.1));
    color: #ffc107;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.2), rgba(255, 140, 0, 0.2));
    transform: translateY(-2px);
}

/* Back to Home Section */
.back-to-home-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    text-align: center;
}

.back-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.back-content .btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-content .btn:hover i {
    transform: translateX(5px);
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffc107;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-home-link:hover {
    color: #ff8c00;
}

.back-home-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-home-link:hover i {
    transform: translateX(5px);
}

/* Join Team Section */
.join-team-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.join-team-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.join-team-box h2 {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 10px;
    font-weight: 700;
}

.join-team-box .join-team-subtitle {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0.9;
}

.join-team-box .btn-apply {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #0a0a0a;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.join-team-box .btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.join-team-box .btn-apply i {
    transition: transform 0.3s ease;
}

.join-team-box .btn-apply:hover i {
    transform: translateX(5px);
}

/* Lawyers Apply Section */
.lawyers-apply-section {
    margin-top: 40px;
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.lawyers-apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.apply-content {
    position: relative;
    z-index: 1;
}

.apply-content h3 {
    font-size: 1.8rem;
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: 700;
}

.apply-content p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-apply {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #0a0a0a;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-apply::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 ease;
}

.btn-apply:hover::before {
    left: 100%;
}

.btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
    border-color: #ffc107;
}

.btn-apply i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-apply:hover i {
    transform: scale(1.1);
}

/* Infinite Horizontal Scrolling Container */
.lawyers-scroll-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 40px 0;
    padding: 20px 0;
}

/* Add subtle fade effect at edges for conveyor belt look */
.lawyers-scroll-container::before,
.lawyers-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.lawyers-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, transparent);
}

.lawyers-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, transparent);
}

.lawyers-scroll-track {
    display: flex;
    width: max-content;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.lawyers-scroll-track:active {
    cursor: grabbing;
}

/* Navigation Arrows */
.lawyers-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border: none;
    border-radius: 50%;
    color: #0a0a0a;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lawyers-nav:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.lawyers-nav.prev {
    right: 10px;
}

.lawyers-nav.next {
    left: 10px;
}

.lawyers-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
    background: linear-gradient(45deg, #666666, #888888);
}

.lawyers-nav:disabled:hover {
    transform: translateY(-50%) scale(0.9);
    box-shadow: none;
}

.lawyer-card {
    flex: 0 0 auto;
    margin: 0 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.1);
    min-width: 280px;
    white-space: nowrap;
}

.lawyer-card:hover {
    transform: translateY(-10px);
    border-color: #ffc107;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.1);
}

.lawyer-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid #ffc107;
    transition: all 0.3s ease;
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.lawyer-card:hover .lawyer-image {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.lawyer-card:hover .lawyer-image img {
    transform: scale(1.1);
}

.lawyer-card h3 {
    font-size: 1.3rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.lawyer-card .specialty {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lawyer-card .experience {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Remove old carousel navigation styles - not needed for infinite scroll */

/* Enhanced Touch Feedback for Mobile */
@media (max-width: 768px) {
    .carousel-indicators {
        gap: 10px;
        margin-top: 25px;
    }
    
    .carousel-indicator {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
    }
    
     /* Better touch feedback for scroll tracks */
     .clients-track {
         cursor: grab;
         transition: transform 0.3s ease;
     }
     
     .clients-track:active {
         cursor: grabbing;
     }
    
     /* Enhanced button touch feedback - removed carousel nav */
    
    /* Better form touch feedback */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    }
    
    /* Enhanced button touch feedback */
    .btn {
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Better card touch feedback */
    .lawyer-card,
    .service-card,
    .client-logo-card {
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .lawyer-card:active,
    .service-card:active,
    .client-logo-card:active {
        transform: scale(0.98);
    }
}

/* Prevent text selection during touch interactions */
.clients-track,
.btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improved mobile scrollbar */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(10, 10, 10, 0.5);
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, #ffc107, #ff8c00);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(45deg, #ff8c00, #ffc107);
    }
}

/* Clients Section with Carousel */
.clients {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
    padding: 40px 0;
    position: relative;
}

.clients-track {
    display: contents;
}

.client-logo-card {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

.client-logo-img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    object-fit: contain;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.client-logo-card {
    animation: logoFadeIn 0.6s ease-out;
}

.client-logo-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.client-logo-card:hover .client-logo-img {
    transform: scale(1.1);
}

.client-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffc107, #ffdb4d);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.client-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #ffc107;
}

.client-tooltip.show {
    opacity: 1;
    visibility: visible;
    top: -60px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #0a0a0a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #ffc107;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: #0a0a0a;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.service-card p {
    color: #cccccc;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #0a0a0a;
}

.contact-details h3 {
    color: #ffc107;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: #cccccc;
    line-height: 1.6;
}

.contact-form {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.1);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888888;
}

.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 20px;
}

.footer-logo .logo-image {
    max-width: 160px;
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: 0%;
    margin-left: 15px;
    object-fit: contain;
    border: 0px solid #ffc107;
}

.footer-section h3 {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffc107;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 193, 7, 0.1);
    color: #888888;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Enhanced Navigation */
    .navbar {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
        margin-left: 10px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 1rem 0;
        font-size: 1.1rem;
    }
    
    .nav-link:last-child {
        margin-bottom: 0;
    }

    /* Mobile styles for contact link highlight */
    .nav-link[href="#contact"] {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
        border: 1px solid rgba(255, 193, 7, 0.4);
        border-radius: 20px;
        padding: 10px 20px;
        margin: 0.5rem auto;
        width: fit-content;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
    }

    .nav-link[href="#contact"]:hover {
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 193, 7, 0.15) 100%);
        border-color: rgba(255, 193, 7, 0.7);
        box-shadow: 0 6px 24px rgba(255, 193, 7, 0.25);
        transform: translateY(-2px);
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }
    
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: #ffc107;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Enhanced Hero Section */
    .hero {
        height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 0 1rem;
        margin-top: -50px; /* Compensate for navbar height */
    }

    .hero-trust-badge {
        padding: 10px 20px;
        margin-bottom: 20px;
    }

    .trust-content {
        gap: 6px;
    }

    .trust-stars {
        gap: 3px;
    }

    .trust-stars i {
        font-size: 12px;
    }

    .trust-text {
        font-size: 11px;
        gap: 4px;
    }

    .trust-text i {
        font-size: 11px;
    }

    .hero-title {
        font-size: 2.5rem;
        min-height: 1.8em;
    }

    .hero-stars {
        margin: 15px 0;
    }

    .hero-stars i {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 30px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    /* Hero logo mobile optimization */
    .hero-logo img {
        max-width: 240px !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Enhanced About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 1rem;
    }

    .manager-photo-container {
        width: 320px;
        height: 420px;
        margin: 0 auto;
    }

    .manager-photo-bg {
        width: 280px;
        height: 370px;
    }

    .manager-photo {
        width: 260px;
        height: 340px;
    }

    .manager-info {
        padding: 18px 22px;
        min-width: 200px;
        bottom: -20px;
    }

    .manager-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .manager-info p {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    /* Enhanced Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }

     /* Enhanced Infinite Scroll for Mobile */
     .lawyers-scroll-container {
         margin: 30px 0;
         padding: 15px 0;
     }

     .lawyers-scroll-track {
         /* Animation removed */
     }

     .lawyer-card {
         margin: 0 10px;
     }

     .lawyers-nav {
         width: 45px;
         height: 45px;
         font-size: 1.3rem;
     }

     .lawyer-image {
         width: 110px;
         height: 110px;
     }
     
     .lawyer-card {
         padding: 1.5rem 1rem;
         min-width: 200px;
     }

     /* Lawyers Apply Section Mobile */
     .lawyers-apply-section {
         margin-top: 40px;
         padding: 30px 20px;
         border-radius: 15px;
     }

     .apply-content h3 {
         font-size: 1.5rem;
         margin-bottom: 12px;
     }

     .apply-content p {
         font-size: 1rem;
         margin-bottom: 20px;
     }

     .btn-apply {
         padding: 10px 25px;
         font-size: 0.95rem;
     }

     .btn-see-more {
         padding: 10px 25px;
         font-size: 0.95rem;
     }

     .clients-carousel {
         padding: 0 50px;
     }
    
    /* Enhanced Form */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
        font-size: 1rem;
    }
}

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

    .nav-container {
        padding: 0.7rem 1rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
        margin-left: 8px;
    }

    /* Ultra Mobile Hero */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        min-height: 2.8em;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: 240px;
    }

    /* Ultra mobile hero logo */
    .hero-logo img {
        max-width: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }

    /* Ultra Mobile About */
    .manager-photo-container {
        width: 280px;
        height: 380px;
    }

    .manager-photo-bg {
        width: 240px;
        height: 330px;
    }

    .manager-photo {
        width: 220px;
        height: 300px;
    }

    .manager-info {
        padding: 15px 18px;
        min-width: 180px;
        bottom: -18px;
    }

    .manager-info h3 {
        font-size: 1.1rem;
    }

    .manager-info p {
        font-size: 0.9rem;
    }

     /* Ultra Mobile Infinite Scroll */
     .lawyers-scroll-container {
         margin: 25px 0;
         padding: 10px 0;
     }

     .lawyers-scroll-track {
         /* Animation removed */
     }

     .lawyer-card {
         margin: 0 8px;
     }

     .lawyers-nav {
         width: 40px;
         height: 40px;
         font-size: 1.1rem;
     }

     .lawyer-image {
         width: 90px;
         height: 90px;
     }
     
     .lawyer-card {
         padding: 1.2rem 0.8rem;
         min-width: 180px;
     }

     /* Ultra Mobile Lawyers Apply Section */
     .lawyers-apply-section {
         margin-top: 30px;
         padding: 25px 15px;
         border-radius: 12px;
     }

     .apply-content h3 {
         font-size: 1.3rem;
         margin-bottom: 10px;
     }

     .apply-content p {
         font-size: 0.9rem;
         margin-bottom: 18px;
     }

     .btn-apply {
         padding: 8px 20px;
         font-size: 0.9rem;
         border-radius: 20px;
     }

     .btn-see-more {
         padding: 8px 20px;
         font-size: 0.9rem;
         border-radius: 20px;
     }

     /* Lawyers Page Mobile */
     .lawyers-page-header {
         padding: 100px 0 60px;
     }

     .page-header-content h1 {
         font-size: 2.5rem;
     }

     .page-header-content p {
         font-size: 1.1rem;
     }

     .lawyers-grid {
         grid-template-columns: 1fr;
         gap: 20px;
         margin-top: 30px;
     }

     .lawyer-card-full {
         padding: 25px 20px;
     }

     .lawyer-image {
         width: 100px;
         height: 100px;
     }

     .lawyer-info h3 {
         font-size: 1.3rem;
     }

     .skill-tag {
         font-size: 0.75rem;
         padding: 3px 10px;
     }
    
    .lawyer-card h3 {
        font-size: 1rem;
    }
    
    .lawyer-card .specialty,
    .lawyer-card .experience {
        font-size: 0.85rem;
    }

     .clients-carousel {
         padding: 0 40px;
     }
    
    /* Ultra Mobile Form */
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Ultra Mobile Services */
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .nav-link {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
     /* Removed carousel nav - using infinite scroll */
    
    /* Better spacing for touch */
    .lawyer-card,
    .service-card,
    .client-logo-card {
        margin: 0.5rem;
    }
    
     /* Improved scroll behavior */
     .clients-track {
         scroll-behavior: smooth;
         -webkit-overflow-scrolling: touch;
     }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    section {
        width: 100%;
        overflow: hidden;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff8c00, #ffc107);
}

/* Remove old placeholder styles */
.image-placeholder {
    display: none;
}

/* Manager CV Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 2% auto;
    padding: 0;
    border: 2px solid #ffc107;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #1a1a1a;
    padding: 20px 30px;
    border-radius: 13px 13px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    direction: rtl;
}

.modal-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffc107 0%, #ff8c00 100%);
    transition: width 0.2s ease;
    border-radius: 0 2px 2px 0;
}

.close-modal {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    direction: rtl;
}

.manager-cv-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ffc107;
}

.manager-cv-photo {
    flex-shrink: 0;
}

.manager-cv-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffc107;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.manager-cv-basic-info h3 {
    color: #ffc107;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.manager-cv-basic-info .position {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 5px 0;
    font-weight: 600;
}

.manager-cv-basic-info .experience-years {
    color: #cccccc;
    font-size: 1rem;
    margin: 5px 0;
}

.cv-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.cv-section h4 {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-section h4 i {
    font-size: 1.1rem;
}

.cv-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-section li {
    color: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.1);
    position: relative;
    padding-right: 20px;
}

.cv-section li:before {
    content: "•";
    color: #ffc107;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 8px;
}

.cv-section li:last-child {
    border-bottom: none;
}

/* Make manager photo clickable */
#managerPhotoContainer {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#managerPhotoContainer:hover {
    transform: scale(1.05);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .manager-cv-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .manager-cv-photo img {
        width: 100px;
        height: 100px;
    }
    
    .manager-cv-basic-info h3 {
        font-size: 1.5rem;
    }
    
    .cv-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .cv-section h4 {
        font-size: 1.1rem;
    }
    
    .cv-section li {
        font-size: 0.9rem;
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .manager-cv-photo img {
        width: 80px;
        height: 80px;
    }
    
    .manager-cv-basic-info h3 {
        font-size: 1.3rem;
    }
    
    .cv-section {
        padding: 12px;
    }
    
    .cv-section h4 {
        font-size: 1rem;
    }
    
    .cv-section li {
        font-size: 0.85rem;
    }
}

.nav-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.1;
}

.nav-title-group > span:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    line-height: 1.1;
}

.nav-subtitle {
    color: #fff;
    font-weight: 300;
    font-size: 1rem;
    display: block;
    margin-top: 2px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1200;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 60%, #ff8c00 100%);
    color: #0a0a0a;
    font-size: 2rem;
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#scrollToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}
#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #ff8c00 60%, #ffc107 100%);
    color: #fff;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.28);
}
@media (max-width: 768px) {
    #scrollToTopBtn {
        width: 44px;
        height: 44px;
        bottom: 18px;
        right: 18px;
        font-size: 1.4rem;
    }
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact-map {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(255,193,7,0.10);
}
.contact-map iframe {
    width: 100%;
    min-height: 220px;
    border: none;
    border-radius: 14px;
    display: block;
}
@media (max-width: 768px) {
    .contact-map {
        border-radius: 8px;
    }
    .contact-map iframe {
        min-height: 140px;
        border-radius: 8px;
    }
    .contact-info-wrapper {
        gap: 18px;
    }
}

.blog-section {
    padding: 80px 0;
    background: #1a1a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: #2d2d2d;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3a3a3a;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 18px;
}

.blog-date {
    color: #888;
    font-size: 12px;
    display: block;
    margin-bottom: 15px;
}

.blog-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-readmore {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-readmore:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-image img {
        height: 180px;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
}

/* Responsive Design for Clients Grid */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 30px 0;
    }
    
    .client-logo-card {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .clients-grid .client-logo-img {
        max-width: 120px;
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        padding: 20px 0;
    }
    
    .client-logo-card {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .clients-grid .client-logo-img {
        max-width: 100px;
        max-height: 50px;
    }
}

/* Responsive Design for Client Tooltip */
@media (max-width: 768px) {
    .client-tooltip {
        font-size: 11px;
        padding: 6px 12px;
        top: -45px;
    }
    
    .client-tooltip.show {
        top: -55px;
    }
}

@media (max-width: 480px) {
    .client-tooltip {
        font-size: 10px;
        padding: 5px 10px;
        top: -40px;
        max-width: 120px;
        white-space: normal;
        text-align: center;
    }
    
    .client-tooltip.show {
        top: -50px;
    }
} 

.clients-grid-4x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 32px 24px;
  justify-items: center;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
}
.clients-grid-4x2 .client-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  background: transparent;
  box-shadow: none;
  padding: 8px;
  margin: 0 auto;
} 

@media (max-width: 600px) {
  .clients-grid-4x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px 12px;
    padding: 16px 0;
  }
  .clients-grid-4x2 .client-logo-img {
    width: 90px;
    height: 90px;
    padding: 4px;
  }
} 