/* ===== CYBERSECURITY THEMED PORTFOLIO STYLESHEET ===== */
/* Author: Shrijesh Pokharel */
/* Description: Dark cybersecurity themed portfolio with hacker aesthetic */

/* ===== GOOGLE FONTS ===== */
/* Share Tech Mono for terminal/code fonts and Rajdhani for readable text with tech feel */
/* Already imported in HTML head */

/* ===== VARIABLES ===== */
:root {
    /* Core cybersecurity theme colors */
    --bg-primary: #0a0e17;
    --bg-secondary: #101823;
    --text-primary: #e2e8f0;
    --text-secondary: #8b949e;

    /* Accent colors - neon hacker style */
    --accent-primary: #00ff8c;        /* Neon green/teal */
    --accent-secondary: #08a56d;      /* Darker green/teal for depth */
    --accent-blue: #0072ff;           /* Electric blue */
    --accent-purple: #7c3aed;         /* Deep purple */
    --accent-danger: #ff3e3e;         /* Vibrant red */
    --accent-warning: #ffb300;        /* Alert orange/yellow */

    /* UI elements */
    --border-color: #2a3441;
    --card-bg: #131c29;
    --navbar-bg: rgba(10, 14, 23, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --terminal-bg: #0c1016;
    --console-header: #1a1d24;

    /* Font families */
    --font-primary: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Font sizes */
    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-md: 1.125rem;   /* 18px */
    --fs-lg: 1.25rem;    /* 20px */
    --fs-xl: 1.5rem;     /* 24px */
    --fs-2xl: 1.875rem;  /* 30px */
    --fs-3xl: 2.25rem;   /* 36px */

    /* Spacing */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-2xl: 3rem;    /* 48px */

    /* Border radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --glitch-transition: all 0.1s ease;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
}

/* ===== CYBERSECURITY BACKGROUND EFFECTS ===== */
/* Matrix rain canvas */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    opacity: 0.15;
    pointer-events: none;
}

/* Glitch overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    background-image:
            linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 255, 140, 0.025) 50%),
            linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.03));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(var(--accent-primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            repeating-linear-gradient(
                    transparent 0px,
                    rgba(0, 255, 140, 0.03) 1px,
                    transparent 2px
            );
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--accent-primary);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 0 var(--spacing-md);
    margin: 0 auto;
}

section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 300px;
    text-align: center;
}

.hacker-text {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-lg);
    text-shadow: 0 0 10px var(--accent-primary);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    margin: var(--spacing-md) 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    width: 0%;
    transition: width 0.1s ease;
}

.loading-text {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

/* ===== CYBERSECURITY SECTION TITLES ===== */
.section-title {
    font-size: var(--fs-2xl);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.cyber-glitch {
    position: relative;
    display: inline-block;
}

.cyber-glitch:before,
.cyber-glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-glitch:before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-blue);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.cyber-glitch:after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-danger);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(72px, 9999px, 106px, 0);
    }
    10% {
        clip: rect(75px, 9999px, 33px, 0);
    }
    20% {
        clip: rect(70px, 9999px, 92px, 0);
    }
    30% {
        clip: rect(5px, 9999px, 145px, 0);
    }
    40% {
        clip: rect(139px, 9999px, 28px, 0);
    }
    50% {
        clip: rect(70px, 9999px, 23px, 0);
    }
    60% {
        clip: rect(88px, 9999px, 134px, 0);
    }
    70% {
        clip: rect(141px, 9999px, 74px, 0);
    }
    80% {
        clip: rect(145px, 9999px, 93px, 0);
    }
    90% {
        clip: rect(53px, 9999px, 3px, 0);
    }
    100% {
        clip: rect(35px, 9999px, 141px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(99px, 9999px, 76px, 0);
    }
    10% {
        clip: rect(40px, 9999px, 144px, 0);
    }
    20% {
        clip: rect(74px, 9999px, 20px, 0);
    }
    30% {
        clip: rect(105px, 9999px, 13px, 0);
    }
    40% {
        clip: rect(96px, 9999px, 22px, 0);
    }
    50% {
        clip: rect(64px, 9999px, 76px, 0);
    }
    60% {
        clip: rect(5px, 9999px, 91px, 0);
    }
    70% {
        clip: rect(16px, 9999px, 42px, 0);
    }
    80% {
        clip: rect(101px, 9999px, 8px, 0);
    }
    90% {
        clip: rect(133px, 9999px, 88px, 0);
    }
    100% {
        clip: rect(38px, 9999px, 99px, 0);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
    );
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
    border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.7);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 5px rgba(0, 255, 140, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(0, 255, 140, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 14, 23, 0.95);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 140, 0.2);
}

