/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-blue: #003366;
    --gray: #7A7A7A;
    --white: #FFFFFF;
    --gold: #D4AF37;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 25%, #f0f4f8 50%, #e8ecf1 75%, #f5f7fa 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    direction: rtl;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 51, 102, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(122, 122, 122, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 51, 102, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body[dir="ltr"] {
    direction: ltr;
}

/* إزالة letter-spacing في اللغة العربية */
body[dir="rtl"] * {
    letter-spacing: 0 !important;
}

body[dir="rtl"] {
    letter-spacing: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    background-color: var(--navy-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    flex: 0 0 auto;
}

/* LTR Support - إعادة الشعار لموقعه الأصلي في الإنجليزية */
body[dir="ltr"] .logo-section {
    order: 1;
    position: static;
    left: auto;
    transform: none;
}

body[dir="rtl"] .logo-section {
    order: 1;
    position: static;
    left: auto;
    transform: none;
}

.logo-link {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.logo-link:hover::before {
    left: 100%;
}

.logo-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(255, 255, 255, 0.15) inset;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.company-logo {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: block;
}

.company-logo:hover {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    min-width: 200px;
    text-align: center;
}

.logo-text {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
   
}

.logo-subtitle {
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.mobile-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--white);
    color: var(--navy-blue);
}

.btn-store {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--gray) 100%);
    border: 2px solid var(--navy-blue);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 12px rgba(0, 51, 102, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-store::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-store:hover::before {
    width: 300px;
    height: 300px;
}

.btn-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.5);
    background: linear-gradient(135deg, var(--gray) 0%, var(--navy-blue) 100%);
}

.btn-store:active {
    transform: translateY(-1px);
}

.lang-toggle {
    background-color: var(--white);
    color: var(--navy-blue);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background-color: var(--light-gray);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu-close {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1003;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: auto;
}

.menu-close:hover {
    background: var(--white);
    color: var(--navy-blue);
    transform: scale(1.1);
}

.menu-close span {
    display: block;
    line-height: 1;
    pointer-events: none;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    z-index: 1;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.75) 0%, rgba(0, 51, 102, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
    animation: fadeInUp 1s ease-out;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(122, 122, 122, 0.9) 100%);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;

    border-radius: 50px;
    margin-bottom: 25px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
    animation: slideDown 0.8s ease-out 0.3s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-title-line {
    display: block;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
  
}

.hero-title-accent {
    display: block;
    background: linear-gradient(105deg, #ffffff 0%, var(--gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-size: 0.85em;
  
    font-weight: 700;
}

.hero-subtitle {
    font-size: 26px;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.7s both;
    color: rgba(255, 255, 255, 0.95);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 51, 102, 0.6);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
  
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.3);
}

.btn-secondary {
    background-color: var(--gray);
    color: var(--white);
    border: 2px solid var(--gray);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    border-color: var(--navy-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(122, 122, 122, 0.3);
}

/* Product Categories */
.product-categories {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
}

.product-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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(0,51,102,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

/* Modern Masonry Layout for Categories */
.categories-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 120px);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.category-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid transparent;
}

.category-card.large-card {
    grid-column: 1 / 7;
    grid-row: 1 / 5;
}

.category-card.medium-card {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
}

.category-card.small-card {
    grid-column: 7 / 10;
    grid-row: 3 / 5;
}

.category-card.wide-card {
    grid-column: 10 / 13;
    grid-row: 3 / 5;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.3);
    border-color: var(--navy-blue);
    z-index: 10;
}

.category-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.25);
    border-color: rgba(0, 51, 102, 0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--gray) 100%);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.4) 0%, rgba(0, 51, 102, 0.8) 100%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.8s ease;
    z-index: 2;
}

.category-card:hover::before {
    transform: translateX(200%) skewX(-15deg);
}

.category-card:hover .category-img {
    transform: scale(1.15);
}

.category-card:hover .category-overlay {
    opacity: 0.4;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.category-card:hover .category-content {
    transform: translateY(0);
}

.category-title {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.category-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.1s;
}

.category-card:hover .category-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Why Section */
.why-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.why-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-blue) 0%, var(--gray) 100%);
    border-radius: 2px;
}

/* Asymmetric Grid for Features */
.features-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.feature-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid transparent;
}

.feature-item.feature-large {
    grid-column: 1 / 7;
    grid-row: 1 / 4;
}

.feature-item.feature-medium {
    grid-column: 7 / 13;
}

