/* ===================================
   Visual Enhancements for Specialty Air V2
   =================================== */

/* Enhanced Hero Title & Subtitle */
.hero-title {
    position: relative;
    animation: fadeInDown 0.8s ease-out;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    filter: drop-shadow(0 2px 8px rgba(0, 196, 249, 0.3));
    letter-spacing: -0.02em;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(0, 196, 249, 0.4), rgba(0, 150, 199, 0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.6;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    animation: fadeIn 1s ease-out 0.3s backwards;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    line-height: 1.6;
    position: relative;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-actions {
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* Add subtle glow effect to hero overlay */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(0, 196, 249, 0.2), transparent);
    pointer-events: none;
    animation: pulse-overlay 4s ease-in-out infinite;
}

@keyframes pulse-overlay {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Enhanced hero content spacing */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Quick Info Cards Enhanced Animation */
.quick-info-card {
    position: relative;
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--medium-gray);
    transition: all var(--transition-base);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.quick-info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.quick-info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.quick-info-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced icon with gradient background */
.quick-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #00c4f9 0%, #0096c7 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.quick-info-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.quick-info-icon svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Quick info title enhancement */
.quick-info-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

/* Decorative bottom border for card on hover */
.quick-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c4f9, #0096c7);
    transition: width 0.4s ease;
    border-radius: 2px 2px 0 0;
}

.quick-info-card:hover::after {
    width: 100%;
}

/* Hover effects */
.quick-info-card:hover {
    border-color: #00c4f9;
    transform: translateY(-8px);
    box-shadow: 0 12px 40px -8px rgba(0, 196, 249, 0.3);
}

.quick-info-card:hover .quick-info-icon {
    transform: scale(1.05) rotate(5deg);
}

/* Service preview cards enhancement */
.service-preview-card {
    position: relative;
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--medium-gray);
    transition: all var(--transition-base);
    height: 100%;
    overflow: hidden;
}

.service-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 196, 249, 0.05) 50%);
    border-radius: 0 var(--radius-lg) 0 100%;
    transition: all 0.4s ease;
}

.service-preview-card:hover::before {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 196, 249, 0.1) 50%);
}

/* Service preview icon */
.service-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #F5F7FA, #E5E7EB);
    color: #00c4f9;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md);
    position: relative;
    transition: all 0.3s ease;
}

.service-preview-card:hover .service-preview-icon {
    background: linear-gradient(135deg, #00c4f9, #0096c7);
    color: var(--white);
    transform: translateY(-4px) rotate(-5deg);
}

/* Service preview title */
.service-preview-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

/* Service preview text */
.service-preview-text {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Hover effect for service cards */
.service-preview-card:hover {
    border-color: #00c4f9;
    transform: translateY(-6px);
    box-shadow: 0 15px 45px -10px rgba(0, 196, 249, 0.25);
}

/* Add bottom accent line */
.service-preview-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c4f9, #0096c7);
    transition: width 0.5s ease;
}

.service-preview-card:hover::after {
    width: 100%;
}

/* Section title enhancements */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00c4f9, #0096c7);
    border-radius: 2px;
}

/* Content block text animation */
.content-block {
    animation: fadeIn 0.8s ease-out;
}

/* ===================================
   Enhanced Content Title Styling
   =================================== */

/* Content title with decorative elements */
.content-title {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00c4f9, #0096c7);
    border-radius: 2px;
}

/* Enhanced content text with better readability */
.content-text {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.content-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #00c4f9, #0096c7);
    border-radius: 50%;
    opacity: 0.6;
}

/* Special styling for strong/bold text within content */
.content-text strong {
    color: var(--dark-navy);
    font-weight: 700;
    position: relative;
    padding: 0 0.25rem;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 196, 249, 0.1) 0%);
}

/* Add visual separation between content blocks */
.content-block + .content-block {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 196, 249, 0.1);
}

/* ===================================
   Job Cards Equal Height & Centering
   =================================== */

/* Remove the margin-bottom from job cards to prevent stacking issues */
.row.g-5 .job-card {
    margin-bottom: 0 !important;
}

/* Ensure rows with job cards align items properly */
.row.g-5 {
    align-items: stretch;
}

/* Ensure parent columns stretch to full height */
.row.g-5 > [class*='col-'] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Ensure job cards have equal height and fill the column */
.job-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* Make job description grow to fill space */
.job-description {
    flex-grow: 1;
}

/* Center single job card in row on larger screens */
@media (min-width: 992px) {
    /* When there's an odd number, center the last card */
    .row.g-5 > .col-lg-6:last-child:nth-child(odd) {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .quick-info-icon,
    .service-preview-icon {
        width: 72px;
        height: 72px;
    }
    
    .quick-info-card::before,
    .service-preview-card::before {
        width: 70px;
        height: 70px;
    }
    
    .quick-info-card:hover::before,
    .service-preview-card:hover::before {
        width: 100px;
        height: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle::before {
        width: 60px;
    }
    
    .content-title {
        padding-left: 1rem;
    }
    
    .content-text {
        padding-left: 1rem;
    }
}

/* Smooth transitions for all interactive elements */
.quick-info-icon,
.service-preview-icon,
.quick-info-title,
.service-preview-title {
    transition: all 0.3s ease;
}
