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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #5ab9ea;
    --accent-color: #2c5aa0;
    --bg-color: #e8f4f8;
    --bg-light: #f5fbff;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(74, 144, 226, 0.1);
    --shadow-lg: 0 10px 25px rgba(74, 144, 226, 0.15);
    --gradient: linear-gradient(135deg, #4a90e2 0%, #5ab9ea 100%);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-color);
}

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

/* Navigation Bar Right Elements */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Selector */
.language-selector {
    position: static;
    z-index: 1;
}

.language-selector select {
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.language-selector select:hover {
    background: var(--primary-color);
    color: var(--white);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(90, 185, 234, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

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

/* Overview Section */
.overview {
    background: var(--white);
}

.overview-content {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.overview-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.image-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.image-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.image-card p {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

/* Patents Section */
.patents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.patent-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.patent-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.patent-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.patent-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Products Section */
.products {
    background: var(--bg-light);
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.category-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-size {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.view-details-btn {
    padding: 10px 25px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.view-details-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

.specs-table {
    margin-top: 30px;
}

.specs-table h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--bg-color);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--text-light);
}

/* Solutions Section */
.solutions {
    background: var(--white);
}

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

.solution-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient);
    color: var(--white);
}

.solution-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

.solution-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.solution-card:hover h3 {
    color: var(--white);
}

.solution-card p {
    color: var(--text-light);
    transition: var(--transition);
}

.solution-card:hover p {
    color: var(--white);
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--accent-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-right {
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .product-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 80%;
    }

    .logo h1 {
        font-size: 0.9rem;
    }

    .language-selector select {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

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

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

    .patent-item h3 {
        font-size: 2rem;
    }

    .nav-right {
        flex-direction: column;
        gap: 5px;
    }

    .language-selector select {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 60px;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}
