/* ===================================================
   NEO BRUTALISM DESIGN SYSTEM
   Abid Hasan — Developer Portfolio
   =================================================== */

/* --- CSS Variables --- */
:root {
    --nb-yellow: #FFE156;
    --nb-coral: #FF6B6B;
    --nb-teal: #4ECDC4;
    --nb-blue: #45B7D1;
    --nb-purple: #9B59B6;
    --nb-green: #2ECC71;
    --nb-orange: #F39C12;
    --nb-pink: #E91E63;
    --nb-bg: #FFF9E6;
    --nb-bg-dark: #1a1a2e;
    --nb-black: #1a1a1a;
    --nb-white: #ffffff;
    --nb-border: 3px solid var(--nb-black);
    --nb-shadow: 4px 4px 0px var(--nb-black);
    --nb-shadow-hover: 6px 6px 0px var(--nb-black);
    --nb-font-heading: 'Space Grotesk', sans-serif;
    --nb-font-mono: 'JetBrains Mono', monospace;
    --nb-radius: 0px;
    --nb-transition: all 0.2s ease;
}

/* --- Global --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--nb-font-heading);
    background-color: var(--nb-bg);
    color: var(--nb-black);
    overflow-x: hidden;
}

::selection {
    background: var(--nb-yellow);
    color: var(--nb-black);
}

/* --- Neo Brutalism Card --- */
.nb-card {
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    border-radius: var(--nb-radius);
    transition: var(--nb-transition);
}

.nb-card:hover {
    box-shadow: var(--nb-shadow-hover);
    transform: translate(-2px, -2px);
}

/* --- Neo Brutalism Buttons --- */
.nb-btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--nb-font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    border-radius: var(--nb-radius);
    cursor: pointer;
    transition: var(--nb-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nb-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--nb-shadow-hover);
}

.nb-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--nb-black);
}

.nb-btn-primary {
    background: var(--nb-yellow);
    color: var(--nb-black);
}

.nb-btn-primary:hover {
    background: #ffd700;
    color: var(--nb-black);
}

.nb-btn-secondary {
    background: var(--nb-white);
    color: var(--nb-black);
}

.nb-btn-secondary:hover {
    background: var(--nb-black);
    color: var(--nb-white);
}

.nb-btn-coral {
    background: var(--nb-coral);
    color: var(--nb-white);
}

.nb-btn-coral:hover {
    background: #ff5252;
    color: var(--nb-white);
}

.nb-btn-teal {
    background: var(--nb-teal);
    color: var(--nb-black);
}

.nb-btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* --- Navbar --- */
.nb-navbar {
    background: var(--nb-white);
    border-bottom: var(--nb-border);
    padding: 0;
    z-index: 1000;
}

.nb-navbar .navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--nb-black);
    letter-spacing: -1px;
}

.nb-navbar .navbar-brand span {
    color: var(--nb-coral);
}

.nb-navbar .nav-link {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--nb-black);
    padding: 8px 16px !important;
    margin: 4px;
    border: 2px solid transparent;
    transition: var(--nb-transition);
}

.nb-navbar .nav-link:hover,
.nb-navbar .nav-link.active {
    border: 2px solid var(--nb-black);
    background: var(--nb-yellow);
}

.nb-navbar .navbar-toggler {
    border: var(--nb-border);
    border-radius: 0;
    padding: 8px 12px;
}

/* --- Hero Section --- */
.nb-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--nb-bg);
    position: relative;
    overflow: hidden;
}

.nb-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--nb-yellow);
    border: var(--nb-border);
    transform: rotate(15deg);
    z-index: 0;
    opacity: 0.4;
}

.nb-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: var(--nb-coral);
    border: var(--nb-border);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.3;
}

.nb-hero-content {
    position: relative;
    z-index: 1;
}

.nb-hero h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.nb-hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.nb-hero h1 .highlight {
    background: var(--nb-yellow);
    padding: 0 10px;
    border: 2px solid var(--nb-black);
    display: inline-block;
}

.nb-hero h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.nb-hero-decoration {
    position: relative;
}

.nb-hero-label {
    display: inline-block;
    background: var(--nb-teal);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin: 6px;
}

