/* Arab Trust Law Firm - Main Stylesheet */
:root {
    --white: #ffffff;
    --light-brown: #d2b48c;
    --beige: #f5f5dc;
    --dark-brown: #8b7355;
    --black: #333333;
    --gold: #d4af37;
    --light-beige: #f8f7f2;
    --medium-brown: #a67c52;
    --navbar-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Bilingual Support */
.en {
    display: none !important;
}

body.english .en {
    display: block !important;
}

body.english .ar {
    display: none !important;
}

body.english {
    direction: ltr;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Styles - Improved */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--navbar-height);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 25px;
}

/* Logo Size Adjustments - Improved */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo-emblem {
    width: 80px; /* Adjusted base size */
    height: auto;
    margin-left: 10px;
    margin-right: 10px;
    object-fit: contain;
    transition: all 0.3s ease;
}

body.english .logo-emblem {
    margin-left: 10px;
    margin-right: 5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-brown);
    margin: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.logo-text p {
    font-size: 14px;
    color: var(--medium-brown);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Navigation - Improved */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px; /* Reduced margin for better spacing */
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 15px; /* Slightly smaller for better fit */
    padding: 5px 0;
    position: relative;
    display: block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-brown);
    transition: width 0.3s ease;
}

body.english nav ul li a::after {
    right: auto;
    left: 0;
}

nav ul li a:hover::after,
nav ul li.active a::after {
    width: 100%;
    right: auto;
    left: 0;
}

body.english nav ul li a:hover::after,
body.english nav ul li.active a::after {
    width: 100%;
    left: 0;
    right: auto;
}

nav ul li a:hover {
    color: var(--dark-brown);
}

/* Header Actions - Improved */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.language-switch {
    display: flex;
    align-items: center;
    margin-left: 15px;
    cursor: pointer;
    background-color: var(--light-beige);
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--medium-brown);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: 'Tajawal', sans-serif;
}

.language-switch:hover {
    background-color: var(--beige);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.language-switch i {
    margin-left: 8px;
    margin-right: 8px;
    font-size: 14px;
}

.contact-button {
    background: linear-gradient(135deg, var(--light-brown), var(--dark-brown));
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(166, 124, 82, 0.2);
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-button.ar {
    margin-left: auto;
}

.contact-button:hover {
    box-shadow: 0 7px 15px rgba(166, 124, 82, 0.3);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-brown);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    margin-left: 5px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(166, 124, 82, 0.1);
}

/* Improved Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px; /* Adjusted width */
    height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
                right 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
                left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow-y: auto;
    padding: 80px 30px 30px; /* Adjusted padding */
    display: flex;
    flex-direction: column;
}

body.english .mobile-menu {
    right: auto;
    left: -100%;
}

.mobile-menu.active {
    right: 0;
    transform: translateX(0);
}

body.english .mobile-menu.active {
    left: 0;
    right: auto;
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(166, 124, 82, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--dark-brown);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.close-menu:hover {
    background-color: rgba(166, 124, 82, 0.2);
}

body.english .close-menu {
    right: auto;
    left: 20px;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
}

.mobile-menu-logo img {
    width: 80px; /* Adjusted size */
    height: auto;
    margin-left: 15px;
    margin-right: 0;
}

body.english .mobile-menu-logo img {
    margin-left: 0;
    margin-right: 15px;
}

.mobile-menu-logo h3 {
    font-size: 18px;
    color: var(--dark-brown);
    line-height: 1.3;
    font-weight: 700;
}

.mobile-menu-nav {
    margin-bottom: 30px;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav ul li {
    margin-bottom: 18px; /* Increased */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 18px; /* Increased */
}

.mobile-menu-nav ul li a {
    color: var(--black);
    text-decoration: none;
    font-size: 18px; /* Increased */
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
    padding: 8px 0; /* Increased */
}

.mobile-menu-nav ul li a:hover {
    color: var(--dark-brown);
}

.mobile-menu-contact {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-contact h4 {
    font-size: 18px;
    color: var(--dark-brown);
    margin-bottom: 15px;
}

.mobile-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.mobile-contact-icon {
    color: var(--dark-brown);
    font-size: 16px;
}

.mobile-contact-text {
    font-size: 14px;
    color: var(--black);
}

.mobile-menu-language {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-language span {
    font-size: 14px;
    color: var(--black);
}

.mobile-menu-language .language-switch {
    margin-left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Updated Hero Section - Modified */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    padding-top: 100px;
    margin-top: 0;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-image-side {
    width: 55%;
    height: 100%;
    position: relative;
}

.hero-content-side {
    width: 45%;
    height: 100%;
    background-color: rgba(139, 115, 85, 0.9);
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blend {
    position: absolute;
    left: -100px;
    top: 0;
    height: 100%;
    width: 200px;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(139, 115, 85, 0.9));
    z-index: 3;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    width: 90%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: var(--white);
}

/* Typing Animation */
.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--light-brown);
    width: 0;
    animation: typing 3.5s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--light-brown) }
}

/* Snowflake animation */
#snowflakes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Hero content styling */
.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-right: 60px;
}

