:root {
    /* Color scheme */
    --bg-primary: #0f0f12;
    --bg-secondary: #16161d;
    --bg-tertiary: #1e1e26;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-primary: #7c4dff;
    --accent-secondary: #b388ff;
    --accent-tertiary: #3f1dcb;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --terminal-bg: #1e1e2e;
    --terminal-text: #f0f0f0;

    /* Typography */
    --font-mono: "JetBrains Mono", monospace;
    --font-sans: "Inter", sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-width: 1px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);

    /* Z-indices */
    --z-negative: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Light theme variables */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e8e8e8;
    --bg-tertiary: #d1d1d1;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --terminal-bg: #2d2d3a;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* Custom cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: var(--z-fixed);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: var(--z-fixed);
    transition:
        transform 0.3s ease,
        width 0.3s ease,
        height 0.3s ease;
    opacity: 0.5;
    mix-blend-mode: difference;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: var(--z-negative);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--space-md);
}

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

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

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) 0;
    background-color: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: var(--z-fixed);
    transition:
        padding var(--transition-normal),
        background-color var(--transition-normal);
}

header.scrolled {
    padding: var(--space-sm) 0;
    background-color: rgba(15, 15, 18, 0.95);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(
        to right,
        var(--text-primary),
        var(--accent-primary)
    );
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: var(--space-lg);
}

nav ul li a {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width var(--transition-normal);
}

nav ul li a:hover::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    margin-left: var(--space-lg);
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

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

/* Hero section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
}

#hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.glitch {
    position: relative;
    color: var(--text-primary);
    letter-spacing: 3px;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--accent-primary);
    animation: glitch-anim 5s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

.glitch::after {
    color: var(--accent-secondary);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

.typewriter {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    height: 1.5em;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius-md);
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

.btn.primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 77, 255, 0.3);
}

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

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

/* Terminal */
.terminal {
    background-color: var(--terminal-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    font-family: var(--font-mono);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.terminal:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.terminal-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: var(--space-md);
}

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

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

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

.terminal-body {
    padding: var(--space-md);
    color: var(--terminal-text);
    font-size: 0.9rem;
}

.terminal-body .line {
    display: flex;
    margin-bottom: var(--space-sm);
}

.terminal-body .prompt {
    color: var(--accent-primary);
    margin-right: var(--space-sm);
}

.terminal-body .command {
    color: var(--text-primary);
}

.terminal-body .output {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.terminal-body pre {
    white-space: pre-wrap;
    line-height: 1.2;
}

.blink {
    animation: blink 1s step-end infinite;
}

.terminal.mini {
    max-width: 400px;
    transform: none;
}

.terminal.mini:hover {
    transform: translateY(-5px);
}

.terminal.mini .terminal-body {
    padding: var(--space-sm);
    max-height: 200px;
    overflow-y: auto;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.arrow {
    margin-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s ease-in-out infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Section styling */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(
        to right,
        var(--accent-primary),
        var(--accent-secondary)
    );
    margin: 0 auto;
    border-radius: 2px;
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-quote {
    margin: var(--space-lg) 0;
    padding-left: var(--space-lg);
    border-left: 4px solid var(--accent-primary);
}

.about-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin-bottom: var(--space-xs);
}

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

.about-quote {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    border-left: 4px solid var(--accent-primary);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.about-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
}

/* Projects section */
#projects {
    background-color: var(--bg-primary);
    padding: var(--space-xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.project-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.project-card p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    flex: 1;
}

.project-links {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

.project-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-secondary);
}

.project-image {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
}

/* Terminal styling */
.terminal {
    width: 100%;
    max-width: 500px;
    background-color: var(--terminal-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    font-family: var(--font-mono);
}

.terminal.mini {
    max-width: 100%;
    height: 100%;
}

.terminal-header {
    background-color: var(--bg-tertiary);
    padding: var(--space-xs) var(--space-sm);
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: var(--space-md);
}

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

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

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

.terminal-body {
    padding: var(--space-md);
    color: var(--terminal-text);
    font-size: 0.9rem;
}

.terminal-body .line {
    display: flex;
    margin-bottom: var(--space-sm);
}

.terminal-body .prompt {
    color: #50fa7b;
    margin-right: var(--space-xs);
}

.terminal-body .command {
    color: var(--terminal-text);
}

.terminal-body .output {
    margin: var(--space-sm) 0;
    color: var(--text-secondary);
}

.terminal-body pre {
    font-family: var(--font-mono);
    white-space: pre-wrap;
    line-height: 1.2;
}

.blink {
    animation: blink 1s infinite;
}

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

/* Skills section */
#skills {
    background-color: var(--bg-secondary);
    padding: var(--space-xl) 0;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.skills-category h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.skill-item {
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.skill-bar {
    height: 6px;
    background-color: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--accent-primary);
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Interests section */
#interests {
    background-color: var(--bg-primary);
    padding: var(--space-xl) 0;
}

.interests-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.interest-category {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
    text-align: center;
}

.interest-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.interest-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.interest-category h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.interest-list {
    list-style: none;
    text-align: left;
}

.interest-list li {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-md);
}

.interest-list li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

/* Philosophy section */
#philosophy {
    background-color: var(--bg-secondary);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

#philosophy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent-tertiary) 0%,
        transparent 100%
    );
    opacity: 0.05;
    z-index: var(--z-negative);
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-quote {
    text-align: center;
}

.philosophy-quote blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    padding: 0 var(--space-lg);
}

