/* ═══════════════════════════════════════════════════════════
   INFINITY BROKERAGE REAL ESTATE — Website Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --gold: #f59e0b;
    --green: #22c55e;
    --whatsapp: #25D366;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow: 0 4px 30px rgba(0,0,0,0.3);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ─── PRELOADER ─── */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.infinity-symbol svg {
    width: 80px;
    height: 40px;
}

.infinity-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawInfinity 2s ease-in-out infinite;
}

@keyframes drawInfinity {
    0% { stroke-dashoffset: 300; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -300; }
}

.loader-text {
    margin-top: 16px;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--whatsapp);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.7) 50%, rgba(15,23,42,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    margin-left: 8%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--whatsapp);
    color: var(--whatsapp);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    font-size: 1.1rem;
    padding: 16px 40px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
    text-align: left;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--primary-light);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -4px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.hero-scroll a:hover {
    color: var(--primary-light);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

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

/* ─── ABOUT ─── */
.about {
    padding: 120px 0;
    background: var(--dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
}

.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 4px solid var(--dark);
    box-shadow: var(--shadow);
}

.about-experience {
    position: absolute;
    top: 30px;
    right: -30px;
    background: var(--gradient);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.exp-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-light);
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-feature h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.about-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── PROJECTS ─── */
.projects {
    padding: 120px 0;
    background: var(--dark-2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-color: rgba(37, 99, 235, 0.3);
}

.project-card.featured {
    grid-column: span 2;
}

.project-card.featured .project-image img {
    height: 400px;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 24px;
}

.project-location {
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.project-location i {
    margin-right: 4px;
}

.project-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.project-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-details i {
    color: var(--primary-light);
    margin-right: 4px;
}

/* ─── SERVICES ─── */
.services {
    padding: 120px 0;
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--dark-2);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.service-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ─── STATS ─── */
.stats-section {
    padding: 120px 0;
    background: var(--dark-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    background: var(--dark);
    padding: 40px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--primary-light);
}

.stat-card .stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-card .stat-name {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ─── CTA ─── */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 500px;
}

/* ─── CONTACT ─── */
.contact {
    padding: 120px 0;
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    color: var(--primary-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.contact-socials a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.contact-socials a:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ─── FOOTER ─── */
.footer {
    padding: 80px 0 0;
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-links a i {
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-img-secondary { right: 0; }
    .about-experience { right: 0; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: span 1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-content { flex-direction: column; text-align: center; }
    .cta-text p { margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-cta { display: none; }
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-content { margin-left: 0; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; gap: 32px; }
    .hero-stat { text-align: center; }

    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

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

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .project-details { flex-direction: column; gap: 8px; }
}