body.english .hero-subtitle {
    padding-right: 0;
    padding-left: 60px;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--light-brown);
    transform: translateY(-50%);
}

body.english .hero-subtitle::before {
    right: auto;
    left: 0;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--light-brown);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(210, 180, 140, 0.3);
    z-index: -1;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
    max-width: 600px;
}

body.english .hero-description {
    margin-left: 0;
    margin-right: auto;
}

body:not(.english) .hero-description {
    margin-right: 0;
    margin-left: auto;
}

/* Button Styles */
.cta-buttons {
    display: flex;
    gap: 20px;
}

body:not(.english) .cta-buttons {
    justify-content: flex-end;
}

body.english .cta-buttons {
    justify-content: flex-start;
}

.cta-primary {
    background: linear-gradient(135deg, var(--light-brown), var(--dark-brown));
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
}

.cta-primary:hover {
    box-shadow: 0 10px 25px rgba(166, 124, 82, 0.4);
    transform: translateY(-3px);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Stats Section */
.hero-stats {
    display: flex;
    margin-top: 50px;
    gap: 40px;
}

body:not(.english) .hero-stats {
    justify-content: flex-end;
}

body.english .hero-stats {
    justify-content: flex-start;
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 40px;
    padding-left: 0;
}

body.english .stat-item {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0;
    padding-left: 40px;
}

.stat-item:last-child {
    border: none;
    padding-right: 0;
    padding-left: 0;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--light-brown);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: var(--white);
    font-weight: 500;
}

/* Hero Navigation Dots */
.hero-navigation {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Progress Bar */
.progress-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--white);
    border-radius: 3px;
    transition: width linear;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    text-align: center;
    z-index: 9;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator span {
    margin-bottom: 10px;
}

.scroll-indicator i {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Partners Slider Styles */
.partners-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
    background: var(--light-beige);
    direction: ltr;
    position: relative;
    overflow: hidden;
}

.partners-section::before,
.partners-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.partners-section::before {
    background: var(--dark-brown);
    top: -300px;
    right: -200px;
}

.partners-section::after {
    background: var(--medium-brown);
    bottom: -300px;
    left: -200px;
}

.partners-slider {
    width: 100%;
    height: clamp(120px, 18vw, 160px);
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    overflow: hidden;
}

.partners-track {
    display: flex;
    width: calc(280px * 20);
    animation: partnerSlide 100s linear infinite alternate;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-item {
    width: 240px;
    height: clamp(100px, 15vw, 140px);
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0.5rem;
}

.partner-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.partner-item:hover img {
    transform: scale(1.1);
}

/* Gradient overlays */
.partners-slider::before,
.partners-slider::after {
    content: "";
    height: 100%;
    width: clamp(100px, 15vw, 200px);
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--light-beige) 0%, rgba(248, 247, 242, 0) 100%);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--light-beige) 0%, rgba(248, 247, 242, 0) 100%);
}

@keyframes partnerSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 10)); }
}

/* Floating Action Buttons - Improved */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

body.english .floating-buttons {
    right: auto;
    left: 25px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                filter 0.3s ease, 
                box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.floating-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
    transform: scale(0.85);
    transition: all 0.4s ease;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.1);
}

.floating-btn:hover::after {
    opacity: 0.8;
    transform: scale(1);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.phone-btn {
    background: linear-gradient(135deg, #0088cc, #0066aa);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
    position: relative;
}

/* Phone button options - Improved */
.phone-options {
    position: absolute;
    bottom: 75px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

body.english .phone-options {
    right: auto;
    left: 5px;
}

.phone-btn:hover .phone-options,
.phone-options:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.phone-option-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-option-btn:hover {
    transform: scale(1.15);
}

.call-btn {
    background: linear-gradient(135deg, #FF5733, #E64A19);
    box-shadow: 0 4px 10px rgba(255, 87, 51, 0.4);
}

.whatsapp-option-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* Button labels - Improved */
.btn-label {
    position: absolute;
    right: 70px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.english .btn-label {
    right: auto;
    left: 70px;
    transform: translateX(10px);
}

.floating-btn:hover .btn-label,
.phone-option-btn:hover .btn-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* About Section */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--light-beige);
}

.section-title-container {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    color: var(--medium-brown);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--medium-brown);
}

.section-subtitle::before {
    right: -40px;
}

.section-subtitle::after {
    left: -40px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--light-brown);
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    color: var(--black);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image-main {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 80%;
    height: auto;
    position: relative;
    z-index: 2;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--light-brown);
    border-radius: 10px;
    z-index: 1;
}

body.english .about-image::before {
    right: auto;
    left: -20px;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60%;
    height: 60%;
    background-color: var(--beige);
    border-radius: 10px;
    z-index: 0;
}

body.english .about-image::after {
    left: auto;
    right: -30px;
}

.about-text {
    flex: 1;
    text-align: right;
}

body.english .about-text {
    text-align: left;
}

.about-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--light-brown);
}

