/* ------------------------------
   GLOBAL RESET & VARIABLES
-------------------------------- */
:root {
    --bg-primary: #0a0c15;
    --bg-secondary: #0f111a;
    --card-bg: #13161f;
    --card-hover: #1a1e2a;
    --text-primary: #edf2ff;
    --text-secondary: #9aa4bf;
    --accent-primary: #3b82f6;
    --accent-glow: rgba(59,130,246,0.3);
    --accent-secondary: #8b5cf6;
    --terminal-bg: #0a0c12;
    --border-subtle: rgba(255,255,255,0.06);
    --success: #10b981;
    --warning: #f59e0b;
    --grad-1: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 6px;
}

/* sections */
.section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 2.5rem 0;
    }
}

.section-bg-alt {
    background-color: var(--bg-secondary);
    position: relative;
}

.section__head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section__title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(120deg, #fff, var(--accent-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.section__subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* header & navigation */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 12, 21, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    padding: 0.8rem 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo__text {
    background: var(--grad-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dot-color {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.9rem;
}

.nav__link:hover {
    color: var(--accent-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--grad-1);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn--ghost:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn--sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
}

.btn--large {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.btn--outline {
    background: transparent;
    border: 2px solid rgba(59,130,246,0.5);
    color: var(--text-primary);
}

.btn--outline:hover {
    border-color: var(--accent-primary);
    background: rgba(59,130,246,0.1);
    transform: translateY(-2px);
}

/* Profile Section */
.hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.profile-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .profile-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.profile-image-area {
    flex: 1;
    min-width: 240px;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-frame {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 4px;
    box-shadow: 0 20px 35px -12px rgba(59,130,246,0.4);
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .image-frame {
        width: 200px;
        height: 200px;
    }
}

.image-frame:hover {
    transform: scale(1.02);
}

.image-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.image-frame:hover .image-glow {
    opacity: 0.5;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--card-bg);
}

.image-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.status-badge {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    border: 1px solid rgba(59,130,246,0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Floating Icons */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 35px;
    height: 35px;
    background: rgba(59,130,246,0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-primary);
    border: 1px solid rgba(59,130,246,0.3);
    animation: floatIcon 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .floating-icon {
        display: none;
    }
}

.icon-1 { top: 10%; left: -5%; }
.icon-2 { bottom: 15%; right: -5%; }
.icon-3 { top: 40%; right: -5%; }
.icon-4 { bottom: 30%; left: -8%; }

.hero-content {
    flex: 2;
}

.greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.1);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    border: 1px solid rgba(59,130,246,0.2);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.text-gradient {
    background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animated-role {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.role-text {
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

.professional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.info-chip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.info-chip i {
    color: var(--accent-primary);
    font-size: 0.7rem;
}

.hero__subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0.8rem 0 1rem;
    line-height: 1.5;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.badge {
    background: rgba(59,130,246,0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Terminal */
.terminal-window {
    background: var(--terminal-bg);
    border-radius: 1rem;
    border: 1px solid rgba(59,130,246,0.2);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.4);
    margin-top: 2rem;
    transition: all 0.3s;
}

.terminal-header {
    background: #0b0e16;
    padding: 0.7rem 1rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #7e8aa2;
}

.terminal-body {
    padding: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    min-height: 180px;
    max-height: 300px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 0.8rem;
    word-break: break-word;
}

.prompt {
    color: var(--accent-primary);
    font-weight: 600;
}

.command {
    color: #cbd5e6;
    margin-left: 0.3rem;
}

.response {
    color: #8d9bc0;
    margin: 0.3rem 0 0 1rem;
    line-height: 1.4;
    font-size: 0.7rem;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-count {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    padding: 1px 6px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
}

.filter-btn.active {
    background: var(--grad-1);
    border-color: transparent;
    color: white;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Project Cards */
.grid--projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 15px 25px -10px rgba(0,0,0,0.4);
}

.project-card__media {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-date, .project-status {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-active { color: #10b981; }
.status-completed { color: #f59e0b; }

.project-card__body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.tag {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-security { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.tag-infra { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.tag-dev, .tag-prog { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.tag-db { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.tag-iot { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.project-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-card__desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex: 1;
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.pill {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-card__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-details-dropdown {
    margin-top: 0.8rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.8rem;
}

.dropdown-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dropdown-content a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s;
}

/* Project Stats */
.project-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.project-stats .stat-item {
    text-align: center;
    background: var(--card-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border-subtle);
    min-width: 90px;
}

.project-stats .stat-item i {
    font-size: 1.3rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.project-stats .stat-item span {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    color: var(--text-primary);
}

.project-stats .stat-item small {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

/* ==================== JOURNEY TABS ==================== */
.journey-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.journey-tab {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.journey-tab i {
    font-size: 1rem;
}

.journey-tab.active {
    background: var(--grad-1);
    border-color: transparent;
    color: white;
}

.journey-tab:hover:not(.active) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.journey-content {
    display: none;
}

.journey-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Work Experience Cards */
.work-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.work-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--grad-1);
}

.work-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.work-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.work-icon i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.work-content {
    flex: 1;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.work-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.work-date {
    font-size: 0.7rem;
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.work-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.work-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 500;
}

.work-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.work-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-skills span {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-primary);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Training Section */
.training-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    text-align: center;
    background: var(--card-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
}

.stat-badge i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.stat-badge span {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    color: var(--text-primary);
}

.stat-badge small {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.2rem;
}

.training-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.training-card.featured {
    border-left: 3px solid #f59e0b;
    background: linear-gradient(135deg, var(--card-bg), rgba(245, 158, 11, 0.03));
}

.card-header {
    background: var(--bg-secondary);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.card-icon i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.card-type {
    font-size: 0.65rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.card-body {
    padding: 1.2rem;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.provider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.provider i {
    color: var(--accent-primary);
}

.date {
    background: rgba(59, 130, 246, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.card-body p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.skills span {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-primary);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
}

.writeup-link a {
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.score-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.leader-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.achievement {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    margin-left: 0.5rem;
}

/* ==================== WRITE-UPS SECTION ==================== */
.content-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.stat-icon i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-platform {
    font-size: 0.65rem;
    color: var(--accent-primary);
    margin-top: 0.25rem;
}

.platform-section {
    margin-bottom: 3rem;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.platform-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.official-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    margin-left: 0.5rem;
}

.profile-link {
    margin-left: auto;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.writeup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.writeup-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 0.8rem;
    padding: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.writeup-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.writeup-card.featured {
    background: linear-gradient(135deg, var(--card-bg), rgba(59, 130, 246, 0.05));
    border-left: 3px solid #f59e0b;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: #f59e0b;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.writeup-icon {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.writeup-icon i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.writeup-card h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.writeup-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.writeup-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.writeup-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-link {
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-decoration: none;
}

/* CTF Accordion */
.ctf-accordion {
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-subtle);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1rem 1.2rem;
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s;
}

.accordion-header:hover {
    background: rgba(59, 130, 246, 0.05);
}

.accordion-header i:first-child {
    color: var(--accent-primary);
    width: 20px;
}

.accordion-header span:first-of-type {
    flex: 1;
    font-weight: 500;
}

.accordion-header .count {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.accordion-header i:last-child {
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.accordion-item.active .accordion-header i:last-child {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 1rem 1.2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.accordion-item.active .accordion-body {
    display: block;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.challenge-group h5 {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.challenge-group ul {
    list-style: none;
    padding: 0;
}

.challenge-group ul li {
    margin-bottom: 0.3rem;
}

.challenge-group ul li a {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.challenge-group ul li a:hover {
    color: var(--accent-primary);
}

.lab-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.lab-list li a {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
}

.lab-list li a:hover {
    color: var(--accent-primary);
}

.expand-all-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    margin-left: auto;
}

.expand-all-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Contact Section */
.contact-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    border: 1px solid var(--border-subtle);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-icon {
    background: rgba(255,255,255,0.03);
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--accent-primary);
    transition: 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* ==================== LIGHT MODE ==================== */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: #ffffff;
    --card-hover: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --terminal-bg: #1e293b;
    --border-subtle: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .terminal-window {
    background: #1e293b;
}

[data-theme="light"] .terminal-header {
    background: #0f172a;
}

[data-theme="light"] .terminal-body {
    color: #cbd5e1;
}

[data-theme="light"] .command {
    color: #94a3b8;
}

[data-theme="light"] .response {
    color: #64748b;
}

/* ==================== UTILITIES & ANIMATIONS ==================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--grad-1);
    z-index: 1001;
    transition: width 0.1s ease;
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--grad-1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-search-input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-search:hover {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-subtle);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .work-card {
        flex-direction: column;
        text-align: center;
    }
    
    .work-icon {
        margin: 0 auto;
    }
    
    .work-header {
        flex-direction: column;
        align-items: center;
    }
    
    .work-company {
        justify-content: center;
    }
    
    .work-skills {
        justify-content: center;
    }
    
    .provider {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .training-stats {
        gap: 1rem;
    }
    
    .stat-badge {
        padding: 0.6rem 1rem;
        min-width: 100px;
    }
    
    .grid--projects {
        grid-template-columns: 1fr;
    }
}

/* ==================== HASNODE FEATURED CARDS ==================== */
.hashnode-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.hashnode-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hashnode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.05), rgba(41, 98, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hashnode-card:hover {
    transform: translateY(-3px);
    border-color: #2962FF;
    box-shadow: 0 10px 25px -5px rgba(41, 98, 255, 0.15);
}

.hashnode-card:hover::before {
    opacity: 1;
}

.hashnode-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(41, 98, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hashnode-card:hover .hashnode-card-icon {
    background: #2962FF;
}

.hashnode-card-icon i {
    font-size: 1.4rem;
    color: #2962FF;
    transition: all 0.3s ease;
}

.hashnode-card:hover .hashnode-card-icon i {
    color: white;
}

.hashnode-card-content {
    flex: 1;
}

.hashnode-card-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.hashnode-card-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hashnode-card-meta {
    font-size: 0.65rem;
    color: #2962FF;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hashnode-card-meta i {
    font-size: 0.6rem;
}

.hashnode-card-arrow {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.hashnode-card:hover .hashnode-card-arrow {
    color: #2962FF;
    opacity: 1;
    transform: translateX(5px);
}

/* Light mode adjustments */
[data-theme="light"] .hashnode-card-icon {
    background: rgba(41, 98, 255, 0.08);
}

[data-theme="light"] .hashnode-card:hover {
    box-shadow: 0 10px 25px -5px rgba(41, 98, 255, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    .hashnode-card {
        padding: 1rem;
    }
    
    .hashnode-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .hashnode-card-icon i {
        font-size: 1.2rem;
    }
    
    .hashnode-card-content h4 {
        font-size: 0.9rem;
    }
    
    .hashnode-card-content p {
        font-size: 0.7rem;
    }
}

/* ==================== PROJECT DETAILS DROPDOWN ENHANCED ==================== */
.project-details-dropdown {
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

/* Legacy dropdown links */
.dropdown-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dropdown-content a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Enhanced sections (for AD Attack Detection)  */
.dropdown-section {
    margin-bottom: 1rem;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dropdown-section-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-section-title i {
    margin-right: 0.4rem;
    width: 16px;
}

.dropdown-item-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.25rem 0 0.25rem 0.25rem;
}

.dropdown-item-text i {
    width: 18px;
    color: var(--accent-primary);
    font-size: 0.75rem;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item-text i.fa-check-circle {
    color: var(--success) !important;
}

.dropdown-item-text i.fa-trophy {
    color: var(--warning) !important;
}

/* Light mode adjustments */
[data-theme="light"] .dropdown-item-text {
    color: #475569;
}

/* ==================== COMPANY LOGO IN WORK CARD ==================== */
.work-icon--image {
    overflow: hidden;
    padding: 0 !important;
    background: white !important;
    border: 2px solid var(--accent-primary);
}

.company-logo-img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    border-radius: 50%;
}

/* Light mode adjustments */
[data-theme="light"] .work-icon--image {
    background: white !important;
}

/* ==================== COMPANY LOGO IN TRAINING CARDS ==================== */
.card-icon--image {
    overflow: hidden;
    padding: 0 !important;
    background: white !important;
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon--image .company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

/* Light mode adjustments */
[data-theme="light"] .card-icon--image {
    background: white !important;
}

/* ==================== TRAINING CARD LOGO IMAGES ==================== */
.card-icon--image {
    overflow: hidden;
    padding: 0 !important;
    background: white !important;
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Fallback if image fails to load */
.card-icon--image i {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

/* Light mode adjustments */
[data-theme="light"] .card-icon--image {
    background: white !important;
}