/* ===== VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --navbar-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --body-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Inter', sans-serif;
    background: var(--body-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
}

main {
    flex: 1 0 auto;
    animation: fadeIn 0.5s ease-in;
}

footer {
    flex-shrink: 0;
}

/* ===== NAVBAR STYLES ===== */
.navbar-modern {
    background: var(--navbar-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-brand:hover::after {
    width: 80%;
}

.navbar-brand::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 ease;
}

.navbar-brand:hover::before {
    left: 100%;
}

.nav-link {
    font-weight: 500;
    position: relative;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:not(.text-danger):not(.text-info) {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:not(.text-danger):not(.text-info):hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-2px);
}

.nav-link.text-info {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.nav-link.text-info:hover {
    background: linear-gradient(135deg, #667eea40, #764ba240);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.nav-link.text-danger {
    background: linear-gradient(135deg, #ff6b6b20, #ee5a2420);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.nav-link.text-danger:hover {
    background: linear-gradient(135deg, #ff6b6b40, #ee5a2440);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    border-radius: 6px;
    border-bottom: 3px solid #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.navbar-collapse {
    animation: slideInDown 0.3s ease;
}

/* ===== FOOTER STYLES ===== */
.footer-modern {
    background: var(--navbar-gradient);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientMove 3s ease infinite;
}

.footer-modern p {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #fff !important;
    text-shadow: 0 5px 15px rgba(255,255,255,0.5);
}

/* ===== CARD STYLES ===== */
.card {
    transition: all 0.3s ease;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ===== MAIN CONTAINER ===== */
main.container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-info {
    animation: pulse 2s infinite;
}

/* ===== HIDE SCROLLBAR ===== */
html, body {
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden-focusable:not(:focus) {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .navbar-collapse {
        background: var(--navbar-gradient);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    main.container {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .footer-modern p {
        font-size: 0.9rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar-modern,
    .footer-modern,
    .social-links {
        display: none !important;
    }
    
    main.container {
        box-shadow: none !important;
        background: white !important;
        margin: 0 !important;
        padding: 1rem !important;
    }
}

/* ===== RESIZE ANIMATION STOPPER ===== */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}