/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #060913;
    --bg-darker: #04060D;
    --bg-card: rgba(13, 19, 38, 0.72);
    --bg-terminal: rgba(15, 23, 42, 0.92);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-slate: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --cyan: #06B6D4;
    --emerald: #10B981;
    --blue: #3B82F6;
    --purple: #A855F7;
    --amber: #F59E0B;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Deter casual copying and text selection */
body {
    background-color: var(--bg-dark);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(30, 41, 59, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 41, 59, 0.25) 1px, transparent 1px);
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-slate); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ==========================================================================
   AMBIENT GLOW & CONTAINERS
   ========================================================================== */
.glow-cyan {
    position: fixed;
    top: 0;
    left: 20%;
    width: 26rem;
    height: 26rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 9999px;
    filter: blur(130px);
    pointer-events: none;
    z-index: -10;
}

.glow-blue {
    position: fixed;
    bottom: 20%;
    right: 20%;
    width: 26rem;
    height: 26rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 9999px;
    filter: blur(130px);
    pointer-events: none;
    z-index: -10;
}

.container-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
    background: rgba(6, 9, 19, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-wrapper {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    box-shadow: 0 8px 20px -4px rgba(6, 182, 212, 0.35);
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-badge {
    transform: scale(1.06);
}

.brand-name {
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.08em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item {
    color: #CBD5E1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #fff;
}

.nav-item.active {
    color: var(--cyan);
    font-weight: 600;
    border-bottom: 2px solid var(--cyan);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    color: #020617;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.3);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: #1E293B;
    border-color: var(--cyan);
}

.btn-nav {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background: var(--cyan);
    color: #020617;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
}

.btn-nav:hover {
    background: #22D3EE;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.85rem;
    border-radius: 9999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #67E8F9;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #34D399;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ==========================================================================
   CARDS & TAGS
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.18);
}

.terminal-row {
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: var(--bg-terminal);
    border: 1px solid rgba(30, 41, 59, 0.9);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tech-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background: #0F172A;
    border: 1px solid #1E293B;
    color: #CBD5E1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.tech-tag.highlight-cyan { color: #67E8F9; }
.tech-tag.highlight-emerald { color: #6EE7B7; }
.tech-tag.highlight-blue { color: #93C5FD; }
.tech-tag.highlight-purple { color: #D8B4FE; }

.cert-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 0.375rem;
    background: #1E293B;
    border: 1px solid #334155;
    color: #E2E8F0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icon-cyan { background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3); color: var(--cyan); }
.icon-emerald { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--emerald); }
.icon-blue { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--blue); }
.icon-purple { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.3); color: var(--purple); }

.text-gradient {
    background: linear-gradient(90deg, #22D3EE, #38BDF8, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.site-footer {
    border-top: 1px solid rgba(30, 41, 59, 0.8);
    background: var(--bg-darker);
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

/* ==========================================================================
   EXPERIENCE TIMELINE ADDITIONS (Append to style.css)
   ========================================================================== */
.timeline-container {
    position: relative;
    border-left: 2px solid rgba(30, 41, 59, 0.9);
    margin-left: 0.75rem;
    padding-left: 1.75rem;
}

@media (min-width: 640px) {
    .timeline-container {
        margin-left: 1.25rem;
        padding-left: 2.5rem;
    }
}

.timeline-item {
    position: relative;
}

.timeline-node {
    position: absolute;
    left: -2.35rem;
    top: 1.75rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 9999px;
    background: var(--bg-dark);
    border: 3px solid var(--cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

@media (min-width: 640px) {
    .timeline-node {
        left: -3.1rem;
    }
}

.timeline-node.node-active {
    background: var(--emerald);
    border-color: #6EE7B7;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.85);
}

.role-list {
    list-style: none;
    space-y: 0.75rem;
}

.role-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #CBD5E1;
    font-size: 0.925rem;
    line-height: 1.65;
}

.role-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   CREDENTIALS & SKILLS MATRIX ADDITIONS (Append to style.css)
   ========================================================================== */
.skill-bar-track {
    width: 100%;
    height: 0.5rem;
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.skill-bar-fill.fill-emerald {
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.award-card {
    position: relative;
    overflow: hidden;
}

.award-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--cyan));
}
/* ==========================================================================
   CONTACT PAGE ADDITIONS (Append to style.css)
   ========================================================================== */
.contact-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.2);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #0F172A;
    border: 1px solid #1E293B;
    color: #F8FAFC;
    font-size: 0.925rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.form-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   BRAND AVATAR ADDITION (Append to style.css)
   ========================================================================== */
.brand-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 2px solid rgba(6, 182, 212, 0.5);
    box-shadow: 0 8px 20px -4px rgba(6, 182, 212, 0.35);
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-avatar {
    transform: scale(1.06);
}