.nav-logo span {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    position: relative;
    text-shadow: 0 0 10px var(--accent-primary);
    display: inline-block;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--accent-primary);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: var(--fs-lg);
    cursor: pointer;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-primary);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    transition: var(--transition);
}

.nav-link:hover::before, .nav-link:hover::after,
.nav-link.active::before, .nav-link.active::after {
    width: 50%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    z-index: 2;
}

/* Hexagonal profile image */
.profile-img-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.hexagon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transform: rotate(30deg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
    transition: var(--transition);
}

.hexagon:hover {
    box-shadow: 0 0 40px var(--accent-primary), 0 0 80px var(--accent-primary);
    transform: rotate(30deg) scale(1.3);
    border-color: var(--accent-primary); /* Or any accent color for effect */
    z-index: 10;
}

.stat-hexagon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(0, 255, 140, 0.1) 0%, rgba(0, 114, 255, 0.1) 100%);
    border: 2px solid var(--accent-primary);
    transition: var(--transition);
    transform-origin: center;
    z-index: 1; /* just in case it's hidden */
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-mono);
}

.hex-inner {
    width: 100%;
    height: 100%;
    transform: rotate(-30deg);
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    top: 0;
    left: 0;
    opacity: 0.7;
    z-index: 2;
    animation: scan-updown 2s linear infinite;
}

@keyframes scan-updown {
    0% {
        top: 0;
    }
    50% {
        top: 100%;
    }
    100% {
        top: 0;
    }
}

.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

/* Terminal style text area */
.terminal-header {
    display: flex;
    align-items: center;
    background-color: var(--console-header);
    padding: var(--spacing-sm);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: #ff5f56;
}

.terminal-button:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.terminal-body {
    background-color: var(--terminal-bg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    text-align: left;
}

.terminal-text {
    font-family: var(--font-mono);
}

.name {
    font-size: var(--fs-3xl);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.title {
    font-size: var(--fs-lg);
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    font-family: var(--font-mono);
    min-height: 1.6em;
    position: relative;
}

.title::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s step-end infinite;
}

.command-line {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: var(--fs-md);
    margin-bottom: var(--spacing-lg);
}

.badge-container {
    gap: 1rem;
    justify-content: center;
    margin: auto;
    display: flex;
    margin-top: 1rem;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    margin-top: var(--spacing-lg);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--accent-primary);
    font-size: var(--fs-lg);
    transition: var(--transition);
    border: 1px solid var(--accent-secondary);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
            transparent,
            transparent,
            transparent,
            var(--accent-primary)
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--card-bg);
    z-index: 1;
}

.social-icon i, .social-icon img {
    z-index: 2;
    position: relative;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

.social-icon img {
    width: 24px;
    height: 24px;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: var(--fs-xl);
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.console-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.console-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    background-color: var(--console-header);
    border-bottom: 1px solid var(--border-color);
}

.console-buttons {
    display: flex;
    gap: 6px;
}

.console-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
}

.console-button:nth-child(2) {
    background-color: #ffbd2e;
}

.console-button:nth-child(3) {
    background-color: #27c93f;
}

.console-title {
    margin-left: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.console-body {
    padding: var(--spacing-lg);
    font-family: var(--font-primary);
}

.console-body p {
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-lg);
}

