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

:root {
    --primary-color: #2d2a26;
    /* Warm Deep Charcoal */
    --accent-color: #c5a059;
    /* Soft Gold */
    --bg-light: #f9f7f5;
    /* Warm Cream/Beige */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-main: #4a4540;
    /* Soft Warm Dark */
    --text-muted: #8e8881;
    /* Warm Muted Grey */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-ar);
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.8;
    font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

/* Glassmorphism Navbar */
.navbar {
    padding: 2rem 0;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-brand img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 20px;
    font-size: 1rem;
    position: relative;
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

.nav-link:hover {
    opacity: 1;
}

/* Modern Hero */
/* Modern Hero Slideshow with Swiper */
.hero {
    height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    text-align: right;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero p {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: all 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active h1,
.swiper-slide-active p,
.swiper-slide-active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Controls Customization */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
    width: 30px;
    border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white !important;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Buttons */
.btn-modern {
    padding: 15px 40px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary-modern:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
}

.btn-outline-modern {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-outline-modern:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Sections */
.section-padding {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 80px;
}

.section-title span {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3.5rem;
    font-weight: 800;
}

/* Portfolio Cards */
.portfolio-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-overlay h3 {
    color: white !important;
    margin-bottom: 5px;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.detail-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

.detail-link i {
    margin-right: 10px;
    transition: var(--transition);
}

/* Lightbox Modal */
.modal-content {
    background: transparent;
    border: none;
}

.modal-body {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

#lightbox-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-caption {
    padding: 40px;
    background: white;
}

.modal-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: none;
    z-index: 100;
}

.modal-control:hover {
    background: var(--accent-color);
    color: white;
}

/* Reversed controls for RTL logic preference */
.modal-control.prev {
    right: 30px;
}

.modal-control.next {
    left: 30px;
}

.btn-close-modern {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 101;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Service Box */
.service-box {
    padding: 50px;
    background: white;
    border-radius: 40px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.service-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-box:hover .icon-circle {
    background: var(--accent-color);
    color: white;
}

/* Minimalist Modern Footer */
footer {
    background: #ffffff;
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 25px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 30px;
}

.footer-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 2px;
    background: var(--accent-color);
}

.footer-link {
    color: #777;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-right: 8px;
}

.footer-info {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-info i {
    color: var(--accent-color);
    margin-left: 12px;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 20px;
}

.footer-bottom-links a:hover {
    color: #666;
}

/* Form Enhancements */
.form-label {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding-right: 5px;
}

.form-control,
.form-select {
    border-radius: 12px !important;
    padding: 14px 20px !important;
    border: 1.5px solid #eee !important;
    background: #fdfdfd !important;
    font-family: var(--font-ar);
    transition: var(--transition);
    color: var(--text-main) !important;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.08) !important;
    border-color: var(--accent-color) !important;
    background: white !important;
}

/* Premium Confirmation List */
.confirmation-list {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 15px;
    border: 1px solid #eee;
}

.confirmation-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border-radius: 12px;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.confirmation-row:last-child {
    margin-bottom: 0;
}

.confirmation-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.confirmation-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
}

/* Modal Improvements */
.modal-content-premium {
    background: white !important;
    border-radius: 35px !important;
    border: none !important;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15) !important;
}

.modal-header-premium {
    padding: 30px 30px 10px;
    border: none;
    text-align: center;
}

.modal-title-premium {
    width: 100%;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.btn-confirm-main {
    border-radius: 100px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-family: var(--font-ar) !important;
    transition: var(--transition) !important;
}

.success-icon-box {
    width: 100px;
    height: 100px;
    background: #f0f9f0;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.order-box-premium {
    background: #fff;
    border: 2px dashed #e0e0e0;
    border-radius: 20px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
}

.order-box-premium span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.order-box-premium strong {
    font-size: 1.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.dynamic-field {
    display: none;
    animation: fadeInDown 0.4s forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 991px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #c5a059;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: none;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: #1a1a1a;
    color: white;
}

/* Package Selection Styling */
.package-card {
    background: white;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.package-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transform: translateY(-5px);
}

.package-card.active {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.package-card .fw-bold {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.package-price {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    direction: ltr;
    /* Keeping price numbers LTR for clarity */
}

.package-price small {
    font-family: var(--font-ar);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Popular Package Styling */
.package-card.popular {
    border-color: var(--accent-color);
    position: relative;
    transform: scale(1.05);
    /* Slight focus effect */
    z-index: 1;
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.1);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 4px 15px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.text-decoration-line-through {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Warranty Section Styling */
.warranty-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.warranty-box {
    background: var(--bg-light);
    border-radius: 40px;
    padding: 60px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.warranty-badge-large {
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.3);
}

.warranty-badge-large span {
    font-size: 2.5rem;
    line-height: 1;
}

.warranty-badge-large small {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.warranty-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.warranty-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.w-feature-item {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.w-feature-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.w-feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.w-feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Value & Materials Section */
.value-section {
    padding: 100px 0;
    background: #fff;
}

.value-card {
    height: 100%;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 30px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.value-card:hover {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    color: var(--accent-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-slide .container {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}
/* About Us Section Styling */
.about-section {
    padding: 120px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.about-logo-card {
    background: #fdfbf8;
    padding: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.02);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.about-logo-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.05;
    top: -50px;
    right: -50px;
}

.about-logo-card img {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.about-text-content {
    padding-right: 40px;
}

.about-text-content .accent-text {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.about-text-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-text-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.about-feature-small {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-feature-small i {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.about-feature-small span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .about-text-content {
        padding-right: 0;
        margin-top: 50px;
        text-align: center;
    }
    .about-features-grid {
        justify-items: center;
    }
}