.feature-item.feature-medium:nth-of-type(2) {
    grid-row: 1 / 2;
}

.feature-item.feature-medium:nth-of-type(4) {
    grid-row: 3 / 4;
}

.feature-item.feature-small {
    grid-column: 7 / 13;
    grid-row: 2 / 3;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.3);
    border-color: var(--navy-blue);
    z-index: 10;
}

.feature-item {
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--navy-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    z-index: 4;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-item:hover .feature-badge {
    transform: scale(1);
}

.feature-icon-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--navy-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    z-index: 4;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
    transform: scale(0) rotate(-180deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-item:hover .feature-icon-badge {
    transform: scale(1) rotate(0deg);
}

.feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 3;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.feature-item:hover .feature-content {
    transform: translateY(0);
}

.feature-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 10px 0 0 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.1s;
}

.feature-item:hover .feature-desc {
    opacity: 1;
    transform: translateY(0);
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.3) 0%, rgba(0, 51, 102, 0.85) 100%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
    z-index: 1;
}

.feature-item:hover::after {
    width: 300px;
    height: 300px;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.2);
}

.feature-item:hover .feature-image {
    transform: scale(1.1);
}

.feature-item:hover .feature-overlay {
    opacity: 0.5;
}

.feature-title {
    padding: 25px 20px;
    margin: 0;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Page Hero (for inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--gray) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
}

/* About Section (in homepage) */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
}

/* About Page */
.about-content {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.about-intro {
    text-align: center;
    margin-bottom: 50px;
}

.intro-text {
    font-size: 20px;
    color: var(--gray);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.vm-card {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
    border-right: 4px solid var(--navy-blue);
    transition: all 0.3s ease;
}

.vm-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.15);
}

.vm-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.vm-text {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
}

.goals-section,
.services-section {
    margin: 60px 0;
    position: relative;
    z-index: 1;
}

.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Staggered Layout for Goals */
.goals-staggered {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.goal-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--white);
    border-radius: 25px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 3px solid transparent;
    position: relative;
}

.goal-item.goal-left {
    margin-right: 80px;
}

.goal-item.goal-right {
    margin-left: 80px;
    grid-template-columns: 1fr 1fr;
}

.goal-item.goal-right .goal-content {
    order: 1;
}

.goal-item.goal-right .goal-image-wrapper {
    order: 2;
}

.goal-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.25);
    border-color: var(--navy-blue);
}

.goal-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(0, 51, 102, 0.1);
    z-index: 2;
    line-height: 1;
    transition: all 0.5s ease;
}

.goal-item:hover .goal-number {
    color: rgba(0, 51, 102, 0.2);
    transform: scale(1.2);
}

.goal-content {
    padding: 50px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    position: relative;
    z-index: 2;
}

.goal-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.goal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.goal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.5) 0%, rgba(0, 51, 102, 0.2) 100%);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.goal-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.8s ease;
    z-index: 1;
}

.goal-item:hover::before {
    transform: scale(1);
}

.goal-item:hover {
    transform: translateX(-10px) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.2);
}

.goal-item:hover .goal-image {
    transform: scale(1.15);
}

.goal-item:hover .goal-overlay {
    opacity: 0.3;
}

.goal-text {
    padding: 0;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #003366;
    line-height: 1.6;
  
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.goal-text::before {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--navy-blue) 0%, var(--gray) 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goal-item:hover .goal-text::before {
    opacity: 1;
}

/* Balanced Grid Layout for Services */
.services-overlapping {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 0;
    position: relative;
}

.service-card {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid transparent;
    background-color: var(--white);
}

.service-card-1,
.service-card-2,
.service-card-3 {
    transform: none;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.03);
    z-index: 10;
    box-shadow: 0 25px 70px rgba(0, 51, 102, 0.3);
    border-color: var(--navy-blue);
}

.service-card {
    background-color: var(--white);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: hidden;
}

.service-image-wrapper {
    width: 100%;
    height: 60%;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 30px;
    z-index: 3;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 51, 102, 0.95) 50%, rgba(0, 51, 102, 0.98) 100%);
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    backdrop-filter: blur(2px);
}


.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.4) 0%, rgba(0, 51, 102, 0.9) 100%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 1s ease;
    z-index: 2;
}

.service-card:hover::before {
    transform: translateX(200%) skewX(-20deg);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.25);
    border-color: var(--navy-blue);
}

.service-card:hover .service-image {
    transform: scale(1.15);
}

.service-card:hover .service-overlay {
    opacity: 0.5;
}

