/**
 * Projects Page Premium Styles - Damascus Heritage
 * Brand Color: #c28e31
 */

:root {
    --brand-color: #c28e31;
    --brand-color-light: #f4b146;
    --brand-color-dark: #a67526;
    --text-dark: #2b2b2b;
    --text-gray: #6d6d6d;
    --white: #ffffff;
    --cream: #fdfaf5;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.damascus-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="damascus" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0 L40 20 L20 40 L0 20 Z" fill="%23c28e31" opacity="0.02"/></pattern></defs><rect width="200" height="200" fill="url(%23damascus)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */

.premium-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(194, 142, 49, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-base);
}

.premium-header.scrolled {
    box-shadow: 0 4px 20px rgba(194, 142, 49, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 40px;
}

.logo-section .logo {
    display: block;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--brand-color);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-light));
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(194, 142, 49, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 142, 49, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--brand-color);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    transition: right var(--transition-base);
    z-index: 111;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-base);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(194, 142, 49, 0.1), rgba(244, 177, 70, 0.1));
    color: var(--brand-color);
}

.mobile-cta-btn {
    display: block;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-light));
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
}

/* ============================================
   Page Hero
   ============================================ */

.page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(194, 142, 49, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-color);
    background: linear-gradient(135deg, rgba(194, 142, 49, 0.1), rgba(244, 177, 70, 0.1));
    padding: 10px 30px;
    border-radius: 30px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.damascus-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.damascus-ornament::before,
.damascus-ornament::after {
    content: '';
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-color), transparent);
}

.damascus-ornament i {
    font-size: 24px;
    color: var(--brand-color);
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Filter Section
   ============================================ */

.filter-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid rgba(194, 142, 49, 0.1);
}

.filter-header {
    text-align: center;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.filter-title i {
    color: var(--brand-color);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid rgba(194, 142, 49, 0.2);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--transition-base);
}

.filter-chip:hover {
    border-color: var(--brand-color);
    background: rgba(194, 142, 49, 0.05);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-light));
    color: white;
    border-color: var(--brand-color);
    box-shadow: 0 4px 15px rgba(194, 142, 49, 0.3);
}

.filter-chip i {
    font-size: 14px;
}

/* ============================================
   Projects Grid
   ============================================ */

.projects-main {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
}

.project-card {
    opacity: 0;
    transform: translateY(30px);
    border: 4px solid var(--brand-color) !important;
    border-radius: 20px !important;
    padding: 20px !important;
}

.project-card.animate-in {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-link {
    display: block;
    text-decoration: none;
}

.project-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 20px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.12);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(194, 142, 49, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 48px;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 18px;
    font-weight: 700;
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(194, 142, 49, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.project-content {
    padding: 0 5px;
}

.project-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-color);
    margin-bottom: 12px;
}

.project-category i {
    font-size: 12px;
}

.project-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--brand-color);
}

.project-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(194, 142, 49, 0.1);
}

.view-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-color);
    transition: gap 0.3s ease;
}

.project-card:hover .view-details {
    gap: 12px;
}

.view-details i {
    transition: transform 0.3s ease;
}

.project-card:hover .view-details i {
    transform: translateX(-3px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 80px;
    color: var(--brand-color);
    opacity: 0.3;
    margin-bottom: 30px;
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--brand-color), var(--brand-color-light));
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-base);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(194, 142, 49, 0.3);
}

/* ============================================
   Footer
   ============================================ */

.premium-footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 100px;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(194, 142, 49, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    transition: all var(--transition-base);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--brand-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-projects h4,
.footer-contact h4 {
    color: var(--brand-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all var(--transition-base);
    font-size: 14px;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--brand-color);
    padding-right: 5px;
}

.footer-projects ul {
    list-style: none;
}

.footer-projects li {
    margin-bottom: 10px;
}

.footer-projects li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-base);
    display: block;
}

.footer-projects li a:hover {
    color: var(--brand-color);
    padding-right: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.contact-item i {
    color: var(--brand-color);
    font-size: 16px;
    margin-top: 2px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
    display: block;
}

.contact-item a:hover {
    color: var(--brand-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-tagline {
    color: var(--brand-color);
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
}

.footer-tagline i {
    font-size: 12px;
    opacity: 0.6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .cta-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-img,
    .footer-logo-img {
        height: 80px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-image-wrapper {
        height: 260px;
    }
    
    .filter-chips {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px 0;
    }
    
    .filter-chip {
        flex-shrink: 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .projects-main {
        padding: 60px 0;
    }
    
    .project-content {
        padding: 0;
    }
}