/**
 * ==========================================
 * HOMEPAGE SPECIFIC STYLES
 * ==========================================
 * 
 * Organized by section for easy maintenance
 */

/* ========================================
   1. HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
}

/* Video background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    z-index: 0;
    background: #000;
}

/* Ensure video element covers properly */
.hero-section video.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    transform: scale(1.05); /* Slight zoom to eliminate black bars */
}

/* Dark overlay for video */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Dark overlay */
    z-index: 1;
}

/* Hero content (text and buttons) */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero text styling */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-label {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

/* Responsive hero text */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}


/* ========================================
   2. SERVICES SECTION
   ======================================== */

.services-section {
    background-color: var(--color-bg-lighter);
    padding: 6rem 0;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), opacity 0.8s ease-out;
}

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

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.75rem;
    transition: all var(--transition-normal);
    opacity: 0.8;
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.15) rotate(-5deg);
    opacity: 1;
    box-shadow: 0 10px 25px rgba(8, 145, 178, 0.3);
}

.service-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.service-card:hover .service-title {
    color: var(--color-primary);
}

.service-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* ========================================
   3. FEATURED PROPERTIES / NEW LISTINGS
   ======================================== */

.featured-section {
    background-color: var(--color-bg-lighter);
    padding: 6rem 0;
}

.property-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), opacity 0.8s ease-out;
}

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

.property-card:nth-child(1) { transition-delay: 0s; }
.property-card:nth-child(2) { transition-delay: 0.1s; }
.property-card:nth-child(3) { transition-delay: 0.2s; }
.property-card:nth-child(4) { transition-delay: 0.3s; }
.property-card:nth-child(5) { transition-delay: 0.4s; }
.property-card:nth-child(6) { transition-delay: 0.5s; }

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

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

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

/* Property badges (New, Featured) */
.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--color-primary);
    color: white;
}

.badge-featured {
    background-color: var(--color-secondary);
    color: white;
}

/* Property price tag */
.property-price {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 2;
}

/* Property details */
.property-info {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.property-location {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}


/* ========================================
   4. WHY CHOOSE US SECTION
   ======================================== */

.why-choose-section {
    background-color: var(--color-bg-lighter);
    padding: 6rem 0;
}

.why-choose-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.why-choose-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    opacity: 0.9;
    display: block;
}

.why-choose-image:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.stats-box {
    position: absolute;
    bottom: -2rem;
    left: 2rem;
    right: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    justify-content: space-around;
    text-align: center;
    transition: transform var(--transition-normal);
}

.stats-box:hover {
    transform: translateY(-5px);
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

.advantage-item {
    display: flex;
    gap: 1rem;
    transition: transform var(--transition-normal);
}

.advantage-item:hover {
    transform: translateX(8px);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-bg-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    opacity: 0.8;
}

.advantage-item:hover .advantage-icon {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
}

.advantage-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.advantage-item:hover .advantage-content h4 {
    color: var(--color-primary);
}

.advantage-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* ========================================
   5. CLIENT TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    background-color: var(--color-bg-lighter);
    padding: 6rem 0;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 4rem;
    color: var(--color-primary-light);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1.5rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Carousel dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 5px;
}


/* ========================================
   6. GET IN TOUCH / CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Optional: Add background pattern */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h60v60H0z" fill="none"/><path d="M30 30m-2 0a2 2 0 1 0 4 0 2 2 0 1 0-4 0" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

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

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

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

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


/* ========================================
   7. SECTION HEADERS (REUSABLE)
   ======================================== */

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

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

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

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


/* ========================================
   8. BUTTONS (CONSISTENT STYLING)
   ======================================== */

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-primary);
}

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

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ========================================
   9. ANIMATIONS
   ======================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}


/* ========================================
   10. UTILITIES
   ======================================== */

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-8 {
    margin-top: 2rem;
}


/* ========================================
   11. SCROLL ANIMATIONS
   ======================================== */

.fade-in-section {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   12. SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
}
