/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    /* Color Palette - Formal Corporate (Light & Navy) */
    --primary-color: #ffffff;
    --secondary-color: #f1f5f9;
    --accent-color: #0f172a;
    --accent-glow: rgba(15, 23, 42, 0.15);
    --gold-accent: #0ea5e9;

    --text-light: #1e293b;
    --text-dim: #64748b;

    --success-color: #10B981;
    --danger-color: #EF4444;

    /* Spacing */
    --section-padding: 6rem 1rem;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #0EA5E9);
    color: var(--primary-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover,
.btn-outline.active {
    background: var(--accent-color);
    color: #fff;
}

/* Header & Nav */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: flex-start;
    /* Align items to the start (Right in RTL) */
    align-items: center;
    padding: 15px 0;
    gap: 40px;
    /* Space between logo and nav links */
}

.logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

/* Hover Effect: Red Line Animation */
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
    /* Keep color constant */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--danger-color);
    /* Red Line */
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 200;
    border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--accent-color);
}

.dropdown-item i {
    margin-left: 10px;
    /* Space for icon in RTL */
    font-size: 1rem;
    color: var(--gold-accent);
}

/* Reset hover line for dropdown items */
.dropdown-item::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top left, #f8fafc, #fff);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-left: 50px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-title span {
    color: var(--danger-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    width: 300px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-color), #1e293b);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3); - Doesn't work well with clip-path */
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.4));
    animation: hexagonFloat 6s ease-in-out infinite;
}

@keyframes hexagonFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.shield-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--gold-accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin: 10px 0;
}

/* Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--danger-color);
    margin-bottom: 20px;
    display: inline-block;
}

/* Footer */
footer {
    background: var(--accent-color);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gold-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        padding-left: 0;
    }

    .nav-links {
        display: none;
        /* Add toggle logic if needed, simple hide for now or mobile menu styles */
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* --- Helper Classes & Modal (Added) --- */

.form-group-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-group-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.spec-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
    position: relative;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #product-detail-modal,
    #product-detail-modal * {
        visibility: visible;
    }

    #product-detail-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: white;
    }

    .modal-card {
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }

    button {
        display: none !important;
    }
}