/* Custom CSS for Lantana Agency */
:root {
    --lantana-red: #F43456;
    --lantana-gray: #2a2a2a;
    --lantana-dark: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--lantana-dark);
    color: white;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--lantana-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Navigation */
.luxury-nav {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 52, 86, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-custom {
    position: relative;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lantana-red), #dc2626);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-custom:hover::after {
    width: 100%;
}

.gradient-text {
    background: linear-gradient(45deg, var(--lantana-red), #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Dropdown */
.language-dropdown {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(244, 52, 86, 0.2) !important;
    border-radius: 0.5rem !important;
    z-index: 1050;
    min-width: 180px;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.language-dropdown .dropdown-item {
    color: white !important;
    padding: 0.75rem 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-dropdown .dropdown-item:hover {
    background: rgba(244, 52, 86, 0.15) !important;
    color: var(--lantana-red) !important;
    transform: translateX(3px);
}

.language-dropdown .dropdown-item:active {
    background: rgba(244, 52, 86, 0.25) !important;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(244, 52, 86, 0.1);
    border: 1px solid rgba(244, 52, 86, 0.3);
    border-radius: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-selector:hover {
    background: rgba(244, 52, 86, 0.2);
    border-color: rgba(244, 52, 86, 0.5);
    transform: translateY(-1px);
}

.language-selector .globe-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-selector:hover .globe-icon {
    transform: rotate(15deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(244,52,86,0.1) 100%);
    z-index: 2;
}

.hero-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Professional Animation Classes */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in-view {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Staggered Animation Delays */
.animation-delay-100 { transition-delay: 0.1s; }
.animation-delay-200 { transition-delay: 0.2s; }
.animation-delay-300 { transition-delay: 0.3s; }
.animation-delay-400 { transition-delay: 0.4s; }
.animation-delay-500 { transition-delay: 0.5s; }
.animation-delay-600 { transition-delay: 0.6s; }

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--lantana-red), #dc2626);
    border: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 52, 86, 0.4);
}

/* Cards */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(244, 52, 86, 0.2) !important;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(244, 52, 86, 0.2);
    border: 1px solid rgba(244, 52, 86, 0.4) !important;
}

.icon-luxury {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover .icon-luxury {
    transform: scale(1.1);
}

/* Backgrounds */
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--lantana-dark) 0%, var(--lantana-gray) 100%);
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('lifefooter.jpg');
    opacity: 0.2;
    z-index: 1;
}

/* Shadows */
.shadow-luxury {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(244, 52, 86, 0.2);
}

/* Enhanced Floating Animation */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Pulse Effect for CTAs */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 52, 86, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 52, 86, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 52, 86, 0);
    }
}

.pulse-effect {
    animation: pulse 2s infinite;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-width: 100%;
        height: auto;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mission-image {
        margin-top: 2rem;
    }
    
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    .language-dropdown {
        min-width: 160px;
    }
    
    .language-selector {
        padding: 0.4rem 0.8rem;
    }
    
    .language-selector .current-lang {
        font-size: 0.9rem;
    }
    
    /* Optimized mobile animations */
    .animate-fade-in-up {
        transform: translateY(20px);
        transition-duration: 0.5s;
    }
    
    .animate-slide-in-right {
        transform: translateX(30px);
        transition-duration: 0.5s;
    }
    
    .animate-slide-in-left {
        transform: translateX(-30px);
        transition-duration: 0.5s;
    }
    
    .animate-scale-in {
        transform: scale(0.95);
        transition-duration: 0.4s;
    }
}

@media (max-width: 576px) {
    .display-2 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .language-selector {
        padding: 0.3rem 0.6rem;
    }
    
    .language-selector .current-lang {
        font-size: 0.8rem;
    }
    
    .language-selector .globe-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Further optimized animations for small screens */
    .animate-fade-in-up {
        transform: translateY(15px);
        transition-duration: 0.4s;
    }
    
    .animate-slide-in-right {
        transform: translateX(20px);
        transition-duration: 0.4s;
    }
    
    .animate-slide-in-left {
        transform: translateX(-20px);
        transition-duration: 0.4s;
    }
}

/* Form Styling */
.form-control:focus {
    background-color: var(--lantana-gray) !important;
    border-color: var(--lantana-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 52, 86, 0.25) !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-select:focus {
    background-color: var(--lantana-gray) !important;
    border-color: var(--lantana-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 52, 86, 0.25) !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stat Cards */
.stat-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(244, 52, 86, 0.1);
    border: 1px solid rgba(244, 52, 86, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    background: rgba(244, 52, 86, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 52, 86, 0.2);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(244, 52, 86, 0.2);
        animation: mobileMenuSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes mobileMenuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.25rem;
        margin: 0.25rem 0;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(244, 52, 86, 0.2);
        transform: translateX(5px);
    }
    
    .language-selector {
        margin-top: 0.5rem;
        justify-content: center;
    }
}

/* Improved Button Responsiveness */
@media (max-width: 768px) {
    .btn-primary {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .w-100 {
        width: 100% !important;
    }
}

/* Better spacing for mobile */
@media (max-width: 576px) {
    .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    .px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Touch device optimizations */
.touch-device .btn:hover {
    transform: none;
}

.touch-device .card-hover:hover {
    transform: translateY(-5px);
}

/* Improved viewport animations performance */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .animate-slide-in-right,
    .animate-slide-in-left,
    .animate-scale-in {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Professional notification styling */
.custom-notification {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 52, 86, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: notificationSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Smooth scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--lantana-red) #1a1a1a;
}

/* Enhanced focus states */
.btn:focus,
.form-control:focus,
.form-select:focus,
.language-selector:focus {
    outline: 2px solid rgba(244, 52, 86, 0.5);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .card, .nav-link, .dropdown-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover states */
.card-hover:hover,
.btn-primary:hover,
.language-selector:hover {
    will-change: transform, box-shadow;
}

/* Performance optimization */
.animate-fade-in-up,
.animate-slide-in-right,
.animate-slide-in-left,
.animate-scale-in {
    will-change: opacity, transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.animate-in-view {
    will-change: auto;
}
