/* PRONASEJ360 - Professional Dark Theme */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #FFD700;
    --secondary-color: #E6E6FA;
    --success-color: #00FF7F;
    --info-color: #00BFFF;
    --warning-color: #FFA500;
    --danger-color: #FF4500;
    --light-color: #FFFFFF;
    --dark-color: #000000;
    
    /* Ultra Premium Colors */
    --bg-primary: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #252b4a 100%);
    --bg-secondary: linear-gradient(135deg, rgba(26, 31, 53, 0.98) 0%, rgba(37, 43, 74, 0.98) 100%);
    --bg-tertiary: linear-gradient(135deg, rgba(37, 43, 74, 0.95) 0%, rgba(44, 62, 80, 0.95) 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #F5F5F5;
    --text-muted: #E0E0E0;
    --border-color: rgba(255, 215, 0, 0.5);
    --accent-gold: #FFD700;
    --accent-blue: #00BFFF;
    --premium-glow: rgba(255, 215, 0, 0.4);
    
    /* Enhanced Spacing and Effects */
    --header-height: 90px;
    --border-radius: 15px;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    --premium-shadow: 0 15px 60px rgba(255, 215, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Ultra Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
}

h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.8rem; line-height: 1.3; }
h3 { font-size: 2.2rem; line-height: 1.4; }
h4 { font-size: 1.8rem; line-height: 1.4; }
h5 { font-size: 1.4rem; line-height: 1.5; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lead {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold) !important;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--accent-blue) !important;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-blue) !important;
    background: rgba(79, 195, 247, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.text-warning {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

.dropdown-menu {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dropdown-item {
    color: var(--text-secondary) !important;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(79, 195, 247, 0.1) !important;
    color: var(--accent-blue) !important;
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-graphic {
    position: relative;
    z-index: 2;
}

.hero-graphic i {
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

/* COMPLETELY FIXED CONTENT - NO MOVEMENT ALLOWED */
.fixed-content {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    position: static !important;
    z-index: auto !important;
    margin-bottom: 2rem !important;
    display: block !important;
    width: 100% !important;
}

.fixed-content .btn {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    position: static !important;
    z-index: auto !important;
    display: inline-block !important;
    margin: 0.5rem !important;
}

.fixed-content .btn:hover {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Ensure mission section doesn't overlap */
.mission-section {
    margin-top: 4rem !important;
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
}

/* HERO SECTION - COMPLETELY STATIC */
.hero-section {
    padding: 5rem 0 !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    animation: none !important;
    overflow: visible !important;
}

.hero-section .container {
    position: static !important;
    transform: none !important;
    animation: none !important;
}

.hero-section .row {
    position: static !important;
    transform: none !important;
    animation: none !important;
}

.hero-section .col-lg-6 {
    position: static !important;
    transform: none !important;
    animation: none !important;
}

.hero-section h1, .hero-section p, .hero-section .lead {
    position: static !important;
    transform: none !important;
    animation: none !important;
    margin-bottom: 1.5rem !important;
}

/* MISSION SECTION - CLEAR SEPARATION */
.mission-section {
    margin-top: 5rem !important;
    padding-top: 3rem !important;
    position: static !important;
    clear: both !important;
    transform: none !important;
    animation: none !important;
}

/* DISABLE ALL ANIMATIONS AND TRANSFORMS GLOBALLY */
* {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Specific exceptions for basic hover effects only */
.btn:hover {
    transform: none !important;
    animation: none !important;
    transition: background-color 0.2s ease !important;
}

/* DISABLED ALL ANIMATIONS */
@keyframes pulse {
    0%, 100% { transform: none; opacity: 1; }
    50% { transform: none; opacity: 1; }
}

/* NAVBAR - ABSOLUTELY FIXED */
.navbar-fixed-top, .fixed-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* FORM CONTROLS - BETTER VISIBILITY */
.form-select, .form-control {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568 !important;
    color: #ffffff !important;
}

.form-select option {
    background-color: #2d3748 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

.form-select option:hover {
    background-color: #4a5568 !important;
    color: #ffffff !important;
}

.form-select option:checked {
    background-color: #4299e1 !important;
    color: #ffffff !important;
}

.form-select:focus, .form-control:focus {
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25) !important;
    background-color: #2d3748 !important;
    color: #ffffff !important;
}

.form-label {
    color: #a0aec0 !important;
    font-weight: 500 !important;
}

/* Specific fix for select dropdown */
select.form-select {
    background-color: #2d3748 !important;
    color: #ffffff !important;
    border: 1px solid #4a5568 !important;
}

select.form-select option {
    background-color: #2d3748 !important;
    color: #ffffff !important;
}

/* Cards and Components */
.pillar-card, .project-card, .defense-project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.pillar-card:hover, .project-card:hover, .defense-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
}

.card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.pillar-icon {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), var(--accent-gold));
    color: var(--dark-color);
}

.btn-outline-warning {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--accent-gold);
    color: var(--dark-color);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* Defense/Classified Sections */
.defense-warning {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(220, 53, 69, 0.5); }
    to { box-shadow: 0 0 20px rgba(220, 53, 69, 0.8); }
}

.classification-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.defense-header h1 {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Content Sections */
.content-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* Mission Cards */
.mission-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.mission-icon {
    margin-bottom: 1rem;
}

.mission-card h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

/* Stats and Specifications */
.stats-card, .tech-specs {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spec-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.spec-item:last-child {
    border-bottom: none;
}

/* Feature Lists */
.feature-list, .advantages-list {
    list-style: none;
}

.feature-item, .advantage-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.feature-item i, .advantage-item i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Tables */
.table-dark {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.table-dark th {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table-dark td {
    border-color: var(--border-color);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Authentication Form */
.auth-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.auth-form .form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

.auth-form .form-control:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25);
}

.auth-form .form-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Security Notice */
.security-notice {
    background: var(--bg-secondary);
    border: 1px solid var(--danger-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.security-notice h4 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .project-header {
        padding: 2rem 1rem;
    }
    
    .stats-card, .tech-specs {
        margin-bottom: 2rem;
    }
    
    /* Mobile Navigation */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Mobile Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 1rem !important;
        font-size: 1rem;
    }
    
    .fixed-content .btn {
        width: auto;
        display: inline-block;
        margin: 0.25rem;
    }
    
    /* Mobile Forms */
    .form-control, .form-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 0.75rem !important;
    }
    
    /* Mobile Cards */
    .pillar-card, .project-card, .defense-project-card {
        margin-bottom: 1.5rem;
        transform: none !important; /* Disable hover effects on mobile */
    }
    
    /* Mobile Text */
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2rem !important; }
    .display-3 { font-size: 1.8rem !important; }
    .display-4 { font-size: 1.5rem !important; }
    
    /* Mobile Spacing */
    .container { padding: 0 1rem; }
    .row { margin: 0 -0.5rem; }
    .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-12 {
        padding: 0 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent-blue);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --border-color: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 576px) {
    /* Extra small screens */
    .hero-section {
        padding: 3rem 0 !important;
        text-align: center;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .department-card {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .contact-form-section {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Touch-friendly sizing */
    .btn {
        min-height: 44px;
        font-size: 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Contact Page Styles */
.contact-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.about-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.department-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.department-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.contact-form .form-control,
.contact-form .form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 195, 247, 0.25);
}

.contact-form .form-label {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Premium Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Innovation Section */
.innovation-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.innovation-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.innovation-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.innovation-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.innovation-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Partnership Section */
.partnership-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.partnership-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.partnership-item:last-child {
    border-bottom: none;
}

.partner-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.partner-info h6 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .flash-messages {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .main-content {
        margin-top: 0 !important;
    }
}