.philosophy-quote blockquote::before,
.philosophy-quote blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-primary);
    position: absolute;
    opacity: 0.3;
}

.philosophy-quote blockquote::before {
    top: -20px;
    left: 0;
}

.philosophy-quote blockquote::after {
    bottom: -40px;
    right: 0;
}

.philosophy-details {
    text-align: center;
    color: var(--text-secondary);
}

.philosophy-details p {
    margin-bottom: var(--space-md);
}

/* Contact section */
#contact {
    background-color: var(--bg-primary);
    padding: var(--space-xl) 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.contact-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-normal);
}

.contact-link:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.contact-platform {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    background-color: var(--bg-tertiary);
    border: var(--border-width) solid var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Footer */
footer {
    background-color: var(--bg-tertiary);
    padding: var(--space-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-primary);
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: var(--border-width) solid var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .hero-content {
        padding-right: 0;
    }

    .project-card.featured {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .hero-container {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .hero-content,
    .hero-image {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .about-text,
    .about-stats {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: var(--space-md);
    }

    nav ul {
        display: none;
    }

    .projects-grid,
    .skills-grid,
    .interests-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.glitch {
    position: relative;
    animation: glitch 1s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }
    5% {
        clip: rect(70px, 9999px, 71px, 0);
    }
    10% {
        clip: rect(29px, 9999px, 83px, 0);
    }
    15% {
        clip: rect(16px, 9999px, 91px, 0);
    }
    20% {
        clip: rect(2px, 9999px, 23px, 0);
    }
    25% {
        clip: rect(60px, 9999px, 73px, 0);
    }
    30% {
        clip: rect(14px, 9999px, 56px, 0);
    }
    35% {
        clip: rect(89px, 9999px, 99px, 0);
    }
    40% {
        clip: rect(18px, 9999px, 12px, 0);
    }
    45% {
        clip: rect(50px, 9999px, 84px, 0);
    }
    50% {
        clip: rect(82px, 9999px, 81px, 0);
    }
    55% {
        clip: rect(33px, 9999px, 22px, 0);
    }
    60% {
        clip: rect(31px, 9999px, 73px, 0);
    }
    65% {
        clip: rect(4px, 9999px, 35px, 0);
    }
    70% {
        clip: rect(65px, 9999px, 47px, 0);
    }
    75% {
        clip: rect(40px, 9999px, 31px, 0);
    }
    80% {
        clip: rect(29px, 9999px, 77px, 0);
    }
    85% {
        clip: rect(20px, 9999px, 13px, 0);
    }
    90% {
        clip: rect(79px, 9999px, 55px, 0);
    }
    95% {
        clip: rect(53px, 9999px, 5px, 0);
    }
    100% {
        clip: rect(41px, 9999px, 91px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 32px, 0);
    }
    5% {
        clip: rect(34px, 9999px, 33px, 0);
    }
    10% {
        clip: rect(87px, 9999px, 39px, 0);
    }
    15% {
        clip: rect(56px, 9999px, 30px, 0);
    }
    20% {
        clip: rect(28px, 9999px, 73px, 0);
    }
    25% {
        clip: rect(57px, 9999px, 97px, 0);
    }
    30% {
        clip: rect(11px, 9999px, 19px, 0);
    }
    35% {
        clip: rect(46px, 9999px, 65px, 0);
    }
    40% {
        clip: rect(93px, 9999px, 59px, 0);
    }
    45% {
        clip: rect(8px, 9999px, 56px, 0);
    }
    50% {
        clip: rect(5px, 9999px, 46px, 0);
    }
    55% {
        clip: rect(54px, 9999px, 30px, 0);
    }
    60% {
        clip: rect(82px, 9999px, 31px, 0);
    }
    65% {
        clip: rect(95px, 9999px, 9px, 0);
    }
    70% {
        clip: rect(8px, 9999px, 92px, 0);
    }
    75% {
        clip: rect(83px, 9999px, 84px, 0);
    }
    80% {
        clip: rect(37px, 9999px, 97px, 0);
    }
    85% {
        clip: rect(16px, 9999px, 47px, 0);
    }
    90% {
        clip: rect(57px, 9999px, 26px, 0);
    }
    95% {
        clip: rect(34px, 9999px, 44px, 0);
    }
    100% {
        clip: rect(12px, 9999px, 92px, 0);
    }
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: var(--space-lg);
}

.logo-text {
    background: linear-gradient(
        to right,
        var(--text-primary),
        var(--accent-primary)
    );
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-primary);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
    margin-left: var(--space-md);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
}

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

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color var(--transition-fast);
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width var(--transition-normal);
}

nav ul li a:hover {
    color: var(--accent-primary);
}

nav ul li a:hover::after {
    width: 100%;
}

:root {
    /* Dark theme (default) */
    --bg-primary: #0f0f12;
    --bg-secondary: #16161d;
    --bg-tertiary: #1c1c25;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-primary: #7c4dff;
    --accent-secondary: #b388ff;
    --accent-tertiary: #3f1dcb;
    --terminal-bg: #1a1a1a;
    --terminal-text: #f0f0f0;

    /* Other variables */
    --font-sans: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-width: 1px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --z-negative: -1;
    --z-elevated: 10;
    --z-fixed: 100;
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #e8e8ed;
    --bg-tertiary: #d8d8df;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --accent-primary: #6200ee;
    --accent-secondary: #9c64ff;
    --accent-tertiary: #3700b3;
    --terminal-bg: #2a2a2a; /* Keep terminal dark even in light mode */
    --terminal-text: #f0f0f0; /* Keep terminal text light in light mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.05);
}
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Use a very high z-index to ensure it's always on top */
    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast),
        background-color var(--transition-normal);
}

