/* ==========================================================================
   GuruGhar Estate - Premium Projects Grid Styling
   ========================================================================== */

:root {
    --p-bg: #fafafa;                  /* Luxury clean off-white gallery background */
    --p-dark: #302f35;                /* Slate Charcoal theme */
    --p-gold: #d4af37;                /* Brand Premium Gold */
    --p-gold-glow: rgba(212, 175, 55, 0.12);
    --p-text: #4a4a4f;                /* Body text */
    --p-text-light: #6c6c72;          /* Muted meta labels */
    --p-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.projects-section {
    padding: 120px 40px;
    background-color: var(--p-bg);
    font-family: 'Outfit', 'Poppins', sans-serif;
    position: relative;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   SECTION HEADING
   ========================================================================== */
.section-heading {
    text-align: center;
    margin-bottom: 70px;
}

.projects-micro-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--p-gold);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--p-dark);
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-heading h2 span.gold-text {
    color: var(--p-gold);
    font-style: italic;
    font-weight: 600;
}

.projects-title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--p-gold);
    margin: 0 auto 24px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.section-heading p {
    font-size: 16px;
    color: var(--p-text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   PROJECTS SLIDER & CARDS
   ========================================================================== */
.projects-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.projects-header-flex .section-heading {
    text-align: left;
    margin-bottom: 0;
}

.projects-header-flex .projects-title-underline {
    margin: 0 0 24px 0;
}

.projects-header-flex .section-heading p {
    margin: 0;
}

/* Slider Nav Buttons */
.projects-slider-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.projects-prev-btn,
.projects-next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--p-gold);
    background: transparent;
    color: var(--p-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--p-transition);
    outline: none;
}

.projects-prev-btn:hover,
.projects-next-btn:hover {
    background: var(--p-gold);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

.projects-prev-btn:active,
.projects-next-btn:active {
    transform: scale(0.95);
}

/* Swiper Container */
.projects-slider {
    padding: 15px 5px 35px 5px !important;
    margin: 0 -5px;
    overflow: hidden;
}

.projects-slider .swiper-slide {
    height: auto; /* Stretches cards in the row to equal height */
    display: flex;
    flex-direction: column;
}

.project-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    transition: var(--p-transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.08), 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   CARD TOP MEDIA & BADGES
   ========================================================================== */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
}

.premium-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(48, 47, 53, 0.95);
    color: #ffffff;
    border: 1px solid var(--p-gold);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.premium-badge i {
    color: var(--p-gold);
}

.card-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .card-img img {
    transform: scale(1.08);
}

/* Fallback/Placeholder Visual Frame */
.placeholder-img {
    filter: brightness(0.6) contrast(1.1);
}

.placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(48, 47, 53, 0.6) 0%, rgba(48, 47, 53, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.overlay-logo {
    max-height: 75px !important;
    width: auto !important;
    object-fit: contain !important;
    opacity: 0.85;
    transition: var(--p-transition) !important;
}

.project-card:hover .overlay-logo {
    transform: scale(1.05) translateY(-3px);
    opacity: 1;
}

/* ==========================================================================
   CARD CONTENT & BODY
   ========================================================================== */
.card-content {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--p-dark);
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--p-transition);
}

.project-card:hover .card-content h3 {
    color: var(--p-gold);
}

.project-desc {
    color: var(--p-text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ==========================================================================
   4-CELL LUXURY SPECIFICATIONS GRID
   ========================================================================== */
.project-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.spec-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-cell i {
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--p-gold);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--p-transition);
    flex-shrink: 0;
}

.project-card:hover .spec-cell i {
    background: var(--p-gold);
    color: #ffffff;
    transform: scale(1.05);
}

.spec-label {
    font-size: 13.5px;
    color: var(--p-text-light);
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* ==========================================================================
   CTA BUTTON (Skewed physical compress click hover)
   ========================================================================== */
.card-action {
    display: flex;
    justify-content: flex-start;
}

.skew-btn {
    position: relative;
    display: inline-flex;
    padding: 13px 32px;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    margin-left: 6px;
    z-index: 5;
    transition: var(--p-transition);
}

.skew-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--p-dark);
    transform: skewX(-12deg);
    border-radius: 3px;
    z-index: -1;
    transition: var(--p-transition);
    box-shadow: 0 5px 15px rgba(48, 47, 53, 0.15);
}

.skew-btn::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -6px;
    width: 100%;
    height: 100%;
    background-color: var(--p-gold);
    transform: skewX(-12deg);
    border-radius: 3px;
    z-index: -2;
    transition: var(--p-transition);
}

/* Tactile Compress Click Effect on Hover */
.skew-btn:hover {
    transform: translate(-3px, 3px);
}

.skew-btn:hover::before {
    background-color: var(--p-gold);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.skew-btn:hover::after {
    background-color: var(--p-dark);
    top: 0px;        /* Moves flat/compresses */
    left: 0px;       /* Moves flat/compresses */
    box-shadow: none;
}

/* ==========================================================================
   NO PROJECTS FALLBACK STATE
   ========================================================================== */
.no-projects-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: #ffffff;
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.no-projects-box i {
    font-size: 48px;
    color: var(--p-gold);
    opacity: 0.8;
}

.no-projects-box p {
    font-size: 16px;
    color: var(--p-text-light);
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 992px) {
    .projects-section {
        padding: 90px 30px;
    }
    
    .section-heading h2 {
        font-size: 38px;
    }
}

@media screen and (max-width: 768px) {
    .projects-section {
        padding: 70px 20px;
    }
    
    .projects-header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .projects-header-flex .section-heading {
        text-align: center;
    }

    .projects-header-flex .projects-title-underline {
        margin: 0 auto 20px auto;
    }
    
    .projects-slider-nav {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .section-heading h2 {
        font-size: 32px;
    }
    
    .card-img-wrapper {
        height: 240px;
    }
    
    .card-content {
        padding: 30px 24px;
    }
    
    .card-content h3 {
        font-size: 23px;
    }
}
