/* ========================================
   CSS Variables & Base Styles
======================================== */
:root {
    /* Colors - Monochrome Black & White */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Accent Colors - White/Gray Monochrome */
    --accent-primary: #ffffff;
    --accent-secondary: #e5e5e5;
    --accent-tertiary: #d4d4d4;
    --accent-gradient: linear-gradient(135deg, #ffffff, #a3a3a3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;

    /* Status Colors - Kept for functionality */
    --success: #22c55e;
    --warning: #fbbf24;
    --error: #ef4444;

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

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

    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.1);
    --blur-glass: blur(20px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ========================================
   Utility Classes
======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* Section Title Emojis */
.section-emoji {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-image: url('assets/images/emoji-sprite.png');
    background-size: 200% 300%;
    /* 2 columns, 3 rows */
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 15px;
    border-radius: 12px;
}

.emoji-graduate {
    background-position: 0% 0%;
}

/* Top Left */
.emoji-hacker {
    background-position: 100% 0%;
}

/* Top Right */
.emoji-diplomas {
    background-position: 0% 50%;
}

/* Middle Left */
.emoji-id {
    background-position: 100% 50%;
}

/* Middle Right */
.emoji-coder {
    background-position: 0% 100%;
}

/* Bottom Left */
.emoji-relax {
    background-position: 100% 100%;
}

/* Bottom Right */

/* Section Title */
.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.title-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all var(--transition-medium);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

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

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-medium);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-medium);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-medium);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #333333;
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #1a1a1a;
    bottom: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(50px, 50px) rotate(5deg);
    }

    50% {
        transform: translate(0, 100px) rotate(0deg);
    }

    75% {
        transform: translate(-50px, 50px) rotate(-5deg);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

/* Hero Avatar */
.hero-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-primary);
    border: 4px solid var(--bg-primary);
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-name {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-title-wrapper {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title-static {
    color: var(--text-secondary);
}

.hero-title-dynamic {
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all var(--transition-medium);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   About Section
======================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-card {
    padding: 32px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.about-avatar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 10px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.about-avatar img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s ease;
}

.about-avatar:hover img {
    transform: scale(1.05);
}

.focus-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all var(--transition-medium);
    border: 1px solid transparent;
}

.focus-item:hover,
.focus-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.focus-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    /* Ensure images stay within border radius */
}

.focus-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.focus-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Projects Section
======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.project-card.featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .project-card.featured {
        grid-column: span 1;
    }
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.project-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.project-category {
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

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

.tech-tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

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

.project-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-medium);
}

.project-link svg {
    width: 20px;
    height: 20px;
}

.project-link:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Project Meta (language, stars, forks) */
.project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-language,
.project-stars,
.project-forks {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.project-stars svg,
.project-forks svg {
    opacity: 0.7;
}

/* Projects Footer */
.projects-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-btn svg {
    width: 20px;
    height: 20px;
}

/* Skeleton Loader */
.project-card.skeleton {
    min-height: 250px;
}

.skeleton-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--glass-border) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line.title {
    height: 24px;
    width: 60%;
}

.skeleton-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.skeleton-tag {
    width: 60px;
    height: 24px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--glass-border) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.project-card.add-more {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
}

.project-card.add-more .project-content {
    text-align: center;
}

.add-more-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.add-more-text {
    color: var(--text-secondary);
}

/* ========================================
   CTF Section
======================================== */
.ctf {
    background: var(--bg-secondary);
}

.ctf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ctf-card {
    padding: 32px;
    text-align: center;
}

.ctf-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    min-height: 60px;
}

.ctf-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ctf-logo.ctf-logo-img {
    width: 100%;
    max-width: 200px;
    height: 50px;
    background: transparent;
}

.ctf-logo.ctf-logo-img img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}



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

.ctf-header h3 {
    font-size: 1.2rem;
}

.ctf-badge-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.thm-badge {
    border: none;
    width: 100%;
    height: 150px;
    max-width: 300px;
    background: transparent;
}

.htb-badge {
    max-width: 200px;
    height: auto;
}