.console-prompt {
    color: var(--accent-primary);
    margin-right: var(--spacing-xs);
    font-family: var(--font-mono);
    position: absolute;
    left: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* ===== SKILLS SECTION ===== */
.skills-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.tab-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.tab-button:hover {
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.tab-button.active {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    text-shadow: none;
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.skill-card {
    background-color: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-blue), var(--accent-primary));
    z-index: -1;
    border-radius: calc(var(--radius-md) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.skill-icon-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.skill-icon-container i {
    font-size: 40px;
    color: var(--accent-primary);
}

.skill-card:hover .skill-icon-container {
    transform: translateY(-5px);
}

.skill-card span {
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.skill-level {
    width: 100%;
    height: 6px;
    background-color: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-blue));
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 255, 140, 0.5);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent
    );
    animation: skill-progress-animation 2s infinite;
}

@keyframes skill-progress-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== PROJECTS SECTION ===== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.filter-btn:hover {
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.filter-btn.active {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.project-card {
    perspective: 1000px;
    height: 320px;
}

.project-card-inner {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.project-card-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-blue), var(--accent-primary));
    z-index: -1;
    border-radius: calc(var(--radius-md) + 2px);
    opacity: 0;
    transition: var(--transition);
}

.project-card-inner:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.project-icon {
    font-size: var(--fs-xl);
    color: var(--accent-primary);
    margin-right: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 255, 140, 0.3);
}

.project-meta h3 {
    font-size: var(--fs-md);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.project-period {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.project-description {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tag {
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 255, 140, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 500;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 255, 140, 0.3);
}

.project-links {
    display: flex;
    gap: var(--spacing-md);
}

.project-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-sm);
    font-weight: 500;
    font-family: var(--font-mono);
}

.view-more-container {
    margin-top: var(--spacing-2xl);
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-item i {
    font-size: var(--fs-xl);
    color: var(--accent-primary);
    margin-top: var(--spacing-xs);
}

.contact-item h3 {
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-mono);
}

.contact-item a {
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
}

.contact-item a:hover {
    color: var(--accent-primary);
}

.terminal-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    resize: vertical;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 5px rgba(0, 255, 140, 0.5);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-secondary);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.circuit-board {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%2300ff8c' fill-opacity='0.05' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM261.9 36a5 5 0 1 1 0-2H280V0h2v36h-20.1zM33.9 18a5 5 0 1 1 0-2H50V0h2v18H33.9z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.footer-logo h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-xs);
}

.footer-logo p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-2xl);
}

.footer-social h4 {
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-md);
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-nav a {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-primary);
    padding-left: var(--spacing-xs);
}

.footer-social-icons {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--fs-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-social-icons a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
            transparent,
            transparent,
            transparent,
            var(--accent-primary)
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-social-icons a:hover::before {
    opacity: 1;
}

.footer-social-icons a::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-primary);
    z-index: 1;
}

.footer-social-icons a i {
    z-index: 2;
    position: relative;
}

.footer-social-icons a:hover {
    transform: translateY(-3px);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--shadow-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-family: var(--font-mono);
}

.footer-bottom i {
    color: var(--accent-primary);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
    transition: var(--transition);
}

.back-to-top a:hover {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.7);
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 992px) {
    .profile {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .profile-text {
        width: 100%;
    }

    .cta-buttons {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    #nav-toggle {
        display: block;
    }

    #nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--navbar-bg);
        flex-direction: column;
        overflow: hidden;
        transition: var(--transition);
        visibility: hidden;
        opacity: 0;
    }

    #nav-menu.show {
        height: auto;
        padding: var(--spacing-xl) 0;
        visibility: visible;
        opacity: 1;
        box-shadow: 0 2px 10px var(--shadow-color);
    }

    .skills-tabs {
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
    }

    .tab-button {
        white-space: nowrap;
    }

    .project-filters {
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
    }

    .filter-btn {
        white-space: nowrap;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-lg);
    }
    .footer-nav,
    .footer-social {
        width: 100%;
    }

    .footer-social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        text-align: center;
        align-items: center;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --fs-3xl: 1.875rem;  /* 30px */
        --fs-2xl: 1.5rem;    /* 24px */
        --fs-xl: 1.25rem;    /* 20px */
    }

    .profile-img-container {
        width: 180px;
        height: 180px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .social-links {
        flex-wrap: wrap;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-lg);
    }
    .footer-nav,
    .footer-social {
        width: 100%;
    }

    .footer-social-icons {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        text-align: center;
        align-items: center;
    }
}