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

:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff0080;
    --neon-yellow: #ffff00;
    --neon-purple: #bd00ff;
    --dark-bg: #0a0a0f;
    --card-bg: #15151f;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 243, 255, 0.03) 2px,
            rgba(0, 243, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0; /* lowered so section overlays can show */
    animation: scanlines 8s linear infinite;
}

/* Hero flow overlay (covers the whole hero and animates) */
.hero::before {
    display: none;
}

/* Make sure hero content sits above the overlay */
.hero h1,
.hero .subtitle,
.bio {
    position: relative;
    z-index: 2;
}

/* Remove any solid background on terminal lines so the hero overlay flows behind them */
.terminal-line {
    background: transparent; /* allow hero flow to show through */
    border-left: 2px solid rgba(0,243,255,0.18); /* softer line so overlay is visible */
}

/* Slightly soften the prompt dot so it doesn't block the flow */
.terminal-line::before {
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.55);
    background: rgba(0,243,255,0.9);
}

/* Flow animation */
@keyframes flow {
    0% { background-position: 0% 50%, 0% 0%; }
    50% { background-position: 100% 50%, 0% 0%; }
    100% { background-position: 0% 50%, 0% 0%; }
}

/* Glitch Effect */
@keyframes glitch {
    0%, 100% {
        text-shadow: 2px 2px 0 var(--neon-cyan), -2px -2px 0 var(--neon-pink);
    }
    25% {
        text-shadow: -2px 2px 0 var(--neon-pink), 2px -2px 0 var(--neon-cyan);
    }
    50% {
        text-shadow: 2px -2px 0 var(--neon-yellow), -2px 2px 0 var(--neon-purple);
    }
    75% {
        text-shadow: -2px -2px 0 var(--neon-cyan), 2px 2px 0 var(--neon-pink);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header/Nav */
header {
    padding: 30px 0;
    border-bottom: 2px solid var(--neon-cyan);
    margin-bottom: 50px;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--neon-pink);
}

.nav-links a:hover {
    color: var(--neon-pink);
}

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

.cyber-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

nav a:hover .cyber-arrow {
    transform: translateX(4px);
}

/* External link indicator */
nav a[target="_blank"]::after {
    content: '↗';
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.7;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px 80px;
    background: transparent; /* Match website background */
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--neon-yellow);
    animation: glitch 3s infinite;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.bio {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
}

.terminal-line {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-left: 2px solid rgba(0,243,255,0.3);
    padding-left: 30px;
    position: relative;
    
    /* 👇 Changed from opacity: 0 to this */
    visibility: hidden; /* Use visibility instead of opacity */
    
    background: rgba(21, 21, 31, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* 👇 Add this new rule */
.terminal-line.animated {
    visibility: visible;
}

.terminal-line:hover {
    background: rgba(21, 21, 31, 0.8);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.terminal-line:nth-child(1) {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(2) {
    animation-delay: 2.5s;
}

.terminal-line:nth-child(3) {
    animation-delay: 4.5s;
}

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

.terminal-line::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.prompt {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    text-shadow: 0 0 10px var(--neon-cyan);
    min-width: 120px;
}

.terminal-line p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    white-space: normal;
}

/* Remove the old typing animations */
/* Delete or comment out these rules:
.terminal-line:nth-child(1) p {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(2) p {
    animation-delay: 2.5s;
}

.terminal-line:nth-child(3) p {
    animation-delay: 4.5s;
}

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

/* Keep only the cursor blink animation */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--neon-cyan);
    }
}

/* Remove the typed class styles as they're no longer needed */
/* Delete or comment out:
.terminal-line p.typed {
    border-right: none;
    white-space: normal;
}
*/

/* Section Styles */
section {
    margin: 80px 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

/* Elevator Pitch */
.elevator-pitch {
    padding: 0;
    margin: 0;
}

.video-placeholder {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-container:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    transform: scale(1.02);
}

.scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 243, 255, 0.05) 2px,
        rgba(0, 243, 255, 0.05) 4px
    );
    animation: scanlines 8s linear infinite;
    pointer-events: none;
}

.placeholder-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.play-icon {
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    transition: all 0.3s ease;
}

.video-container:hover .play-icon {
    filter: drop-shadow(0 0 20px var(--neon-pink));
}

.video-container:hover .play-icon polygon {
    fill: var(--neon-pink);
}

.video-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.video-status {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--neon-yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.video-container:hover .video-label {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
}

/* Skills Section - Cyberpunk Health Bar Style */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-category {
    background: rgba(21, 21, 31, 0.6);
    padding: 30px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
}

.skill-category:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 243, 255, 0.3);
}

.skill-item {
    margin-bottom: 25px;
}

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

.skill-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-level {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Level-based styling */
.skill-level.expert {
    background: rgba(255, 237, 78, 0.2);
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
    box-shadow: 0 0 10px rgba(255, 237, 78, 0.3);
}

.skill-level.advanced {
    background: rgba(0, 243, 255, 0.2);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.skill-level.beginner {
    background: rgba(255, 0, 128, 0.2);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.3);
}

/* Health Bar Container */
.health-bar {
    display: flex;
    gap: 4px;
    height: 20px;
}

/* Individual Health Segment */
.health-segment {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.3);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 100%, 4px 100%);
}

