/* ==================== ROOT VARIABLES ==================== */
/* CSS custom properties (variables) for easy theming and consistency */
:root {
    /* Main colors - dark theme palette */
    --bg-primary: #0d1117;       /* Main background - GitHub dark style */
    --bg-secondary: #161b22;     /* Secondary background for cards */
    --bg-tertiary: #21262d;      /* Tertiary background for nested elements */

    /* Accent colors - neon/terminal style */
    --accent-cyan: #00d4ff;      /* Primary accent - cyan/blue */
    --accent-green: #00ff88;     /* Secondary accent - terminal green */
    --accent-purple: #bd93f9;    /* Tertiary accent - purple */
    --accent-yellow: #f1fa8c;    /* Warning/highlight - yellow */
    --accent-red: #ff5555;       /* Error/attention - red */
    --accent-orange: #ffb86c;    /* Orange for variety */

    /* Text colors */
    --text-primary: #e6edf3;     /* Main text color */
    --text-secondary: #8b949e;   /* Muted text */
    --text-muted: #484f58;       /* Very muted text */

    /* Code syntax colors */
    --syntax-keyword: #ff79c6;   /* Keywords (const, let, function) */
    --syntax-string: #f1fa8c;    /* Strings */
    --syntax-variable: #50fa7b;  /* Variables */
    --syntax-property: #8be9fd;  /* Properties */
    --syntax-comment: #6272a4;   /* Comments */

    /* Spacing */
    --section-padding: 3rem 1.5rem;

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

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* ==================== GLOBAL STYLES ==================== */
/* Base styles applied to all elements */

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

html {
    scroll-behavior: smooth;  /* Smooth scrolling when clicking anchor links */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;  /* Prevent horizontal scroll */
}

/* ==================== PARTICLES BACKGROUND ==================== */
/* Container for the animated particle effect */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;  /* Behind all content */
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f2e 100%);
}

/* ==================== TYPOGRAPHY ==================== */
/* Headings and text styles */

h1, h2, h3, h4, h5, h6 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* Section titles with code comment style */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title .comment {
    color: var(--syntax-comment);
}

/* Highlighted text with glow effect */
.highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* ==================== NAVBAR ==================== */
/* Fixed navigation bar at the top */

.navbar {
    background-color: rgba(13, 17, 23, 0.9) !important;
    backdrop-filter: blur(10px);  /* Frosted glass effect */
    border-bottom: 1px solid var(--bg-tertiary);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background-color: rgba(13, 17, 23, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Terminal-style brand */
.navbar .brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent-green) !important;
}

.navbar .prompt {
    color: var(--accent-green);
}

/* Blinking cursor animation */
.navbar .cursor {
    animation: blink 1s infinite;
    color: var(--accent-cyan);
}

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

/* Navigation links */
.navbar-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    transition: var(--transition-fast);
    position: relative;
}

.navbar-item:hover,
.navbar-item:focus,
.navbar-item.is-active,
.navbar-link:hover,
.navbar-link:focus,
.navbar-link.is-active {
    color: var(--accent-cyan) !important;
    background-color: transparent !important;
    background: none !important;
}

/* Active navigation item - shows current section */
.navbar-item.active,
.navbar-item.active:hover,
.navbar-item.active:focus,
a.navbar-item.active,
a.navbar-item.active:hover,
a.navbar-item.active:focus {
    color: var(--accent-cyan) !important;
    background-color: transparent !important;
    background: transparent !important;
}

/* Underline indicator for active nav item */
.navbar-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Language switcher button */
.lang-switcher {
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.lang-switcher:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-cyan);
    transform: scale(1.1);
}

.lang-flag {
    display: inline-block;
}

/* Mobile menu button */
.navbar-burger {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-burger:hover {
    background-color: transparent;
    color: var(--accent-green);
}

.navbar-burger.is-active {
    color: var(--accent-green);
}

.navbar-menu {
    background-color: var(--bg-primary) !important;
}

/* Mobile menu dropdown styling */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(13, 17, 23, 0.98) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--bg-tertiary);
        padding: 1rem 0;
    }

    .navbar-menu .navbar-item {
        padding: 0.75rem 1.5rem;
    }

    .navbar-menu .navbar-item.active::after {
        bottom: 50%;
        left: 0;
        transform: translateY(50%);
        width: 3px;
        height: 60%;
    }
}

/* ==================== HERO SECTION ==================== */
/* Full-screen intro with terminal simulation */

#hero {
    background: transparent;
    min-height: 100vh;
    padding-top: 52px;  /* Account for fixed navbar */
}

