/* Custom Blue Theme & Component Logic */
.nav-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2563eb; /* Blue 600 */
}

.btn-primary {
    background-color: #1e3a8a; /* Blue 900 */
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    border-color: #2563eb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

/* Image hover & badge animation */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

/* SEO Optimization for Team Images */
img[src*="dr-"] {
    content-visibility: auto; /* Performance boost for high-res headshots */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Build-on-scroll states */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered build for cards/reviews */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Custom Blue Glow for "Building" elements */
.active.blue-glow {
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.1);
}

.no-scrollbar::-webkit-scrollbar { display: none; }

/* Reveal Engine */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.4s; }
/* Hero Gallery Engine */

/* 1. The default state */
.hero-column {
    flex: 2;
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-column {
    flex: 1;
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* 2. Hover/Active State: The middle expands, the sides shrink */
#gallery-container:has(.hero-column:hover) .side-column,
.hero-column.accordion-expanded ~ .side-column,
#gallery-container:has(.hero-column.accordion-expanded) .side-column {
    flex: 0.5; /* The Squish */
    opacity: 0.6;
}

#gallery-container .hero-column:hover,
.hero-column.accordion-expanded {
    flex: 5; /* The Expansion */
}

/* 3. Accordion Content visibility */
.accordion-expanded .accordion-content {
    max-h: 200px;
    opacity: 1;
    margin-top: 1rem;
}

/* Ensure images don't distort while squishing */
.side-column img, .hero-column img {
    min-width: 100%;
}

/* Optimized Gallery Expansion */
#gallery-container:has(.hero-column:hover) .side-column,
#gallery-container:has(.hero-column.accordion-expanded) .side-column {
    flex: 0.4; /* Stronger squish for focus */
    opacity: 0.4;
    filter: grayscale(30%); /* Adds professional focus to the hero */
}

#gallery-container .hero-column:hover,
#gallery-container .hero-column.accordion-expanded {
    flex: 6; /* Maximum dominance */
}

/* Accordion text trigger */
.accordion-expanded .accordion-content {
    max-h: 100px;
    opacity: 1;
}

/* Review Wall Specifics */
.break-inside-avoid {
    break-inside: avoid-column;
    display: block;
}

/* Optional: Add a slight scale effect on hover for the reviews */
#reviews-wall .break-inside-avoid {
    transition: all 0.4s ease;
}

#reviews-wall .break-inside-avoid:hover {
    transform: scale(1.02);
    border-color: #2563eb;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.05);
}

/* Mobile fix */
@media (max-width: 768px) {
    #gallery-container { height: auto; min-height: 400px; }
    .side-column { display: none; } /* Hide sides on small mobile to keep focus */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}