/* Military Theme Styles for PRANA-SOCMED */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 50%, #1a3a1e 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroParticles 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .text-accent {
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(220, 53, 69, 0.3);
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.hero-buttons .btn-accent {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: perspective(1px) translateZ(0);
}

.hero-buttons .btn-accent:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    transform: translateY(-5px);
    color: #dc3545 !important;
}

/* Navbar Styles */
.navbar-military {
    background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 100%);
    border-bottom: 3px solid #dc3545;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled {
    background: rgba(26, 58, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
    transform: translateY(-1px);
}

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Military Card Styles */
.military-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 1rem;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.military-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5530, #dc3545, #2c5530);
    background-size: 200% 100%;
    animation: borderGlow 3s ease-in-out infinite;
}

.military-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Status Indicators */
.status-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #28a745;
}

.status-dot.offline {
    background: #dc3545;
}

.status-dot.away {
    background: #ffc107;
}

/* Military Badges */
.military-badge {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
    color: white;
    border: 1px solid #dc3545;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.military-badge::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;
}

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

/* Rank Indicators */
.rank-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #dc3545;
    font-weight: 700;
}

.rank-star {
    color: #ffc107;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 50%, #1a3a1e 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-8.837-7.163-16-16-16s-16 7.163-16 16 7.163 16 16 16 16-7.163 16-16zm-16-8c4.418 0 8 3.582 8 8s-3.582 8-8 8-8-3.582-8-8 3.582-8 8-8z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

/* Login Page Styles */
.login-wrapper {
    background: linear-gradient(135deg, #1a3a1e 0%, #2c5530 50%, #1a3a1e 100%);
    position: relative;
    overflow: hidden;
}

.login-card {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-card .card-body {
    padding: 3rem;
}

.form-floating .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 85, 48, 0.3);
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    background: white;
    border-color: #2c5530;
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2c5530;
}

/* Security Notice */
.security-notice {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Animations */
@keyframes heroParticles {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Responsive Military Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .login-card .card-body {
        padding: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .login-card .card-body {
        padding: 1.5rem;
    }
    
    .security-notice {
        font-size: 0.875rem;
    }
    
    .military-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .military-card {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
    }
    
    .login-card {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
    }
    
    .form-floating .form-control {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .form-floating label {
        color: #a0aec0;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000000;
        color: #ffffff;
    }
    
    .btn-accent {
        background: #ff0000 !important;
        border-color: #ff0000 !important;
    }
    
    .text-accent {
        color: #ff0000 !important;
    }
    
    .navbar-military {
        background: #000000 !important;
        border-bottom: 3px solid #ff0000;
    }
}

/* Print Styles for Military Theme */
@media print {
    .hero-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }
    
    .military-badge {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
    }
    
    .btn {
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
    }
}
