* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C41E3A;
    --medium-red: #DC143C;
    --light-red: #E94B3C;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    --gray-dark: #666666;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    height: 50px;
    padding: 0 16px;
    border-radius: 999px;
    background-color: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    z-index: 1100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.whatsapp-float i {
    font-size: 27px;
    line-height: 1;
}

.whatsapp-float__text {
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.whatsapp-float:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
}

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

/* Navbar Styles */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 2px;
    margin-bottom: 0;
}

.slogan {
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-style: italic;
    margin-top: 2px;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--primary-red);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--primary-red);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.language-switcher select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    background-color: var(--white);
    color: var(--black);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.language-switcher select option {
    font-size: 1.05rem;
}

.language-switcher select:hover {
    border-color: var(--primary-red);
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Hero Section */ 
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1.2s ease;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--white);
    color: var(--primary-red);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    animation: fadeInUp 1.4s ease;
    margin-top: 2.5rem;
}

.cta-button:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto 0;
    animation: fadeInUp 1.2s ease;
}

.slider-container {
    overflow: hidden;
    border-radius: 15px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Fix slider in RTL mode (Arabic) */
html[dir="rtl"] .slider-track {
    direction: ltr;
}

.slide {
    min-width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: scale-down;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-red);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Flip arrow positions in RTL mode (Arabic) */
html[dir="rtl"] .slider-btn.prev {
    left: auto;
    right: 20px;
}

html[dir="rtl"] .slider-btn.next {
    right: auto;
    left: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

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

/* Section Styles */
.content-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin: 1rem auto 0;
}

/* Companies Grid */
.companies-preview {
    background-color: var(--gray-light);
    padding: 4rem 0;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.company-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.2);
}

.company-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-icon img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.company-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

.company-card h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.company-card p {
    color: var(--gray-dark);
}

/* Quality Policy Section */
.quality-policy {
    padding: 4rem 0;
    text-align: center;
}

.policy-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* Buttons */
.secondary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.center-button {
    text-align: center;
    margin-top: 2rem;
}

/* About Content */
.about-content h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.quality-box {
    background-color: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-red);
    margin-top: 2rem;
}

.quality-box h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.quality-box ul {
    list-style: none;
    padding-left: 0;
}

.quality-box ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-dark);
}

.quality-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* Companies Detailed */
.companies-detailed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.company-detail {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.company-detail:hover {
    box-shadow: 0 5px 25px rgba(196, 30, 58, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.company-icon-large {
    font-size: 3.5rem;
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-icon-large img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.company-logo-large {
    font-size: 3.5rem;
    height: 100px;
    width: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-large img {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.company-header h2 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin: 0;
}

.year {
    background-color: var(--gray-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.company-detail p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.company-detail ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.company-detail ul li {
    padding: 0.5rem 0;
    position: relative;
    color: var(--gray-dark);
}

.company-detail ul li::before {
    content: '•';
    position: absolute;
    left: -1.5rem;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.5rem;
}

.company-link {
    display: inline-block;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.company-link:hover {
    color: var(--light-red);
    text-decoration: underline;
}

/* Activities Content */
.activities-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.activity-category {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.activity-category h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.activity-item {
    margin-bottom: 2rem;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item h3 {
    color: var(--black);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.activity-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: var(--black);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-item p {
    color: var(--gray-dark);
    line-height: 1.8;
}

.company-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.link-item {
    padding: 1rem;
    background-color: var(--gray-light);
    border-radius: 8px;
    transition: var(--transition);
}

.link-item:hover {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-item h4 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

.link-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.link-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--black);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.submit-button {
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .navbar .container {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .language-switcher {
        margin-top: 2rem;
        width: 100%;
    }

    .language-switcher select {
        width: 100%;
    }

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

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

    .slide {
        height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .logo-image {
        width: 75px;
        height: 75px;
    }

    .logo-text h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 1.53rem;
    }

    .slogan {
        font-size: 0.72rem;
    }

    .language-switcher select {
        font-size: 1.05rem;
        padding: 0.65rem 1rem;
    }

    .language-switcher select option {
        font-size: 1.1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .slide {
        height: 250px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .page-header {
        padding: 3rem 0;
    }

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

    .content-section {
        padding: 3rem 0;
    }
}

/* Country Code Selector */
.country-code-selector {
    position: relative;
    width: 150px;
}

.country-code-display {
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: var(--transition);
    user-select: none;
}

.country-code-display:hover {
    border-color: var(--primary-red);
}

.country-code-display.active {
    border-color: var(--primary-red);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--gray-dark);
    transition: var(--transition);
}

.country-code-display.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-code-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: var(--white);
    border: 2px solid var(--primary-red);
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.country-code-dropdown.active {
    display: block;
}

.country-search {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-bottom: 2px solid var(--gray-medium);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.country-search:focus {
    border-bottom-color: var(--primary-red);
}

.country-list {
    max-height: 250px;
    overflow-y: auto;
}

.country-option {
    padding: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-option:hover {
    background-color: var(--gray-light);
}

.country-option.selected {
    background-color: var(--light-red);
    color: var(--white);
}

/* Brands grid - 3 columns on desktop */
@media (min-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 100% !important;
    }
}