body.english .about-title::after {
    right: auto;
    left: 0;
}

.about-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

body.english .feature-item {
    flex-direction: row-reverse;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(210, 180, 140, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-brown);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--black);
}

.about-cta {
    margin-top: 40px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--light-brown), var(--dark-brown));
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(210, 180, 140, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--dark-brown);
    font-size: 28px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-icon {
    background-color: var(--light-brown);
    color: var(--white);
    transform: rotateY(360deg);
}

.service-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 15px;
    text-align: center;
}

.service-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--dark-brown);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    gap: 10px;
}

body.english .service-link i {
    transform: rotate(180deg);
}

/* Services "Show More" button styling */
.services-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.services-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--light-brown), var(--dark-brown));
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(166, 124, 82, 0.3);
    transition: all 0.3s ease;
}

.services-more-button:hover {
    box-shadow: 0 10px 25px rgba(166, 124, 82, 0.4);
    transform: translateY(-3px);
}

.services-more-button i {
    transition: transform 0.3s ease;
}

.services-more-button:hover i {
    transform: translateY(5px);
}

/* Certificates Section - Modified */
.certificates-section {
    padding: 50px 0;
    background-color: var(--light-beige);
    text-align: center;
}

.certificates-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.certificate-item {
    flex: 0 0 calc(25% - 30px);
    max-width: 230px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.certificate-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Calendly section styling */
.contact-section-calendly {
    background-color: var(--dark-brown);
    padding: 60px 0;
    color: var(--white);
}

.contact-section-calendly .section-title-container {
    margin-bottom: 40px;
}

.contact-section-calendly .section-title,
.contact-section-calendly .section-subtitle {
    color: var(--white);
}

.contact-section-calendly .section-description {
    color: var(--light-beige);
}

.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
    border-radius: 10px;
    overflow: hidden;
}

/* Google Map Section - Added */
.map-section {
    padding: 60px 0;
    background-color: var(--light-beige);
}

.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mapouter {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.gmap_canvas {
    overflow: hidden;
    background: none !important;
    width: 100%;
    height: 400px;
}

.gmap_iframe {
    width: 100% !important;
    height: 400px !important;
}

/* Footer */
footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 80px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--light-brown), var(--gold), var(--light-brown));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    text-align: right;
}

body.english .footer-about p {
    text-align: left;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

body.english .footer-social {
    justify-content: flex-start;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--light-brown);
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-align: right;
}

body.english .footer-title {
    text-align: left;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--light-brown);
}

body.english .footer-title::after {
    right: auto;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

body.english .footer-links ul {
    text-align: left;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, padding-right 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--light-brown);
}

body:not(.english) .footer-links ul li a:hover {
    padding-right: 5px;
}

body.english .footer-links ul li a:hover {
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

body.english .footer-contact-item {
    flex-direction: row-reverse;
}

.footer-contact-icon {
    color: var(--light-brown);
    font-size: 18px;
}

.footer-contact-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

body.english .footer-contact-text {
    text-align: left;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom span {
    color: var(--light-brown);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .logo-emblem {
        width: 75px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 13px;
    }
    
    nav ul li {
        margin: 0 12px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 50px;
    }
    
    .services-grid,
    .experts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Partners slider adjustments */
    .partner-item {
        width: 240px;
        margin: 0 15px;
    }
    
    .partners-track {
        width: calc(270px * 20);
    }
    
    @keyframes partnerSlide {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-250px * 10)); }
    }
    
    .certificate-item {
        flex: 0 0 calc(25% - 20px);
        max-width: 220px;
    }
    
    .hero-image-side {
        width: 50%;
    }
    
    .hero-content-side {
        width: 50%;
    }
}

