/* ═══════════════════════════════════════════════════════════ */
/* RESIDENTIAL COMPLEX UI/UX DESIGN ENHANCEMENTS             */
/* Enhances existing sections — NO new sections added         */
/* ═══════════════════════════════════════════════════════════ */

/* ─── HERO SECTION UPGRADE ─── */
/* Stronger cinematic overlay for real video */
.hero-overlay {
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.45) 0%,
            rgba(0,0,0,0.15) 35%,
            rgba(0,0,0,0.10) 65%,
            rgba(0,0,0,0.55) 100%) !important;
}

/* Hero video should fill entire viewport */
.hero-video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* Animated gold border accent at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold-bright) 50%,
        var(--gold) 80%,
        transparent 100%);
    z-index: 5;
    animation: shimmerLine 4s ease-in-out infinite;
}
@keyframes shimmerLine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Hero stat numbers get counter animation feel */
.hero-stat-num {
    background: linear-gradient(135deg, #fff 0%, rgba(212,175,55,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero badge gets a premium glow */
.hero-badge {
    box-shadow: 0 4px 20px rgba(212,175,55,0.15);
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(212,175,55,0.15); }
    50% { box-shadow: 0 4px 30px rgba(212,175,55,0.3); }
}

/* ─── SECTION HEADERS UPGRADE ─── */
/* Premium underline effect on section subtitles */
.section-subtitle {
    position: relative;
    display: inline-block;
}

/* Gold line gets animated shimmer */
.gold-line {
    position: relative;
    overflow: hidden;
}
.gold-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: goldShimmer 3s ease-in-out infinite;
}
@keyframes goldShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Section titles get refined typography */
.section-title {
    letter-spacing: -0.02em;
}

/* ─── PROJECT CARDS UPGRADE ─── */
/* Project card image overlay on hover */
.project-card-img {
    position: relative;
}
.project-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.25) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.project-card:hover .project-card-img::after {
    opacity: 1;
}

/* Project card image zoom on hover */
.project-card-img img {
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.project-card:hover .project-card-img img {
    transform: scale(1.06);
}

/* Project tag gets subtle animation */
.project-card-tag {
    transition: all 0.3s ease;
}
.project-card:hover .project-card-tag {
    letter-spacing: 0.12em;
}

/* Project card arrow gets smooth slide */
.project-card-arrow {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.project-card:hover .project-card-arrow {
    transform: translateX(4px);
    color: var(--gold);
}

/* ─── GLASS CARDS UPGRADE ─── */
/* Premium depth shadow on glass hover */
.glass-hover:hover {
    box-shadow:
        0 8px 32px rgba(0,0,0,0.08),
        0 0 0 1px rgba(212,175,55,0.1),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

/* ─── ABOUT SECTION UPGRADE ─── */
/* Feature icons get gold pulse on hover */
.feature-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.feature-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(212,175,55,0.2);
}

/* ─── SUBSIDIARIES / COMPANIES UPGRADE ─── */
/* Company cards get refined hover lift */
.company-card {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.company-card:hover {
    transform: translateY(-6px) !important;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 0 0 1px rgba(212,175,55,0.15) !important;
}

/* Company logo gets subtle scale on hover */
.company-card img {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.company-card:hover img {
    transform: scale(1.08);
}

/* ─── VALUES SECTION UPGRADE ─── */
/* Value cards stagger animation */
.value-card {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.value-card:hover {
    transform: translateY(-4px);
}

/* Value icon glow on hover */
.value-card:hover .value-icon {
    box-shadow: 0 0 24px rgba(212,175,55,0.25);
}

/* ─── CAROUSEL NAVIGATION UPGRADE ─── */
/* Carousel buttons get premium styling */
.carousel-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.carousel-btn:hover {
    background: rgba(212,175,55,0.12) !important;
    border-color: rgba(212,175,55,0.3) !important;
    color: var(--gold) !important;
    transform: scale(1.08);
}

/* Active carousel dot gets glow */
.carousel-dot.active {
    box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

/* ─── BUTTONS UPGRADE ─── */
/* Gold button gets premium hover state */
.btn-gold {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(212,175,55,0.35),
        0 0 60px rgba(212,175,55,0.15) !important;
}

/* Outline button upgrade */
.btn-outline {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.btn-outline:hover {
    background: rgba(212,175,55,0.08) !important;
    border-color: rgba(212,175,55,0.4) !important;
    color: var(--gold) !important;
}

/* ─── HEADER UPGRADE ─── */
/* Sticky header gets refined backdrop */
.site-header {
    transition: all 0.4s ease !important;
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.08) !important;
}

/* Nav links get underline animation */
.nav a:not(.nav-cta) {
    position: relative;
}
.nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateX(-50%);
}
.nav a:not(.nav-cta):hover::after {
    width: 70%;
}

/* Jobs CTA button gets subtle animation */
.nav-cta {
    animation: ctaGlow 3s ease-in-out infinite;
}
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(212,175,55,0.15); }
    50% { box-shadow: 0 0 25px rgba(212,175,55,0.3); }
}

/* ─── FOOTER UPGRADE ─── */
/* Footer links get gold hover */
footer a:hover {
    color: var(--gold) !important;
    transition: color 0.3s ease;
}

/* ─── CHAT WIDGET UPGRADE ─── */
/* Chat toggle gets premium animation */
.chat-toggle {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.chat-toggle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 32px rgba(212,175,55,0.4) !important;
}

/* ─── SCROLL ANIMATIONS UPGRADE ─── */
/* Smoother fade-up with stagger */
.fade-up {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Stagger classes for grid items */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.1s !important; }
.stagger-3 { transition-delay: 0.15s !important; }
.stagger-4 { transition-delay: 0.2s !important; }

/* ─── RESPONSIVE TOUCH ENHANCEMENTS ─── */
@media (max-width: 768px) {
    /* Mobile: reduce animations for performance */
    .hero::after { display: none; }
    .gold-line::after { animation: none; }
    .nav-cta { animation: none; }
    .hero-badge { animation: none; }
    
    /* Better touch targets */
    .carousel-btn {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* ─── PRINT STYLES ─── */
@media print {
    .hero-video, .bg-ambient, .chat-toggle, .chat-panel { display: none !important; }
    .hero { min-height: auto !important; background: #f5f5f5 !important; }
}