.cursor-follower {
    position: fixed;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998; /* One less than the cursor to ensure proper stacking */
    transition:
        width var(--transition-fast),
        height var(--transition-fast),
        transform var(--transition-fast),
        border-color var(--transition-normal);
}

body[data-theme="light"] .cursor {
    background-color: #fff;
}

body[data-theme="light"] .cursor-follower {
    border-color: #fff;
}

/* Skills section - new scrolling design */
#skills {
    background-color: var(--bg-secondary);
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.skills-category h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-primary);
}

/* Slider container */
.skills-slider {
    position: relative;
    overflow: hidden;
    padding: var(--space-md) 0;
}

/* Track that holds all cards */
.skills-track {
    display: flex;
    width: fit-content;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Animation direction based on data attribute */
.skills-slider[data-direction="left"] .skills-track {
    animation-name: scroll-left;
}

.skills-slider[data-direction="right"] .skills-track {
    animation-name: scroll-right;
}

/* Pause animation on hover */
.skills-slider:hover .skills-track {
    animation-play-state: paused;
}

/* Individual skill card */
.skill-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 var(--space-md);
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
    padding: var(--space-md);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-sm);
    object-fit: contain;
}

.skill-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Scroll animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This should be calculated based on half of the total width */
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Add a gradient fade effect on the edges */
.skills-slider::before,
.skills-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.skills-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.skills-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

/* Interests section - new 3D card design */
#interests {
    background-color: var(--bg-primary);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

#interests::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        var(--accent-tertiary) 0%,
        transparent 70%
    );
    opacity: 0.05;
    z-index: var(--z-negative);
}

.interests-wrapper {
    perspective: 1000px;
    padding: var(--space-lg) 0;
}

.interests-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

/* 3D Card Flip Effect */
.interest-card {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
}

.interest-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.interest-card-front,
.interest-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.interest-card-front {
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

.interest-card-front::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--bg-tertiary) 100%
    );
    opacity: 0.5;
    z-index: -1;
}

.interest-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.2);
}

.interest-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.interest-card-front h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.interest-card-hint {
    position: absolute;
    bottom: var(--space-md);
    left: 0;
    right: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.interest-card-back {
    background-color: var(--bg-tertiary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    overflow-y: auto;
}

.interest-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.interest-details h4 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
    align-self: center;
}

.interest-details h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent-primary),
        transparent
    );
}

.interest-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.interest-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.interest-item:hover img {
    transform: scale(1.1);
}

.interest-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.interest-quote {
    margin-top: auto;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.8;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Music visualizer animation */
.music-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 80px;
    width: 80px;
    gap: 3px;
}

.music-visualizer span {
    display: block;
    width: 8px;
    background: linear-gradient(
        to top,
        var(--accent-primary),
        var(--accent-secondary)
    );
    border-radius: 3px;
    animation: visualizer 1.5s infinite ease-in-out;
}

.music-visualizer span:nth-child(1) {
    height: 30%;
    animation-delay: 0.2s;
}

.music-visualizer span:nth-child(2) {
    height: 60%;
    animation-delay: 0.6s;
}

.music-visualizer span:nth-child(3) {
    height: 100%;
    animation-delay: 0.1s;
}

.music-visualizer span:nth-child(4) {
    height: 70%;
    animation-delay: 0.4s;
}

.music-visualizer span:nth-child(5) {
    height: 40%;
    animation-delay: 0.3s;
}

@keyframes visualizer {
    0%,
    100% {
        height: 20%;
    }
    50% {
        height: 80%;
    }
}

