/* ========================================
   CODE-THEMED PORTFOLIO - FULLY RESPONSIVE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-green: #00ff88;
    --neon-blue: #0088ff;
    --bg-main: #0a0a0a;
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #222222;
    
    /* Code colors */
    --code-keyword: #ff79c6;
    --code-function: #50fa7b;
    --code-string: #f1fa8c;
    --code-class: #8be9fd;
    --code-property: #bd93f9;
    --code-comment: #6272a4;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ========================================
   MATRIX BACKGROUND
   ======================================== */
.terminal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

#matrix {
    width: 100%;
    height: 100%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.prompt {
    color: var(--neon-green);
    font-weight: 700;
}

.command {
    color: var(--text-primary);
}

.cursor {
    color: var(--neon-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-green);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neon-green);
    transition: 0.3s;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Code Editor */
.code-editor {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.editor-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    padding: 0.4rem 1rem;
    background: transparent;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.tab.active {
    background: var(--bg-card);
    color: var(--neon-green);
}

.line-count {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.editor-body {
    display: flex;
    padding: 1.5rem 0;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    border-right: 1px solid var(--border);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
    line-height: 1.6;
}

.code-content {
    flex: 1;
    padding: 0 1.5rem;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow-x: auto;
}

.code-content code {
    display: block;
}

.keyword { color: var(--code-keyword); font-weight: 600; }
.classname { color: var(--code-class); font-weight: 600; }
.function { color: var(--code-function); }
.string { color: var(--code-string); }
.comment { color: var(--code-comment); font-style: italic; }

.editor-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 0.5rem 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Terminal */
.terminal {
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.terminal-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--neon-green);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.terminal-line .prompt {
    color: var(--neon-green);
    margin-right: 0.5rem;
}

.terminal-line.output {
    color: var(--text-muted);
    margin-left: 1.5rem;
}

.success {
    color: var(--neon-green);
    margin-right: 0.5rem;
}

.typing::after {
    content: '|';
    color: var(--neon-green);
    animation: blink 1s infinite;
}

/* Profile Side */
.profile-wrapper {
    position: sticky;
    top: 100px;
}

.profile-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-green);
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.profile-img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.icon {
    font-size: 1.2rem;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    transform: translateY(-2px);
}

.social-btn.email {
    grid-column: 1 / -1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--neon-green);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-green);
    font-family: 'Fira Code', monospace;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-family: 'Fira Code', monospace;
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 5rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.7rem;
}

.section-header {
    margin-bottom: 3rem;
}

.code-comment {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--code-comment);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Fira Code', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 600;
}

.kw, .keyword { color: var(--code-keyword); }
.bracket { color: var(--neon-green); font-size: 1.2em; }

.section-footer, .section-end {
    margin-top: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 2rem;
    color: var(--neon-green);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--bg-dark);
}

.content .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.achievement {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.achievement:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
}

.achievement .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.achievement h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.achievement p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Mobile view for achievements - 2 columns */
@media (max-width: 768px) {
    .achievements {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .achievement {
        padding: 1rem;
    }
    
    .achievement .icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .achievement h4 {
        font-size: 0.85rem;
    }
    
    .achievement p {
        font-size: 0.75rem;
    }
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.skill-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-info {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.property { color: var(--code-property); }

.skill-bar {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    width: 0;
    transition: width 1.5s ease;
    border-radius: 3px;
}

.bracket-close {
    margin-top: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--neon-green);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
    background: var(--bg-dark);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--neon-green);
    transform: translateX(5px);
}

.project-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 255, 136, 0.05);
    font-family: 'Fira Code', monospace;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========================================
   PROJECT GALLERY
   ======================================== */
.project-gallery {
    margin: 2rem 0;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumb {
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: var(--bg-card);
    padding: 0.5rem;
}

.thumb:hover {
    border-color: var(--neon-green);
    transform: translateY(-2px);
}

.thumb.active {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.05);
}

.thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.thumb span {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.thumb.active span {
    color: var(--neon-green);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--neon-green);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--bg-card);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neon-green);
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--neon-green);
    color: var(--bg-main);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile gallery - 2 columns */
@media (max-width: 768px) {
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .thumb {
        padding: 0.4rem;
    }
    
    .thumb span {
        font-size: 0.65rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

/* ========================================
   PROJECT TAGS & INFO
   ======================================== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tags span {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    color: var(--neon-green);
}

.project-card ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status {
    font-size: 0.9rem;
    color: var(--neon-green);
    font-family: 'Fira Code', monospace;
}

.status a {
    color: var(--neon-blue);
    text-decoration: none;
    margin-left: 0.5rem;
}

.status a:hover {
    color: var(--neon-green);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-methods a,
.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-methods a:hover {
    border-color: var(--neon-green);
    transform: translateX(5px);
}

.contact-methods svg {
    flex-shrink: 0;
    color: var(--neon-green);
}

.contact-methods strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-methods span {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--neon-green);
    font-family: 'Fira Code', monospace;
}

.availability .dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    color: var(--neon-green);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form button:hover {
    background: var(--neon-green);
    color: var(--bg-main);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* ========================================
   RESPONSIVE DESIGN - COMPREHENSIVE
   ======================================== */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-wrapper {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .project-number {
        font-size: 3rem;
        top: 1rem;
        right: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s;
        border-right: 1px solid var(--border);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
    }

    .container {
        padding: 0 0.7rem;
    }

    section {
        padding: 3rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-box {
        padding: 0.75rem 0.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .code-content,
    .terminal-body {
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    .editor-body {
        padding: 1rem 0;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-number {
        font-size: 2.5rem;
        top: 1rem;
        right: 1rem;
    }
    
    .project-card ul {
        grid-template-columns: 1fr;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 0.95rem;
    }

    .hero-container,
    .container {
        padding: 0 0.6rem;
    }

    .code-editor,
    .terminal {
        border-radius: 8px;
    }

    .editor-body {
        flex-direction: column;
    }

    .line-numbers {
        display: none;
    }

    .code-content {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .skill-card,
    .project-card,
    .contact-form {
        padding: 1.25rem;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
    
    .tags span {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .project-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-methods a,
    .contact-item {
        padding: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .hero {
        padding: 70px 0 20px;
    }
    
    .profile-wrapper {
        max-width: 100%;
    }
    
    .achievement h4 {
        font-size: 0.8rem;
    }
    
    .achievement p {
        font-size: 0.7rem;
    }
}