.service-title {
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.service-desc {
    color: #F5F5F5;
    font-size: 16px;
    margin: 0;
    line-height: 1.7;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* Products Section (in homepage) */
.products-section-main {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
}

.subsection-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-blue) 0%, var(--gray) 100%);
    border-radius: 2px;
}

/* Products Page */
.products-content {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.products-section {
    margin-bottom: 60px;
}

/* Asymmetric Layout for Products */
.products-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 150px);
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid transparent;
}

.product-card.product-tall {
    grid-column: 1 / 5;
    grid-row: 1 / 5;
}

.product-card.product-wide {
    grid-column: 5 / 13;
    grid-row: 1 / 3;
}

.product-card.product-medium {
    grid-column: 5 / 13;
    grid-row: 3 / 5;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.3);
    border-color: var(--navy-blue);
    z-index: 10;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--navy-blue);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    z-index: 4;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.product-card:hover .product-badge {
    transform: scale(1);
}

.product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 3;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 51, 102, 0.95) 100%);
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.product-card:hover .product-content {
    transform: translateY(0);
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.25);
    border-color: rgba(0, 51, 102, 0.2);
}

.product-card.large {
    grid-column: span 1;
}

.product-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--gray) 100%);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.4) 0%, rgba(0, 51, 102, 0.85) 100%);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
    z-index: 1;
}

.product-card:hover::after {
    width: 400px;
    height: 400px;
}

.product-card:hover .product-img {
    transform: scale(1.12);
}

.product-card:hover .product-overlay {
    opacity: 0.4;
}

.product-title {
    color: var(--white);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.product-desc {
    color: #FFFFFF;
    font-size: 17px;
    margin: 0 0 20px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.1s;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7), 0 0 5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    line-height: 1.7;
}

.product-card:hover .product-desc {
    opacity: 1;
    transform: translateY(0);
}

.brands-placeholder {
    margin: 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.2s;
}

.product-card:hover .brands-placeholder {
    opacity: 1;
    transform: translateY(0);
}

.brands-text {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.batteries-section {
    margin-top: 60px;
}

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

.battery-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    background-color: var(--white);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.battery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.25);
    border-color: rgba(0, 51, 102, 0.2);
}

.battery-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.battery-image {
    height: 100%;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--gray) 100%);
    border-radius: 20px;
}

.battery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.battery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.6) 0%, transparent 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.battery-card:hover .battery-img {
    transform: scale(1.1);
}

.battery-card:hover .battery-overlay {
    opacity: 0.4;
}

.battery-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.battery-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.battery-card:hover .battery-title {
    color: var(--navy-blue);
}

.battery-desc {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Partners Section (in homepage) */
.partners-section-main {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
}

/* Partners Page */
.partners-content {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.partners-intro {
    text-align: center;
    margin-bottom: 50px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-logo-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 51, 102, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.partner-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.partner-logo-item:hover::before {
    left: 100%;
}

.partner-logo-item:hover {
    border-color: var(--navy-blue);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.2);
}

.partner-logo {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%) brightness(0.95);
    transition: all 0.4s ease;
}

.partner-logo-item:hover .partner-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.partner-logo-placeholder {
    background-color: var(--light-gray);
    border: 2px dashed var(--gray);
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partner-logo-placeholder:hover {
    border-color: var(--navy-blue);
    background-color: rgba(0, 51, 102, 0.05);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.15);
}

.partner-text {
    color: var(--gray);
    font-size: 18px;
    font-weight: 500;
}

/* Contact Section (in homepage) */
.contact-section-main {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
    z-index: 1;
}

/* Contact Page */
.contact-content {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.1);
}

.contact-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-location {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 10px;
}

.contact-phone,
.contact-email {
    font-size: 20px;
    color: var(--gray);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.contact-phone:hover,
.contact-email:hover {
    color: var(--navy-blue);
}

.social-section {
    margin-top: 40px;
}

.social-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--navy-blue);
}

.social-link-large:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

.social-link-large span:first-child {
    font-size: 24px;
}

.whatsapp-section {
    margin-top: 30px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    width: 100%;
}

