/* ===========================
   Specialization Details Page Styles
   =========================== */

:root {
    --brand-color: #c28e31;
    --brand-dark: #9a6f24;
    --brand-light: #f5e6d3;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #f9f9f9;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #fff;
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Damascus Pattern Background */
.damascus-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(194, 142, 49, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(194, 142, 49, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Premium Header
   =========================== */
.premium-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.premium-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.98);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    gap: 2rem;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-color), var(--brand-dark));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-btn {
    background: linear-gradient(135deg, var(--brand-color), var(--brand-dark));
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 4px 15px rgba(194, 142, 49, 0.3);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(194, 142, 49, 0.4);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--brand-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--bg-light), #fff);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumb a:hover {
    color: var(--brand-color);
}

.breadcrumb .separator {
    color: var(--text-secondary);
}

.breadcrumb .current {
    color: var(--brand-color);
    font-weight: 600;
}

/* ===========================
   Specialization Hero
   =========================== */
.spec-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0,0,0,0.7) 0%, 
        rgba(194,142,49,0.6) 50%,
        rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge.primary {
    background: rgba(194,142,49,0.3);
    border-color: var(--brand-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===========================
   Stats Cards
   =========================== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ===========================
   Section Header
   =========================== */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand-color), transparent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: var(--brand-color);
}

/* ===========================
   Gallery Section
   =========================== */
.gallery-section {
    margin-bottom: 4rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Swiper Gallery
   =========================== */
.main-gallery-swiper {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: visible;
    padding: 20px 0;
}

.swiper-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.swiper-slide {
    height: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(194,142,49,0.95) 0%, rgba(154,111,36,0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-icon {
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--brand-color);
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-label {
    background: rgba(255,255,255,0.95);
    color: var(--brand-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(194,142,49,0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--brand-color);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: -10px !important;
}

.swiper-pagination-bullet {
    background: var(--brand-color);
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--brand-color), var(--brand-dark));
}

/* View Toggle */
.view-toggle {
    text-align: center;
    margin: 3rem 0;
}

.toggle-btn {
    background: linear-gradient(135deg, var(--brand-color), var(--brand-dark));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 20px rgba(194,142,49,0.3);
    transition: var(--transition);
}

.toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(194,142,49,0.4);
}

/* Grid Gallery */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.grid-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(194,142,49,0.95) 0%, rgba(154,111,36,0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-item:hover img {
    transform: scale(1.15);
}

.grid-icon {
    background: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-color);
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.grid-item:hover .grid-icon {
    transform: scale(1.1);
}

/* ===========================
   Project Description
   =========================== */
.section-description {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--brand-color);
    margin-bottom: 4rem;
}

.section-description p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 2;
    text-align: justify;
}

/* ===========================
   Empty State
   =========================== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 5rem;
    color: var(--brand-color);
    margin-bottom: 2rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--brand-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   Navigation Section
   =========================== */
.navigation-section {
    margin: 4rem 0;
    text-align: center;
}

.back-to-projects {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--brand-color), var(--brand-dark));
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(194,142,49,0.3);
    transition: var(--transition);
}

.back-to-projects:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(194,142,49,0.4);
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(194,142,49,0.8);
    border-color: var(--brand-color);
}

.lightbox-prev {
    right: 2rem;
}

.lightbox-next {
    left: 2rem;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-counter {
    position: absolute;
    bottom: 3rem;
    right: 50%;
    transform: translateX(50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.2);
    z-index: 10001;
}

.lightbox-title {
    position: absolute;
    bottom: 8rem;
    right: 50%;
    transform: translateX(50%);
    background: rgba(194,142,49,0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 80%;
    text-align: center;
    z-index: 10001;
}

/* ===========================
   Footer
   =========================== */
.premium-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(194,142,49,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    transition: var(--transition);
    border: 1px solid rgba(194,142,49,0.3);
}

.footer-social a:hover {
    background: var(--brand-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--brand-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    padding-right: 1rem;
    position: relative;
}

.footer-links a::before {
    content: '◄';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--brand-color);
    padding-right: 1.5rem;
}

.footer-links a:hover::before {
    opacity: 1;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.contact-item i {
    color: var(--brand-color);
    font-size: 1.2rem;
    width: 25px;
    flex-shrink: 0;
}

.contact-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.contact-item a:hover {
    color: var(--brand-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.copyright {
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--brand-color);
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
}

.footer-tagline i {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .project-showcase {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .cta-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 94px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 94px);
        background: white;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu-content {
        padding: 2rem;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 1rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid var(--border-color);
        transition: var(--transition);
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--brand-color);
        padding-right: 1.5rem;
    }
    
    .mobile-cta-btn {
        display: block;
        text-align: center;
        background: var(--brand-color);
        color: white;
        padding: 1rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 700;
        margin-top: 1.5rem;
    }
    
    .spec-hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-cards {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .grid-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        right: 1rem;
    }
    
    .lightbox-next {
        left: 1rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .grid-gallery {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .toggle-btn {
        padding: 1rem 1.8rem;
        font-size: 1rem;
    }
    
    #lightbox-img {
        max-width: 95%;
    }
    
    .lightbox-title {
        bottom: 6rem;
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }
}