/**
 * 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(--text-dark);
    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);
}

.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 ===== */
.hero-section {
    background: #000000;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 148, 132, 0.1) 0%, rgba(8, 33, 29, 0.3) 100%);
    z-index: 0;
}

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

.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);
}

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

.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(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* Vary item sizes for visual interest - isotope style */
.gallery-item:nth-child(6n+1) {
    grid-row: span 2;
}

.gallery-item:nth-child(6n+2) {
    grid-column: span 2;
}

.gallery-item:nth-child(6n+3) {
    grid-row: span 2;
    grid-column: span 2;
}

.gallery-item:nth-child(6n+5) {
    grid-row: span 2;
}

.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: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 5px;
    }

    /* Simplify on mobile */
    .gallery-item:nth-child(6n+1),
    .gallery-item:nth-child(6n+2),
    .gallery-item:nth-child(6n+3),
    .gallery-item:nth-child(6n+5) {
        grid-row: span 1;
        grid-column: span 1;
    }

    /* Some variety on mobile */
    .gallery-item:nth-child(4n+1) {
        grid-row: span 2;
    }
}

/* ===== 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-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;
}