/* Remove container constraints for full-width layout */
.main-content.home-page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Local homepage palette variables (map to global variables in main.css) */
:root {
    --hp-bg-1: var(--primary-dark);
    --hp-bg-2: var(--primary);
    --hp-text-light: #ffffff;
    --hp-muted: var(--placeholder-color);
    --hp-cta-text: var(--text-color);
}

/* Hero Section with Parallax Effect */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: -80px;
    padding-top: 80px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

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

.hero-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/home_background.jpeg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Dark overlay box for better text readability */
.hero-text-box {
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(1px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--hp-text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Properties Section */
.featured-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, #f8fafc 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.section-title-on-dark {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e9e9e0ff;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--hp-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle-on-dark {
    font-size: 1.1rem;
    color: #ced6e0ff;
    max-width: 600px;
    margin: 0 auto;
}
.property-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    /* scrollbar-color: #d4af37 #e2e8f0; */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.property-grid::-webkit-scrollbar {
    height: 8px;
}

.property-grid::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.property-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    border-radius: 10px;
}

.property-grid::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Make property cards fixed width for horizontal scroll */
.property-grid .property-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
}

.blog-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    /*scrollbar-color: #d4af37 #e2e8f0;*/
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.blog-grid::-webkit-scrollbar {
    height: 8px;
}

.blog-grid::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
/*
    .blog-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
        border-radius: 10px;
    }

    .blog-grid::-webkit-scrollbar-thumb:hover {
        background: #d4af37;
    }
*/
/* Make blog cards fixed width for horizontal scroll */
.blog-grid .blog-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.property-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.property-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card-modern:hover .property-image-wrapper img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.property-card-body {
    padding: 1.5rem;
}

.property-price-modern {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.property-title-modern {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.property-location-modern {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features-modern {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.property-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--hp-bg-2) 0%, var(--hp-bg-1) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(
        135deg,
        var(--hp-bg-1) 0%,
        var(--hp-bg-2) 50%,
        var(--hp-bg-1) 100%
    );
    color: var(--hp-text-light);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--hp-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-btn-primary {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.hero-cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-hover);
    color: var(--secondary);
}
.cta-btn-primary {
    background: var(--light-bg);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-hover);
    color: var(--secondary);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    background: white;
    color: #1e293b;
}

/* One Day Offer Banner */
.offer-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #ff4500;
    border-bottom: 3px solid #ff4500;
}

.offer-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 140, 0, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.offer-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.offer-badge-flash {
    display: inline-block;
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: pulse-flash 2s infinite;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

@keyframes pulse-flash {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 140, 0, 0.8);
    }
}

.offer-banner-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    animation: glow-text 2s ease-in-out infinite;
}

@keyframes glow-text {
    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.8));
    }
}

.offer-banner-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.offer-countdown-mini {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.countdown-mini-item {
    perspective: 1000px;
}

.countdown-mini-flip {
    position: relative;
    width: 80px;
    height: 90px;
}

.countdown-mini-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.countdown-mini-card.flip-animation {
    animation: flip-mini 0.6s ease-in-out;
}

@keyframes flip-mini {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.countdown-mini-label {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-cta-btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff4500, #ff8c00);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(255, 69, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.offer-cta-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.offer-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.offer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 69, 0, 0.6);
    color: white;
}

.offer-cta-btn i {
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}

.offer-cta-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .property-grid .property-card {
        min-width: 280px;
        max-width: 280px;
    }

    .blog-grid .blog-card {
        min-width: 260px;
        max-width: 260px;
    }

    .hero-content {
        margin-top: 4rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-text-box {
        padding: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-text-box {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    /* Make buttons stack on mobile */
    .d-flex.gap-3 {
        flex-direction: column;
    }

    .hero-cta-btn-primary,
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.875rem 2rem;
    }

    /* Offer Banner Responsive */
    .offer-banner {
        padding: 2rem 0;
    }

    .offer-banner-title {
        font-size: 2rem;
    }

    .offer-banner-subtitle {
        font-size: 1rem;
    }

    .offer-countdown-mini {
        gap: 1rem;
    }

    .countdown-mini-flip {
        width: 60px;
        height: 70px;
    }

    .countdown-mini-card {
        font-size: 2rem;
    }

    .countdown-mini-label {
        font-size: 0.65rem;
    }

    .offer-cta-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Card responsive improvements */
    .property-grid .property-card {
        min-width: 260px;
        max-width: 260px;
    }

    .blog-grid .blog-card {
        min-width: 240px;
        max-width: 240px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle,
    .section-subtitle-on-dark {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Adjust section padding on mobile */
    .featured-section,
    .why-choose-section,
    .cta-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-text-box {
        padding: 1.25rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.8rem;
    }

    /* Offer Banner Mobile */
    .offer-banner {
        padding: 1.5rem 0;
    }

    .offer-badge-flash {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        letter-spacing: 1px;
    }

    .offer-banner-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .offer-banner-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .offer-countdown-mini {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .countdown-mini-flip {
        width: 50px;
        height: 60px;
    }

    .countdown-mini-card {
        font-size: 1.5rem;
        border-radius: 8px;
    }

    .countdown-mini-label {
        font-size: 0.6rem;
        margin-top: 0.25rem;
    }

    .offer-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Smaller cards on very small screens */
    .property-grid .property-card {
        min-width: 220px;
        max-width: 220px;
    }

    .blog-grid .blog-card {
        min-width: 200px;
        max-width: 200px;
    }

    .property-image-wrapper {
        height: 180px;
    }

    .property-card-body {
        padding: 1rem;
    }

    .property-price-modern {
        font-size: 1.4rem;
    }

    .property-title-modern {
        font-size: 1rem;
    }

    .property-location-modern {
        font-size: 0.85rem;
    }

    .property-features-modern {
        gap: 1rem;
    }

    .property-feature-item {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
    .hero-cta-btn-primary,
    .cta-btn-primary,
    .cta-btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-section {
        min-height: 450px;
    }

    .offer-banner-title {
        font-size: 1.3rem;
    }

    .offer-countdown-mini {
        gap: 0.5rem;
    }

    .countdown-mini-flip {
        width: 45px;
        height: 55px;
    }

    .countdown-mini-card {
        font-size: 1.3rem;
    }

    .offer-cta-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }

    .property-grid .property-card {
        min-width: 200px;
        max-width: 200px;
    }

    .blog-grid .blog-card {
        min-width: 180px;
        max-width: 180px;
    }
}
