/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #0099ff;
    --accent-color: #ff0080;
    --bg-dark: #0a0e27;
    --bg-darker: #050810;
    --bg-card: #141b33;
    --text-primary: #e4f0fb;
    --text-secondary: #8892b0;
    --code-blue: #61dafb;
    --code-yellow: #ffd700;
    --code-green: #98c379;
    --code-purple: #c678dd;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

/* Screen reader only - for SEO H1 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.terminal-window {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
    animation: slideDown 1s ease-out;
}

.terminal-header {
    background: rgba(20, 27, 51, 0.8);
    padding: 10px;
    display: flex;
    gap: 8px;
}

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

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

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

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

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.terminal-line {
    margin-bottom: 10px;
}

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

.command {
    color: var(--code-yellow);
}

.terminal-output {
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 20px;
}

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

.glitch {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.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-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.code-bracket {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(0, 153, 255, 0.2));
    mix-blend-mode: multiply;
}

.code-block {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.code-header {
    background: rgba(20, 27, 51, 0.8);
    padding: 10px 20px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.keyword {
    color: var(--code-purple);
}

.variable {
    color: var(--code-blue);
}

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

.string {
    color: var(--code-yellow);
}

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

/* ===== Tech Stack Section ===== */
.tech-stack {
    background: var(--bg-darker);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.tech-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    animation: progressLoad 1.5s ease-out;
}

/* ===== Experience Section ===== */
.experience {
    background: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50%;
    padding-right: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    z-index: 1;
    box-shadow: 0 0 20px var(--primary-color);
}

.timeline-content {
    width: 90%;
    animation: fadeInLeft 0.6s ease-out;
}

.timeline-item:nth-child(even) .timeline-content {
    animation: fadeInRight 0.6s ease-out;
}

.experience-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.experience-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.company {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.experience-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.experience-list li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.experience-list li::before {
    content: '�';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

/* ===== Projects Section ===== */
.projects {
    background: var(--bg-darker);
}

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

.project-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover .project-logo {
    transform: scale(1.1);
    opacity: 0.3;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(0, 153, 255, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* ===== Showcase Section ===== */
.showcase {
    background: var(--bg-dark);
}

.showcase-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.showcase-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
    border-color: var(--primary-color);
}

.showcase-image {
    height: 250px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

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

.showcase-card:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-card:hover .showcase-overlay {
    opacity: 1;
}

.showcase-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.showcase-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.5);
}

.showcase-content {
    padding: 1.5rem;
}

.showcase-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.showcase-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.showcase-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.showcase-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.showcase-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.showcase-features span i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.showcase-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.showcase-cta h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.showcase-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }
    10% {
        clip: rect(48px, 9999px, 29px, 0);
    }
    15% {
        clip: rect(42px, 9999px, 73px, 0);
    }
    20% {
        clip: rect(63px, 9999px, 27px, 0);
    }
    25% {
        clip: rect(34px, 9999px, 55px, 0);
    }
    30% {
        clip: rect(86px, 9999px, 73px, 0);
    }
    35% {
        clip: rect(20px, 9999px, 20px, 0);
    }
    40% {
        clip: rect(26px, 9999px, 60px, 0);
    }
    45% {
        clip: rect(25px, 9999px, 66px, 0);
    }
    50% {
        clip: rect(57px, 9999px, 98px, 0);
    }
    55% {
        clip: rect(5px, 9999px, 46px, 0);
    }
    60% {
        clip: rect(82px, 9999px, 31px, 0);
    }
    65% {
        clip: rect(54px, 9999px, 27px, 0);
    }
    70% {
        clip: rect(28px, 9999px, 99px, 0);
    }
    75% {
        clip: rect(45px, 9999px, 69px, 0);
    }
    80% {
        clip: rect(23px, 9999px, 85px, 0);
    }
    85% {
        clip: rect(54px, 9999px, 84px, 0);
    }
    90% {
        clip: rect(45px, 9999px, 47px, 0);
    }
    95% {
        clip: rect(37px, 9999px, 20px, 0);
    }
    100% {
        clip: rect(4px, 9999px, 91px, 0);
    }
}

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

@keyframes progressLoad {
    from {
        width: 0;
    }
}

.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 2s steps(20) 0.5s both, blink 0.75s step-end 2.5s 3;
}

