/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    --primary-color: #DC2626; /* Red */
    --primary-hover: #b91c1c;
    --dark-color: #111827;
    --darker-color: #030712;
    --gray-color: #4b5563;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* RTL Support via variable */
[dir="rtl"] {
    --dir-multiplier: -1;
    text-align: right;
}
[dir="rtl"] .nav-list { flex-direction: row-reverse; }


/* =========================================
   RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--light-gray);
}

/* Typography elements */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-color);
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
    border-radius: 2px;
}

.title-underline.center {
    margin: 0 auto 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

.full-width {
    width: 100%;
}

.ms-2 { margin-left: 8px; }
[dir="rtl"] .ms-2 { margin-left: 0; margin-right: 8px; }

/* =========================================
   HEADER & NAVBAR
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--white);
}

.header.sticky .logo {
    color: var(--dark-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.header.sticky .nav-link {
    color: var(--dark-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header.sticky .nav-link:hover, .header.sticky .nav-link.active {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 3px;
    border-radius: 4px;
}

.header.sticky .lang-switcher {
    background: #f1f1f1;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
}

.header.sticky .lang-btn {
    color: var(--gray-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.header.sticky .lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.header.sticky .nav-toggle,
.nav-menu.show + .nav-toggle {
    color: var(--dark-color);
}


/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1558981806-ec527fa84c39?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    /* Adding attachment fixed for parallax-like effect */
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(17,24,39,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.6s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    opacity: 0;
    animation: fadeUp 1s ease 1s forwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.mouse::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    transform: scale(0);
    transition: var(--transition);
    z-index: -1;
}

.scroll-down:hover .mouse {
    border-color: var(--primary-color);
}

.scroll-down:hover .mouse::before {
    transform: scale(1);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}


/* =========================================
   ABOUT SECTION
========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-data .section-title {
    margin-bottom: 5px;
}

.about-description {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

[dir="rtl"] .feature-item {
    align-items: flex-end; /* right align in RTL */
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-item span {
    font-weight: 600;
    color: var(--dark-color);
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}


/* =========================================
   PRODUCTS SECTION
========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px -15px rgba(220, 38, 38, 0.15);
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
.product-badg{
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgb(86, 75, 75);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

[dir="rtl"] .product-badge {
    right: auto;
    left: 15px;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

[dir="rtl"] .product-price {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.currency {
    font-weight: 600;
    color: var(--primary-color);
}

.amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.period {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.product-features {
    margin-bottom: 25px;
}

.product-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features i {
    color: var(--primary-color);
}


/* =========================================
   GALLERY SECTION (SWIPER)
========================================= */
.gallery-swiper {
    width: 100%;
    padding-bottom: 50px; /* Space for pagination */
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(220, 38, 38, 0.8), rgba(220, 38, 38, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Swiper Controls Customization */
.swiper-pagination-bullet {
    background: var(--gray-color);
    width: 10px;
    height: 10px;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 5px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 900;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}


/* =========================================
   CONTACT SECTION
========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 0;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    background: transparent;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-color);
}

[dir="rtl"] .form-control {
    padding: 15px 0 15px 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control::placeholder {
    color: transparent; /* visually hidden but required for :placeholder-shown */
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--gray-color);
    transition: var(--transition);
    pointer-events: none;
}

[dir="rtl"] .form-group label {
    left: auto;
    right: 0;
}

.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

textarea.form-control {
    resize: none;
}


/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: var(--darker-color);
    color: #9ca3af;
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-desc {
    margin-bottom: 25px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact-info i {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #000000;
    padding: 20px 0;
    text-align: center;
}


/* =========================================
   FLOATING WHATSAPP
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.left {
    transform: translateX(-50px);
}

.reveal.right {
    transform: translateX(50px);
}

/* RTL Initial States */
[dir="rtl"] .reveal.left {
    transform: translateX(50px);
}

[dir="rtl"] .reveal.right {
    transform: translateX(-50px);
}

/* Active State (Must be after initial states) */
.reveal.active,
[dir="rtl"] .reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }


/* =========================================
   MEDIA QUERIES
========================================= */
@media screen and (max-width: 992px) {
    .about-container, .contact-container, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 999;
    }
    
    .nav-menu.show {
        right: 0;
    }
    
    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    [dir="rtl"] .nav-menu.show {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .nav-link {
        color: var(--dark-color);
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
    }
    
    .header.sticky .nav-link {
        color: var(--dark-color);
    }
    
    .lang-switcher {
        margin-top: 20px;
        background: var(--light-gray);
    }
    
    .lang-btn {
        color: var(--dark-color);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
}
