/* Brown Palette Colors */
:root {
    --brown-dark: #3E2723;
    --brown-medium: #5D4037;
    --brown-light: #8D6E63;
    --brown-lighter: #BCAAA4;
    --brown-cream: #D7CCC8;
    --brown-bg: #EFEBE9;
    --brown-accent: #A1887F;
    --white: #FFFFFF;
    --text-dark: #212121;
    --text-light: #757575;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-medium) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--white) !important;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.3rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.lang-select {
    padding: 8px 35px 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-right: 12px;
    padding-left: 35px;
    min-width: 120px;
}

.lang-select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.lang-select option {
    background: var(--brown-dark);
    color: var(--white);
    padding: 10px;
}

@media (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .lang-select {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .lang-select {
        min-width: 100px;
        font-size: 0.85rem;
        padding: 6px 30px 6px 10px;
    }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--brown-cream) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--brown-cream);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: var(--white);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.8) 0%, rgba(93, 64, 55, 0.7) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brown-cream);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brown-cream);
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

/* Slide Controls */
.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.slide-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: scale(1.1);
}

.slide-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
    border-color: var(--white);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-medium) 100%);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-light) 100%);
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

#about {
    position: relative;
    margin-top: -120px;
    padding-top: 180px;
    z-index: 1;
    background: var(--white);
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--white) 70%);
    z-index: 0;
}

#about .container {
    position: relative;
    z-index: 1;
}

.bg-light {
    background-color: var(--brown-bg) !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--brown-dark);
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brown-dark), var(--brown-medium));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* About Section */
.about-content {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.info-card {
    text-align: center;
    padding: 25px;
    background: var(--brown-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--brown-medium);
    margin-bottom: 15px;
}

.info-card h5 {
    color: var(--brown-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    margin: 0;
}

/* Vision Cards */
.vision-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brown-medium), var(--brown-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.vision-card h3 {
    color: var(--brown-dark);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.vision-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brown-medium), var(--brown-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.service-card h4 {
    color: var(--brown-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Product Gallery */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62, 39, 35, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.2);
    color: var(--brown-cream);
}

/* Lightbox Custom Styling */
.lb-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease-in-out !important;
}

.lb-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.lb-image {
    border-radius: 10px;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out !important;
    transform-origin: center;
}

.lb-image img {
    transition: transform 0.3s ease-in-out;
}

/* Smooth transition animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lb-dataContainer {
    animation: fadeInScale 0.5s ease-in-out;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 60px !important;
    height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.15);
    border-color: var(--white);
    opacity: 1;
}

.lb-nav a.lb-prev:active,
.lb-nav a.lb-next:active {
    transform: scale(0.95);
}

.lb-nav a.lb-prev {
    right: 20px !important;
}

.lb-nav a.lb-next {
    left: 20px !important;
}

.lb-close {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    top: 20px !important;
    right: 20px !important;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) rotate(90deg);
    border-color: var(--white);
}

.lb-number {
    color: var(--white) !important;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lb-dataContainer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.lb-data .lb-details {
    color: var(--white) !important;
    font-family: 'Tajawal', sans-serif;
}

.lb-data .lb-caption {
    color: var(--white) !important;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lb-nav a.lb-prev,
    .lb-nav a.lb-next {
        width: 50px !important;
        height: 50px !important;
    }
    
    .lb-nav a.lb-prev {
        right: 10px !important;
    }
    
    .lb-nav a.lb-next {
        left: 10px !important;
    }
    
    .lb-close {
        width: 40px !important;
        height: 40px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

/* Branch Cards */
.branch-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.branch-card h4 {
    color: var(--brown-dark);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.branch-card h4 i {
    color: var(--brown-medium);
    margin-left: 10px;
}

.branch-address {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.branch-phone {
    color: var(--brown-medium);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.branch-phone i {
    margin-left: 10px;
}

.branch-map {
    position: relative;
    margin-top: 20px;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--brown-bg) 0%, var(--brown-cream) 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--brown-medium);
    margin-bottom: 15px;
    border: 2px dashed var(--brown-light);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--brown-medium);
}

.map-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown-dark);
    margin: 0;
}

.map-link-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--brown-medium);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.map-link-btn:hover {
    background: var(--brown-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.map-link-btn i {
    margin-left: 8px;
}

/* Contact Section */
.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--brown-medium);
    margin-bottom: 15px;
}

.contact-card h5 {
    color: var(--brown-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    margin: 5px 0;
}

/* Social Links */
.social-links {
    margin-top: 30px;
}

.social-links h5 {
    color: var(--brown-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.tiktok {
    background: #000000;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-medium) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer h5 {
    font-weight: bold;
    margin-bottom: 10px;
}

.footer p {
    margin: 5px 0;
    color: var(--brown-cream);
}

.footer-text {
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 25px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .product-image {
        height: 200px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    animation: fadeInUp 0.6s ease;
}