/* Filled Segment */
.health-segment.filled {
    background: linear-gradient(180deg, 
        var(--neon-cyan) 0%, 
        rgba(0, 243, 255, 0.8) 50%, 
        var(--neon-cyan) 100%
    );
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

/* Glow effect on filled segments */
.health-segment.filled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Different colors for skill levels */
.health-bar.expert .health-segment.filled {
    background: linear-gradient(180deg, 
        var(--neon-yellow) 0%, 
        rgba(255, 237, 78, 0.8) 50%, 
        var(--neon-yellow) 100%
    );
    border-color: var(--neon-yellow);
    box-shadow: 0 0 8px rgba(255, 237, 78, 0.5);
}

.health-bar.advanced .health-segment.filled {
    background: linear-gradient(180deg, 
        var(--neon-cyan) 0%, 
        rgba(0, 243, 255, 0.8) 50%, 
        var(--neon-cyan) 100%
    );
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.health-bar.intermediate .health-segment.filled {
    background: linear-gradient(180deg, 
        var(--neon-pink) 0%, 
        rgba(255, 0, 128, 0.8) 50%, 
        var(--neon-pink) 100%
    );
    border-color: var(--neon-pink);
    box-shadow: 0 0 8px rgba(255, 0, 128, 0.5);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-yellow);
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(0, 243, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tag img {
    display: block;
    filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(2578%) hue-rotate(153deg) brightness(102%) contrast(101%);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.tag:hover img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(89%) saturate(7471%) hue-rotate(324deg) brightness(102%) contrast(101%);
}

/* Tooltip for icon names */
.tag::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(10, 10, 15, 0.95);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--neon-cyan);
    z-index: 10;
}

.tag:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

.project-link {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
}

.project-link:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateX(5px);
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background: var(--card-bg);
    border-left: 4px solid var(--neon-pink);
    padding: 30px;
    transition: all 0.3s;
    position: relative;
}

.blog-post:hover {
    background: rgba(21, 21, 31, 0.8);
    border-left-width: 8px;
    box-shadow: -10px 0 30px rgba(255, 0, 128, 0.2);
}

.blog-post h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--neon-pink);
    margin-bottom: 10px;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
}

/* Footer */
footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 2px solid var(--neon-cyan);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Responsive */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 10px;
    }

    /* Header/Nav */
    header {
        padding: 20px 0;
        margin-bottom: 30px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        padding: 60px 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Bio Terminal Lines */
    .bio {
        max-width: 100%;
        padding: 0 10px;
    }

    .terminal-line {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin-bottom: 20px;
    }

    .prompt {
        font-size: 0.9rem;
        min-width: auto;
    }

    .terminal-line p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

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

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

    /* Elevator Pitch Video */
    .video-container {
        aspect-ratio: 16 / 9;
    }

    .play-icon {
        width: 60px;
        height: 60px;
    }

    .video-label {
        font-size: 1rem;
    }

    .video-status {
        font-size: 0.8rem;
    }

    /* Skills Section */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .skill-category {
        padding: 20px;
    }

    .category-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

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

    .skill-name {
        font-size: 0.9rem;
    }

    .skill-level {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .health-bar {
        height: 16px;
        gap: 3px;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card {
        padding: 20px;
    }

    .project-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .project-card p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .project-tags {
        gap: 8px;
        margin-bottom: 15px;
    }

    .tag {
        padding: 6px;
    }

    .tag img {
        width: 20px;
        height: 20px;
    }

    .project-link {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Blog Posts */
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-post {
        padding: 20px;
    }

    .blog-post h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .blog-meta {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .blog-post p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .read-more {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Footer */
    footer {
        padding: 30px 0;
        margin-top: 50px;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-links a {
        font-size: 0.9rem;
    }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .terminal-line {
        padding: 12px;
    }

    .terminal-line p {
        font-size: 0.85rem;
    }

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

    .project-card h3 {
        font-size: 1.1rem;
    }

    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .health-bar {
        height: 14px;
    }

    /* Make tags wrap better on very small screens */
    .project-tags {
        gap: 6px;
    }

    .tag {
        padding: 5px;
    }

    .tag img {
        width: 18px;
        height: 18px;
    }
}

/* Landscape orientation on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 40px 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        margin: 40px 0;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

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

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

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

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

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-links a {
        padding: 12px;
        font-size: 1rem;
    }

    .project-link,
    .read-more {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Remove hover effects on touch devices */
    .terminal-line:hover {
        background: rgba(21, 21, 31, 0.6);
        border-color: rgba(0, 243, 255, 0.2);
        box-shadow: none;
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .skill-category:hover {
        transform: none;
    }

    /* Better tap feedback */
    .nav-links a:active,
    .project-link:active,
    .read-more:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        overflow-x: hidden;
    }

    /* Make sure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Adjust scan line animation for mobile */
    .scan-effect {
        opacity: 0.3;
    }
}