@media (max-width: 992px) {
    :root {
        --navbar-height: 75px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .logo-emblem {
        width: 70px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .services-grid,
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .language-switch {
        margin-left: 5px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .contact-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    body.english .floating-buttons {
        left: 20px;
    }
    
    .hero-blend {
        left: -50px;
        width: 100px;
    }
    
    .mapouter, .gmap_canvas, .gmap_iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header-container {
        padding: 0 15px !important;
    }
    
    .logo-emblem {
        width: 60px !important;
        margin-right: 8px;
        margin-left: 0;
    }
    
    body.english .logo-emblem {
        margin-right: 0;
        margin-left: 8px;
    }
    
    .logo-text h1 {
        font-size: 17px !important;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 36px;
        text-align: center;
    }
    
    .hero-slide {
        flex-direction: column;
    }
    
    .hero-image-side {
        width: 100%;
        height: 50%;
    }
    
    .hero-content-side {
        width: 100%;
        height: 50%;
    }
    
    .hero-blend {
        left: 0;
        top: -50px;
        height: 100px;
        width: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(139, 115, 85, 0.9));
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        padding-right: 0;
        padding-bottom: 15px;
        display: block;
        text-align: center;
    }
    
    body.english .hero-subtitle {
        padding-left: 0;
    }
    
    .hero-subtitle::before {
        display: none;
    }
    
    /* Add a centered line under subtitle instead */
    .hero-subtitle::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background-color: var(--light-brown);
    }
    
    .hero-description {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .cta-buttons, .hero-stats {
        justify-content: center !important;
    }
    
    .services-grid,
    .experts-grid,
    .testimonials-container,
    .all-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-button {
        display: none;
    }
    
    /* Make sure language switch is still visible */
    .language-switch {
        display: flex;
        margin-left: 0;
    }
    
    /* Improve about images on mobile */
    .about-image-main {
        width: 90%;
    }
    
    .about-image::before,
    .about-image::after {
        display: block;
        width: 90%;
    }

    /* Services "Show More" button mobile improvements */
    .services-more-container {
        padding: 0 15px;
    }
    
    .services-more-button {
        width: 100%;
        justify-content: center;
        padding: 16px 25px;
        font-size: 16px;
    }
    
    /* Partners slider adjustments */
    .partner-item {
        width: 220px;
        height: 120px;
        margin: 0 12px;
    }
    
    .partners-track {
        width: calc(244px * 20);
    }

    @keyframes partnerSlide {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-244px * 10)); }
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .phone-option-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .btn-label {
        display: none; /* Hide labels on small screens to avoid clutter */
    }
    
    .certificate-item {
        flex: 0 0 calc(50% - 20px);
        max-width: 200px;
    }
    
    .mapouter, .gmap_canvas, .gmap_iframe {
        height: 300px;
    }
    
    /* Make stats items smaller on mobile */
    .stat-item {
        width: 30%;
        border: none;
        padding: 0 10px;
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    body.english .stat-item {
        border-left: none;
        padding-left: 10px;
    }
}

@media (max-width: 576px) {
    :root {
        --navbar-height: 70px; /* Adjusted navbar height for very small screens */
    }
    
    .header-container {
        padding: 0 15px !important; /* Ensure padding is maintained */
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-title, .contact-form-title {
        font-size: 24px;
    }
    
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 10px;
    }
    
    .contact-card-content h4 {
        font-size: 16px;
    }
    
    .contact-card-content p, 
    .contact-card-content a {
        font-size: 14px;
    }
    
    /* Stat items for small screens */
    .stat-item {
        width: 45%;
    }
    
    /* Improved Services "Show More" button for very small screens */
    .services-more-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* Partners slider adjustments */
    .partner-item {
        width: 200px;
        height: 110px;
        margin: 0 10px;
    }
    
    .partners-track {
        width: calc(220px * 20);
    }
    
    @keyframes partnerSlide {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-220px * 10)); }
    }
    
    /* Improve the about image frames on small mobile */
    .about-image::before {
        top: -15px;
        right: -10px;
        border-width: 3px;
    }
    
    body.english .about-image::before {
        right: auto;
        left: -10px;
    }
    
    .about-image::after {
        bottom: -20px;
        left: -20px;
        width: 50%;
        height: 50%;
    }
    
    body.english .about-image::after {
        left: auto;
        right: -20px;
    }
    
    /* Make the mobile menu take full width on very small screens */
    .mobile-menu {
        width: 100%;
        max-width: none;
    }
    
    /* Ensure footer layout looks good on small screens */
    .footer-contact-item {
        gap: 10px;
    }
    
    .footer-contact-text {
        font-size: 14px;
    }
    
    .certificate-item {
        flex: 0 0 calc(50% - 15px);
        max-width: 150px;
    }
    
    .mapouter, .gmap_canvas, .gmap_iframe {
        height: 250px;
    }
    
    .hero-title {
        font-size: 32px;
    }
}

/* For very small screens, go to 1 column for stats */
@media (max-width: 400px) {
    .stat-item {
        width: 100%;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    body.english .floating-buttons {
        left: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .phone-option-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .phone-options {
        bottom: 60px;
    }
    
    /* Reduce padding for button */
    .services-more-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
    }
}

/* Make sure the logo doesn't get too small on tiny screens */
@media (max-width: 350px) {
    .logo-emblem {
        width: 50px !important; /* Minimum size on very small screens */
    }
    
    .logo-text h1 {
        font-size: 14px !important;
    }
    
    .logo-text p {
        font-size: 9px;
    }
}