/* 
 * CrownateStudio - Permits Page Enhancements
 * Custom animations and performance optimizations for the permits section.
 */

/* Hero Image Animation */
@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: scale(1.1) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-img-animated {
    animation: heroReveal 2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#hero {
    position: relative;
    overflow: hidden;
    min-height: 70vh; /* Standardizing hero height */
    display: flex;
    align-items: center;
}

#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 2;
}

#hero .container {
    position: relative;
    z-index: 10;
}

/* Fast Loading - Image Placeholder Styles */
.img-loading-placeholder {
    background: #f3f4f6;
    aspect-ratio: 16/9;
    border-radius: 12px;
}

/* Standard Hero Size Alignment Logic (1024x1024 safe zone) */
@media (min-width: 1200px) {
    .hero-img-animated {
        object-position: center 25%; /* Optimize for focal point */
    }
}

/* Interactive lift effect for page images */
.interactive-card-img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

.interactive-card-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
/* Interactive Permit Tabs & Tools */
.bg-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.bg-glass:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.nav-pills .nav-link.active.bg-glass {
    background: var(--accent-color, #ff4a17) !important;
    border-color: var(--accent-color, #ff4a17) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(255, 74, 23, 0.3);
}

.tab-pane {
    animation: slideUpFadeIn 0.5s ease-out;
}

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

/* Form Interactivity */
.input-group {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.input-group:focus-within {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}

.quick-actions .badge {
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-actions .badge:hover {
    background: #ff4a17 !important;
    color: #fff !important;
    transform: translateY(-3px);
}

/* Button Pulse Effect */
.btn-get-started {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-get-started:active {
    transform: scale(0.95);
}

.btn-get-started::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 1; }
    20% { transform: scale(25, 25); opacity: 1; }
    100% { opacity: 0; transform: scale(40, 40); }
}

.btn-get-started:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}