/* Food items specific styling */
.food-items .interest-item img {
    border-radius: 50%;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .interests-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .interest-card {
        height: 350px;
    }

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

/* Update these CSS rules */

.interest-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Keep only the flipped class rule */
.interest-card.flipped .interest-card-inner {
    transform: rotateY(
        180deg
    ) !important; /* Add !important to override inline styles */
}

/* Update these CSS rules for proper stacking */

.interest-card-front,
.interest-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.interest-card-front {
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

.interest-card-back {
    background-color: var(--bg-tertiary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    overflow-y: auto;
    z-index: 2; /* Add this to ensure back is on top when flipped */
}

/* Add this rule to fix the stacking context when flipped */
.interest-card.flipped .interest-card-front {
    z-index: 0;
}

.interest-card.flipped .interest-card-back {
    z-index: 3;
}

/* Reset and simplify the card flip CSS */
.interest-card {
    background-color: transparent;
    height: 400px;
    width: 100%;
    perspective: 1500px; /* Increased perspective for better 3D effect */
    margin-bottom: var(--space-lg);
}

.interest-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Make sure the flipped state rotates fully */
.interest-card.flipped .interest-card-inner {
    transform: rotateY(180deg);
}

.interest-card-front,
.interest-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius-md);
}

.interest-card-front {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
}

.interest-card-back {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    overflow-y: auto;
}

/* Spotify Player */
.spotify-player {
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.spotify-album {
    position: relative;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.spotify-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spotify-play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.spotify-play-button i {
    color: white;
    font-size: 24px;
}

.spotify-album:hover .spotify-play-button {
    opacity: 1;
}

.spotify-album:hover img {
    transform: scale(1.1);
}

.spotify-info {
    flex: 1;
}

.spotify-track {
    font-weight: bold;
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
}

.spotify-artist {
    font-size: 14px;
    color: #b3b3b3;
}

.spotify-controls {
    display: flex;
    gap: 15px;
}

.spotify-controls i {
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spotify-controls i:hover {
    color: white;
}

.spotify-controls i.fa-pause {
    color: #1db954;
}

/* Audio Visualizer */
.audio-visualizer {
    width: 100%;
    height: 80px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
}

.visualizer-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 10px;
}

.visualizer-bar {
    flex: 1;
    background: linear-gradient(to top, #1db954, #1ed760);
    margin: 0 2px;
    border-radius: 2px 2px 0 0;
    height: 10%;
    animation: visualize 1.5s infinite ease;
}

.visualizer-bar:nth-child(1) {
    animation-delay: 0.2s;
}
.visualizer-bar:nth-child(2) {
    animation-delay: 0.3s;
}
.visualizer-bar:nth-child(3) {
    animation-delay: 0.4s;
}
.visualizer-bar:nth-child(4) {
    animation-delay: 0.5s;
}
.visualizer-bar:nth-child(5) {
    animation-delay: 0.6s;
}
.visualizer-bar:nth-child(6) {
    animation-delay: 0.7s;
}
.visualizer-bar:nth-child(7) {
    animation-delay: 0.8s;
}
.visualizer-bar:nth-child(8) {
    animation-delay: 0.9s;
}
.visualizer-bar:nth-child(9) {
    animation-delay: 1s;
}
.visualizer-bar:nth-child(10) {
    animation-delay: 1.1s;
}
.visualizer-bar:nth-child(11) {
    animation-delay: 1s;
}
.visualizer-bar:nth-child(12) {
    animation-delay: 0.9s;
}
.visualizer-bar:nth-child(13) {
    animation-delay: 0.8s;
}
.visualizer-bar:nth-child(14) {
    animation-delay: 0.7s;
}
.visualizer-bar:nth-child(15) {
    animation-delay: 0.6s;
}

@keyframes visualize {
    0%,
    100% {
        height: 10%;
    }
    50% {
        height: 80%;
    }
}

/* Music Genres */
.music-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-tag {
    background-color: rgba(29, 185, 84, 0.2);
    color: #1db954;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.genre-tag:hover {
    background-color: rgba(29, 185, 84, 0.4);
    transform: translateY(-2px);
}

/* Spotify Link */
.spotify-link {
    margin-top: 10px;
    margin-bottom: 20px;
}

.spotify-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1db954;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.spotify-link a:hover {
    background-color: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.spotify-link i {
    font-size: 18px;
}

.about-content {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

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

.about-quote {
    margin-top: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 3px solid var(--accent-primary);
}

.about-quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.about-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.stat-item {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    text-align: center;
    flex: 1 0 calc(33% - var(--space-md));
    min-width: 120px;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 1; /* Place text first on mobile */
    }

    .about-stats {
        order: 2; /* Place stats second on mobile */
        margin-top: var(--space-md);
    }

    .stat-item {
        flex: 1 0 calc(50% - var(--space-md)); /* 2 stats per row on small screens */
    }
}

@media (max-width: 480px) {
    .stat-item {
        flex: 1 0 100%; /* 1 stat per row on very small screens */
    }
}

/* Hero section responsive layout */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 50%,
        var(--accent-tertiary) 0%,
        transparent 70%
    );
    opacity: 0.05;
    z-index: var(--z-negative);
}

.hero-content {
    flex: 1;
    padding-right: var(--space-lg);
}

h1.glitch {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    position: relative;
    color: var(--text-primary);
}

.typewriter {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    height: 1.5em;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from,
    to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

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

/* Terminal styling */
.terminal {
    width: 500px;
    max-width: 100%;
    background-color: var(--terminal-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.terminal:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
    background-color: #2d2d2d;
    padding: var(--space-xs) var(--space-sm);
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: var(--space-sm);
}

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

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ddd;
}

.terminal-body {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--terminal-text);
    white-space: pre;
}

.terminal-body .line {
    display: flex;
    margin-bottom: var(--space-xs);
}

.terminal-body .prompt {
    color: #50fa7b;
    margin-right: var(--space-xs);
}

.terminal-body .command {
    color: var(--terminal-text);
}

.terminal-body .output {
    margin: var(--space-sm) 0;
}

.terminal-body pre {
    margin: 0;
    white-space: pre;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.2;
    overflow-x: auto;
}

.blink {
    animation: blink 1s step-end infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 5px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-secondary);
    border-right: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .hero-content {
        padding-right: 0;
    }

    .terminal {
        width: 450px;
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }

    h1.glitch {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    #hero .container {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .hero-content {
        order: 2; /* Move content below terminal on mobile */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        order: 1; /* Move terminal above content on mobile */
        margin-top: var(--space-xl);
    }

    .terminal {
        width: 100%;
        min-width: 320px; /* Minimum width to prevent text wrapping */
        max-width: 500px; /* Maximum width for larger phones */
    }

    .terminal-body {
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }

    .terminal-body pre {
        min-width: 300px; /* Ensure minimum width for ASCII art */
    }

    h1.glitch {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .scroll-indicator {
        bottom: var(--space-md);
    }
}

@media (max-width: 480px) {
    h1.glitch {
        font-size: 2.5rem;
    }

    .typewriter {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .terminal {
        transform: scale(0.9);
        transform-origin: center top;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Base Terminal styling */
.terminal {
    background-color: var(--terminal-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.terminal-header {
    background-color: #2d2d2d;
    padding: var(--space-xs) var(--space-sm);
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: var(--space-sm);
}

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

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ddd;
}

.terminal-body {
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--terminal-text);
}

.terminal-body .line {
    display: flex;
    margin-bottom: var(--space-xs);
}

.terminal-body .prompt {
    color: #50fa7b;
    margin-right: var(--space-xs);
}

.terminal-body .command {
    color: var(--terminal-text);
}

.terminal-body .output {
    margin: var(--space-sm) 0;
}

.blink {
    animation: blink 1s step-end infinite;
}

/* Hero Terminal - ASCII art specific */
.hero-image .terminal {
    width: 500px;
    max-width: 100%;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.hero-image .terminal:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image .terminal-body {
    white-space: pre;
}

.hero-image .terminal-body pre {
    margin: 0;
    white-space: pre;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.2;
    overflow-x: auto;
}

/* Project Terminal - Text wrapping */
.project-image .terminal {
    width: 100%;
}

.project-image .terminal.mini {
    transform: none;
}

.project-image .terminal-body {
    white-space: normal;
}

.project-image .terminal-body p {
    margin: 0;
    white-space: normal;
    line-height: 1.5;
    color: var(--terminal-text);
}

.project-image .terminal-body .output {
    max-height: 200px;
    overflow-y: auto;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .hero-image .terminal {
        width: 450px;
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
}

@media (max-width: 768px) {
    #hero .container {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .hero-content {
        order: 2; /* Move content below terminal on mobile */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        order: 1; /* Move terminal above content on mobile */
        margin-top: var(--space-xl);
    }

    .hero-image .terminal {
        width: 100%;
        min-width: 320px; /* Minimum width to prevent text wrapping */
        max-width: 500px; /* Maximum width for larger phones */
    }

    .hero-image .terminal-body {
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }

    .hero-image .terminal-body pre {
        min-width: 300px; /* Ensure minimum width for ASCII art */
    }
}

/* Hero Terminal - specific fixes */
.hero-image .terminal {
    width: 500px;
    max-width: 100%;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.hero-image .terminal:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image .terminal-body {
    padding: var(--space-sm); /* Reduce padding */
    white-space: pre;
    line-height: 1; /* Tighter line height */
}

.hero-image .terminal-body .output {
    margin: var(--space-xs) 0; /* Reduce margin */
}

.hero-image .terminal-body pre {
    margin: 0;
    padding: 0;
    white-space: pre;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.1; /* Tighter line height for ASCII art */
    overflow-x: visible; /* Prevent horizontal scrolling */
    display: block; /* Ensure proper display */
}

/* Remove any extra space in the terminal output */
.hero-image .terminal-body .line:last-child {
    margin-bottom: 0;
}

/* Adjust the ASCII art container */
.hero-image .terminal-body .output pre {
    height: auto; /* Let it take natural height */
}

/* Hero Terminal - Complete rewrite */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .terminal {
    width: 500px;
    max-width: 100%;
    background-color: var(--terminal-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-normal);
}

.hero-image .terminal:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image .terminal-header {
    background-color: #2d2d2d;
    padding: 8px 10px;
    display: flex;
    align-items: center;
}

.hero-image .terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: 10px;
}

.hero-image .terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero-image .terminal-button.close {
    background-color: #ff5f56;
}

.hero-image .terminal-button.minimize {
    background-color: #ffbd2e;
}

.hero-image .terminal-button.maximize {
    background-color: #27c93f;
}

.hero-image .terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ddd;
}

.hero-image .terminal-body {
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--terminal-text);
    background-color: var(--terminal-bg);
    white-space: normal;
}

.hero-image .line {
    display: flex;
    margin-bottom: 5px;
}

.hero-image .line:last-child {
    margin-bottom: 0;
}

.hero-image .prompt {
    color: #50fa7b;
    margin-right: 5px;
}

.hero-image .command {
    color: var(--terminal-text);
}

.hero-image .ascii-art {
    font-family: monospace;
    white-space: pre;
    line-height: 1.2;
    margin: 5px 0;
    color: var(--terminal-text);
    font-size: 0.9rem;
}

.hero-image .blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from,
    to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Music Card Styling with Light Mode Support */
.music-card-back {
    background: linear-gradient(135deg, #1e1e2a, #121218);
    transition: background var(--transition-normal);
}

/* Spotify Player */
.spotify-player {
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition:
        background-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

.spotify-album {
    position: relative;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.spotify-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spotify-play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        background-color var(--transition-normal);
    cursor: pointer;
}

.spotify-play-button i {
    color: white;
    font-size: 24px;
    transition: color var(--transition-normal);
}

.spotify-album:hover .spotify-play-button {
    opacity: 1;
}

.spotify-album:hover img {
    transform: scale(1.1);
}

.spotify-info {
    flex: 1;
}

.spotify-track {
    font-weight: bold;
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
    transition: color var(--transition-normal);
}

.spotify-artist {
    font-size: 14px;
    color: #b3b3b3;
    transition: color var(--transition-normal);
}

/* Music Genres */
.music-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-tag {
    background-color: rgba(29, 185, 84, 0.2);
    color: #1db954;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition:
        all 0.2s ease,
        background-color var(--transition-normal),
        color var(--transition-normal);
}

.genre-tag:hover {
    background-color: rgba(29, 185, 84, 0.4);
    transform: translateY(-2px);
}

/* Spotify Link */
.spotify-link {
    margin-top: 10px;
    margin-bottom: 20px;
}

.spotify-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1db954;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition:
        all 0.2s ease,
        background-color var(--transition-normal);
}

.spotify-link a:hover {
    background-color: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.spotify-link i {
    font-size: 18px;
}

/* Light Mode Styles */
body.light-mode .music-card-back {
    background: linear-gradient(135deg, #e8e8f0, #d8d8e8);
}

body.light-mode .spotify-player {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .spotify-play-button {
    background-color: rgba(0, 0, 0, 0.3);
}

body.light-mode .spotify-play-button i {
    color: #ffffff;
}

body.light-mode .spotify-track {
    color: #222222;
}

body.light-mode .spotify-artist {
    color: #555555;
}

body.light-mode .genre-tag {
    background-color: rgba(29, 185, 84, 0.15);
    color: #0d7a3c;
}

body.light-mode .genre-tag:hover {
    background-color: rgba(29, 185, 84, 0.25);
}

body.light-mode .spotify-link a {
    background-color: #1db954;
    color: white;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.2);
}

body.light-mode .spotify-link a:hover {
    background-color: #1ed760;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

body.light-mode .interest-quote {
    color: #444444;
}

/* Header Logo - Consistent white to purple gradient in both themes */
header .logo-text {
    background: linear-gradient(135deg, #ffffff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity var(--transition-normal);
}

/* Add a subtle shadow in light mode for better visibility of header logo */
body.light-mode .header .logo-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Base logo styles */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    z-index: var(--z-fixed);
}

/* Fix for icon jittering */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0 10px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    flex-shrink: 0; /* Prevent shrinking */
    will-change: transform; /* Optimize for animations */
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Prevent flickering */
    -webkit-font-smoothing: subpixel-antialiased; /* Improve text rendering */
}

.skill-card img,
.skill-card .custom-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    object-fit: contain; /* Ensure consistent sizing */
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Prevent flickering */
    -webkit-backface-visibility: hidden; /* For Safari */
    perspective: 1000;
    -webkit-perspective: 1000;
}

/* Custom skill icons with fixed dimensions */
.custom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
    flex-shrink: 0; /* Prevent shrinking */
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Fix for slider animation and loop cut */
.skills-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 15px 0;
}

.skills-track {
    display: flex;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    width: fit-content; /* Ensure it takes the width of all children */
}

/* Ensure exact duplication for seamless looping */
.skills-track::before,
.skills-track::after {
    content: "";
    display: block;
    width: 20px; /* Gap between loops */
    flex-shrink: 0;
}

/* Direction-specific animations */
.skills-slider[data-direction="right"] .skills-track {
    animation-name: scroll-right;
}

.skills-slider[data-direction="left"] .skills-track {
    animation-name: scroll-left;
}

/* Improved keyframes for smoother animation */
@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px)); /* Half width plus half gap */
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(calc(-50% - 10px)); /* Half width plus half gap */
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause animation on hover */
.skills-slider:hover .skills-track {
    animation-play-state: paused;
}

/* Skill card styling for colored backgrounds */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0 10px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-normal),
        color var(--transition-normal),
        border var(--transition-normal);
    flex-shrink: 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

.skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    object-fit: contain;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal);
}

.skill-card span {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color var(--transition-normal);
}

/* Animation for when colors are applied */
.skill-card.colored {
    animation: card-pop 0.3s ease-out forwards;
}

@keyframes card-pop {
    0% {
        transform: translateZ(0) scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: translateZ(0) scale(1.05);
    }
    100% {
        transform: translateZ(0) scale(1);
        opacity: 1;
    }
}

/* Hover effect */
.skill-card:hover {
    transform: translateZ(0) translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-card:hover img {
    transform: translateZ(0) scale(1.1);
}

/* Add a subtle overlay for better text readability if needed */
.skill-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    transition: background var(--transition-normal);
}

.skill-card {
    background: var(--bg-tertiary);
}

.skill-card:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Ensure text remains readable on all backgrounds */
.skill-card[data-is-light="true"] span {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.skill-card[data-is-light="false"] span {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Terminal effect styling */
.project-card.terminal-active {
    transform: scale(1.05);
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.terminal-container {
    width: 100%;
    height: 300px;
    background: #1e1e1e;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #333;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    user-select: none;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-close,
.terminal-minimize,
.terminal-maximize {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-close {
    background: #ff5f56;
}

.terminal-minimize {
    background: #ffbd2e;
}

.terminal-maximize {
    background: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    color: #ddd;
    font-family: monospace;
    font-size: 14px;
}

.terminal-content {
    flex: 1;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    color: #ddd;
    overflow-y: auto;
    white-space: pre-wrap;
}

.command-line {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Blinking cursor */
.command-line:last-child::after {
    content: "█";
    animation: blink 1s step-end infinite;
}

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

/* Hide default cursor */
html,
body {
    cursor: none;
}

a,
button,
.btn,
.theme-toggle,
input,
textarea,
select {
    cursor: none;
}

@media (max-width: 480px) {
    .hero-image .terminal {
        transform: scale(0.95);
        transform-origin: center top;
    }

    .hero-image .terminal-body {
        font-size: 0.7rem;
    }

    .hero-image .ascii-art {
        font-size: 0.7rem;
    }

    .project-image .terminal.mini {
        transform: none;
    }

    .scroll-indicator .mouse {
        display: none;
    }

    .cursor {
        display: none;
    }

    .cursor-follower {
        display: none;
    }

    html,
    body {
        cursor: auto;
    }

    a,
    button,
    .btn,
    .theme-toggle,
    input,
    textarea,
    select {
        cursor: pointer;
    }
}

/* Privacy Demo Styles - Enhanced Version */
.privacy-demo-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Ambient background effect */
.privacy-demo-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 30% 50%,
            rgba(var(--accent-primary-rgb), 0.05) 0%,
            transparent 70%
        ),
        radial-gradient(
            circle at 70% 20%,
            rgba(var(--accent-secondary-rgb), 0.05) 0%,
            transparent 70%
        );
    pointer-events: none;
    z-index: 0;
}

/* Tracking Indicator */
.tracking-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(var(--bg-secondary-rgb), 0.7);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.tracking-progress {
    width: 200px;
    height: 8px;
    background-color: rgba(var(--text-secondary-rgb), 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1.5rem;
    position: relative;
}

.tracking-progress::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    animation: progress-shine 2s linear infinite;
    z-index: 1;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.tracking-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 100%
    );
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 0;
}

.tracking-status {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-style: italic;
    position: relative;
}

.tracking-status::before {
    content: "👁️";
    margin-right: 0.5rem;
    font-style: normal;
    opacity: 0.8;
}

/* Tracking Hints */
.tracking-hints-container {
    min-height: 80px;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.tracking-hint {
    padding: 1rem 1.25rem;
    background-color: rgba(var(--bg-secondary-rgb), 0.7);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.tracking-hint::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--accent-primary),
        var(--accent-secondary)
    );
}

.tracking-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.tracking-hint strong {
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
}

.tracking-hint strong::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

/* Reveal Button */
.fingerprint-reveal-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

.reveal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(
        135deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(var(--accent-primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.reveal-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.reveal-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--accent-primary-rgb), 0.4);
}

.reveal-button:hover::before {
    transform: translateX(100%);
}

.fingerprint-icon {
    font-size: 1.6rem;
    margin-right: 1rem;
    animation: pulse 2s infinite;
}

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

/* Fingerprint Results */
#fingerprint-results {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

#fingerprint-results.visible {
    opacity: 1;
    transform: translateY(0);
}

.fingerprint-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.fingerprint-header::after {
    content: "";
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    border-radius: 2px;
}

.fingerprint-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.fingerprint-header h3::before {
    content: "👁️";
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: inherit;
}

.fingerprint-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Fingerprint Sections - Hexagon Grid Layout */
.fingerprint-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .fingerprint-sections {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2.5rem;
    }

    .fingerprint-section {
        flex: 0 1 calc(33.333% - 2.5rem);
        max-width: 400px;
    }
}

.fingerprint-section {
    background-color: rgba(var(--bg-secondary-rgb), 0.7);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid var(--border-color);
}

.fingerprint-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
    z-index: 1;
}