.nb-hero-label.coral {
    background: var(--nb-coral);
    color: var(--nb-white);
}

.nb-hero-label.yellow {
    background: var(--nb-yellow);
}

.nb-hero-label.blue {
    background: var(--nb-blue);
    color: var(--nb-white);
}

.nb-hero-label.purple {
    background: var(--nb-purple);
    color: var(--nb-white);
}

/* --- Section Titles --- */
.nb-section {
    padding: 100px 0;
}

.nb-section-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.nb-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--nb-yellow);
    border: 2px solid var(--nb-black);
    margin-top: 10px;
}

.nb-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* --- About Section --- */
.nb-about {
    background: var(--nb-white);
    border-top: var(--nb-border);
    border-bottom: var(--nb-border);
}

.nb-about-stat {
    text-align: center;
    padding: 20px;
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    background: var(--nb-bg);
}

.nb-about-stat h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--nb-coral);
}

.nb-about-stat p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin: 0;
}

.nb-about-approach li {
    padding: 8px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nb-about-approach li .icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--nb-black);
    background: var(--nb-yellow);
    font-size: 1rem;
    flex-shrink: 0;
}

/* --- Experience Timeline --- */
.nb-experience {
    background: var(--nb-bg);
}

.nb-timeline {
    position: relative;
    padding-left: 40px;
}

.nb-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--nb-black);
}

.nb-timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.nb-timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 20px;
    width: 18px;
    height: 18px;
    background: var(--nb-yellow);
    border: 3px solid var(--nb-black);
}

.nb-timeline-card {
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    padding: 25px 30px;
}

.nb-timeline-card h4 {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.nb-timeline-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--nb-coral);
    margin-bottom: 10px;
}

.nb-timeline-card p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* --- Tech Chips --- */
.nb-chip {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 2px solid var(--nb-black);
    box-shadow: 2px 2px 0px var(--nb-black);
    font-family: var(--nb-font-mono);
    background: var(--nb-yellow);
    color: var(--nb-black);
    transition: var(--nb-transition);
}

.nb-chip:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--nb-black);
}

.nb-chip:nth-child(1) { background: var(--nb-yellow);  color: var(--nb-black); }
.nb-chip:nth-child(2) { background: var(--nb-coral);   color: var(--nb-white); }
.nb-chip:nth-child(3) { background: var(--nb-teal);    color: var(--nb-black); }
.nb-chip:nth-child(4) { background: var(--nb-blue);    color: var(--nb-white); }
.nb-chip:nth-child(5) { background: var(--nb-purple);  color: var(--nb-white); }
.nb-chip:nth-child(6) { background: var(--nb-green);   color: var(--nb-black); }

/* --- Projects Section --- */
.nb-projects {
    background: var(--nb-white);
    border-top: var(--nb-border);
    border-bottom: var(--nb-border);
}

.nb-project-card {
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    overflow: hidden;
    transition: var(--nb-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nb-project-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--nb-shadow-hover);
}

.nb-project-card .card-img-top {
    border-bottom: var(--nb-border);
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.nb-project-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nb-project-card .card-title {
    font-weight: 800;
    font-size: 1.2rem;
}

.nb-project-card .card-text {
    color: #555;
    font-size: 0.9rem;
    flex: 1;
}

.nb-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--nb-black);
    margin: 3px;
    background: var(--nb-bg);
}

.nb-badge.nda {
    background: var(--nb-coral);
    color: var(--nb-white);
}

.nb-badge.hobby {
    background: var(--nb-teal);
    color: var(--nb-black);
}

/* --- Skills Section --- */
.nb-skills {
    background: var(--nb-bg);
}

.nb-skill-category h4 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    padding: 12px 20px;
    background: var(--nb-yellow);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    display: inline-block;
    margin-bottom: 20px;
}

.nb-skill-item {
    margin-bottom: 16px;
}

.nb-skill-item label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.nb-skill-bar {
    height: 24px;
    background: var(--nb-white);
    border: 2px solid var(--nb-black);
    position: relative;
    overflow: hidden;
}

.nb-skill-bar-fill {
    height: 100%;
    transition: width 1s ease;
}

