/* Custom Utilities and Animations extending Tailwind */

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-panel-dark {
    background: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Delays for staggered animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Infinite Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(10, 77, 155, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(10, 77, 155, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(10, 77, 155, 0); }
}

.animate-pulse-soft {
    animation: pulse-soft 2.5s infinite;
}

@keyframes slow-pan {
    0% { transform: scale(1.05) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, 2%); }
    100% { transform: scale(1.05) translate(0, 0); }
}

.animate-slow-pan {
    animation: slow-pan 25s ease-in-out infinite;
}

/* Nav Transitions */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #1f2937; /* Tailwind gray-800 */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

header.scrolled .nav-link {
    color: #4b5563; /* gray-600 */
}

header.scrolled .nav-link:hover {
    color: #0A4D9B; /* primary */
}

header.scrolled .ph-buildings {
    color: #0A4D9B;
}

/* Button Hover Fill Effect */
.btn-animated::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1E73E8; /* primary-light */
    z-index: 0;
    transition: all 0.4s ease;
}

.btn-animated:hover::before {
    width: 100%;
}

/* Hero Overlay */
.hero-overlay {
    background: linear-gradient(to right, rgba(6, 11, 25, 0.9) 0%, rgba(6, 11, 25, 0.6) 50%, rgba(6, 11, 25, 0.3) 100%);
}

/* Card Hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(10, 77, 155, 0.15);
}

/* Hide scrollbar for clean masonry if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Background Pattern */
.bg-blueprint {
    background-color: #0B132B;
    background-image: linear-gradient(rgba(30, 115, 232, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 115, 232, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}
