/* CSS Variables */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e1b4b;
    --secondary-color: #334155;
    --accent-color: #f59e0b;
    --success-color: #059669;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-light: #64748b;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(249, 158, 11, 0.7) 50%, rgba(30, 27, 75, 0.9) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

.btn.scroll-animated {
    animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: 0 0 20px rgba(30, 58, 138, 0.6), var(--shadow-md);
    }
}

.btn-secondary {
    background-color: var(--background-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Sticky WhatsApp Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-sticky a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    font-weight: 500;
}

.whatsapp-sticky a:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

.whatsapp-sticky span {
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-sticky span {
        display: inline;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--background-white) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-image {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.4));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.header.scrolled .logo-image {
    height: 90px;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.3));
}

.logo-text {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text h1 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .logo-text h1 {
    font-size: 2rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .tagline {
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero Background Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Carousel Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
    filter: brightness(0.9);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
}

.hero-slide.prev {
    opacity: 0;
    transform: scale(1.1) translateX(-20px);
    filter: brightness(0.8);
}

.hero-slide.next {
    opacity: 0;
    transform: scale(1.1) translateX(20px);
    filter: brightness(0.8);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 27, 75, 0.8) 100%);
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.slide-overlay.scroll-animated {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(249, 115, 22, 0.7) 50%, rgba(30, 58, 138, 0.9) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 27, 75, 0.9) 100%);
    }
    25% {
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(249, 158, 11, 0.7) 50%, rgba(30, 27, 75, 0.9) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(249, 158, 11, 0.8) 100%);
    }
    75% {
        background: linear-gradient(135deg, rgba(249, 158, 11, 0.8) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(30, 27, 75, 0.9) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.scroll-animated {
    transform: scale(1.02);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-title.scroll-animated {
    transform: translateY(-10px);
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero {
        min-height: 80vh;
    }
}

/* Property Showcase */
.showcase {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.property-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.property-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.property-card.scroll-animated::before {
    opacity: 1;
}

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

.property-image {
    height: 200px;
    overflow: hidden;
}

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

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

.property-info {
    padding: 1.5rem;
}

.property-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sold-status {
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.875rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.5);
}

.step-number.scroll-animated {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.6);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.step h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Why 2% Works */
.why-2-percent {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .benefits {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit {
    text-align: center;
    padding: 2rem 1rem;
}

.benefit-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.2));
}

.benefit-icon.scroll-animated {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.4));
    color: var(--primary-color);
}

.benefit h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* About Us */
.about-us {
    padding: 4rem 0;
}

.founders {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0 3rem;
}

@media (min-width: 768px) {
    .founders {
        grid-template-columns: repeat(2, 1fr);
    }
}

.founder {
    text-align: center;
    padding: 2rem 1rem;
}

.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.founder-image.scroll-animated {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5);
}

.founder h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-dark);
}

.contact-cta {
    margin-top: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 300px;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo .tagline {
    color: var(--text-light);
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: white;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--text-secondary);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .showcase,
    .how-it-works,
    .why-2-percent,
    .about-us,
    .contact {
        padding: 3rem 0;
    }
    
    .property-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .steps {
        gap: 1.5rem;
    }
    
    .benefits {
        gap: 1.5rem;
    }
    
    .founders {
        gap: 1.5rem;
    }
    
    .whatsapp-sticky {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-sticky a {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo-image {
        height: 90px;
    }
    
    .header.scrolled .logo-image {
        height: 70px;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .header.scrolled .logo-text h1 {
        font-size: 1.75rem;
    }
    
    .footer-logo {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo-image {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .property-card {
        margin: 0 0.5rem;
    }
    
    .carousel-dots {
        bottom: 1.5rem;
        gap: 0.5rem;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}
