/* ==========================================================================
   Nikhil Raghav Portfolio - Modern Dark Mode Design System
   ========================================================================== */

:root {
    --bg-dark: #0b0b0d;
    --bg-card: #131317;
    --bg-card-hover: #1a1a22;
    --bg-nav: rgba(11, 11, 13, 0.85);
    
    --accent-orange: #ff4500;
    --accent-orange-glow: rgba(255, 69, 0, 0.4);
    --accent-cyan: #00f2fe;
    --accent-cyan-glow: rgba(0, 242, 254, 0.3);
    --accent-green: #10b981;
    
    --text-main: #ffffff;
    --text-muted: #a0a0a8;
    --text-sub: #d1d5db;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(255, 69, 0, 0.5);
    --pill-border: rgba(255, 255, 255, 0.18);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #262630;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-orange { color: var(--accent-orange) !important; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-green { color: var(--accent-green) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-mono { font-family: var(--font-mono); }

/* Navigation Bar */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.brand-logo i {
    color: var(--accent-orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-orange);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Page Banner / Header */
.page-banner {
    padding: 140px 20px 60px;
    background: radial-gradient(circle at 50% 20%, #1a1a24 0%, var(--bg-dark) 80%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-banner .category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid var(--border-highlight);
    border-radius: 20px;
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.page-banner h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-banner p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Section Containers */
.section-padding {
    padding: 80px 20px;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-header .sub-title {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.section-header .main-title {
    font-size: 2.2rem;
    font-weight: 800;
}

/* Cards & Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
}

/* Bullet list */
.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-sub);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* Badges & Tags */
.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
}

/* Timeline Cards */
.timeline-item {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
    margin-bottom: 35px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-orange);
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.timeline-company {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.timeline-period {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* CLI Terminal Styling */
.terminal-window {
    background: #0d0d11;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    font-family: var(--font-mono);
}

.terminal-header {
    background: #14141a;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.terminal-body {
    padding: 20px;
    min-height: 220px;
    max-height: 380px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.7;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #121217;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
}

.terminal-prompt {
    color: var(--accent-orange);
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #d43700 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-orange-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 69, 0, 0.6);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(255, 69, 0, 0.05);
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 14px 18px;
    background: #141418;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange-glow);
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    background: #181820;
    border: 1px solid var(--accent-orange);
    border-radius: 12px;
    padding: 14px 24px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Footer */
footer {
    background: #08080a;
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Can be toggled or responsive */
    }
    .page-banner h1 {
        font-size: 2.4rem;
    }
}