.nb-skill-bar-fill.frontend {
    background: var(--nb-coral);
}

.nb-skill-bar-fill.backend {
    background: var(--nb-teal);
}

.nb-skill-bar-fill.tools {
    background: var(--nb-yellow);
}

.nb-skill-bar-fill.other {
    background: var(--nb-blue);
}

/* --- Blog Section --- */
.nb-blog {
    background: var(--nb-white);
    border-top: var(--nb-border);
    border-bottom: var(--nb-border);
}

.nb-blog-card {
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    transition: var(--nb-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nb-blog-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--nb-shadow-hover);
}

.nb-blog-card .card-img-top {
    border-bottom: var(--nb-border);
    height: 180px;
    object-fit: cover;
    border-radius: 0;
}

.nb-blog-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nb-blog-card .card-title {
    font-weight: 800;
}

.nb-blog-card .card-text {
    color: #555;
    font-size: 0.9rem;
    flex: 1;
}

.nb-blog-date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nb-coral);
}

/* --- Contact Section --- */
.nb-contact {
    background: var(--nb-bg);
}

.nb-contact-form .form-control,
.nb-contact-form .form-select {
    border: var(--nb-border);
    border-radius: var(--nb-radius);
    padding: 12px 16px;
    font-weight: 600;
    font-family: var(--nb-font-heading);
    background: var(--nb-white);
}

.nb-contact-form .form-control:focus,
.nb-contact-form .form-select:focus {
    box-shadow: var(--nb-shadow);
    border-color: var(--nb-black);
    outline: none;
}

.nb-contact-form label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nb-contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 2px dashed #ddd;
}

.nb-contact-info-item .icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.nb-contact-info-item .icon-box.email {
    background: var(--nb-coral);
}

.nb-contact-info-item .icon-box.phone {
    background: var(--nb-teal);
}

.nb-contact-info-item .icon-box.location {
    background: var(--nb-yellow);
}

.nb-contact-info-item .icon-box.github {
    background: var(--nb-black);
    color: var(--nb-white);
}

.nb-contact-info-item .icon-box.linkedin {
    background: var(--nb-blue);
    color: var(--nb-white);
}

.nb-contact-info-item h6 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 2px;
}

.nb-contact-info-item p {
    font-weight: 600;
    margin: 0;
}

/* --- Footer --- */
.nb-footer {
    background: var(--nb-black);
    color: var(--nb-white);
    padding: 60px 0 30px;
    border-top: 4px solid var(--nb-yellow);
}

.nb-footer h5 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.nb-footer a {
    color: #ccc;
    text-decoration: none;
    transition: var(--nb-transition);
    font-weight: 500;
}

.nb-footer a:hover {
    color: var(--nb-yellow);
}

.nb-footer-links {
    list-style: none;
    padding: 0;
}

.nb-footer-links li {
    padding: 4px 0;
}

.nb-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
}

.nb-footer .nb-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--nb-white);
}

.nb-footer .nb-brand span {
    color: var(--nb-coral);
}

/* --- Admin Panel --- */
.nb-admin-sidebar {
    background: var(--nb-black);
    min-height: 100vh;
    border-right: var(--nb-border);
    padding-top: 20px;
}

.nb-admin-sidebar .nav-link {
    color: #ccc;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 12px 20px;
    border-left: 4px solid transparent;
    transition: var(--nb-transition);
}

.nb-admin-sidebar .nav-link:hover,
.nb-admin-sidebar .nav-link.active {
    color: var(--nb-yellow);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--nb-yellow);
}

.nb-admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nb-admin-header {
    background: var(--nb-white);
    border-bottom: var(--nb-border);
    padding: 16px 24px;
}

.nb-admin-content {
    padding: 30px;
    background: var(--nb-bg);
    min-height: calc(100vh - 60px);
}

.nb-admin-stat-card {
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    padding: 20px;
    text-align: center;
}

.nb-admin-stat-card h3 {
    font-size: 2rem;
    font-weight: 900;
}

.nb-admin-stat-card p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0;
}

.nb-table {
    border: var(--nb-border);
    background: var(--nb-white);
    box-shadow: var(--nb-shadow);
}

