/**
 * Aegis Defense Dynamics / US Military Welfare Department Stylesheet
 */

/* Hide Alpine elements until loaded */
[x-cloak] { display: none !important; }

/* Core Guaranteed Military Colors & Gradients */
.bg-military-dark {
    background-color: #1a2b14 !important;
}

.bg-military-dark-green {
    background-color: #23270F !important;
}

.bg-military-green {
    background-color: #2d4a1e !important;
}

.bg-military-blue {
    background-color: #2d4a1e !important;
}

.bg-gradient-military {
    background: linear-gradient(to left, #818a77 0%, #23270f 100%) !important;
}

.bg-gradient-tactical {
    background: linear-gradient(145deg, #2b3018, #6f7b63) !important;
}

.bg-gradient-dark {
    background: linear-gradient(145deg, #35382e, #21231b) !important;
}

.bg-gradient-sage {
    background: linear-gradient(to right, #829482 0%, #9dafa4 100%) !important;
}

.bg-hero-pattern {
    background-image: linear-gradient(rgba(26,43,20,0.8), rgba(26,43,20,0.8)), url("data:image/svg+xml,%3Csvg width=%2260%22 height=%2260%22 viewBox=%220 0 60 60%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cg fill=%22none%22 fill-rule=%22evenodd%22%3E%3Cg fill=%22%23ffffff%22 fill-opacity=%220.03%22%3E%3Cpath d=%22M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
}

.text-eagle-gold {
    color: #ffd700 !important;
}

.border-eagle-gold {
    border-color: #ffd700 !important;
}

.text-usa-red {
    color: #bf0a30 !important;
}

.bg-usa-red {
    background-color: #bf0a30 !important;
}

.text-military-green {
    color: #2d4a1e !important;
}

.text-military-dark {
    color: #1a2b14 !important;
}

.text-military-dark-green {
    color: #23270F !important;
}

.shadow-military {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}

.shadow-gold {
    box-shadow: 0 0 20px rgba(255,215,0,0.3) !important;
}

/* Hero Slider Specific Styles */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 30 !important;
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.animate-fadeIn {
    animation: fadeIn 1.2s ease-in-out;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease-in-out;
}

.animate-slideInRight {
    animation: slideInRight 1s ease-in-out;
}

/* Counter Animation */
.count-animation {
    transition: all 3s ease;
}

/* Professional Military Glow */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.8); }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Military Button Styling */
.btn-military {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%) !important;
    border: 2px solid transparent !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #1a2b14 !important;
}

.btn-military::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-military:hover::before {
    left: 100%;
}

/* Nav Link Hover Underline */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(90deg, #ffd700, #d4af37);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Military Badges & Bars */
.military-badge {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #1a2b14;
    font-weight: bold;
    text-shadow: none;
}

.top-bar {
    background: linear-gradient(90deg, #2d4a1e 0%, #6b7749 100%);
}

.official-seal {
    background: radial-gradient(circle, #ffd700 0%, #d4af37 100%);
    border: 3px solid #2d4a1e;
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.security-badge {
    background: linear-gradient(45deg, #00ff00, #008000);
    animation: pulse-secure 2s infinite;
}

@keyframes pulse-secure {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.department-header {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.service-ribbon {
    background: linear-gradient(90deg, #bf0a30, #2d4a1e, #bf0a30);
    height: 4px;
    width: 100%;
    animation: ribbon-shine 3s ease-in-out infinite;
}

@keyframes ribbon-shine {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(255,255,255,0.3); }
}

.military-rank-indicator {
    background: linear-gradient(45deg, #ffd700, #d4af37, #ffd700);
    border-radius: 50%;
    width: 8px;
    height: 8px;
    display: inline-block;
    margin: 0 2px;
    animation: rank-glow 2s ease-in-out infinite alternate;
}

@keyframes rank-glow {
    from { box-shadow: 0 0 5px rgba(255,215,0,0.5); }
    to { box-shadow: 0 0 15px rgba(255,215,0,0.8); }
}

.professional-nav-item {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    color: #ffffff !important;
}

.professional-nav-item:hover {
    background: rgba(255,215,0,0.1) !important;
    color: #ffd700 !important;
}

.mobile-nav-item {
    padding: 12px 16px;
    display: block;
    color: white !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-item:hover {
    background: rgba(255,215,0,0.1) !important;
    color: #ffd700 !important;
    padding-left: 24px;
}

/* AJAX Form response box */
.aegis-ajax-message {
    transition: all 0.4s ease;
}
