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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00d4ff;
    --accent-blue: #0080ff;
    --accent-purple: #8b5cf6;
    --border-color: #2a2a2a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Menlo', 'Courier New', monospace;
    --transition: all .3s ease
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga" 1, "kern" 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px
}

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: .1;
    pointer-events: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0a0a0af2;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-cyan)
}

.cursor {
    animation: blink 1s infinite
}

@keyframes blink {

    0%,
    50% {
        opacity: 1
    }

    51%,
    to {
        opacity: 0
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: .9rem;
    transition: var(--transition);
    position: relative
}

.nav-links a:hover {
    color: var(--accent-cyan)
}

.nav-links a:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width .3s ease
}

.nav-links a:hover:after {
    width: 100%
}

.nav-links a.active {
    color: var(--accent-cyan) !important
}

.nav-links a.active:after {
    width: 100% !important
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition)
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 10;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.hero-content {
    width: 100%;
    max-width: 800px
}

.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px #00000080;
    animation: terminalGlow 2s ease-in-out infinite alternate;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

@keyframes terminalGlow {
    0% {
        box-shadow: 0 10px 30px #00000080
    }

    to {
        box-shadow: 0 10px 30px #00d4ff1a, 0 0 50px #00d4ff0d
    }
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color)
}

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

.terminal-button.red {
    background: var(--danger)
}

.terminal-button.yellow {
    background: var(--warning)
}

.terminal-button.green {
    background: var(--success)
}

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

.terminal-body {
    padding: 30px;
    font-family: var(--font-mono);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.terminal-line {
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

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

.glitch {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin: 20px 0;
    animation: glitchPulse 3s ease-in-out infinite;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.glitch:before {
    animation: glitch-1 .5s infinite;
    color: var(--accent-cyan);
    z-index: -1
}

.glitch:after {
    animation: glitch-2 .5s infinite;
    color: var(--accent-purple);
    z-index: -2
}

@keyframes glitch-1 {

    0%,
    to {
        clip-path: inset(0 0 0 0);
        transform: translate(0)
    }

    20% {
        clip-path: inset(33% 0 25% 0);
        transform: translate(-2px, -2px)
    }

    40% {
        clip-path: inset(0 0 66% 0);
        transform: translate(2px, 2px)
    }

    60% {
        clip-path: inset(25% 0 0 0);
        transform: translate(-1px, 1px)
    }

    80% {
        clip-path: inset(0 0 33% 0);
        transform: translate(1px, -1px)
    }
}

@keyframes glitch-2 {

    0%,
    to {
        clip-path: inset(0 0 0 0);
        transform: translate(0)
    }

    20% {
        clip-path: inset(25% 0 33% 0);
        transform: translate(2px, 2px)
    }

    40% {
        clip-path: inset(0 0 75% 0);
        transform: translate(-2px, -2px)
    }

    60% {
        clip-path: inset(40% 0 0 0);
        transform: translate(1px, -1px)
    }

    80% {
        clip-path: inset(0 0 40% 0);
        transform: translate(-1px, 1px)
    }
}

.typing-text {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin: 20px 0;
    min-height: 30px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.typing-text:after {
    content: "|";
    animation: blink .8s infinite
}

.role-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 20px 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px
}

.btn {
    padding: 12px 30px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: .9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
    transition: left .5s ease
}

.btn:hover:before {
    left: 100%
}

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

.btn-primary:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px #00d4ff80
}

.btn-secondary {
    border-color: var(--border-color)
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 0 20px #8b5cf64d
}

section {
    padding: 80px 0
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-family: var(--font-mono);
    position: relative;
    display: inline-block
}

.command-prefix {
    color: var(--accent-cyan)
}

.about {
    background: var(--bg-secondary);
    position: relative;
    z-index: 20
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px
}

@media (min-width: 769px) {
    .about-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 60px;
        align-items: start;
    }
}

.code-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px
}

.code-header {
    background: var(--bg-tertiary);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color)
}

.code-title {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: .9rem
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: .9rem;
    line-height: 1.5;
    overflow-x: auto
}

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

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

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition)
}

.stat-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px #00d4ff1a
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    transition: all .3s ease
}

.stat-number.counting {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, .5)
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 10px
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px
}

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px
}

.skill-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    font-family: var(--font-mono)
}

.skill-item {
    margin-bottom: 20px
}

.skill-item:before {
    content: attr(data-skill);
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: .9rem
}

