/* CV-Clan Modern Professional Design System */
/* Bootstrap-Integrated with Dark Navy + Cyan Accents */
/* Fully Responsive & Mobile-Friendly */

:root {
    --primary-cyan: #2dc9ff;
    --primary-cyan-light: #4fd4ff;
    --primary-cyan-dark: #1a9ed9;
    --bg-navy: #0a1e2f;
    --bg-dark: #071826;
    --bg-tertiary: #112b40;
    --border-cyan: rgba(45, 201, 255, 0.25);
    --border-dark: #1e3a4f;
    --text-white: #ffffff;
    --text-light: #e6f0fa;
    --text-muted: #8a9fb0;
    --accent-success: #2acf6b;
    --accent-warning: #ffb347;
    --accent-danger: #ff5e6b;
    
    /* Override Bootstrap primary color */
    --bs-primary: var(--primary-cyan);
    --bs-primary-rgb: 45, 201, 255;
    --bs-dark: var(--bg-dark);
    --bs-dark-rgb: 7, 24, 38;
    --bs-body-bg: var(--bg-dark);
    --bs-body-color: var(--text-light);
    --bs-border-color: var(--border-dark);
}

/* Base Styles */
body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    padding-top: 70px; /* Account for fixed navbar */
}

/* ============================================
   NAVBAR - Fully Responsive
   ============================================ */

.navbar-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(135deg, rgba(7, 24, 38, 0.95) 0%, rgba(10, 30, 47, 0.95) 100%);
    backdrop-filter: blur(10px) saturate(1.2);
    border-bottom: 1px solid var(--primary-cyan);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

/* Mobile Navbar Adjustments */
@media (max-width: 991.98px) {
    .navbar-blur {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        border: 1px solid var(--primary-cyan);
        border-top: none;
        margin-top: 0.5rem;
        max-height: 80vh;
        overflow-y: auto;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-white) !important;
}

.brand-icon {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--primary-cyan));
}

.brand-text {
    background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-cyan) !important;
    text-shadow: 0 0 8px rgba(45, 201, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-cyan);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Mobile nav link adjustments */
@media (max-width: 991.98px) {
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(45, 201, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
}

.nav-subscribe {
    background: transparent;
    color: var(--primary-cyan) !important;
    border: 2px solid var(--primary-cyan) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(45, 201, 255, 0.2);
    white-space: nowrap;
}

.nav-subscribe:hover {
    background: var(--primary-cyan) !important;
    color: var(--bg-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(45, 201, 255, 0.5);
}

.nav-subscribe:active {
    transform: translateY(0);
}

/* ============================================
   MODALS - Mobile Optimized
   ============================================ */

.modal-content {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
    border: 1px solid var(--primary-cyan);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(45, 201, 255, 0.2);
}

.modal-header {
    background: linear-gradient(90deg, rgba(45, 201, 255, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--primary-cyan);
    border-radius: 16px 16px 0 0;
    padding: 1.25rem;
}

.modal-title {
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 20px;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    border-radius: 3px;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background: linear-gradient(90deg, transparent 0%, rgba(45, 201, 255, 0.05) 100%);
    border-top: 1px solid var(--primary-cyan);
    padding: 1.25rem;
    border-radius: 0 0 16px 16px;
}

/* Mobile modal adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}

.btn-close {
    background: transparent;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   FORMS - Mobile Optimized
   ============================================ */

.form-label {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-control,
.form-select {
    background: rgba(17, 43, 64, 0.6) !important;
    border: 1.5px solid var(--primary-cyan) !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-white) !important;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: rgba(17, 43, 64, 0.8) !important;
    border-color: var(--primary-cyan-light) !important;
    box-shadow: 0 0 0 3px rgba(45, 201, 255, 0.2) !important;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control:hover:not(:focus) {
    border-color: var(--primary-cyan-light);
    box-shadow: 0 0 12px rgba(45, 201, 255, 0.15);
}

/* Mobile form adjustments */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        padding: 0.7rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }
}

/* ============================================
   BUTTONS - Mobile Optimized
   ============================================ */

.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: transparent;
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(45, 201, 255, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-cyan) !important;
    color: var(--bg-dark) !important;
    border-color: var(--primary-cyan) !important;
    box-shadow: 0 0 25px rgba(45, 201, 255, 0.5) !important;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-dark);
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: transparent !important;
    box-shadow: 0 0 15px rgba(45, 201, 255, 0.2);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(45, 201, 255, 0.1) !important;
    color: var(--primary-cyan-light) !important;
    border-color: var(--primary-cyan-light);
    box-shadow: 0 0 15px rgba(45, 201, 255, 0.3);
}

.btn-link {
    color: var(--primary-cyan);
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}

.btn-link:hover {
    color: var(--primary-cyan-light);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(45, 201, 255, 0.5);
}