.typing-animation-delay {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3s steps(40) 3s both, blink 0.75s step-end 6s 3;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ===== Responsive Design ===== */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    section {
        padding: 80px 0;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease;
        padding: 3rem 2rem;
        gap: 2rem;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* Hero Section */
    .hero {
        padding: 120px 20px 60px;
        min-height: 90vh;
    }

    .terminal-window {
        max-width: 100%;
        font-size: 0.8rem;
        margin-bottom: 2rem;
    }

    .terminal-body {
        padding: 15px;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero::before,
    .hero::after {
        width: 300px;
        height: 300px;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .code-block {
        margin-bottom: 2rem;
    }

    .code-block pre {
        padding: 15px;
        overflow-x: auto;
    }

    .code-block code {
        font-size: 0.8rem;
        white-space: pre-wrap;
        word-break: break-word;
        line-height: 1.6;
    }

    .about-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Tech Stack */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tech-card {
        padding: 1.5rem;
    }

    .tech-icon {
        font-size: 2.5rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 100%;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Showcase */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .showcase-features {
        grid-template-columns: 1fr;
    }

    .showcase-cta {
        padding: 2rem 1.5rem;
    }

    .showcase-cta h3 {
        font-size: 1.5rem;
    }

    .showcase-cta p {
        font-size: 1rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }
}

/* Mobile (480px - 768px) */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    /* Hero Section */
    .hero {
        padding: 100px 15px 50px;
        min-height: 80vh;
    }

    .terminal-window {
        display: none; /* Hide terminal on mobile */
    }

    .glitch {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .glitch::before,
    .glitch::after {
        display: none; /* Disable glitch effect on very small screens for performance */
    }

    .subtitle {
        font-size: 0.95rem;
    }

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

    /* About Section */
    .about-content {
        gap: 1.5rem;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .image-frame {
        border-width: 1px;
    }

    .code-block {
        display: none; /* Hide code block on mobile */
    }

    .about-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Tech Stack */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tech-card {
        padding: 1.2rem;
    }

    .tech-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .tech-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 10px;
    }

    .timeline::before {
        left: 15px;
        width: 2px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 45px;
        margin-bottom: 2rem;
    }

    .timeline-dot {
        left: 15px;
        transform: translateX(-50%);
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .experience-card {
        padding: 1.2rem;
    }

    .experience-header h3 {
        font-size: 1.1rem;
    }

    .company {
        font-size: 1rem;
    }

    .experience-list {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .experience-list li {
        margin-bottom: 0.4rem;
    }

    .tech-tags {
        gap: 0.4rem;
    }

    .tech-tags span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Projects */
    .projects-grid {
        gap: 1.5rem;
    }

    .project-card {
        max-width: 100%;
    }

    .project-image {
        height: 180px;
    }

    .project-logo {
        width: 100px;
        height: 100px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .project-tech {
        gap: 0.4rem;
    }

    .project-tech span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .project-link {
        width: 45px;
        height: 45px;
    }

    /* Showcase */
    .showcase-intro {
        font-size: 0.95rem;
    }

    .showcase-grid {
        gap: 1.5rem;
    }

    .showcase-card {
        max-width: 100%;
    }

    .showcase-image {
        height: 200px;
    }

    .showcase-content {
        padding: 1.2rem;
    }

    .showcase-content h3 {
        font-size: 1.2rem;
    }

    .showcase-content p {
        font-size: 0.9rem;
    }

    .showcase-cta {
        padding: 1.5rem 1rem;
    }

    .showcase-cta h3 {
        font-size: 1.3rem;
    }

    .showcase-cta p {
        font-size: 0.95rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .code-bracket {
        font-size: 0.9em;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    /* Disable heavy animations on mobile for performance */
    .tech-card:hover::before {
        display: none;
    }

    .particle {
        display: none;
    }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
    .glitch {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .terminal-window {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-image {
        max-width: 200px;
    }

    .code-block code {
        font-size: 0.65rem;
    }

    .about-description {
        font-size: 0.9rem;
    }

    .experience-card,
    .project-content,
    .tech-card {
        padding: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .nav-link {
        padding: 1rem;
    }

    .project-overlay {
        opacity: 0.9; /* Make overlay visible by default on touch devices */
    }

    .tech-card:hover {
        transform: none; /* Disable hover transforms on touch */
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 20px 40px;
    }

    .terminal-window {
        margin-bottom: 1.5rem;
    }

    .nav-menu {
        padding: 1rem;
        gap: 1rem;
        overflow-y: auto;
    }

    section {
        padding: 40px 0;
    }
}
