/* Premium Home CSS - Sterling Global */

/* Override default main container for full-width hero */
main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.premium-home > section:not(.premium-hero) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Base & Reusable */
.premium-home {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

.section-heading {
    margin-bottom: 3rem;
}

.eyebrow {
    color: #00E5FF;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

h2 {
    color: #0f172a;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.section-desc {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

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

.glow-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.glow-hover:hover::before {
    left: 150%;
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

/* 1. HERO SECTION */
.premium-hero {
    position: relative;
    height: 100vh; /* Make it full height */
    min-height: 700px; /* Ensure it never shrinks too small */
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding to make it full width */
    margin: 0; /* Remove margin */
    margin-top: -100px; /* Pull it up under the sticky header so it touches the top of the page */
    width: 100vw; /* Force viewport width */
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%); /* Center the forced width */
}

.hero-banner-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 6s linear; /* Slow zoom effect */
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.5) 0%, rgba(2, 6, 23, 0.2) 50%, rgba(2, 6, 23, 0.4) 100%);
    z-index: 1;
}

#hero-3d-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 191, 166, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape-1 { width: 150px; height: 150px; top: 20%; left: 10%; animation: float 15s infinite ease-in-out; }
.shape-2 { width: 250px; height: 250px; bottom: 10%; right: 15%; animation: float 20s infinite ease-in-out reverse; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.shape-3 { width: 100px; height: 100px; top: 30%; right: 25%; animation: float 12s infinite ease-in-out 2s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 8rem; /* space for search card */
    padding-top: 100px; /* Offset the negative margin from header */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.swiper-slide-active .hero-content-wrapper {
    opacity: 1;
}

.static-search-card {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) perspective(1000px) rotateX(2deg);
    z-index: 10;
    width: calc(100% - 4rem);
    max-width: 1000px;
}

.static-search-card:hover {
    transform: translateX(-50%) perspective(1000px) rotateX(0deg);
}

.hero-pagination {
    bottom: 8rem !important;
}

.hero-nav-prev, .hero-nav-next {
    color: #00E5FF !important;
}

.hero-text-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #00E5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: 1rem 0;
    width: 100%;
    text-align: center;
}

.hero-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-align: center;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.premium-button {
    background: linear-gradient(135deg, #00E5FF, #00BFA6);
    color: #020617;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
}

.premium-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-search-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-search-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
}

.search-field select {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.search-submit-btn {
    background: #ea580c;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-submit-btn:hover {
    background: #f97316;
}

@media (max-width: 768px) {
    .hero-search-form {
        flex-direction: column;
    }
    .search-field, .search-submit-btn {
        width: 100%;
    }
}

/* 3. SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.three-d-icon-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    transform-style: preserve-3d;
}

.three-d-icon-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 191, 166, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00E5FF;
    transition: transform 0.4s ease;
}

.three-d-icon-card:hover .service-icon {
    transform: translateZ(30px) scale(1.1);
    background: linear-gradient(135deg, #00E5FF, #00BFA6);
    color: #fff;
}

.three-d-icon-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    transition: transform 0.4s ease;
}

.three-d-icon-card:hover h3, .three-d-icon-card:hover p {
    transform: translateZ(20px);
}

.three-d-icon-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* 2. FEATURED PROPERTIES */
.property-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.three-d-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.three-d-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.property-visual-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-visual {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.three-d-card:hover .property-visual {
    transform: scale(1.1);
}

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.badge.featured { background: #ea580c; }
.badge.status { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); }

.property-glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.three-d-card:hover .property-glass-overlay {
    opacity: 1;
}

.view-btn {
    background: #fff;
    color: #0f172a;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.three-d-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: #00E5FF;
    color: #fff;
}

.property-body {
    padding: 1.5rem;
    background: #fff;
    position: relative;
    z-index: 4;
}

.property-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #0f172a;
}

.property-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.property-meta i {
    color: #00E5FF;
    margin-right: 0.3rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.property-features span {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    color: #ea580c;
}

.details-link {
    color: #00E5FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.details-link:hover {
    color: #00BFA6;
}

/* 4. WHY CHOOSE US */
.why-choose-us {
    background: #fff;
    padding: 4rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.process-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #00E5FF;
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.08);
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 2px solid #00E5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00E5FF;
}

.step-card h4 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.step-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #ea580c;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background: #ea580c;
    color: #fff;
}

.animated-counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid #f1f5f9;
}

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

.counter-item h3 {
    font-size: 3rem;
    color: #00E5FF;
    margin: 0 0 0.5rem;
    font-weight: 800;
}

.counter-item p {
    color: #64748b;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 5. TESTIMONIALS */
.testimonials-section {
    padding: 2rem 0;
}

.testimonial-slider {
    padding: 2rem 1rem 4rem !important;
}

.testimonial-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 3rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    margin-top: 30px;
    transition: transform 0.3s ease;
}

.testimonial-glass-card:hover {
    transform: translateY(-10px);
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote {
    font-size: 1.1rem;
    color: #475569;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-glass-card h4 {
    margin: 0 0 0.2rem;
    color: #0f172a;
}

.testimonial-glass-card span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.swiper-pagination-bullet-active {
    background: #00E5FF !important;
}

/* 6. CTA SECTION */
.premium-cta-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    background: #0f172a;
}

.cta-glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4rem;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.cta-banner-text h3 {
    margin: 0 0 1rem;
    font-size: 1.8rem;
}

.cta-banner-img {
    width: 200px;
    height: 150px;
    background-image: url('https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&q=80&w=400');
    background-size: cover;
    background-position: center top;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .partner-logos {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}