/* Reset & Base Styles */
:root {
    --bg-color: #0b100e;
    --surface-color: #151d19;
    --surface-light: #1e2823;
    --text-primary: #eaeaea;
    --text-secondary: #a3b8af;
    --accent-color: #d4af37;
    --accent-hover: #b8972e;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-color); }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(11, 16, 14, 0.9) 0%, rgba(11, 16, 14, 0) 100%);
    backdrop-filter: blur(2px);
}

.navbar.scrolled {
    background: rgba(11, 16, 14, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.brand-flag {
    display: flex;
    width: 26px;
    height: 14px;
}
.brand-flag .flag-green { flex: 1; background-color: #009246; }
.brand-flag .flag-white { flex: 1; background-color: #ffffff; }
.brand-flag .flag-red { flex: 1; background-color: #ce2b37; }

.brand-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
}

.social-icons.large a {
    width: 48px;
    height: 48px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background-image: url('images/extract_p0_i5.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 16, 14, 0.9) 0%, rgba(11, 16, 14, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 4%;
    margin: 0 auto;
    width: 100%;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* About / Protocol Section */
.protocol-section {
    background-color: var(--surface-color);
    color: var(--text-primary);
    padding: 6rem 4%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.protocol-container {
    max-width: 100%;
    margin: 0 auto;
}

.protocol-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.protocol-text {
    flex: 1;
    min-width: 300px;
}

.protocol-text h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.protocol-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.badges-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.dark-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.protocol-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.protocol-image-wrapper img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}

.protocol-image-wrapper:hover img {
    transform: scale(1.02);
}

.features-header-light {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header-light h3 {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--surface-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.info-card-icon svg {
    color: var(--accent-color);
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .protocol-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .protocol-text h2 {
        font-size: 2rem;
    }
    .features-header-light h3 {
        font-size: 1.5rem;
    }
}

/* Products Section */
.products {
    max-width: 100%;
    padding: 8rem 4%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.2);
}

.product-image {
    width: 100%;
    height: 350px;
    position: relative;
    background-color: #ffffff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.7s ease;
}

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

.product-info {
    padding: 2.5rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.size-badge {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.link-btn:hover {
    gap: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-details {
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item i {
    color: var(--accent-color);
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.contact-item p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.social-connect h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-form-container {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Footer */
footer {
    background-color: var(--bg-color);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Language Switcher */
.lang-switcher select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 2.2rem 0.5rem 1rem;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: var(--transition);
}
.lang-switcher select:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
[dir="rtl"] .lang-switcher select {
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    background-position: left 8px center;
}
.lang-switcher select option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* RTL and Arabic Fonts */
[dir="rtl"] body, 
[dir="rtl"] .btn,
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .brand-text {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

[dir="rtl"] .nav-links {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .social-icons {
    margin-right: 1rem;
    margin-left: 0;
}

[dir="rtl"] .contact-item i {
    margin-left: 1.5rem;
    margin-right: 0;
}

[dir="rtl"] .link-btn i {
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(11, 16, 14, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .nav-links.active {
        left: 0;
    }
    [dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
    }
    [dir="rtl"] .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 2px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}
