/* Global KSP Datathon 2026 Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 28, 45, 0.7);
    --bg-sidebar: #0f1524;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.4);
    
    --accent-gold: #f59e0b;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    
    --font-header: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-smooth);
}
.glass-panel:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 30px var(--border-glow);
}

/* Glowing text & Gradients */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-header);
}

.text-gold-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-header);
}

/* Navigation Header */
.ksp-header {
    height: 70px;
    background: rgba(15, 21, 36, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.ksp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ksp-logo {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-glow);
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.ksp-title {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.ksp-nav-links {
    display: flex;
    gap: 24px;
}

.ksp-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 6px 12px;
    border-radius: 8px;
}
.ksp-nav-link:hover, .ksp-nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* User Profile Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-blue);
}

.user-badge select {
    background: transparent;
    color: var(--accent-blue);
    border: none;
    outline: none;
    font-weight: 600;
    cursor: pointer;
}

/* Main Layout Grid */
.main-container {
    padding-top: 70px;
    height: 100vh;
    display: flex;
}

/* Landing Portal Page Styles */
.portal-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 450px));
    gap: 40px;
    margin-top: 50px;
}

.portal-card {
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
    cursor: pointer;
}

.portal-card h2 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.portal-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.portal-btn {
    background: var(--accent-blue);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    margin-top: 24px;
    text-decoration: none;
    width: fit-content;
}

.portal-btn:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Form inputs & UI Control Components */
input[type="text"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 21, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}
input[type="text"]:focus, select:focus, textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
}

button.btn-primary {
    background: var(--accent-blue);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
button.btn-primary:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Utility Layout Modifiers */
.d-none { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; }
