/* 
 * الجناح الراقي - Luxury Furniture Website 
 * Advanced CSS
 */

:root {
    /* Colors */
    --primary-color: #C9A84C;
    /* Gold */
    --primary-dark: #A08332;
    --secondary-color: #1A1A2E;
    /* Dark Blue/Black */
    --text-color: #333333;
    --bg-color: #F9F9F9;
    --bg-light: #FFFFFF;
    --light-gray: #E0E0E0;
    --white: #FFFFFF;

    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #F4D06F 50%, #C9A84C 100%);
    --dark-gradient: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);

    /* Typography */
    --font-main: 'Tajawal', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.align-center {
    align-items: center;
}

[class^="col-"] {
    padding: 15px;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.333%;
}

.col-5 {
    width: 41.666%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.333%;
}

.col-12 {
    width: 100%;
}

.text-center {
    text-align: center;
}

@media (max-width: 992px) {

    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7 {
        width: 100%;
    }
}

/* Loading Screen */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 2px;
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.language-switch {
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--secondary-color);
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(26, 26, 46, 0.5) 0%, rgba(26, 26, 46, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Section Common Styles */
.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title.white {
    color: var(--white);
}

.section-subtitle {
    color: #666;
    margin-bottom: 50px;
}

/* Placeholders */
/* Placeholders & Real Images */
.placeholder-image {
    width: 100%;
    height: 300px;
    background-color: #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #aaa;
    border-radius: 8px;
    transition: var(--transition);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.project-img-real {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img-real {
    transform: scale(1.1);
}

.about-img-real {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--white);
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-img {
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: var(--gold-gradient);
    color: var(--secondary-color);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
    z-index: 10;
}

.about-content {
    padding-right: 40px;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 500;
}

.features-list i {
    color: var(--primary-color);
}

.read-more {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Stats Section */
.stats-counter {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)), url('images/hero_bg_1770656810026.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    color: var(--white);
    position: relative;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--light-gray);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    color: var(--secondary-color);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(201, 168, 76, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--white);
    color: var(--primary-dark);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover p {
    color: #333;
}

.service-link {
    font-weight: 700;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
    color: var(--secondary-color);
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background-color: var(--white);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 8px 25px;
    border-radius: 30px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.project-img {
    height: 350px;
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.project-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 50%;
    margin-top: 15px;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Why Us Section */
.why-us {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.why-us-img {
    height: 500px;
    background: linear-gradient(to right, #434343 0%, black 100%);
    color: #fff;
    opacity: 0.8;
}

.feature-box {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateX(-10px);
    border-right: 5px solid var(--primary-color);
}

.feature-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 50px auto;
    position: relative;
}

.testimonial-card {
    text-align: center;
    display: none;
    animation: fadeIn 0.5s;
}

.testimonial-card.active {
    display: block;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(201, 168, 76, 0.2);
    margin-bottom: 20px;
}

.feedback {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.client-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ddd;
    margin-bottom: 0;
}

.client-info h4 {
    margin-bottom: 2px;
}

.client-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.prev-btn,
.next-btn {
    background: transparent;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Team Section */
.team {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 300px;
    background: #e0e0e0;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 5px;
}

.team-info span {
    color: var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: #888;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--dark-gradient);
    color: var(--white);
}

.contact-info {
    padding-left: 30px;
}

.contact-desc {
    color: #ccc;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p {
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.working-hours li {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 30px;
    border: none;
    background: #222;
    color: var(--white);
}

.newsletter-form button {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 80px;
    height: 38px;
    /* Corrected height to match input roughly */
    border-radius: 25px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    background: var(--gold-gradient);
    /* Added gradient for consistancy */
}

/* Updated button style for RTL positioning */
.newsletter-form button {
    position: absolute;
    left: 4px;
    /* rtl left */
    top: 4px;
    bottom: 4px;
    width: 40px;
    /* circle button */
    height: auto;
    border-radius: 50%;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}