/* Main Stylesheet - Premium Theme */

:root {
    /* Premium Color Palette - Deep Indigo, Emerald Green, Slate Gray */
    --primary-color: #3730a3;
    --primary-dark: #312e81;
    --primary-light: #4f46e5;
    --secondary-color: #059669;
    --secondary-light: #10b981;
    --accent-color: #0891b2;
    --text-color: #1e293b;
    --text-light: #64748b;
    --surface-color: #FFFFFF;
    --background-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --gradient-accent: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Improved Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
}

/* Z-Index Hierarchy Management */
:root {
    --z-dropdown: 1500;
    --z-mobile-nav: 1400;
    --z-header: 1000;
    --z-mobile-toggle: 1001;
    --z-overlay: 999;
    --z-modal: 2000;
    --z-tooltip: 3000;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
    /* Prevent navbar overlap */
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Clean and Professional */
header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: var(--text-color) !important;
    padding: 0.75rem 0 !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: var(--z-header) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(55, 48, 163, 0.08) !important;
    min-height: 80px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: var(--z-mobile-toggle) !important;
    border-radius: 6px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle:hover {
    background: rgba(55, 48, 163, 0.1);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* Request Button - Special Styling */
nav a.request-link {
    color: #10b981;
    font-weight: 700;
    position: relative;
}

nav a.request-link::before {
    content: '🔥';
    font-size: 0.8em;
    margin-right: 4px;
}

nav a.request-link.active::before {
    display: none !important;
}

nav a.request-link:hover {
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

/* Login Button */
.login-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(55, 48, 163, 0.3);
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 48, 163, 0.4);
    color: white;
}

.login-btn::after {
    display: none;
}

/* Responsive Design */


/* Updates & Jobs Section */
.updates-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.update-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(55, 48, 163, 0.06);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.update-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.update-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-header h3 i {
    color: var(--primary-color);
}

.view-all {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.update-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.update-item:hover {
    background: #f1f5f9;
}

.update-date {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    min-width: 65px;
    text-align: center;
}

.job-tag {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.update-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

.update-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.update-item a:hover {
    color: var(--primary-color);
}

.empty-msg {
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

@media (max-width: 768px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== IMPROVED SPACING UTILITIES ===== */
.section-py {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

.section-py-sm {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.section-px {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.mt-section {
    margin-top: var(--spacing-3xl);
}

.mb-section {
    margin-bottom: var(--spacing-3xl);
}

.gap-lg {
    gap: var(--spacing-lg) !important;
}

.gap-xl {
    gap: var(--spacing-xl) !important;
}