.skill-progress {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    position: relative;
    overflow: visible
}

.skill-progress:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    width: 0 !important;
    transition: width 2s ease-in-out .3s;
    border-radius: 4px
}

.skill-progress[data-progress="75"]:after {
    width: 75%
}

.skill-progress[data-progress="80"]:after {
    width: 80%
}

.skill-progress[data-progress="85"]:after {
    width: 85%
}

.skill-progress[data-progress="87"]:after {
    width: 87%
}

.skill-progress[data-progress="88"]:after {
    width: 88%
}

.skill-progress[data-progress="90"]:after {
    width: 90%
}

.skill-progress[data-progress="92"]:after {
    width: 92%
}

.skill-progress[data-progress="93"]:after {
    width: 93%
}

.skill-progress[data-progress="95"]:after {
    width: 95%
}

.skill-progress.visible:after {
    width: var(--skill-width, 0%) !important
}

.experience {
    background: var(--bg-secondary);
    position: relative;
    z-index: 20
}

.timeline {
    position: relative;
    padding-left: 40px
}

.timeline:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color)
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translate(-30px);
    transition: all .6s ease
}

.timeline-item.visible {
    opacity: 1;
    transform: translate(0)
}

.timeline-item:nth-child(2n) {
    transform: translate(30px)
}

.timeline-item:nth-child(2n).visible {
    transform: translate(0)
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -45px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan)
}

.timeline-date {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: .9rem;
    margin-bottom: 10px
}

.timeline-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 15px
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none
}

.timeline-tags li {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: .8rem;
    color: var(--text-secondary)
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(.95);
    transition: all .6s ease
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1)
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02)
}

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

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary)
}

.project-status {
    font-size: .8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-mono)
}

.project-status.active {
    background: #10b98133;
    color: var(--success);
    border: 1px solid var(--success)
}

.project-status.maintenance {
    background: #f59e0b33;
    color: var(--warning);
    border: 1px solid var(--warning)
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px
}

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

.project-tech span {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: .8rem;
    font-family: var(--font-mono);
    color: var(--accent-cyan)
}

.project-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: .9rem;
    transition: var(--transition)
}

.project-link:hover {
    text-decoration: underline
}

.contact {
    background: var(--bg-secondary);
    position: relative;
    z-index: 20
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.form-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s ease
}

.form-group.visible {
    opacity: 1;
    transform: translateY(0)
}

.form-group label {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: .9rem
}

.form-group input,
.form-group textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition)
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px #00d4ff1a
}

.form-group textarea {
    resize: vertical
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px
}

.info-block h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    font-family: var(--font-mono)
}

.info-block p {
    color: var(--text-secondary);
    line-height: 1.6
}

.social-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: var(--transition)
}

.social-links a:hover {
    color: var(--accent-cyan)
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease
}

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

.slide-in-left {
    opacity: 0;
    transform: translate(-50px);
    transition: all .6s ease
}

.slide-in-left.visible {
    opacity: 1;
    transform: translate(0)
}

.slide-in-right {
    opacity: 0;
    transform: translate(50px);
    transition: all .6s ease
}

.slide-in-right.visible {
    opacity: 1;
    transform: translate(0)
}

.scale-in {
    opacity: 0;
    transform: scale(.8);
    transition: all .6s ease
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1)
}

.skill-progress {
    overflow: visible
}

.stat-number {
    transition: all .3s ease
}

.hero.fading {
    pointer-events: none
}

.about,
.skills,
.experience,
.projects,
.contact {
    position: relative;
    z-index: 20;
    background-color: var(--bg-primary)
}

.about,
.experience,
.contact {
    background-color: var(--bg-secondary)
}

/* Terminal Actions Layout */
.terminal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex: 1;
    align-items: center;
}

.fun-button {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    margin-top:auto;
}

/* Enhanced Fun Button Styling */
.btn-fun {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 12px 25px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    animation: funButtonPulse 3s ease-in-out infinite, 
               borderGlow 2s ease-in-out infinite;
    height: 44px; /* Match primary button height */
    min-width: 120px; /* Ensure consistent width */
}

.btn-fun:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-fun:hover:before {
    left: 100%;
}