.coming-soon-badge {
    padding: 16px 32px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ImmersiveLabs Stats */
.immersive-stats {
    text-align: center;
    padding: 20px;
}

.stat-big {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* TELC Logo */
.cert-icon.cert-logo.telc {
    background: #ffffff;
    padding: 6px;
}

.ctf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.ctf-link:hover {
    gap: 16px;
}

.ctf-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.ctf-card.tryhackme {
    border-color: rgba(255, 255, 255, 0.15);
}

.ctf-card.tryhackme:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.ctf-card.hackthebox {
    border-color: rgba(255, 255, 255, 0.15);
}

.ctf-card.hackthebox:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* ========================================
   Certifications Section
======================================== */
.cert-timeline {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.cert-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

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

.status-dot.current {
    background: var(--warning);
    box-shadow: 0 0 20px var(--warning);
    animation: pulse 2s infinite;
}

.status-dot.planned {
    background: var(--accent-primary);
}

.status-dot.completed {
    background: var(--success);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.cert-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cert-cards.roadmap {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
}

.cert-cards.roadmap .cert-card {
    min-width: 260px;
    scroll-snap-align: start;
}

.cert-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.cert-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    flex-shrink: 0;
}

.cert-icon.cert-logo {
    background: #ffffff;
    padding: 8px;
}

.cert-icon.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.cert-icon.cert-logo.hslu {
    background: #ffffff;
    padding: 4px;
}

.cert-icon.cert-logo.portswigger {
    background: #ff6633;
    padding: 4px;
}

.cert-icon.cert-logo.harvard {
    background: #ffffff;
    padding: 4px;
}

.cert-icon.cert-logo.htb {
    background: #9fef00;
    padding: 4px;
}

.cert-icon.cert-logo.cisco {
    background: #ffffff;
    padding: 8px;
}

.cert-icon.cert-logo.offsec {
    background: #ffffff;
    padding: 6px;
}

.cert-icon.cert-logo.credly {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.cert-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cert-card.current {
    border-color: rgba(255, 255, 255, 0.2);
}

.cert-card.current:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.cert-status {
    margin-left: auto;
}

.progress-ring {
    width: 56px;
    height: 56px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 3;
}

.progress-bar {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 3;
    stroke-linecap: round;
}

.progress-ring span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
}

.cert-order {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bg-primary);
}

.cert-card.ultimate {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(150, 150, 150, 0.05));
}

.cert-card.ultimate:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

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

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

.skill-category {
    padding: 32px;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.category-icon {
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 500;
}

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

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.skill-tag:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ========================================
   Contact Section
======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-text {
    padding: 40px;
}

.contact-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-email {
    svg {
        width: 20px;
        height: 20px;
    }
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-medium);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card:hover .contact-icon {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.contact-icon.linkedin:hover {
    background: var(--accent-primary);
}

.contact-icon.website:hover {
    background: var(--accent-secondary);
}

.contact-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

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

.contact-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition-medium);
}

.contact-card:hover .contact-arrow {
    color: var(--accent-primary);
    transform: translateX(8px);
}

/* ========================================
   Footer
======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-text .highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

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

/* ========================================
   Animations & Effects
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle effect background (optional) */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    :root {
        --section-padding: 80px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.experience-card {
    padding: 30px;
}

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

.exp-role h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.exp-company {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.exp-date {
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

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

.exp-details li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Skill Tags Cloud */
.skill-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Language List */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-name {
    color: var(--text-primary);
    font-weight: 500;
}

.lang-level {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Cert Section Updates */
.cert-bullets {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.cert-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cert-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .exp-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* Bento Grid Tech Stack */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.bento-card {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.bento-icon {
    font-size: 1.5rem;
}

.bento-header h3 {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin: 0;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s ease;
    cursor: default;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.tech-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tech-badge span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tech-badge:hover span {
    color: var(--text-primary);
}

/* Language Grid specific styles */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
}

.lang-flag {
    font-size: 1.8rem;
}

.lang-info {
    display: flex;
    flex-direction: column;
}

.lang-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.lang-level {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Live Indicator & Roadmap Arrows & Edu Dates
   ======================================== */

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 20, 60, 0.15);
    color: #ff4d4d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 12px;
    border: 1px solid rgba(220, 20, 60, 0.2);
    vertical-align: middle;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* Education Date Badge */
.cert-date-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    top: auto;
    /* Reset top */
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
}

/* Add space at bottom of education cards for the date */
.cert-timeline .cert-card {
    padding-bottom: 50px;
}

.cert-institution {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

/* Roadmap Arrows */
/* Roadmap Arrows */
.cert-cards.roadmap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    padding: 10px 0;
    overflow: visible;
}

.cert-info {
    flex: 1;
}

.cert-cards.roadmap .cert-card {
    position: relative;
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    gap: 16px;
    height: 100%;
}

.cert-cards.roadmap .cert-icon {
    width: 56px;
    height: 56px;
    font-size: 2rem;
    /* Default handled by specific classes or reset */
}

.cert-cards.roadmap .cert-icon img {
    object-fit: contain;
}

.cert-cards.roadmap h4 {
    font-size: 1.05rem;
}

.cert-cards.roadmap p {
    font-size: 0.85rem;
}

/* Arrow between cards */
.cert-cards.roadmap .cert-card::after {
    content: '→';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 900;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Hide arrow on last card */
.cert-cards.roadmap .cert-card:last-child::after {
    display: none;
}

/* Remove old order numbers if any */
.cert-order {
    display: none;
}

/* Responsive arrows */
@media (max-width: 1024px) {
    .cert-cards.roadmap {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .cert-cards.roadmap .cert-card:nth-child(2)::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(50%);
    }
}

@media (max-width: 600px) {
    .cert-cards.roadmap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cert-cards.roadmap .cert-card::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(50%);
    }

    .cert-cards.roadmap .cert-card:nth-child(2)::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(50%);
    }
}