/* ============================================
   STABIRA - Ultra Modern Website Styles
   Inspired by Freiburg Contracting Design
   ============================================ */

:root {
    /* Brand Colors - STABIRA Brand Kit */
    --primary-color: #541513;
    --primary-dark: #2c1111;
    --primary-light: #7b3e21;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-primary: linear-gradient(135deg, #faf8f6 0%, #f5f2ee 50%, #faf8f6 100%);
    --bg-primary-solid: #faf8f6;
    --bg-secondary: linear-gradient(135deg, rgba(84, 21, 19, 0.03) 0%, rgba(123, 62, 33, 0.02) 100%);
    --bg-card: rgba(255, 255, 255, 0.95);
    --border-color: rgba(84, 21, 19, 0.1);
    --shadow: 0 4px 20px rgba(84, 21, 19, 0.08), 0 2px 8px rgba(44, 17, 17, 0.04);
    --shadow-hover: 0 12px 40px rgba(84, 21, 19, 0.15), 0 4px 12px rgba(44, 17, 17, 0.08);
    --shadow-3d: 0 20px 60px rgba(84, 21, 19, 0.2), 0 8px 24px rgba(44, 17, 17, 0.12);
    /* Safe area for notched devices */
    --safe-area-top: env(safe-area-inset-top, 0);
    --safe-area-bottom: env(safe-area-inset-bottom, 0);
    --safe-area-left: env(safe-area-inset-left, 0);
    --safe-area-right: env(safe-area-inset-right, 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    padding-bottom: var(--safe-area-bottom);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(84, 21, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(123, 62, 33, 0.03) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="construction" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M0 0L60 60M60 0L0 60" fill="none" stroke="rgba(84,21,19,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23construction)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

body.rtl {
    font-family: 'Cairo', 'Inter', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Navigation - Modern Style
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.5rem 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-text-primary {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-family: 'Inter', serif;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-text-arabic {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
    margin-top: -0.1rem;
}

.logo-text-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 0.1rem;
}

.logo-text-subtitle {
    display: none;
}

.logo-text-subtitle.active {
    display: block;
}

.logo-text-subtitle.lang-ar {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.1rem;
    font-family: 'Cairo', sans-serif;
}

.nav-menu {
    display: none !important;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Only show active menu */
.nav-menu-en.active,
.nav-menu-ar.active {
    display: flex !important;
}

/* Ensure inactive menus are always hidden */
.nav-menu-en:not(.active),
.nav-menu-ar:not(.active) {
    display: none !important;
    visibility: hidden;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
    pointer-events: auto;
    user-select: none;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section - Modern Style
   ============================================ */

.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #faf8f6 0%, #f5f2ee 50%, #faf8f6 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform-style: preserve-3d;
    perspective: 2000px;
    overflow: hidden;
}

.hero-modern[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-modern[style*="background-image"] .hero-content-modern {
    position: relative;
    z-index: 2;
}

.hero-modern[style*="background-image"] .hero-tagline,
.hero-modern[style*="background-image"] .hero-tagline-secondary,
.hero-modern[style*="background-image"] .hero-title-large,
.hero-modern[style*="background-image"] .hero-subtitle-modern,
.hero-modern[style*="background-image"] .hero-description-modern {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(84, 21, 19, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(123, 62, 33, 0.04) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-30px, 30px) rotate(-1deg); }
}

.hero-content-modern {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.hero-tagline-secondary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.hero-title-large {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    color: var(--primary-color);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
    overflow: hidden;
}

.title-word {
    display: block;
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-word:nth-child(1) { animation-delay: 0.1s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle-modern {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.hero-description-modern {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============================================
   Mission Section
   ============================================ */

.mission-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    transform-style: preserve-3d;
}

.mission-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.mission-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 248, 246, 0.85);
    z-index: 0;
}

.mission-section[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

.section-header-modern {
    margin-bottom: 3rem;
}

.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title-modern {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.mission-content {
    max-width: 900px;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.btn-modern {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(84, 21, 19, 0.2);
    border: none;
}

.btn-modern::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-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) translateZ(15px) scale(1.05);
    box-shadow: 0 10px 30px rgba(84, 21, 19, 0.4), 0 5px 15px rgba(44, 17, 17, 0.2);
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* ============================================
   Why Section
   ============================================ */

.why-section {
    padding: 100px 0;
    background: var(--bg-primary-solid);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    transform-style: preserve-3d;
}

.why-section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.why-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 248, 246, 0.85);
    z-index: 0;
}

.why-section[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

.why-intro {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2rem;
    max-width: 1000px;
}

.why-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    max-width: 1000px;
    font-weight: 400;
}

/* ============================================
   Services Section - Modern Grid
   ============================================ */

.services-modern {
    padding: 100px 0;
    background: var(--bg-primary-solid);
    position: relative;
    transform-style: preserve-3d;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.service-card-modern {
    background: var(--bg-card);
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.05) 0%, rgba(123, 62, 33, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-3d);
    border-color: rgba(84, 21, 19, 0.2);
}

.service-card-modern:hover::before {
    opacity: 1;
}

.service-card-modern .service-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    flex-shrink: 0;
}

.service-card-modern .service-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(84, 21, 19, 0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.service-card-modern .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern:hover .service-image {
    transform: scale(1.1);
}

.service-content-wrapper {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* RTL support for Arabic */
[dir="rtl"] .service-card-modern {
    text-align: right;
}

.service-icon-modern {
    display: none;
}

.service-title-modern {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.service-desc-modern {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-modern {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-title-modern {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.cta-text-modern {
    font-size: 1.2rem;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto 3rem;
    opacity: 0.95;
}

.cta-modern .btn-modern {
    background: white;
    color: var(--primary-color);
}

.cta-modern .btn-modern:hover {
    background: var(--bg-secondary);
}

/* ============================================
   Footer - Professional Style with Logo
   ============================================ */

.footer-modern {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    padding: 80px 0 30px;
    border-top: 3px solid var(--primary-light);
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.6;
}

.footer-container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content-modern {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section-modern {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-logo-text-primary {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 3px;
    font-family: 'Inter', serif;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.footer-logo-text-arabic {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.4rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
    margin-top: -0.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.footer-logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 0.1rem;
    display: none;
}

.footer-logo-subtitle.active {
    display: block;
}

.footer-logo-subtitle.lang-ar {
    color: #f0c8a0;
    border-bottom: 1px solid #f0c8a0;
    padding-bottom: 0.1rem;
    font-family: 'Cairo', sans-serif;
}

.footer-desc-modern {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-top: 1rem;
    display: none;
}

.footer-desc-modern.active {
    display: block;
}

.footer-heading-modern {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
    display: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-heading-modern.active {
    display: block;
}

.footer-heading-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    box-shadow: 0 2px 4px rgba(123, 62, 33, 0.5);
}

.footer-links-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-modern li {
    margin-bottom: 0.875rem;
    position: relative;
}

.footer-links-modern li {
    position: relative;
}

.footer-links-modern li a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: none;
    padding-left: 1rem;
    position: relative;
    font-weight: 500;
}

.footer-links-modern li a.active {
    display: block;
}

.footer-links-modern li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-light);
}

.footer-links-modern li a:hover {
    color: #ffffff;
    padding-left: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-links-modern li a:hover::before {
    opacity: 1;
    left: 0.25rem;
}

.footer-contact-modern {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item-modern:last-child {
    border-bottom: none;
}

.contact-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
}

.contact-label.active {
    display: block;
}

.contact-item-modern a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-item-modern a:hover {
    color: #f0c8a0;
    transform: translateX(5px);
    text-shadow: 0 2px 6px rgba(240, 200, 160, 0.4);
}

.social-links-modern {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link-modern {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link-modern:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(123, 62, 33, 0.6);
}

.social-link-modern svg {
    width: 20px;
    height: 20px;
}

.footer-bottom-modern {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.footer-bottom-modern p {
    margin: 0;
}

.footer-bottom-modern .lang-en,
.footer-bottom-modern .lang-ar {
    display: none;
}

.footer-bottom-modern .lang-en.active,
.footer-bottom-modern .lang-ar.active {
    display: inline;
}

@media (max-width: 1024px) {
    .footer-content-modern {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-content-modern {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-modern {
        padding: 60px 0 25px;
    }
}

/* ============================================
   Language Sections
   ============================================ */

.lang-section {
    display: none;
}

.lang-section.active {
    display: block;
}

.lang-en,
.lang-ar {
    display: none;
}

.lang-en.active,
.lang-ar.active {
    display: block;
}

/* ============================================
   Animations & Interactions
   ============================================ */

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.service-card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(84, 21, 19, 0.15);
}

.service-card-modern:hover .service-image {
    transform: scale(1.1);
}

.btn-modern {
    position: relative;
    overflow: hidden;
}

.btn-modern .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Smooth page transitions */
body {
    transition: opacity 0.5s ease;
}

/* Enhanced AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-40px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(40px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

img.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced hover effects */
.nav-link {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Logo animation on scroll */
.navbar.scrolled .logo-image {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* Section reveal animation */
.mission-section,
.why-section,
.services-modern,
.cta-modern {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mission-section.visible,
.why-section.visible,
.services-modern.visible,
.cta-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Contact Form - Professional Styling
   ============================================ */

.contact-form-modern {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--primary-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(84, 21, 19, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-error {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info-wrapper {
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.05) 0%, rgba(123, 62, 33, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    height: fit-content;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-info-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Page Headers and Content Sections
   ============================================ */

.page-header {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.05) 0%, rgba(123, 62, 33, 0.05) 100%);
    margin-top: 70px;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.content-section {
    padding: 80px 0;
    background: var(--bg-primary-solid);
    position: relative;
    transform-style: preserve-3d;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-item {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(84, 21, 19, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0);
}

.service-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.service-item:hover {
    box-shadow: var(--shadow-3d);
    transform: translateY(-20px) rotateX(4deg) rotateY(-4deg) scale(1.02) translateZ(40px);
}

.service-item .service-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.service-item .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    max-width: 900px;
}

.service-title-large {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.service-description-large {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    color: var(--text-primary);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-section:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-hover);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

/* ============================================
   About Page - Modern Professional Styling
   ============================================ */

.page-header-modern {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 70px;
    overflow: hidden;
    color: white;
}

.page-header-modern[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-header-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(123, 62, 33, 0.3);
    border-radius: 30px;
    background: rgba(123, 62, 33, 0.1);
}

.page-header-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

.about-section-modern {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header-center {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label-modern {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    background: rgba(84, 21, 19, 0.05);
}

.section-title-large {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 2rem auto;
    border-radius: 2px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.mission-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(10px);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.mission-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(84, 21, 19, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    transform: scale(0);
    transform-origin: center;
}

.mission-card:hover::before {
    transform: scaleX(1);
}

.mission-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.mission-card:hover {
    transform: translateY(-20px) rotateX(3deg) rotateY(-3deg) scale(1.02);
    box-shadow: var(--shadow-3d);
}

.mission-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
}

.mission-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0.3;
    filter: blur(10px);
    transform: scale(0.8);
    transition: transform 0.6s ease;
    z-index: -1;
}

.mission-card:hover .mission-icon {
    transform: rotateY(15deg) rotateX(5deg) scale(1.15) translateZ(20px);
    box-shadow: 0 15px 35px rgba(84, 21, 19, 0.4), 0 5px 15px rgba(44, 17, 17, 0.3);
}

.mission-card:hover .mission-icon::before {
    transform: scale(1.2);
    opacity: 0.5;
}

.mission-icon svg {
    width: 35px;
    height: 35px;
    stroke-width: 2.5;
}

.mission-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.mission-card-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

.vision-section-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.02) 0%, rgba(123, 62, 33, 0.02) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.vision-section-modern[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

.vision-section-modern[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 248, 246, 0.88);
    z-index: 0;
}

.vision-section-modern[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

.vision-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.vision-text-content {
    max-width: 100%;
}

.vision-text-block {
    margin-top: 2rem;
}

.vision-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.vision-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.05) 0%, rgba(123, 62, 33, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.stat-item > * {
    position: relative;
    z-index: 1;
}

.stat-item:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.05) translateZ(30px);
    box-shadow: var(--shadow-3d);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-section-modern {
    padding: 100px 0;
    background: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    position: relative;
    transform-style: preserve-3d;
}

.why-section-modern[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

.why-section-modern[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 248, 246, 0.88);
    z-index: 0;
}

.why-section-modern[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

.why-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.why-main-content {
    max-width: 1000px;
    margin: 0 auto;
}

.why-intro-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.why-detail-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: center;
}

.why-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-feature-item {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(10px);
}

.why-feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(84, 21, 19, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0);
}

.why-feature-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.why-feature-item:hover {
    transform: translateY(-15px) rotateX(4deg) rotateY(-4deg) scale(1.05) translateZ(30px);
    box-shadow: var(--shadow-3d);
}

.why-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(84, 21, 19, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.why-feature-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0.3;
    filter: blur(8px);
    transform: scale(0.8);
    transition: transform 0.6s ease;
    z-index: -1;
}

.why-feature-item:hover .why-feature-icon {
    transform: rotateY(15deg) rotateX(5deg) scale(1.2) translateZ(20px);
    box-shadow: 0 12px 30px rgba(84, 21, 19, 0.35);
}

.why-feature-item:hover .why-feature-icon::before {
    transform: scale(1.2);
    opacity: 0.5;
}

.why-feature-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2.5;
    stroke: currentColor;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.why-feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.why-feature-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Responsive Design for About Page */
@media (max-width: 968px) {
    .vision-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .vision-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .why-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header-modern {
        padding: 140px 0 80px;
    }
    
    .page-header-title {
        font-size: 2.5rem;
    }
    
    .section-title-large {
        font-size: 2rem;
    }
    
    .vision-stats {
        grid-template-columns: 1fr;
    }
    
    .why-features {
        grid-template-columns: 1fr;
    }
    
    .mission-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ============================================
   Portfolio/Projects Page - Professional Styling
   ============================================ */

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-modern {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.projects-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card-modern {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    isolation: isolate;
}

.project-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.05) 0%, rgba(123, 62, 33, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card-modern:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(-5deg) scale(1.03) translateZ(50px);
    box-shadow: var(--shadow-3d);
}

.project-card-modern:hover .project-image-wrapper {
    overflow: hidden;
}

.project-card-modern:hover::before {
    opacity: 1;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.1) 0%, rgba(123, 62, 33, 0.1) 100%);
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    flex-shrink: 0;
    contain: layout style paint;
}

.project-image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    border-radius: 20px 20px 0 0;
    will-change: transform;
    opacity: 1; /* Visible by default */
}

.project-card-modern:hover .project-image {
    transform: scale(1.1) translateZ(30px);
}

.project-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(84, 21, 19, 0.95) 0%, rgba(123, 62, 33, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px 20px 0 0;
}

.project-card-modern:hover .project-overlay-modern {
    opacity: 1;
}

.project-overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.project-title-overlay {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.project-category-overlay {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link-modern {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--bg-card);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.project-link-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.project-link-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05) translateZ(10px);
    box-shadow: 0 8px 20px rgba(84, 21, 19, 0.3);
}

.project-link-modern:hover::before {
    left: 100%;
}

.project-content-modern {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.project-badge.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.project-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.project-description-modern {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Enhanced 3D Animations for Construction Theme */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes constructionLift {
    0% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
    }
    100% {
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes depthPulse {
    0%, 100% {
        transform: translateZ(0px) scale(1);
    }
    50% {
        transform: translateZ(20px) scale(1.02);
    }
}

.project-card-modern[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.project-card-modern[data-aos="fade-up"].aos-animate {
    opacity: 1;
}

/* Ensure Text Contrast on Brand Backgrounds */
.service-title-modern,
.mission-card-title,
.why-feature-title,
.project-title-modern {
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.service-desc-modern,
.mission-card-text,
.why-feature-text,
.project-description-modern {
    color: var(--text-secondary);
}

/* Image Loading Animation - Images with src should be visible */
.project-image[src]:not([data-src]) {
    opacity: 1 !important;
    display: block;
}

/* Only hide images that are truly lazy loading (have data-src) */
.project-image[data-src] {
    opacity: 0;
}

.project-image.loaded {
    opacity: 1 !important;
}

/* Ensure images are properly displayed */
.project-image-wrapper .project-image {
    min-height: 100%;
    width: 100%;
    height: 100%;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Note: project-card-modern::before already defined earlier with 3D effects */

.project-card-modern:hover::before {
    opacity: 0.05;
}

/* Responsive Portfolio Grid */
@media (max-width: 768px) {
    .projects-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image-wrapper {
        height: 250px;
        border-radius: 20px 20px 0 0;
    }
    
    .project-image {
        border-radius: 20px 20px 0 0;
    }
    
    .project-overlay-modern {
        border-radius: 20px 20px 0 0;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .project-title-modern {
        font-size: 1.3rem;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Mobile performance: disable fixed backgrounds (reduces jank on iOS/Android) */
    body,
    .hero-modern[style*="background-image"],
    .mission-section[style*="background-image"],
    .why-section[style*="background-image"],
    .page-header-modern[style*="background-image"] {
        background-attachment: scroll !important;
    }
    
    /* Logo adjustments for mobile */
    .logo-text-wrapper {
        display: flex !important; /* Show logo on mobile */
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-text-primary {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .logo-text-arabic {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .logo-text-subtitle {
        font-size: 0.65rem;
        line-height: 1.2;
        margin-top: 0.1rem;
    }
    
    .logo-graphic {
        height: 40px;
        width: 40px;
        margin-right: 0.5rem;
    }
    
    /* Navigation container - safe area for notched devices */
    .nav-container {
        padding: 1rem 1.25rem;
        padding-left: max(1.25rem, var(--safe-area-left));
        padding-right: max(1.25rem, var(--safe-area-right));
    }
    
    /* Ensure first section has top safe area */
    .hero-modern,
    .page-header-modern {
        padding-top: max(100px, calc(70px + var(--safe-area-top)));
    }
    
    /* Mobile menu styling */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        width: 100%;
        max-width: 100vw;
        padding: 1.5rem 1.25rem;
        box-shadow: var(--shadow-hover);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        display: none !important;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        left: 0;
        display: flex !important;
    }
    
    /* Ensure inactive menu is always hidden on mobile */
    .nav-menu:not(.active) {
        display: none !important;
        left: -100%;
        opacity: 0;
    }
    
    /* Ensure only active menu shows on mobile */
    .nav-menu-en.active,
    .nav-menu-ar.active {
        display: flex !important;
        left: 0;
        opacity: 1;
    }
    
    .nav-menu-en:not(.active),
    .nav-menu-ar:not(.active) {
        display: none !important;
        left: -100%;
        opacity: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        width: 100%;
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        min-height: 44px; /* Minimum touch target */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Language switcher on mobile */
    .lang-switcher {
        margin-left: 0.5rem;
    }
    
    .lang-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Dropdown menu on mobile */
    .nav-dropdown {
        position: relative;
    }
    
    .dropdown-arrow {
        font-size: 0.7rem;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
        min-width: 20px;
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        padding-left: 1.25rem;
        padding-top: 0.5rem;
        background: rgba(84, 21, 19, 0.02);
        border-radius: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        padding-bottom: 0.5rem;
    }
    
    .dropdown-menu li {
        padding: 0.5rem 0;
        border-bottom: none;
    }
    
    .dropdown-menu a {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Hamburger menu */
    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 24px;
        height: 2.5px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero section */
    .hero-modern {
        padding: 100px 1.25rem 60px;
        min-height: auto;
    }
    
    .hero-title-large {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Sections */
    .mission-section,
    .why-section,
    .services-modern,
    .cta-modern,
    .content-section {
        padding: 60px 1.25rem;
    }
    
    .section-title-modern {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card-modern {
        padding: 0;
    }
    
    .service-card-modern .service-image-wrapper {
        height: 240px;
    }
    
    .service-content-wrapper {
        padding: 1.5rem;
    }
    
    .service-title-modern {
        font-size: 1.25rem;
    }
    
    .service-desc-modern {
        font-size: 0.9rem;
    }
    
    /* Forms on mobile */
    .contact-form-modern {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        min-height: 44px; /* Minimum touch target */
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    .form-textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .btn-modern {
        min-height: 48px;
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Footer */
    .footer-content-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem;
    }
    
    .footer-modern {
        padding: 60px 0 25px;
    }
    
    /* Page header */
    .page-header {
        padding: 80px 1.25rem 40px;
    }
    
    .page-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    /* Service items */
    .service-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-title-large {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-description-large {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Project cards */
    .projects-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card-modern {
        margin-bottom: 1.5rem;
    }
    
    /* Mission cards */
    .mission-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Why features */
    .why-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* CTA section */
    .cta-content-modern {
        padding: 2rem 1.25rem;
    }
    
    .cta-title-modern {
        font-size: 2rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem 1rem;
    }
    
    .logo-text-primary {
        font-size: 1rem;
    }
    
    .logo-text-arabic {
        font-size: 0.85rem;
    }
    
    .logo-text-subtitle {
        font-size: 0.6rem;
    }
    
    .logo-graphic {
        height: 35px;
        width: 35px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-modern {
        padding: 90px 1rem 50px;
    }
    
    .hero-title-large {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle-modern {
        font-size: 1rem;
    }
    
    .section-title-modern {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .mission-section,
    .why-section,
    .services-modern,
    .cta-modern,
    .content-section {
        padding: 50px 1rem;
    }
    
    .service-card-modern {
        padding: 0;
    }
    
    .service-card-modern .service-content-wrapper {
        padding: 1.25rem;
    }
    
    .service-item {
        padding: 1.25rem;
    }
    
    .service-item .service-image-wrapper {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .service-card-modern .service-image-wrapper {
        height: 220px;
    }
    
    .service-content-wrapper {
        padding: 1.25rem;
    }
    
    .contact-form-modern {
        padding: 1.25rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.875rem;
    }
    
    .btn-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .footer-modern {
        padding: 50px 0 20px;
    }
    
    .footer-content-modern {
        padding: 0 1rem;
    }
}

/* RTL Support */
body[dir="rtl"] .nav-menu {
    direction: rtl;
}

body[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

body[dir="rtl"] .dropdown-arrow {
    margin-left: 0;
    margin-right: 0.25rem;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    body[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
    }
    
    body[dir="rtl"] .nav-menu.active {
        right: 0;
        left: auto;
    }
    
    body[dir="rtl"] .nav-menu:not(.active) {
        right: -100%;
        left: auto;
    }
    
    body[dir="rtl"] .dropdown-menu {
        padding-left: 0;
        padding-right: 1.25rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card-modern:hover,
    .project-card-modern:hover,
    .btn-modern:hover {
        transform: none;
    }
    
    /* Ensure all interactive elements are tappable */
    .nav-link,
    .btn-modern,
    .lang-btn,
    .hamburger,
    .dropdown-arrow {
        -webkit-tap-highlight-color: rgba(84, 21, 19, 0.1);
        tap-highlight-color: rgba(84, 21, 19, 0.1);
    }
    
    /* Improve touch feedback */
    .btn-modern:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        opacity: 0.7;
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}