.btn-fun:hover {
    background: linear-gradient(135deg, var(--accent-purple), #a855f7);
    color: var(--bg-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4), 
                0 0 30px rgba(139, 92, 246, 0.3);
    border-color: #a855f7;
}

.btn-fun:active {
    transform: translateY(-1px) scale(1.02);
}

/* Additional Fun Button Enhancements */
.btn-fun {
    /* Add a subtle glow effect */
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.btn-fun:hover {
    /* Enhanced glow on hover */
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

/* Make the emoji more prominent */
.btn-fun .btn-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Add a subtle border animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: var(--accent-purple);
    }
    50% {
        border-color: #a855f7;
    }
}

/* Desktop specific positioning */
@media (min-width: 769px) {
    .terminal-actions {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .terminal-actions {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

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

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

    .btn-fun {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .terminal-actions {
        gap: 15px;
    }

    .btn-fun {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Ensure button text styling */
.btn-fun .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tablet and larger mobile devices */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 100px 15px 40px;
        min-height: 90vh;
    }

    .terminal-window {
        margin: 0 10px;
    }

    .terminal-body {
        padding: 20px 15px;
    }

    .glitch {
        font-size: 2rem;
        margin: 15px 0;
    }

    .typing-text {
        font-size: 1rem;
        margin: 15px 0;
    }

    .role-text {
        font-size: 1rem;
        margin: 15px 0;
    }

    .terminal-actions {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        margin-top: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

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

    .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .about-text {
        order: 1;
    }

    .about-photo {
        order: 2;
        justify-content: center;
        margin: 20px 0;
    }

    .profile-photo {
        width: 250px;
        height: 300px;
    }

    .about-stats {
        order: 3;
        margin-top: 30px;
    }

    .code-block {
        overflow-x: auto;
    }

    .code-content {
        font-size: 0.8rem;
        padding: 15px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

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

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

    .skill-category {
        padding: 20px;
    }

    .skill-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

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

    .project-card {
        padding: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        order: 1;
    }

    .contact-info {
        order: 2;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item:before {
        left: -26px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-tags {
        gap: 8px;
    }

    .timeline-tags li {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    /* Ensure touch targets are at least 44px for accessibility */
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 0;
    }

    .hamburger {
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    /* Improve button touch targets */
    .btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for form elements */
    .contact-form input,
    .contact-form textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Improve readability */
    .terminal-body {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Better spacing for cards */
    .project-card,
    .skill-category,
    .stat-card {
        margin-bottom: 20px;
    }

    /* Improve timeline on mobile */
    .timeline-content {
        margin-left: 10px;
    }

    /* Social links touch targets */
    .social-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 10px 0;
        margin-right: 20px;
    }

    /* Enhanced About Section Mobile Responsiveness */
    .about {
        padding: 40px 0;
    }

    .about-text {
        width: 100%;
    }

    .about-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-top: 20px;
    }

    .code-block {
        margin-bottom: 20px;
        border-radius: 6px;
    }

    .code-header {
        padding: 8px 15px;
    }

    .code-title {
        font-size: 0.8rem;
    }

    .code-content {
        font-size: 0.75rem;
        padding: 12px;
        line-height: 1.4;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    .stat-card {
        padding: 20px 15px;
        border-radius: 6px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        text-align: center;
    }

    .command-prefix {
        font-size: 1.5rem;
    }

    .about-description {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: left;
    }

    .code-content {
        font-size: 0.7rem;
        padding: 10px;
        line-height: 1.3;
    }

    .about-stats {
        gap: 12px;
        margin-top: 25px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
        margin-top: 5px;
    }

    /* Mobile photo adjustments */
    .profile-photo {
        width: 220px;
        height: 280px;
    }
}

@media (max-width: 360px) {
    .profile-photo {
        width: 200px;
        height: 250px;
    }
}

/* About Photo Section Styling */
.about-photo {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-photo {
    width: 400px;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    image-rendering: auto;
    filter: none;
}

.profile-photo:hover {
    transform: scale(1.05);
}

/* Enhanced About Content Layout for Desktop */
@media (min-width: 769px) {
    .about-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
        gap: 60px 40px;
        align-items: start;
    }
    
    .about-text {
        grid-column: 1;
        grid-row: 1;
    }
    
    .about-photo {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-left: 20px;
    }
    
    .about-stats {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 20px;
    }
}

/* Universal font rendering optimization for monospace text */
*[style*="font-family: var(--font-mono)"],
.terminal-body *,
.code-content,
.glitch,
.typing-text,
.role-text,
.terminal-line,
.prompt {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga" 0, "kern" 1;
    font-variant-ligatures: none;
}