/* Terminal window styling */
.terminal {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 212, 255, 0.1);
    border: 1px solid var(--bg-tertiary);
}

/* Terminal window header (macOS style buttons) */
.terminal-header {
    background-color: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.terminal-btn.red { background-color: #ff5f56; }
.terminal-btn.yellow { background-color: #ffbd2e; }
.terminal-btn.green { background-color: #27ca40; }

.terminal-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Terminal content area */
.terminal-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    min-height: 350px;
    line-height: 1.8;
}

/* Terminal output lines */
#terminal-output {
    white-space: pre-wrap;
}

#terminal-output .line {
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInLine 0.3s ease forwards;
}

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

/* Command prompt styling */
.prompt-symbol {
    color: var(--accent-green);
    margin-right: 8px;
}

.terminal-input {
    display: flex;
    align-items: center;
}

/* Blinking cursor in terminal */
.cursor.blink {
    animation: blink 0.8s infinite;
    color: var(--accent-cyan);
}

/* ==================== HERO LAYOUT ==================== */
/* Photo left, terminal right */

.hero-columns {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
}

.hero-photo-col {
    flex: 0 0 120px !important;
    width: 120px !important;
    max-width: 120px !important;
    padding-top: 0.5rem;
}

/* ==================== PROFILE IMAGE ==================== */
/* Profile photo with glow effect */

.profile-container {
    position: relative;
    display: inline-block;
}

/* Glow effect behind the image */
.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

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

.profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

/* ==================== SCROLL INDICATOR ==================== */
/* Animated scroll down arrow */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    display: block;
    margin-top: 8px;
    color: var(--accent-cyan);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== GLASS CARDS ==================== */
/* Glassmorphism effect for content cards */

.glass-card {
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-medium);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
}

.card-content {
    height: 100%;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.card-title i {
    margin-right: 8px;
}

/* ==================== CODE BLOCK ==================== */
/* Styled code snippets */

.code-block {
    background-color: var(--bg-primary) !important;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--bg-tertiary);
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    background-color: transparent !important;
    padding: 0;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    background-color: transparent !important;
    color: var(--text-primary);
}

@media screen and (max-width: 768px) {
    .code-block {
        padding: 1rem;
    }

    .code-block pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .code-block code {
        font-size: 0.75rem;
        line-height: 1.6;
    }
}

/* Syntax highlighting classes */
.keyword { color: var(--syntax-keyword); }
.string { color: var(--syntax-string); }
.variable { color: var(--syntax-variable); }
.property { color: var(--syntax-property); }
.comment { color: var(--syntax-comment); }

/* ==================== SKILL BARS ==================== */
/* Animated progress bars for language skills */

.skill-item {
    margin-bottom: 1.2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.skill-level {
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

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

.skill-progress {
    height: 100%;
    width: 0;  /* Animated via JS */
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* ==================== IDE CARDS ==================== */
/* VS Code-style skill cards */

.ide-card {
    padding: 0;
    overflow: hidden;
}

.ide-header {
    background-color: var(--bg-tertiary);
    padding: 8px 16px;
    border-bottom: 1px solid var(--bg-primary);
}

.ide-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.ide-tab.active {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.ide-tab i {
    margin-right: 8px;
    color: var(--accent-cyan);
}

.ide-body {
    padding: 1.5rem;
}

/* Skill tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}

.skill-tags .tag {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
    font-family: 'JetBrains Mono', monospace;
    padding: 8px 16px;
    transition: var(--transition-fast);
}

.skill-tags .tag:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.skill-tags .tag i {
    margin-right: 6px;
    color: var(--accent-cyan);
}

.skill-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* ==================== GIT TIMELINE ==================== */
/* Education timeline styled as git log */

.git-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.git-log-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-green);
    margin-bottom: 2rem;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.commit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-cyan);
    transition: var(--transition-fast);
}

.commit:hover {
    background-color: var(--bg-tertiary);
    border-left-color: var(--accent-green);
}

.commit-hash {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-yellow);
    background-color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    min-width: 100px;
    text-align: center;
}

.commit-message {
    flex: 1;
    color: var(--text-primary);
}

.commit-message i {
    margin-right: 10px;
    color: var(--accent-cyan);
}

.commit-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* ==================== NPM TERMINAL ==================== */
/* Schnupperlehren styled as npm install */

.npm-terminal {
    max-width: 900px;
    margin: 0 auto;
}

.npm-output {
    font-size: 0.9rem;
}

