/**
 * Shbouka Website - Main Stylesheet
 * Matching design from https://shbouka.com
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors matching shbouka.com */
    --primary-color: #1e9484;
    --secondary-color: #08211d;
    --tertiary-color: #092a25;
    --footer-color: #061916;
    --text-color: #ffffff;
    --text-dark: #000000;

    /* Typography */
    --font-family: 'Amiri', serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --section-padding: 100px;
    --container-max-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Header & Navigation ===== */
.main-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-size: 17px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Dropdown menu */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-block; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--secondary-color);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 0;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1001;
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 16px;
}
.dropdown-menu a:hover { background-color: var(--primary-color); }
.has-dropdown:hover > .dropdown-menu { display: block; }

@media (max-width: 768px) {
    .has-dropdown { position: static; }
    .dropdown-menu { position: static; display: block; box-shadow: none; border: none; padding: 0; }
    .dropdown-menu a { padding-left: 25px; }
}

.lang-switcher {
    background-color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.lang-switcher:hover {
    background-color: var(--tertiary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== Hero Section with Slider ===== */
.hero-section {
    background: #ebedf0;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* Hero Slider Background */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 20s ease-in-out;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 20s ease-in-out infinite;
}

/* Ken Burns Effect - Zoom Animation */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(8, 33, 29, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Hero Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

.slider-dot.active,
.slider-dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 148, 132, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-dark {
    background-color: var(--secondary-color);
}

/* Services section specific background override */
.section-dark#services {
    background-color: var(--services-bg-color);
}

.section-darker {
    background-color: var(--tertiary-color);
}

/* ===== About Centered Layout ===== */
.about-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    text-align: center;
}
.about-image { display: flex; justify-content: center; }
.about-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    margin: 0 auto;
}
.about-content h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    opacity: 0.92;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    background-color: rgba(30, 148, 132, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(30, 148, 132, 0.2);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.6;
}


/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* ===== Posts Grid ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== Testimonials ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.review-card {
    background-color: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid transparent;
    transition: var(--transition);
}
.review-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(30,148,132,0.2);
}
.review-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.review-name { font-weight: 700; color: var(--text-color); }
.review-stars { color: #f5c518; }
.review-text { color: var(--text-color); opacity: 0.9; line-height: 1.7; }

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

/* ===== Map ===== */
.section#map .container, .section-dark#map .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.map-embed, .map-embed iframe { width: 100% !important; display: block; }
.map-embed iframe { border-radius: 0; }

/* ===== Floating Contact Button ===== */
.m-btn-c {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}
body[dir="rtl"] .m-btn-c { right: auto; left: 20px; }
.fixed-action-btn.magic-btn {
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.fixed-action-btn.magic-btn .open-list,
.fixed-action-btn.magic-btn .close-list {
    width: 100%; height: 100%; border: 0; background: transparent; color: #fff; font-size: calc(var(--fab-size) * 0.4);
}
.fixed-action-btn.magic-btn .close-list { display: none; }
.m-btn-c.active .fixed-action-btn.magic-btn .open-list { display: none; }
.m-btn-c.active .fixed-action-btn.magic-btn .close-list { display: block; }
.options-list {
    position: absolute;
    bottom: calc(var(--fab-size) + var(--fab-gap));
    right: 0;
    display: none;
    list-style: none;
    margin: 0; padding: 0;
}
body[dir="rtl"] .options-list { right: auto; left: 0; }
.m-btn-c.active .options-list { display: block; }
.list-item { margin-bottom: 10px; }
.btn-floating {
    width: calc(var(--fab-size) * 0.86);
    height: calc(var(--fab-size) * 0.86);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2f3b3a;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.btn-floating i { font-size: 22px; }
.whatsApp .btn-floating { background: #25D366; }
.phone .btn-floating { background: var(--primary-color); }
.custom-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.custom-slide img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; }

.post-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.post-image,
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.post-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.post-excerpt {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* Responsive gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== Contact Section ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    background-color: rgba(30, 148, 132, 0.1);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.main-footer {
    background-color: var(--footer-color);
    padding: 60px 0 30px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer layout improvements */
.footer-content { align-items: start; }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section .links a { display: inline-flex; align-items: center; gap: 8px; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-list li i { color: var(--primary-color); width: 20px; text-align: center; }

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-section p,
.footer-section a {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.8;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    opacity: 0.7;
}

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

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


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--secondary-color);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 15px 10px;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1000;
    }

    .mobile-menu-toggle.active i:before {
        content: "\f00d"; /* Font Awesome times icon */
    }

    .hero-section {
        min-height: 60vh;
        padding: 80px 20px 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}
