/* Premium Dark Theme - Osoul Althiqa */
:root {
    --bg-dark: #08121C;
    --bg-card: #101F2D;
    --bg-card-hover: #16283A;
    --text-light: #F0F4F8;
    --text-dim: #9FAEC0;
    --primary-gold: #C29B57;
    --primary-gold-hover: #D4AF6E;
    --border-color: rgba(194, 155, 87, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Buttons */
.btn-gold {
    background-color: var(--primary-gold);
    color: #000;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary-gold);
}
.btn-gold:hover {
    background-color: var(--primary-gold-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-gold);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary-gold);
}
.btn-outline:hover {
    background-color: var(--primary-gold);
    color: #000;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.premium-navbar {
    background-color: rgba(8, 18, 28, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 50px;
}

.nav-logo .logo-text {
    line-height: 1.2;
}

.nav-logo .ar {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.nav-logo small {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-gold);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

.lang-switch {
    display: flex;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
}
.lang-switch span:hover {
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.premium-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(8,18,28,0.7) 0%, rgba(8,18,28,0.9) 100%);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.long-arrow {
    transform: rotate(90deg);
}

/* Stats Section */
.premium-stats {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-left: 1px solid var(--border-light);
}
.stat-box:last-child {
    border-left: none;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
}

.stat-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Services Section */
.premium-services {
    padding: 80px 0;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-dim);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.arrow-icon {
    color: var(--primary-gold);
    opacity: 0;
    transition: var(--transition);
    transform: translateX(10px);
}

.service-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Projects Section */
.premium-projects {
    padding: 60px 0 100px;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 8px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.filter-btn:hover, .filter-btn.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card-premium {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(8,18,28,0.9), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-card-premium:hover img {
    transform: scale(1.05);
}

.project-card-premium:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-gold);
}

.project-overlay p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-box { border: none; }
}

@media (max-width: 992px) {
    .nav-links, .nav-phone, .lang-switch { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* About Section */
.premium-about {
    padding: 80px 20px;
}
.about-content {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
}
.about-vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.vision-box, .mission-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}
.gold-icon {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}
.gold-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 15px auto 40px;
}

/* Contact Section */
.premium-contact {
    background-color: var(--bg-card);
    padding: 80px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-light);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: var(--text-dim); margin-bottom: 30px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-item h4 { margin-bottom: 5px; color: #fff; }
.premium-form {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}
.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-dim); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}
.btn-full { width: 100%; justify-content: center; font-size: 1.1rem; padding: 15px; }

/* Footer */
.premium-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-light);
}
.premium-footer img {
    height: 60px;
    margin-bottom: 20px;
}
.premium-footer p {
    color: var(--text-dim);
}

/* Mobile Menu Active */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(8, 18, 28, 0.95);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
    }
    .nav-links.active {
        display: flex;
    }
    .about-vision-mission {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    margin-left: 20px;
    color: var(--text-dim);
    font-weight: 500;
}
.lang-switch span {
    cursor: pointer;
    transition: color 0.3s;
}
.lang-switch span:hover {
    color: #fff;
}
.lang-switch span.active {
    color: var(--primary-gold);
    font-weight: 700;
}

@media (max-width: 992px) {
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .lang-switch {
        display: flex !important;
        margin-right: 5px;
        margin-left: 5px;
    }
    .btn-gold {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .hero-title {
        font-size: 2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
    .contact-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }
}
@media (max-width: 480px) {
    .nav-actions .btn-gold {
        display: none;
    }
    .lang-switch {
        margin-right: 0;
        margin-left: 0;
    }
    .nav-logo img {
        height: 40px;
    }
    .logo-text {
        font-size: 0.9rem;
    }
    .mobile-toggle {
        font-size: 1.2rem;
    }
    .hero-title {
        font-size: 1.6rem !important;
    }
    .premium-hero {
        padding: 100px 20px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lightbox-content {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(194,155,87,0.4);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0} 
    to {transform:scale(1); opacity:1}
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close:hover {
    color: var(--primary-gold);
}
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

/* Projects Filter Tabs */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    background-color: transparent;
    border: 1px solid var(--primary-gold);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-gold);
    color: #0A192F;
    box-shadow: 0 4px 15px rgba(194, 155, 87, 0.4);
}
@media (max-width: 768px) {
    .projects-filter {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
}

.lightbox { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; }
.lightbox-wrapper { position: relative; display: flex; flex-direction: column; align-items: flex-end; max-width: 90vw; max-height: 90vh; animation: zoomIn 0.3s ease; }
.lightbox-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 40px; font-weight: normal; cursor: pointer; line-height: 1; z-index: 2; transition: color 0.3s; }
.lightbox-close:hover { color: var(--primary-gold); }
.lightbox-content { display: block; max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: none; }

.lightbox.active { display: flex !important; }

/* Partners Section */
.premium-partners {
    padding: 60px 0;
    background-color: var(--bg-card);
}
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}
.partner-logo {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}
.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(194,155,87,0.3);
    border-color: var(--primary-gold);
}
.partner-logo img {
    max-width: 100%;
    height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
}
.partner-logo p {
    color: #1a2332;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: var(--primary-gold);
    color: #0B1B2B;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(194,155,87,0.4);
}