.nb-table th {
    background: var(--nb-black);
    color: var(--nb-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: var(--nb-border);
    padding: 12px 16px;
}

.nb-table td {
    border: 2px solid var(--nb-black);
    padding: 12px 16px;
    font-weight: 500;
    vertical-align: middle;
}

.nb-form-card {
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    padding: 30px;
}

.nb-form-card .form-control,
.nb-form-card .form-select,
.nb-form-card textarea {
    border: var(--nb-border);
    border-radius: 0;
    font-family: var(--nb-font-heading);
    font-weight: 600;
    padding: 10px 14px;
}

.nb-form-card .form-control:focus,
.nb-form-card .form-select:focus,
.nb-form-card textarea:focus {
    box-shadow: var(--nb-shadow);
    border-color: var(--nb-black);
}

.nb-form-card label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* --- Auth Pages --- */
.nb-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nb-bg);
    position: relative;
}

.nb-auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: 8px 8px 0px var(--nb-black);
    padding: 40px;
}

.nb-auth-card h2 {
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nb-auth-card .form-control {
    border: var(--nb-border);
    border-radius: 0;
    padding: 12px 16px;
    font-weight: 600;
    font-family: var(--nb-font-heading);
}

.nb-auth-card .form-control:focus {
    box-shadow: var(--nb-shadow);
    border-color: var(--nb-black);
    outline: none;
}

.nb-auth-card label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- Blog Page --- */
.nb-blog-page {
    background: var(--nb-bg);
    min-height: 100vh;
}

.nb-blog-content {
    background: var(--nb-white);
    border: var(--nb-border);
    box-shadow: var(--nb-shadow);
    padding: 40px;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

.nb-blog-content h1 {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nb-blog-content img {
    max-width: 100%;
    border: var(--nb-border);
}

.nb-blog-body h1, .nb-blog-body h2, .nb-blog-body h3,
.nb-blog-body h4, .nb-blog-body h5, .nb-blog-body h6 {
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.nb-blog-body h2 { font-size: 1.6rem; border-bottom: 3px solid var(--nb-yellow); padding-bottom: 4px; }
.nb-blog-body h3 { font-size: 1.3rem; }
.nb-blog-body p { margin-bottom: 1.2rem; overflow-wrap: break-word; word-break: break-word; }
.nb-blog-body ul, .nb-blog-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.nb-blog-body li { margin-bottom: 0.4rem; }
.nb-blog-body blockquote {
    border-left: 4px solid var(--nb-yellow);
    padding: 10px 20px;
    margin: 1.5rem 0;
    background: #fafafa;
    font-style: italic;
    color: #555;
}
.nb-blog-body code {
    background: #f3f3f3;
    border: 1px solid #ddd;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: var(--nb-font-mono);
    font-size: 0.88em;
}
.nb-blog-body pre {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 20px;
    border: var(--nb-border);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.nb-blog-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}
.nb-blog-body a { color: var(--nb-purple); text-decoration: underline; font-weight: 600; }
.nb-blog-body img { max-width: 100%; border: var(--nb-border); margin: 1rem 0; }
.nb-blog-body hr { border: none; border-top: 3px solid var(--nb-black); margin: 2rem 0; }

/* --- ScrollReveal Animation --- */
.nb-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nb-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Alert Banner --- */
.nb-alert {
    border: var(--nb-border);
    border-radius: 0;
    font-weight: 700;
    box-shadow: var(--nb-shadow);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nb-hero h1 {
        font-size: 2.8rem;
    }

    .nb-section-title {
        font-size: 2rem;
    }

    .nb-section {
        padding: 60px 0;
    }

    .nb-hero {
        min-height: 70vh;
    }

    .nb-timeline {
        padding-left: 30px;
    }

    .nb-timeline::before {
        left: 10px;
    }

    .nb-timeline-item::before {
        left: -28px;
        width: 14px;
        height: 14px;
    }

    .nb-auth-card {
        margin: 20px;
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .nb-hero h1 {
        font-size: 2.2rem;
    }

    .nb-hero h2 {
        font-size: 1.1rem;
    }

    .nb-hero-label {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}