/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #ff6b35;
    --accent-hover: #e55a2b;
    --accent-secondary: #ff4757;
    --text-color: #333333;
    --text-light: #666666;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #ff6b35, #ff4757);
    --gradient-hover: linear-gradient(135deg, #ff4757, #ff3742);
    --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
    --font-display: 'VT323', monospace;
}

body {
    font-family: var(--font-mono);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.cursor-blink {
    animation: blink 1s infinite;
}

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

/* Terminal Styles */
.terminal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 60vh;
    background-color: #1a1a1a;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    z-index: 3000;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
    font-family: var(--font-mono);
}

.terminal-header {
    background-color: #2d2d2d;
    padding: 10px 15px;
    border-bottom: 1px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.terminal-buttons .close { background-color: #ff5f56; }
.terminal-buttons .minimize { background-color: #ffbd2e; }
.terminal-buttons .maximize { background-color: #27ca3f; }

.terminal-title {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

.terminal-body {
    padding: 20px;
    height: calc(100% - 50px);
    overflow-y: auto;
}

.terminal-output {
    margin-bottom: 20px;
    min-height: 200px;
}

.terminal-line {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--accent-color);
    font-weight: 500;
}

#terminal-input {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    flex: 1;
}

/* Matrix Canvas */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.logo-text {
    color: var(--accent-color);
    font-weight: bold;
}

.logo-name {
    color: var(--primary-color);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.terminal-btn {
    background: var(--gradient);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.terminal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Main Container */
.main-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Sections */
.section {
    display: none;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.author-card {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.author-photo {
    position: relative;
    margin-bottom: 1.5rem;
}

.author-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

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

.author-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.author-title {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.author-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.social-icon {
    font-size: 1.2rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.tech-bar {
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.tech-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 2s ease-in-out;
    width: 0;
}

.current-status p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Blog Content */
.blog-content {
    max-width: 800px;
}

.welcome-post {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.title-line {
    display: block;
    color: var(--text-color);
}

.hello-world {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    display: inline-block;
    font-weight: 500;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.title-highlight {
    display: block;
    color: var(--accent-color);
    font-size: 3rem;
    margin: 0.5rem 0;
    font-family: var(--font-mono);
    font-weight: 700;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Code Snippet */
.code-snippet {
    background: #1a1a1a;
    border-radius: 10px;
    margin: 2rem 0;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.code-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.expand-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.expand-arrow {
    transition: transform 0.3s ease;
}

.expand-btn.expanded .expand-arrow {
    transform: rotate(180deg);
}

.code-preview {
    position: relative;
    overflow: hidden;
    max-height: 200px;
}

.code-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #1a1a1a);
    pointer-events: none;
}

.code-full {
    display: none;
    position: relative;
}

.code-full:not(.show) {
    display: none;
}

.code-full.show {
    display: block;
    animation: fadeIn 0.3s ease;
    max-height: none;
    overflow: visible;
}

.code-full.show::after {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.code-lang {
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.copy-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.code-snippet pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-snippet code {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid var(--border-color);
}

.cta-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: var(--gradient);
    color: var(--primary-color);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.portfolio-item {
    background-color: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.portfolio-description {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

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

.portfolio-link {
    padding: 0.5rem 1rem;
    background: var(--gradient);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portfolio-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 2rem;
}

.blog-post {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.post-thumbnail {
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
}

.thumbnail-placeholder {
    text-align: center;
}

.thumbnail-icon {
    font-size: 3rem;
}

.blog-post .post-content {
    padding: 1.5rem;
}

.blog-post .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.blog-post .post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post .post-category {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-post .post-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.blog-post .post-excerpt {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tag {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-gray) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(255, 107, 53, 0.05) 100%);
}

.contact-method:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    min-width: 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 71, 87, 0.1) 100%);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.contact-details h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-details p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    background: transparent;
}

.contact-link:hover {
    color: var(--secondary-color);
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
    z-index: 1;
}

.close:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        order: 1;
        max-width: 100%;
    }
    
    .blog-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .nav-container {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1.2rem;
        font-size: 1.1rem;
        width: 100%;
        display: block;
        border-radius: 0;
    }

    .terminal-btn {
        width: 90%;
        margin: 1rem auto;
    }

    .blog-sidebar {
        order: 1;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .author-card {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .author-photo {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto 1.5rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .author-photo img {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto;
    }

    .author-name {
        font-size: 1.3rem;
        text-align: center;
    }

    .author-title {
        font-size: 0.9rem;
        text-align: center;
    }

    .sidebar-widget {
        padding: 1.2rem;
    }

    .widget-title {
        font-size: 1.1rem;
    }

    .tech-stack {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .tech-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 2rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .section-content {
        padding: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-method {
        padding: 1.5rem;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .post-title {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .title-highlight {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .terminal {
        width: 95%;
        height: 70vh;
        top: 55%;
    }

    .welcome-post {
        padding: 1.5rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .post-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .post-content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

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

    .code-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .code-block {
        max-width: 100%;
        overflow-x: auto;
    }

    .hello-world {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }

    .cta-section {
        max-width: 100%;
        overflow-x: hidden;
    }

    .cta-section h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }

    .cta-section p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Sobre mim mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card {
        max-width: 100%;
        overflow-x: hidden;
    }

    .about-card p,
    .about-card ul {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .blog-layout {
        max-width: 100%;
        overflow-x: hidden;
    }

    .blog-content {
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .author-photo {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 1rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .author-photo img {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto;
    }

    .author-name {
        font-size: 1.1rem;
        text-align: center;
    }

    .author-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .social-links {
        gap: 0.8rem;
        justify-content: center;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }
    
    .post-title {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .title-highlight {
        font-size: 1.8rem;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
    }

    .welcome-post {
        padding: 1.5rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .code-block {
        font-size: 0.75rem;
        overflow-x: auto;
    }

    .code-line {
        padding: 0.3rem 0.5rem;
    }

    .terminal {
        width: 98%;
        height: 80vh;
        border-radius: 5px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .contact-icon {
        font-size: 2rem;
        padding: 0.8rem;
    }

    .cta-btn {
        font-size: 0.9rem;
        padding: 0.8rem;
        white-space: normal;
    }

    .section {
        padding: 1.5rem 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .blog-layout {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0 0.5rem;
    }

    .blog-sidebar {
        max-width: 100%;
        overflow-x: hidden;
    }

    .blog-content {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Code Run Button */
.run-btn {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.run-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Code Execution Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--primary-color);
    margin: 10% auto;
    padding: 0;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-header {
    background: var(--gradient);
    color: var(--secondary-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--secondary-color);
    opacity: 0.8;
}

.modal-body {
    padding: 1.5rem;
    background: var(--primary-color);
    border-radius: 0 0 8px 8px;
}

#codeOutput {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

#codeOutput canvas {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* About Section Styling */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* About Section Subsections - Clean Design */
.journey-section,
.tech-stack-section,
.work-experience-section,
.personal-touch-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.journey-section:last-child,
.tech-stack-section:last-child,
.work-experience-section:last-child,
.personal-touch-section:last-child {
    border-bottom: none;
}

.journey-section h3,
.tech-stack-section h3,
.work-experience-section h3,
.personal-touch-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.journey-section h3::before,
.tech-stack-section h3::before,
.work-experience-section h3::before,
.personal-touch-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

.skills-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.personal-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.personal-info h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.personal-info h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

.personal-info ul {
    list-style: none;
    padding: 0;
}

.personal-info li {
    padding: 0.8rem 0;
    font-size: 1rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.personal-info li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Project Modal Specific Styles */
#project-modal {
    display: none;
    position: fixed;
    z-index: 10000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95) !important;
    overflow-y: auto;
    padding: 20px;
}

#project-modal .modal-content {
    background: transparent !important;
    margin: 0 auto;
    padding: 0;
    border: none !important;
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 10001 !important;
}

#project-modal .close {
    position: fixed;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 107, 53, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

#project-modal .close:hover {
    background: #ff6b35;
    transform: scale(1.1);
}

/* Modal body must be visible */
#modal-body {
    width: 100% !important;
    min-height: 200px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10002 !important;
}

#modal-body > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#modal-body * {
    visibility: visible !important;
    opacity: 1 !important;
}