/* =============================================
   CYBERSECURITY PORTFOLIO — DESIGN SYSTEM
   ============================================= */

/* ----- CSS Custom Properties ----- */
:root {
    /* Base colors */
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1220;
    --bg-tertiary: #111827;
    --bg-card: rgba(13, 18, 32, 0.8);

    /* Accent colors */
    --accent-primary: #00ffc8;
    --accent-secondary: #0ff;
    --accent-tertiary: #00b894;
    --accent-glow: rgba(0, 255, 200, 0.15);
    --accent-glow-strong: rgba(0, 255, 200, 0.3);

    /* Text */
    --text-primary: #e4e8f1;
    --text-secondary: #8892a8;
    --text-muted: #5a6480;

    /* Borders */
    --border-color: rgba(0, 255, 200, 0.12);
    --border-hover: rgba(0, 255, 200, 0.35);

    /* Typography */
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-default: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
    scroll-snap-type: y mandatory;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 255, 200, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 200, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-tertiary);
    border-radius: 3px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
}

/* ----- Matrix Canvas ----- */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

/* ----- Container & Section ----- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

#about {
    padding-top: 40px;
}

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

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.title-decorator {
    color: var(--accent-primary);
    margin-right: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Navigation ----- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-default);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}

.logo-bracket {
    color: var(--accent-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-default);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary) !important;
    background: var(--accent-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition-default);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-default);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 24px;
    z-index: 1;
    scroll-snap-align: start;
}

.hero-content {
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
}

.terminal-window {
    background: rgba(13, 18, 32, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    margin-bottom: 40px;
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.05), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

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

.terminal-dot.red {
    background: #ff5f57;
}

.terminal-dot.yellow {
    background: #febc2e;
}

.terminal-dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 8px;
}

.terminal-body {
    padding: 24px;
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.prompt {
    color: var(--accent-primary);
    margin-right: 8px;
}

.command {
    color: var(--accent-secondary);
}

.hero-name {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 16px;
    min-height: 1.2em;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.3);
}

.cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
    display: inline-block;
    vertical-align: baseline;
    text-shadow: 0 0 10px var(--accent-primary);
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-glass-box {
    background: rgba(10, 14, 23, 0.4);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.15), inset 0 0 20px rgba(0, 255, 200, 0.05);
    position: relative;
    overflow: hidden;
    margin-left: auto;
    /* Added for centering avatar box */
    margin-right: auto;
    /* Added for centering avatar box */
}

.avatar-glass-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: conic-gradient(transparent, transparent, transparent, var(--accent-primary));
    animation: rotateGlow 4s linear infinite;
    opacity: 0.15;
    z-index: -1;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-default);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: var(--bg-primary) !important;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 255, 200, 0.35);
    transform: translateY(-2px);
    color: var(--bg-primary) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary) !important;
    border-color: var(--border-hover);
}

.btn-secondary:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-outline-green {
    background: transparent;
    border-color: #00b894;
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.2);
}

.btn-ghostjs {
    background: transparent;
    border: 1px solid #50b4d8;
    color: #e4e8f1 !important;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(80, 180, 216, 0.15);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-ghostjs:hover {
    background: rgba(80, 180, 216, 0.05);
    box-shadow: 0 0 20px rgba(80, 180, 216, 0.3);
    border-color: #50b4d8;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-green:hover {
    background: rgba(0, 184, 148, 0.1);
    box-shadow: 0 0 30px rgba(0, 184, 148, 0.4);
    transform: translateY(-2px);
}

.btn-glow-green {
    position: relative;
    overflow: hidden;
    animation: btnPulseGreen 2s infinite;
}

.btn-glow-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 148, 0.2), transparent);
    animation: btnScan 3s infinite;
}

@keyframes btnPulseGreen {
    0% {
        box-shadow: 0 0 15px rgba(0, 184, 148, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 184, 148, 0.5), 0 0 10px rgba(0, 184, 148, 0.2) inset;
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 184, 148, 0.2);
    }
}

/* Glowing Button Animation */
.btn-glow {
    position: relative;
    overflow: hidden;
    animation: btnPulse 2s infinite;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: btnScan 3s infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 200, 0.6), 0 0 10px rgba(0, 255, 200, 0.4) inset;
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
    }
}

@keyframes btnScan {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}



/* ----- About Section ----- */
.about-grid-single {
    max-width: 800px;
    margin: 48px auto 0;
}

.about-content.centered {
    text-align: justify;
    text-justify: inter-word;
}

.about-tags.justify-center {
    justify-content: center;
}

/* Avatar Frame inside Hero */
.avatar-frame {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

.avatar-icon {
    width: 240px;
    height: 240px;
    margin: 10px auto;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hacker-avatar {
    width: 160px;
    height: 160px;
}

.eye-glow {
    animation: eyePulse 3s infinite;
}

@keyframes eyePulse {

    0%,
    100% {
        opacity: 1;
        r: 2;
    }

    50% {
        opacity: 0.5;
        r: 3;
    }
}

.avatar-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 4s infinite;
}

.ring-1 {
    width: 240px;
    height: 240px;
    animation-delay: 0s;
}

.ring-2 {
    width: 280px;
    height: 280px;
    animation-delay: 1.3s;
}

.ring-3 {
    width: 320px;
    height: 320px;
    animation-delay: 2.6s;
}

@keyframes ringPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 500;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--accent-primary);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ----- Skills Section ----- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: var(--transition-default);
}

