/* ========================================
   PROJECTS COMPONENTS
   ======================================== */

/* Projects Hero */
.projects-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 120px;
}

.projects-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1;
}

.projects-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-overlay-heavy);
    z-index: 2;
}

.projects-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

/* Filter Section */
.filter-section {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
}

.filter-controls {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    background: var(--white);
    color: #666;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Projects Grid Section */
.projects-grid-section {
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

/* Featured projects with video background */
.featured-projects-section.video-bg-container {
    background: var(--black);
}

.featured-projects-section.video-bg-container .section-subtitle {
    color: var(--primary);
}

.featured-projects-section.video-bg-container .section-title {
    color: var(--white);
}

.featured-projects-section.video-bg-container .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card-image {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    padding: var(--spacing-md);
    color: var(--white);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.project-location i {
    width: 16px;
    height: 16px;
}

.project-type {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Asymmetric Grid Layout */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
}

.featured-projects-grid .project-card:nth-child(4n+1) {
    grid-column: span 7;
}

.featured-projects-grid .project-card:nth-child(4n+2) {
    grid-column: span 5;
}

.featured-projects-grid .project-card:nth-child(4n+3) {
    grid-column: span 5;
}

.featured-projects-grid .project-card:nth-child(4n+4) {
    grid-column: span 7;
}

/* Apartments Showcase */
.apartments-showcase-section {
    position: relative;
    overflow: hidden;
}

.apartments-showcase-section.video-bg-container {
    background: var(--black);
}

.apartments-showcase-section.video-bg-container .section-subtitle {
    color: var(--primary);
}

.apartments-showcase-section.video-bg-container .section-title {
    color: var(--white);
}

.apartments-showcase-section.video-bg-container .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.apartment-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
}

.apartment-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.apartment-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.apartment-content {
    padding: var(--spacing-md);
}

.apartment-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.apartment-features {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.feature-item i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Land Section */
.land-section.video-bg-container {
    background: var(--black);
}

.land-section.video-bg-container .section-subtitle {
    color: var(--primary);
}

.land-section.video-bg-container .section-title {
    color: var(--white);
}

.land-section.video-bg-container .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #A67C28 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* CTA with video background */
.cta-section.video-bg-container {
    background: var(--black);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* Mobile Adjustments */
/* Tablet */
@media (max-width: 1024px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-projects-grid .project-card {
        grid-column: span 1 !important;
    }
    
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (Tablet Portrait) */
@media (max-width: 768px) {
    .projects-hero {
        margin-top: 80px;
        height: 40vh;
        min-height: 280px;
    }
    
    .projects-hero-content h1 {
        font-size: 2rem;
    }
    
    .projects-hero-content p {
        font-size: 1rem;
    }
    
    .filter-section {
        padding: 1rem 0;
    }
    
    .filter-controls {
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
        flex: 1 1 auto;
        min-width: fit-content;
    }
    
    .projects-grid,
    .apartments-grid,
    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-card-image,
    .apartment-image {
        height: 220px;
    }
    
    .project-card-overlay {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }
    
    .project-location {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }
    
    .project-type {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.625rem;
    }
    
    .apartment-content {
        padding: 1rem;
    }
    
    .apartment-title {
        font-size: 1.125rem;
    }
    
    .apartment-features {
        gap: 0.875rem;
        margin: 0.875rem 0;
    }
    
    .feature-item {
        font-size: 0.875rem;
    }
    
    .feature-item i {
        width: 16px;
        height: 16px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
}

/* Mobile Standard */
@media (max-width: 480px) {
    .projects-hero {
        margin-top: 75px;
        height: 35vh;
        min-height: 250px;
    }
    
    .projects-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .projects-hero-content p {
        font-size: 0.9375rem;
    }
    
    .filter-controls {
        gap: 0.375rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-width: auto;
    }
    
    .projects-grid,
    .apartments-grid {
        gap: 0.875rem;
    }
    
    .project-card-image,
    .apartment-image {
        height: 200px;
    }
    
    .project-card-overlay {
        padding: 0.875rem;
    }
    
    .project-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
    }
    
    .project-title {
        font-size: 1.125rem;
    }
    
    .project-location {
        font-size: 0.75rem;
    }
    
    .project-location i {
        width: 14px;
        height: 14px;
    }
    
    .apartment-content {
        padding: 0.875rem;
    }
    
    .apartment-title {
        font-size: 1rem;
    }
    
    .apartment-features {
        gap: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .feature-item {
        font-size: 0.8125rem;
    }
    
    .feature-item i {
        width: 14px;
        height: 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9375rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 0.9375rem;
    }
    
    .cta-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Mobile Very Small */
@media (max-width: 375px) {
    .projects-hero {
        min-height: 220px;
    }
    
    .projects-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .project-card-image,
    .apartment-image {
        height: 180px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .apartment-title {
        font-size: 0.9375rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
    }
}