.npm-command {
    color: var(--accent-green);
    margin-bottom: 16px;
}

.npm-info {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.npm-section {
    margin-bottom: 24px;
}

.npm-section-title {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 2px solid var(--accent-cyan);
}

.npm-package {
    color: var(--accent-green);
    margin-left: 16px;
    margin-bottom: 4px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.npm-package.visible {
    opacity: 1;
    transform: translateX(0);
}

.npm-package .version {
    color: var(--text-secondary);
}

.npm-success {
    color: var(--accent-green);
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-tertiary);
}

.npm-success i {
    margin-right: 8px;
}

.npm-success .count {
    color: var(--accent-yellow);
    font-weight: bold;
}

/* ==================== COURSE CARDS ==================== */
/* Training and workshop cards */

.course-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.course-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.course-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.course-provider {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.course-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-yellow);
}

/* Special highlight for hackathon */
.course-card.hackathon {
    border-color: var(--accent-yellow);
}

.course-card.hackathon .course-icon {
    color: var(--accent-yellow);
}

/* ==================== PROJECT CARD ==================== */
/* Project showcase styling */

.project-card {
    padding: 2rem;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.project-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.project-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-green);
}

.project-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-features {
    list-style: none;
}

.project-features li {
    padding: 8px 0;
    color: var(--text-primary);
}

.project-features li i {
    color: var(--accent-green);
    margin-right: 10px;
}

/* ==================== HOBBY GRID ==================== */
/* Hobbies displayed as icon grid */

.hobby-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.hobby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-tertiary);
    transition: var(--transition-medium);
    flex: 0 1 auto;
}

.hobby-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hobby-item i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

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

/* ==================== REFERENCE CARDS ==================== */
/* Professional reference styling */

.reference-card {
    text-align: center;
    padding: 2rem;
}

.reference-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.reference-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.reference-role {
    color: var(--accent-green);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.reference-org {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.reference-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reference-contact a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.reference-contact a:hover {
    color: var(--accent-cyan);
}

.reference-contact a i {
    margin-right: 8px;
    width: 16px;
}

/* ==================== CONTACT SECTION ==================== */
/* Contact information styling */

.contact-card {
    text-align: center;
    padding: 3rem 2rem;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-item:hover {
    color: var(--accent-cyan);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.qr-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-tertiary);
}

.qr-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent-cyan);
    image-rendering: pixelated;
    background: white;
    padding: 8px;
}

/* ==================== FOOTER ==================== */
/* Page footer styling */

.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--bg-tertiary);
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-text i {
    color: var(--accent-red);
    margin: 0 4px;
}

/* ==================== SECTIONS ==================== */
/* General section styling */

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

/* Alternating background for visual separation */
.section:nth-child(even) {
    background-color: rgba(22, 27, 34, 0.3);
}

/* ==================== INTRO TEXT ==================== */
/* About section intro paragraph */

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Adjustments for different screen sizes */

/* Tablets and smaller */
@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 1.75rem;
    }

    .terminal-body {
        font-size: 0.85rem;
    }
}

/* Mobile phones */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Stack columns vertically on mobile */
    .columns {
        flex-direction: column;
    }

    .column {
        width: 100%;
    }

    /* Adjust hero section */
    .hero-columns {
        flex-wrap: wrap !important;
    }

    .hero-photo-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .terminal-body {
        padding: 16px;
        font-size: 0.8rem;
        min-height: 280px;
    }

    .scroll-indicator {
        display: none;  /* Hide on mobile - takes up space */
    }

    /* Commit timeline adjustments */
    .commit {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .commit-hash {
        min-width: auto;
    }

    /* Contact grid adjustments */
    .contact-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-item {
        justify-content: center;
    }

    /* Hobby grid adjustments */
    .hobby-grid {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hobby-item {
        padding: 1rem 1.2rem;
    }

    /* Glass card adjustments */
    .glass-card {
        padding: 1.5rem;
    }

    /* Reference cards side by side on mobile */
    #references .columns {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #references .column {
        width: 100%;
    }
}

/* Small mobile phones */
@media screen and (max-width: 480px) {
    .terminal-body {
        font-size: 0.75rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .hobby-item {
        min-width: 100px;
    }

    .npm-package {
        font-size: 0.8rem;
    }
}

/* ==================== ANIMATIONS ==================== */
/* Additional animation keyframes */

/* Glow pulse for accent elements */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

/* Typing cursor animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Fade in from below */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== UTILITY CLASSES ==================== */
/* Helper classes for common styles */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