/* Mobile button adjustments */
@media (max-width: 576px) {
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        width: 100%; /* Full width buttons on mobile */
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   CARDS - Mobile Optimized
   ============================================ */

.card {
    background: rgba(17, 43, 64, 0.4);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(45, 201, 255, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(90deg, rgba(45, 201, 255, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-white);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: rgba(45, 201, 255, 0.05);
    border-top: 1px solid var(--border-dark);
    padding: 1rem 1.25rem;
}

/* Mobile card adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }
}

/* ============================================
   TABLES - Responsive
   ============================================ */

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

.table thead th {
    background: rgba(45, 201, 255, 0.1);
    color: var(--primary-cyan);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-cyan);
}

.table tbody tr:hover {
    background: rgba(45, 201, 255, 0.05);
}

.table td,
.table th {
    padding: 1rem;
    vertical-align: middle;
}

/* Bootstrap's built-in table-responsive handles mobile */

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 8px;
    border-left: 4px solid;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(17, 43, 64, 0.3);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
}

.alert-success {
    border-left-color: var(--accent-success);
}

.alert-danger {
    border-left-color: var(--accent-danger);
}

.alert-warning {
    border-left-color: var(--accent-warning);
}

.alert-info {
    border-left-color: var(--primary-cyan);
}

/* ============================================
   LIST GROUPS
   ============================================ */

.list-group {
    background: transparent;
    border-radius: 8px;
}

.list-group-item {
    background: rgba(17, 43, 64, 0.4);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(45, 201, 255, 0.1);
    border-color: var(--primary-cyan);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-cyan-dark) 100%);
    border-color: var(--primary-cyan);
    color: var(--bg-dark);
    font-weight: 600;
}

/* ============================================
   DROPDOWNS
   ============================================ */

.dropdown-menu {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
    border: 1px solid var(--primary-cyan);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(45, 201, 255, 0.1);
    color: var(--primary-cyan);
}

.dropdown-divider {
    border-top-color: var(--border-dark);
}

/* ============================================
   PAGINATION
   ============================================ */

.page-link {
    background: rgba(17, 43, 64, 0.4);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(45, 201, 255, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.page-item.active .page-link {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: var(--bg-dark);
    font-weight: 600;
}

.page-item.disabled .page-link {
    background: rgba(17, 43, 64, 0.2);
    border-color: var(--border-dark);
    color: var(--text-muted);
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress {
    background: rgba(17, 43, 64, 0.4);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    height: 0.75rem;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-cyan-light) 100%);
    border-radius: 8px;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 6px;
}

.badge.bg-primary {
    background: var(--primary-cyan) !important;
    color: var(--bg-dark);
}

.badge.bg-success {
    background: var(--accent-success) !important;
    color: var(--bg-dark);
}

.badge.bg-danger {
    background: var(--accent-danger) !important;
    color: var(--bg-dark);
}

.badge.bg-warning {
    background: var(--accent-warning) !important;
    color: var(--bg-dark);
}

/* ============================================
   TYPOGRAPHY & UTILITIES
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 700;
}

.text-primary {
    color: var(--primary-cyan) !important;
}

.bg-primary {
    background: var(--primary-cyan) !important;
}

.border-primary {
    border-color: var(--primary-cyan) !important;
}

.glow-cyan {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(45, 201, 255, 0.5),
                 0 0 20px rgba(45, 201, 255, 0.3),
                 0 0 30px rgba(45, 201, 255, 0.2),
                 0 0 40px rgba(45, 201, 255, 0.1);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(45, 201, 255, 0.5),
                     0 0 20px rgba(45, 201, 255, 0.3),
                     0 0 30px rgba(45, 201, 255, 0.2),
                     0 0 40px rgba(45, 201, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 15px rgba(45, 201, 255, 0.7),
                     0 0 30px rgba(45, 201, 255, 0.4),
                     0 0 45px rgba(45, 201, 255, 0.3),
                     0 0 60px rgba(45, 201, 255, 0.2);
    }
}

/* ============================================
   SPACING UTILITIES (Mobile-First)
   ============================================ */

/* Responsive padding */
.p-responsive {
    padding: 1rem;
}

@media (min-width: 768px) {
    .p-responsive {
        padding: 1.5rem;
    }
}

@media (min-width: 992px) {
    .p-responsive {
        padding: 2rem;
    }
}

/* Responsive margin */
.m-responsive {
    margin: 1rem;
}

@media (min-width: 768px) {
    .m-responsive {
        margin: 1.5rem;
    }
}

@media (min-width: 992px) {
    .m-responsive {
        margin: 2rem;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-dark) var(--bg-dark);
}

/* ============================================
   BOOTSTRAP OVERRIDES FOR MOBILE
   ============================================ */

/* Container padding on mobile */
.container, .container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 576px) {
    .container, .container-fluid {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

/* Row gutters on mobile */
.row {
    --bs-gutter-x: 1rem;
}

@media (min-width: 768px) {
    .row {
        --bs-gutter-x: 1.5rem;
    }
}

/* Stack columns on smallest screens */
@media (max-width: 575.98px) {
    .col-xs-12 {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .d-xs-none {
        display: none !important;
    }
    
    .text-xs-center {
        text-align: center !important;
    }
}

/* Hide navbar brand text on very small screens */
@media (max-width: 360px) {
    .brand-text {
        display: none;
    }
}

/* ============================================
   TOUCH-FRIENDLY INTERACTIONS
   ============================================ */

/* Increase tap target size on mobile */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .dropdown-item,
    .list-group-item {
        min-height: 44px; /* Apple's recommended minimum */
    }
    
    /* Remove hover effects on touch devices */
    @media (hover: none) and (pointer: coarse) {
        .card:hover,
        .btn:hover,
        .nav-link:hover {
            transform: none;
            box-shadow: none;
        }
        
        .card:active,
        .btn:active,
        .nav-link:active {
            opacity: 0.8;
        }
    }
}