.skill-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 255, 200, 0.08);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-hex-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-category-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 5px 12px;
    background: rgba(0, 255, 200, 0.06);
    border: 1px solid rgba(0, 255, 200, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.skill-badge:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-color: var(--border-hover);
}

/* ----- Hall of Fame Section ----- */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.hof-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-default);
    position: relative;
}

.hof-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 255, 200, 0.12);
}

.hof-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.hof-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.hof-card:hover .hof-card-img img {
    transform: scale(1.04);
}

.hof-card-info {
    padding: 28px 24px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hof-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    height: 64px;
}

.hof-icon img {
    max-width: 200px;
    max-height: 64px;
    object-fit: contain;
}

.hof-icon img.invert-logo {
    filter: brightness(0) invert(1);
}

.hof-org {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.hof-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

/* ----- HoF Lightbox ----- */
.hof-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease;
}

.hof-lightbox.active {
    display: flex;
}

.hof-lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.hof-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10000;
}

.hof-lightbox-close:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



/* ----- Projects Section ----- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition-default);
    position: relative;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 255, 200, 0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-icon {
    font-size: 1.8rem;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    color: var(--text-muted) !important;
    transition: var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-primary) !important;
}

.project-title {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-problem {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    background: rgba(0, 255, 200, 0.03);
    border-left: 2px solid var(--accent-primary);
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
}

.project-problem strong {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--accent-glow);
    border-radius: 4px;
    color: var(--accent-primary);
}

.project-metrics {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-tertiary);
}

.project-details-link {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 255, 200, 0.03);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-details-link:hover {
    background: rgba(0, 255, 200, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
    transform: translateY(-2px);
    color: #fff !important;
}

.project-details-link span {
    transition: transform 0.3s ease;
}

.project-details-link:hover span {
    transform: translateX(3px);
}

/* ----- CTF Section ----- */
.ctf-grid {
    display: grid;
    gap: 16px;
    max-width: 1040px;
    margin: 48px auto 0;
}

.ctf-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition-default);
}

.ctf-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: -4px 0 20px rgba(0, 255, 200, 0.08);
}

.ctf-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 200, 0.1);
    flex-shrink: 0;
}

.ctf-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctf-info {
    flex: 1;
}

.ctf-name {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ctf-detail {
    font-size: 0.88rem;
    color: var(--text-secondary);
}



/* ----- Certifications Section ----- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-default);
    position: relative;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 255, 200, 0.12);
}

.cert-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.cert-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-card-img img {
    transform: scale(1.04);
}

.cert-card-info {
    padding: 28px 24px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.cert-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 255, 200, 0.15);
    width: 100%;
}

.cert-skill-badge {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.cert-skill-badge:hover {
    background: rgba(0, 255, 200, 0.05);
    color: #fff;
    border-color: var(--accent-primary);
}



/* ----- Tab Styles (Experience & Education) ----- */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0 48px;
}

.tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    font-family: var(--font-mono);
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-default);
}

.tab-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.1);
}

.tab-btn.active {
    background: rgba(0, 255, 200, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    font-weight: 600;
}

.tab-content {
    animation: fadeIn 0.4s ease-in-out;
}

/* ----- Timeline (Experience & Education) ----- */
.timeline {
    max-width: 700px;
    margin: 48px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--border-color), transparent);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.timeline-marker.education {
    background: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition-default);
}

.timeline-content:hover {
    border-color: var(--border-hover);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.timeline-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0;
}

.timeline-institution {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-details {
    list-style: none;
    padding: 0;
}

.timeline-details li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.timeline-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ----- Contact Section ----- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-default);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary) !important;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.08), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition-default);
    pointer-events: none;
}

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

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 255, 200, 0.12);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition-default);
    color: var(--accent-primary);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    transition: var(--transition-default);
}

.contact-card:hover .contact-icon {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.contact-card h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin: 0;
}

.resume-download {
    text-align: center;
    margin-top: 48px;
}

/* ----- Footer ----- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    scroll-snap-align: start;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted) !important;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary) !important;
}

/* ----- Scroll Reveal Animation ----- */
.section .container,
.hero .hero-content {
    opacity: 0.3;
    transform: scale(0.92) translateY(30px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.section.section-active .container,
.hero.section-active .hero-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Responsive Design ----- */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        transition: var(--transition-slow);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 16px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hof-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }



    .hero-cta {
        flex-direction: column;
        align-items: center;
    }



    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .terminal-body {
        padding: 16px;
    }

    .hero-name {
        font-size: 1.6rem;
    }



    .contact-grid {
        grid-template-columns: 1fr;
    }

    .ctf-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}