/* Vantage Point - Responsive Styles */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100%;
}

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-luxury {
        align-items: flex-start;
        padding-bottom: 60px;
        padding-top: 140px;
    }

    .hero-content {
        margin-top: 30px;
    }
}

/* Fix for desktop screens below 1344x756 */
@media (max-width: 1344px) and (max-height: 756px) {
    .hero-luxury {
        align-items: flex-start;
        padding-top: 160px;
        padding-bottom: 60px;
    }

    .hero-content {
        margin-top: 40px;
    }
}

/* Fix for smaller desktop/tablet screens with constrained height (1280x720 and below) */
@media (max-width: 1280px) and (max-height: 800px) {
    .hero-luxury {
        align-items: flex-start;
        padding-top: 150px;
        padding-bottom: 40px;
    }

    .hero-content {
        margin-top: 30px;
    }
}

/* Additional fix for very constrained screens (around 800x600) */
@media (max-width: 1024px) and (max-height: 720px) {
    .hero-luxury {
        align-items: flex-start;
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

    .hero-stats {
        margin-top: 30px;
    }

    .value-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .products-luxury-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Screens (1920px+) */
@media (min-width: 1920px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 40px;
        right: 40px;
    }

    .whatsapp-float svg {
        width: 45px;
        height: 45px;
    }

    body.rtl .whatsapp-float {
        right: auto;
        left: 40px;
    }
}

/* Desktop (1024px - 1919px) - Default sizes from styles.css apply */

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    /* WhatsApp Button - Tablet */
    .whatsapp-float {
        width: 40px;
        height: 40px;
        bottom: 25px;
        right: 25px;
    }

    .whatsapp-float svg {
        width: 36px;
        height: 36px;
    }

    body.rtl .whatsapp-float {
        right: auto;
        left: 25px;
    }

    /* Language Bar Responsive */
    .luxury-nav {
        top: 36px !important;
    }

    .luxury-nav.lang-bar-hidden {
        top: 0 !important;
    }

    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    /* Handwriting Mobile Adjustments - Title Only */
    .hero-handwriting .handwriting-text {
        font-size: clamp(2.2rem, 8vw, 4rem);
        letter-spacing: 1px;
    }

    /* About Hero Mobile */
    .about-hero {
        padding: 140px 0 60px;
        background-attachment: scroll;
    }

    /* Core Values Hero Mobile */
    .core-values-hero {
        padding: 140px 0 60px;
        background-attachment: scroll;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 140px 0 60px;
        background-attachment: scroll;
    }

    /* Footer Mobile */
    .luxury-footer {
        background-attachment: scroll;
    }

    /* Value Proposition Mobile */
    .value-proposition {
        background-attachment: scroll;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 140px 20px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: var(--z-fixed);
        gap: 0;
    }

    .nav-menu a {
        padding: 20px 25px !important;
        font-size: 16px !important;
        border-bottom: 1px solid rgba(201, 169, 97, 0.1);
        width: 100%;
        display: block;
        text-align: center;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a:hover {
        background: rgba(201, 169, 97, 0.08);
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown > a {
        display: flex !important;
        justify-content: center;
        align-items: center !important;
        position: relative;
    }

    body.rtl .nav-dropdown > a {
        justify-content: center !important;
        align-items: center !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .nav-menu .nav-dropdown > a::after {
        content: '▼' !important;
        font-size: 10px !important;
        transition: all 0.3s ease !important;
        display: inline-block !important;
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 60px !important;
        height: 100% !important;
        transform: none !important;
        color: var(--grey-dark) !important;
        font-weight: normal !important;
        opacity: 0.7 !important;
        visibility: visible !important;
        z-index: 10 !important;
        background: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    .nav-menu .nav-dropdown > a:hover::after {
        opacity: 1 !important;
    }

    .nav-menu .nav-dropdown.active > a::after {
        transform: rotate(180deg) !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(201, 169, 97, 0.05);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 600px;
    }

    .dropdown-menu a {
        padding: 15px 20px 15px 45px !important;
        font-size: 14px !important;
        border-bottom: 1px solid rgba(201, 169, 97, 0.08);
        border-left: none !important;
        min-height: 50px;
    }

    .dropdown-menu a:hover {
        padding-left: 50px !important;
        background: rgba(201, 169, 97, 0.12);
    }

    .nav-menu.active {
        right: 0;
    }
    
    body.rtl .nav-menu {
        right: auto;
        left: -100%;
        padding: 140px 20px 30px;
        flex-direction: column;
    }

    body.rtl .nav-menu.active {
        left: 0;
    }

    body.rtl .nav-menu li {
        margin: 0;
    }

    body.rtl .nav-menu a {
        font-family: var(--font-arabic-luxury) !important;
        font-size: 18px !important;
        font-weight: 700;
        padding: 20px 25px !important;
        border-bottom: 1px solid rgba(201, 169, 97, 0.1);
        text-align: center;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 60px;
        height: auto;
        letter-spacing: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        line-height: 1.4;
    }

    body.rtl .nav-menu a:hover {
        color: var(--primary-gold);
        background: rgba(201, 169, 97, 0.08);
        text-shadow: 0 1px 3px rgba(201, 169, 97, 0.2);
    }

    body.rtl .nav-menu a::after {
        display: none;
    }

    /* RTL Mobile Dropdown */
    body.rtl .nav-menu .nav-dropdown > a::after {
        right: auto !important;
        left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.rtl .dropdown-menu a {
        padding: 15px 20px !important;
        text-align: center;
        border-right: none !important;
    }

    body.rtl .dropdown-menu a:hover {
        background: rgba(201, 169, 97, 0.12);
    }

    /* Arabic Mobile Navigation Enhancements */
    body.rtl .nav-wrapper {
        flex-direction: row-reverse;
    }

    body.rtl .logo {
        flex-direction: row;
        gap: 8px;
        margin-left: auto;
        margin-right: 10px;
        order: 2;
    }

    body.rtl .nav-toggle {
        order: 1;
        margin-left: 10px;
        margin-right: 0;
    }

    body.rtl .logo-image {
        width: 35px;
        height: 35px;
    }

    body.rtl .logo-text {
        font-size: 18px;
        letter-spacing: 1px;
    }

    body.rtl .nav-wrapper {
        justify-content: flex-start;
    }

    /* Arabic Language Button Spacing */
    body.rtl .lang-switch {
        flex-direction: row-reverse;
        gap: 10px;
    }

    body.rtl .lang-btn {
        font-family: var(--font-arabic);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Hero */
    .hero-luxury {
        min-height: 100vh;
        height: 100vh;
        align-items: flex-start;
        padding-bottom: 8vh;
        padding-top: 140px;
    }

    .hero-content {
        margin-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 30px;
        margin-top: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Sections */
    .value-proposition,
    .products-showcase,
    .client-industries,
    .testimonials {
        padding: 60px 0;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    /* WhatsApp Button - Mobile */
    .whatsapp-float {
        width: 38px;
        height: 38px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 34px;
        height: 34px;
    }

    body.rtl .whatsapp-float {
        right: auto;
        left: 20px;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Language Bar */
    .lang-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    /* Logo */
    .logo {
        margin-left: 10px;
        gap: 12px;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-sub {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .nav-toggle {
        padding: 8px;
        margin-right: 5px;
    }

    .nav-toggle span {
        width: 22px;
    }
    
    /* Hero */
    .hero-luxury {
        min-height: 100vh;
        height: auto;
        align-items: flex-start;
        padding-top: 33vh;
        padding-bottom: 10vh;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

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

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
    }

    .btn-luxury-primary,
    .btn-luxury-outline,
    .btn-luxury-white,
    .btn-luxury-outline-white {
        width: 100%;
        padding: 12px 30px;
        font-size: 13px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        position: static;
        transform: none;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Products */
    .products-luxury-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
    
    /* Industries */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .industry-item {
        padding: 20px 15px;
    }
    
    .industry-icon {
        font-size: 2rem;
    }
    
    .industry-item h3 {
        font-size: 1rem;
    }
    
    .industry-item p {
        font-size: 0.85rem;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
    }
    
    /* Enhanced Modal Responsive */
    .modal-content {
        padding: 35px 25px;
        width: 95%;
        max-width: 90vw;
        margin: 20px;
        border-radius: 16px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }

    .lead-form {
        gap: 16px;
    }

    .lead-form input,
    .lead-form select,
    .lead-form textarea {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .lead-form button {
        padding: 16px 25px;
        font-size: 15px;
        border-radius: 10px;
    }

    .lead-form textarea {
        min-height: 100px;
    }
    
    /* Footer */
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
}

/* Small Mobile (320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .language-bar,
    .nav-toggle,
    .hero-stats,
    .modal,
    .social-links,
    .cta-luxury {
        display: none !important;
    }
    
    .luxury-nav {
        position: relative;
        box-shadow: none;
    }
    
    .hero-luxury {
        height: auto;
        min-height: auto;
        background: white;
        color: black;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .btn-luxury-primary,
    .btn-luxury-outline {
        display: none;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-text,
    .hero-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Hover Effects - Disable on Touch Devices */
@media (hover: hover) and (pointer: fine) {
    .value-card:hover,
    .product-card-luxury:hover,
    .industry-item:hover {
        transform: translateY(-10px);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support - Disabled to maintain consistent appearance */
/* The website will always use light theme colors regardless of browser preference */

/* About Page Specific Styles */
.about-hero-title {
    color: var(--primary-gold);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    position: relative;
    z-index: var(--z-sticky);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.about-hero-subtitle {
    color: var(--light-gold);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    position: relative;
    z-index: var(--z-sticky);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

body.rtl .about-hero-title {
    font-family: var(--font-arabic-display);
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--pure-white) 50%, var(--light-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.rtl .about-hero-subtitle {
    font-family: var(--font-arabic-luxury);
    font-weight: 500;
    color: var(--light-gold);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(201, 169, 97, 0.3);
}

/* Company Story Section */
.company-story {
    padding: 80px 0;
    background: var(--soft-white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
}

.story-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    color: var(--deep-black);
}

.story-text {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--grey-dark);
}

.story-image-container {
    position: relative;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.years-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.years-badge:hover {
    transform: scale(1.05);
}

.years-number {
    color: var(--primary-gold);
    font-size: clamp(3rem, 6vw, 4rem);
    margin: 0 0 10px 0;
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.years-text {
    color: var(--pure-white);
    margin: 0;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Mission & Vision Section */
.mission-vision {
    padding: 80px 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    overflow: hidden;
}

.mission-card,
.vision-card {
    text-align: center;
    padding: 40px;
    background: var(--soft-white);
    border-left: 4px solid var(--primary-gold);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.mission-vision-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 20px;
    color: var(--deep-black);
}

.mission-vision-text {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.8;
    color: var(--grey-dark);
}

/* Core Values Section */
.core-values-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 50px;
    color: var(--pure-white);
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.value-item {
    text-align: center;
    padding: 25px 15px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.value-icon i {
    color: var(--deep-black);
    font-size: 1.8rem;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
    background: var(--light-gold);
}

.value-title {
    color: var(--pure-white);
    margin-bottom: 12px;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 600;
}

.value-description {
    color: var(--light-gold);
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
    line-height: 1.5;
}

/* Leadership Section */
.leadership {
    padding: 80px 0;
}

.leadership-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--deep-black);
}

.leadership-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--grey-medium);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    overflow: hidden;
}

.leadership-member {
    text-align: center;
    transition: transform 0.3s ease;
}

.leadership-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: var(--grey-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.leadership-member:hover .member-photo {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.member-title {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: 10px;
    color: var(--deep-black);
}

.member-description {
    color: var(--grey-medium);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    /* Ensure container doesn't overflow */
    .container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .story-image-container {
        display: none;
    }

    .story-image {
        width: 100%;
        height: 250px;
    }

    .years-badge {
        position: relative;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 20px auto 0;
        max-width: 200px;
        width: fit-content;
        padding: 20px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        width: 100%;
        overflow: hidden;
    }

    .value-item {
        padding: 25px 15px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }

    .value-icon i {
        font-size: 1.6rem;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .company-story,
    .mission-vision,
    .leadership {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    /* Container adjustments for very small screens */
    .container {
        padding: 0 10px;
        max-width: 100vw;
    }

    .story-image {
        height: 200px;
    }

    .years-badge {
        padding: 15px;
        max-width: 180px;
        font-size: 0.9rem;
    }

    .years-number {
        font-size: 2rem;
    }

    .mission-card,
    .vision-card {
        padding: 25px 15px;
        margin: 0;
    }

    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        min-width: 0;
    }

    .value-item {
        padding: 25px 15px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
    }

    .value-icon i {
        font-size: 1.5rem;
    }

    .member-photo {
        width: 150px;
        height: 150px;
    }

    /* Enhanced Modal for Small Screens */
    .modal-content {
        padding: 25px 20px;
        width: 98%;
        max-width: 95vw;
        margin: 10px;
        border-radius: 12px;
    }

    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }

    .close-modal {
        top: 12px;
        right: 15px;
        font-size: 22px;
        width: 32px;
        height: 32px;
    }

    .lead-form {
        gap: 14px;
    }

    .lead-form input,
    .lead-form select,
    .lead-form textarea {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .lead-form button {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 8px;
        letter-spacing: 0.5px;
    }

    .lead-form textarea {
        min-height: 80px;
    }

    .company-story,
    .mission-vision,
    .leadership {
        padding: 40px 0;
    }

    /* Ensure all sections don't overflow */
    .story-grid,
    .mission-vision-grid,
    .core-values-grid,
    .leadership-grid {
        width: 100%;
        overflow: hidden;
        min-width: 0;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
        max-width: 100vw;
    }

    .core-values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .value-item {
        padding: 20px 10px;
    }

    .years-badge {
        padding: 12px;
        max-width: 160px;
    }

    .mission-card,
    .vision-card {
        padding: 20px 12px;
    }
}

/* RTL Specific Adjustments */
body.rtl {
    text-align: right;
}

body.rtl .hero-content,
body.rtl .section-header,
body.rtl .cta-content {
    text-align: center;
}

body.rtl .mission-card,
body.rtl .vision-card {
    border-left: none;
    border-right: 4px solid var(--primary-gold);
}

body.rtl .years-badge {
    left: auto;
    right: 20px;
}

@media (max-width: 768px) {
    body.rtl .years-badge {
        right: 0;
        left: 0;
        margin: 20px auto 0;
    }
}

/* Desktop RTL nav should stay horizontal - this rule removed */

body.rtl .testimonial-card {
    border-left: none;
    border-right: 4px solid var(--primary-gold);
}

body.rtl .footer-content {
    text-align: right;
}

@media (max-width: 768px) {
    body.rtl .footer-content {
        text-align: center;
    }
}