/* ===================================================
   1. PROJECTS PAGE BASE STYLES & HEADER
   =================================================== */

body {
    background: #f4f2ee;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Refined Header: Adds glassmorphism effect */
.projects-header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #b9acaca2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projects-header .logo {
    color: #dacd48;
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: 600;
}

.projects-header .nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.projects-header .nav-links a {
    color: #333; 
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

/* --- Hamburger Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #d4af37;
    transition: 0.3s;
}

/* ===================================================
   2. HERO SECTION
   =================================================== */
.project-hero {
    height: 85vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1; 
}

.banner-content {
    position: relative;
    z-index: 2;
}

.project-hero .subtitle {
    color: #d4af37; 
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 10px;
}

.project-hero h1 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* ===================================================
   3. FILTER SYSTEM
   =================================================== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filter-btn {
    position: relative;
    background: none;
    border: none;
    color: #a3a3a3;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 15px 0;
    transition: color 0.4s ease;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
}

.filter-btn:hover {
    color: #111;
    transform: translateY(-2px);
}

.filter-btn:hover::after, 
.filter-btn.active::after {
    width: 100%;
}

.filter-btn.active {
    color: #d4af37;
    font-weight: 600;
}

/* ===================================================
   4. GRID & CARD LAYOUT
   =================================================== */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 30px !important;
    align-items: start;
    width: 100%;
}

.project-card {
    width: 100% !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0; /* Managed by GSAP */
    transform: translateY(30px); /* Managed by GSAP */
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.card-image {
    width: 100% !important;
    height: 250px !important; 
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

/* --- STATUS TAGS --- */
.status-tag {
    position: absolute;
    top: 20px;
    left: 0;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 0 50px 50px 0;
    z-index: 3;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.development { background: #b30000; }
.sold-out { background: #c5a059 !important; }
.ready-move { background: #27ae60 !important; }

.card-info { padding: 20px; }
.card-info h3 { font-family: "Playfair Display", serif; font-size: 22px; margin-bottom: 8px; color: #333; }
.card-info p { color: #777; margin-bottom: 15px; font-size: 14px; line-height: 1.7; }

.view-link { color: #d4af37; text-decoration: none; font-weight: 600; font-size: 14px; position: relative; }
.view-link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: #d4af37; transition: width 0.4s ease; }
.view-link:hover::after { width: 100%; }

/* --- DETAILS PAGE STYLES --- */
.details-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.details-gallery img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.details-text {
    max-width: 800px;
    margin: 0 auto;
}

.details-text-box {
    margin-top: 40px;
    padding: 20px;
    background: #ffffff;
    border-left: 5px solid #d4af37;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.details-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

.details-status {
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* ===================================================
   5. RESPONSIVE DESIGN
   =================================================== */

/* --- TABLETS (Under 1024px) --- */
@media (max-width: 1024px) {
    .projects-header { padding: 15px 30px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .project-hero h1 { font-size: 32px; }
}

/* --- MOBILE NAVIGATION SYNC (Under 992px) --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;  
        height: 100vh;
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1001;
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 24px !important; color: #111 !important; font-family: 'Playfair Display', serif; }

    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- MOBILE PHONES (Under 768px) --- */
@media (max-width: 768px) {
    .project-hero { height: 60vh; }
    .category-filter { gap: 20px; flex-wrap: wrap; padding: 0 10px 20px; }
    .filter-btn { font-size: 12px; letter-spacing: 1px; }
    .projects-container { padding: 40px 15px; }
    .projects-grid { grid-template-columns: 1fr !important; }
    .project-card { max-width: 450px; margin: 0 auto; }
    .details-gallery img { max-height: 350px; }
}

/* --- SMALL MOBILE (Under 480px) --- */
@media (max-width: 480px) {
    .project-hero h1 { font-size: 24px; padding: 0 10px; }
    .card-info h3 { font-size: 18px; }
    .status-tag { font-size: 9px; padding: 8px 15px; }
}

body.menu-open { overflow: hidden; }

/* ===================================================
   6. FOOTER
   =================================================== */
.footer {
    text-align: center;
    padding: 40px 0;
    background: #efede8;
    color: #777;
    font-size: 14px;
}