/* css/styles.css */
:root {
    --primary-color: #0D1B2A;
    --accent-color: #C5A059;
    --bg-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-light: #F8F9FA;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body.lang-ar {
    font-family: var(--font-ar);
}

/* Language Switching Logic */
.lang-ar .fr, .lang-ar .en { display: none !important; }
.lang-fr .ar, .lang-fr .en { display: none !important; }
.lang-en .ar, .lang-en .fr { display: none !important; }

/* Basic Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent-color);
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #ffffff;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(13, 27, 42, 0.05);
    border-radius: 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 700;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 20px;
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

/* RTL specifics for buttons */
.lang-ar .btn i.fa-arrow-left {
    transform: rotate(0deg);
}
.lang-fr .btn i.fa-arrow-left, .lang-en .btn i.fa-arrow-left {
    transform: rotate(180deg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.brand-name {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 30px;
}

.lang-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: var(--transition);
    filter: grayscale(100%) opacity(0.6);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.lang-btn:hover {
    filter: grayscale(0%) opacity(1);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 150px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.glow-circle.top-right {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
}

.glow-circle.bottom-left {
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: #1a365d;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

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

.hero-visual {
    display: none;
}

@media (min-width: 992px) {
    .hero-visual {
        display: flex;
        justify-content: center;
    }
    
    .hero-visual .glass-card {
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }

    .hero-logo {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 27, 42, 0.1);
}

.product-logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: #fff;
    padding: 10px;
}

.product-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-desc {
    color: #666;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
}

.service-item:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.1);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-text {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: url('../assets/logo/dar_logo.jpg') center/cover no-repeat;
    position: relative;
    z-index: 1;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.9);
    z-index: -1;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    padding: 60px 40px;
    text-align: center;
    color: var(--text-light);
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 600px) {
    .contact-methods {
        flex-direction: row;
        justify-content: center;
    }
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.method-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.whatsapp-method:hover .method-icon {
    background: #25D366;
    color: #fff;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.animate-fade-in-up.active, .animate-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