.whatsapp-btn:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.contact-form-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-form-section:hover {
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-domain {
    font-size: 18px;
    font-weight: 600;
}

.footer-email {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-icon-footer {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon-footer {
    transform: scale(1.1);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--navy-blue);
    transition: all 0.3s ease;
}

.social-link-large:hover .social-icon {
    fill: var(--white);
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: var(--white);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-icon {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: nowrap;
        position: relative;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .logo-section {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: calc(100% - 200px);
    }

    .logo-link {
        margin: 0 auto;
        max-width: 100%;
    }

    .mobile-controls {
        order: 1;
        display: flex;
        gap: 10px;
        align-items: center;
        flex-shrink: 0;
    }

    .nav-menu {
        order: 3;
    }

    .btn-login {
        order: 4;
        display: none;
    }

    .header-actions {
        order: 1;
        display: flex;
        gap: 10px;
        align-items: center;
        flex-shrink: 0;
    }

    .btn-store {
        display: none;
    }

    /* RTL Support for mobile - ترتيب صحيح للعربية */
    body[dir="rtl"] .header-content {
        flex-direction: row;
        position: relative;
    }

    body[dir="rtl"] .mobile-controls {
        order: 1;
    }

    body[dir="rtl"] .logo-section {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: none;
        flex: 0 0 auto;
    }

    body[dir="rtl"] .header-actions {
        order: 1;
        margin-left: auto;
    }
    
    /* LTR Support for mobile - إعادة الشعار لموقعه الأصلي في الإنجليزية */
    body[dir="ltr"] .header-content {
        flex-direction: row;
        position: relative;
    }

    body[dir="ltr"] .logo-section {
        order: 1;
        position: static;
        left: auto;
        transform: none;
        flex: 0 0 auto;
        text-align: left;
    }

    body[dir="ltr"] .mobile-controls {
        order: 2;
    }

    body[dir="ltr"] .header-actions {
        order: 3;
        margin-left: 0;
        margin-right: auto;
    }
    
    body[dir="ltr"] .logo-link {
        margin: 0;
    }

    /* إخفاء زر اللغة من mobile-controls في الموبايل */
    .mobile-controls .lang-toggle {
        display: none;
    }

    .menu-toggle {
        order: 1;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--navy-blue);
        flex-direction: column;
        padding: 80px 20px 20px;
        padding-top: 90px; /* مساحة إضافية لزر الإغلاق */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        overflow-y: auto;
        pointer-events: auto !important;
    }
    
    .nav-menu.active {
        pointer-events: auto !important;
        right: 0;
    }
    
    /* LTR Support - القائمة على اليسار في الإنجليزية */
    body[dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    body[dir="ltr"] .nav-menu.active {
        right: auto;
        left: 0;
    }
    
    body[dir="ltr"] .nav-menu .menu-close {
        left: auto;
        right: 20px;
    }
    
    /* التأكد من أن جميع العناصر داخل القائمة قابلة للنقر */
    .nav-menu > * {
        pointer-events: auto !important;
    }
    
    /* زر الإغلاق يجب أن يكون في طبقة منفصلة */
    .nav-menu .menu-close {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 1003;
        pointer-events: auto !important;
    }

    /* Overlay for mobile menu - إخفاؤه تماماً في الموبايل */
    .nav-overlay {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    .nav-overlay.active {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
    
    /* التأكد من أن القائمة قابلة للنقر */
    .nav-menu.active {
        z-index: 1001 !important;
        pointer-events: auto !important;
    }
    
    /* التأكد من أن الروابط قابلة للنقر */
    .nav-menu.active .nav-link {
        pointer-events: auto !important;
        z-index: 1002 !important;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-close {
        display: flex;
        opacity: 1;
        visibility: visible;
        z-index: 1003;
        pointer-events: auto;
    }

    .nav-link {
        padding: 15px 20px;
        margin: 5px 0;
        border-radius: 8px;
        font-size: 18px;
        text-align: right;
        width: 100%;
        display: block;
        pointer-events: auto !important;
        position: relative;
        z-index: 1002;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .nav-link:active {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* LTR Support - محاذاة النص لليسار في الإنجليزية */
    body[dir="ltr"] .nav-link {
        text-align: left;
    }
    
    /* زر اللغة داخل القائمة المتنقلة */
    .nav-menu-lang {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav-lang-toggle {
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--white);
        border: 2px solid var(--white);
        padding: 12px 24px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 200px;
    }
    
    .nav-lang-toggle:hover {
        background-color: var(--white);
        color: var(--navy-blue);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }
    
    .nav-lang-toggle:active {
        transform: translateY(0);
    }
    
    /* إخفاء زر اللغة من header في الموبايل */
    .mobile-controls .lang-toggle {
        display: none;
    }
    
    /* التأكد من أن الروابط قابلة للنقر حتى لو كان زر الإغلاق موجود */
    .nav-menu .nav-link {
        z-index: 1002;
        pointer-events: auto !important;
    }
    
    /* إزالة أي قيود على النقر */
    .nav-menu.active .nav-link {
        pointer-events: auto !important;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-title-line,
    .hero-title-accent {
        display: block;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

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

    .battery-card {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 1200px) {
    .categories-masonry {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(6, 100px);
    }

    .category-card.large-card {
        grid-column: 1 / 4;
        grid-row: 1 / 4;
    }

    .category-card.medium-card {
        grid-column: 4 / 7;
        grid-row: 1 / 3;
    }

    .category-card.small-card {
        grid-column: 4 / 6;
        grid-row: 3 / 5;
    }

    .category-card.wide-card {
        grid-column: 6 / 7;
        grid-row: 3 / 5;
    }

    .features-asymmetric {
        grid-template-rows: repeat(4, 150px);
    }

    .feature-item.feature-large {
        grid-column: 1 / 7;
        grid-row: 1 / 4;
    }

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

    .service-card {
        height: 400px;
    }

    .service-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .products-asymmetric {
        grid-template-rows: repeat(6, 120px);
    }

    .product-card.product-tall {
        grid-column: 1 / 7;
        grid-row: 1 / 4;
    }

    .product-card.product-wide {
        grid-column: 1 / 7;
        grid-row: 4 / 6;
    }

    .product-card.product-medium {
        grid-column: 1 / 7;
        grid-row: 6 / 8;
    }

    .goal-item.goal-left,
    .goal-item.goal-right {
        margin: 0;
        grid-template-columns: 1fr;
    }

    .goal-item.goal-right .goal-content {
        order: 2;
    }

    .goal-item.goal-right .goal-image-wrapper {
        order: 1;
    }

    .goal-image-wrapper {
        min-height: 250px;
    }

    .goal-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .categories-masonry,
    .features-asymmetric,
    .products-asymmetric {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .category-card,
    .feature-item,
    .product-card {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .goal-item {
        grid-template-columns: 1fr;
    }

    .battery-card {
        grid-template-columns: 1fr;
    }

    .battery-image {
        min-height: 300px;
        border-radius: 20px 20px 0 0;
    }

    .battery-info {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    .hero-content {
        padding: 20px 15px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero-title-line {
        font-size: 1em;
    }
    
    .hero-title-accent {
        font-size: 0.75em;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero-stats {
        gap: 15px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 15px;
        margin-bottom: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .banner-overlay {
        background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 51, 102, 0.7) 100%);
    }

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

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

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

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

@media (max-width: 968px) {
    .logo-link {
        padding: 6px 12px;
    }

    .company-logo {
        height: 45px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .logo-link {
        padding: 5px 10px;
        border-radius: 8px;
    }

    .company-logo {
        height: 40px;
        max-width: 120px;
    }

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

    .logo-subtitle {
        font-size: 10px;
    }
    
    .hero-banner {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    .hero-content {
        padding: 15px 10px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-title-line {
        font-size: 1em;
    }
    
    .hero-title-accent {
        font-size: 0.7em;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 0 5px;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .hero-badge {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
    
    .hero-buttons {
        gap: 10px;
        padding: 0 10px;
    }
    
    .btn {
        max-width: 100%;
        padding: 10px 18px;
        font-size: 13px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .dialog-content {
        padding: 40px 30px;
    }

    .dialog-title {
        font-size: 26px;
    }

    .dialog-message {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

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

/* Language Toggle Styles */
body[dir="ltr"] .nav-menu {
    direction: ltr;
}

body[dir="ltr"] .header-content {
    direction: ltr;
}

body[dir="ltr"] .nav-link {
    text-align: left;
}

body[dir="ltr"] .menu-close {
    left: auto;
    right: 20px;
}

body[dir="ltr"] .hero-content {
    direction: ltr;
}

body[dir="ltr"] .footer-content {
    direction: ltr;
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dialog-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dialog-container {
    background: var(--white);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.dialog-overlay.active .dialog-container {
    transform: scale(1);
}

.dialog-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--navy-blue) 0%, var(--gray) 100%);
}

.dialog-content {
    padding: 50px 40px;
    text-align: center;
}

.dialog-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dialog-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.dialog-message {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

.dialog-close {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #004080 100%);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.dialog-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
    background: linear-gradient(135deg, #004080 0%, var(--navy-blue) 100%);
}

.dialog-close:active {
    transform: translateY(0);
}