.fingerprint-section .fingerprint-section-header {
    padding: 1.25rem 1.5rem;
    background-color: rgba(var(--accent-primary-rgb), 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.fingerprint-section h4 {
    margin: 0;
    font-size: 1.3rem;
    position: relative;
    padding-left: 1.75rem;
}

.fingerprint-section h4::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

#technical-profile h4::before {
    content: "🖥️";
}

#behavioral-insights h4::before {
    content: "👁️";
}

#inferred-profile h4::before {
    content: "🧠";
}

.confidence-indicator {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.confidence-indicator.high {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.confidence-indicator.medium {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f39c12;
}

.confidence-indicator.low {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.section-content {
    padding: 1.75rem;
    position: relative;
}

.data-item {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

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

.data-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.data-item p {
    margin: 0;
    line-height: 1.6;
}

.data-item strong {
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.data-item strong::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(var(--accent-primary-rgb), 0.1);
    z-index: -1;
    border-radius: 2px;
}

.data-item .confidence {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Privacy Message */
.privacy-message {
    background-color: rgba(var(--bg-secondary-rgb), 0.7);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);

    overflow: hidden;
}

.privacy-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary)
    );
}

.privacy-message h4 {
    margin-top: 0;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.privacy-message h4::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.privacy-message ul {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.privacy-message li {
    margin-bottom: 0.75rem;
    position: relative;
}

.privacy-message li::marker {
    color: var(--accent-primary);
}

.privacy-highlight {
    padding: 1.5rem;
    background-color: rgba(var(--accent-primary-rgb), 0.08);
    border-radius: var(--border-radius-md);
    text-align: center;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-primary);
}

.privacy-resources {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.resource-links a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.resource-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--accent-primary-rgb), 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.resource-links a:hover {
    background-color: rgba(var(--accent-primary-rgb), 0.08);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-primary);
}

.resource-links a:hover::before {
    transform: translateX(100%);
}

.demo-disclaimer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.demo-disclaimer a {
    color: var(--accent-primary);
    text-decoration: none;
    position: relative;
}

.demo-disclaimer a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.demo-disclaimer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animation for data reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.data-item:nth-child(1) {
    animation-delay: 0.1s;
}
.data-item:nth-child(2) {
    animation-delay: 0.2s;
}
.data-item:nth-child(3) {
    animation-delay: 0.3s;
}
.data-item:nth-child(4) {
    animation-delay: 0.4s;
}
.data-item:nth-child(5) {
    animation-delay: 0.5s;
}
.data-item:nth-child(6) {
    animation-delay: 0.6s;
}
.data-item:nth-child(7) {
    animation-delay: 0.7s;
}
.data-item:nth-child(8) {
    animation-delay: 0.8s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .privacy-demo-container {
        padding: 1.5rem;
    }

    .fingerprint-header h3 {
        font-size: 2rem;
    }

    .fingerprint-subtitle {
        font-size: 1rem;
    }

    .fingerprint-section {
        margin-bottom: 1.5rem;
    }

    .fingerprint-section h4 {
        font-size: 1.1rem;
    }

    .privacy-message {
        padding: 1.5rem;
    }

    .privacy-message h4 {
        font-size: 1.3rem;
    }

    .reveal-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

.tracking-hint,
.fingerprint-section,
.privacy-message {
    background-color: var(--bg-secondary);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Add these styles to your CSS */
.tracking-indicator,
.tracking-hints-container,
.fingerprint-reveal-container {
    transition: opacity 0.5s ease;
}

/* Update the privacy-demo-container to handle the transition better */
.privacy-demo-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 0rem;
    box-shadow: none;
    margin-top: 0rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: padding 0.5s ease;
}

/* Add a class for when results are shown */
.privacy-demo-container.results-shown {
    padding-top: 0;
}

/* Enhanced resource links with translucent purple pill design using defined variables */
.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.resource-links a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: rgba(
        124,
        77,
        255,
        0.15
    ); /* Translucent --accent-primary */
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    color: var(--accent-primary); /* Solid purple text */
    font-weight: 500;
    transition: var(--transition-normal);
    border: var(--border-width) solid rgba(124, 77, 255, 0.3); /* Subtle border */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.resource-links a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 77, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.resource-links a:hover {
    background-color: rgba(124, 77, 255, 0.25); /* Slightly darker on hover */
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 77, 255, 0.5);
}

.resource-links a:hover::before {
    transform: translateX(100%);
}

/* Ensure the text is properly centered */
.resource-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 160px; /* Ensure buttons have consistent width */
}

/* Add subtle icon to each button */
.resource-links a::after {
    content: "→";
    margin-left: 0.5rem;
    font-size: 1.1em;
    transition: transform var(--transition-fast);
}

.resource-links a:hover::after {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resource-links {
        justify-content: center;
    }

    .resource-links a {
        min-width: 140px;
        padding: 0.6rem 1.2rem;
    }
}

/* Fixed privacy-highlight with proper light color styling */
.privacy-highlight {
    padding: 1.5rem;
    background-color: rgba(
        124,
        77,
        255,
        0.08
    ); /* Translucent --accent-primary */
    border-radius: var(--border-radius-md);
    text-align: center;
    margin: 2rem 0;
    border-left: 4px solid var(--accent-primary);
    color: var(--text-primary); /* Ensure text is visible */
    box-shadow: var(--shadow-sm);
}

.privacy-highlight strong {
    color: var(--accent-primary);
    font-weight: 600;
}
/* Fixed Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999; /* Higher z-index to ensure it's on top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    padding: 10px 0;
    color: white;
    text-align: center;
    font-size: 16px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 10;
    user-select: none;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
