/* Custom CSS for Veritas Prime International Real Estate */

/* Root Variables */
:root {
    --primary-red: #CC014D;
    --blue-black: #24344D;
    --charcoal: #333333;
    --white: #ffffff;
}

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0013d;
}

/* Custom Border Radius Override */
.rounded {
    border-radius: 0px !important;
}

.rounded-sm {
    border-radius: 0px !important;
}

/* Navigation Styles */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancements */
.hero-overlay {
    background: linear-gradient(135deg, rgba(36, 52, 77, 0.8) 0%, rgba(204, 1, 77, 0.3) 100%);
}

/* Button Hover Effects */
.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 0px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 1, 77, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    padding: 12px 32px;
    border-radius: 0px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 1, 77, 0.3);
}

/* Card Hover Effects */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--primary-red);
}

.feature-icon {
    transition: all 0.3s ease;
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* WhatsApp Button Animation */
.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

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

/* Modal Styles */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(204, 1, 77, 0.1);
    outline: none;
}

/* Section Dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
    margin: 40px auto;
    width: 100px;
}

/* Image Hover Effects */
.image-hover {
    overflow: hidden;
    border-radius: 0px;
}

.image-hover img {
    transition: transform 0.5s ease;
}

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

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 1, 77, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Desktop Image Height Adjustments */
@media (min-width: 1024px) {
    .h-96 {
        height: 32rem !important; /* Increased from 24rem (h-96) to 32rem */
    }
    
    .h-44 {
        height: 16rem !important; /* Increased from 11rem (h-44) to 16rem */
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-red) 0%, #CC014D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--charcoal) 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--primary-red) 0%, #CC014D 100%);
}

.shadow-gold {
    box-shadow: 0 10px 30px rgba(197, 163, 88, 0.2);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-red) 0%, #CC014D 100%) 1;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border-width: 3px;
    }
    
    .feature-card {
        border: 2px solid var(--charcoal);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
.focus-visible:focus {
    outline: 3px solid var(--primary-red);
    outline-offset: 2px;
}

/* Custom Selection */
::selection {
    background: var(--primary-red);
    color: var(--white);
}

::-moz-selection {
    background: var(--royal-gold);
    color: var(--white);
}