/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Real Estate Industry Palette */
    --primary-color: #2c5282;
    --primary-light: #3182ce;
    --primary-dark: #1a365d;
    --secondary-color: #d69e2e;
    --secondary-light: #ecc94b;
    --secondary-dark: #b7791f;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Typography */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

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

/* ===== MOBILE MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
    position: relative;
    padding-top: 100px;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    animation: fadeInRight 1s ease-out;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--white);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-item {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-item:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: 12px;
}

.service-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

.package-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    padding: 48px 32px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.package-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.package-content {
    position: relative;
    z-index: 2;
}

.package-content h3 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
}

.package-price {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
    color: var(--secondary-light);
}

.package-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

.package-content .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ===== WORK SECTION ===== */
.work {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.work-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.work-thumbnail {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.work-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: 8px;
}

.work-info p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.work-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
}

.work-link:hover {
    color: var(--primary-dark);
}

.disclaimer {
    margin-top: 40px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.disclaimer p {
    color: var(--gray-700);
    font-size: 0.925rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.disclaimer strong {
    color: var(--gray-800);
    font-weight: var(--font-weight-semibold);
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding: var(--section-padding);
    background: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.client-item {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    text-decoration: none;
    overflow: hidden;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.client-logo img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

.client-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 82, 130, 0.9);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    font-weight: var(--font-weight-medium);
}

.client-item:hover .client-overlay {
    opacity: 1;
}

.client-item:hover .client-logo img {
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

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

.phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.phone-icon {
    font-size: 2rem;
}

.phone-link {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.contact-subtext {
    color: var(--gray-600);
    font-size: 1.125rem;
}

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

.social-preview h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    font-size: 0.925rem;
}

.social-link:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    background: rgba(44, 82, 130, 0.02);
    color: var(--primary-color);
}

.social-icon {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.social-name {
    color: inherit;
    transition: var(--transition);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 48px 0 24px;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    color: var(--white);
}

.footer-brand p,
.footer-contact p {
    color: var(--gray-400);
}

.footer-contact {
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-700);
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-15px);
    }
    70% {
        transform: translateX(-50%) translateY(-7px);
    }
    90% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes float {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 968px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-placeholder {
        height: 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .work-item {
        margin: 0 -10px;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .phone-number {
        flex-direction: column;
        gap: 8px;
    }
    
    .phone-link {
        font-size: 1.75rem;
    }
    
    .package-highlight {
        padding: 32px 24px;
    }
    
    .package-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    :root {
        --section-padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero-image-placeholder {
        height: 250px;
    }
    
    .work-thumbnail {
        height: 300px;
    }
    
    .service-item,
    .client-item {
        padding: 24px 16px;
    }
    
    .phone-link {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-item {
        padding: 12px;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image-placeholder {
        background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        padding-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        color: #000;
    }
    
    .btn {
        border: 1px solid #000;
        background: transparent !important;
        color: #000 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.phone-link:focus,
.work-link:focus,
.client-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
