:root {
    --primary-color: #ff0000;
    --secondary-color: #000000;
    --background-color: #111111;
    --light-color: #ffffff;
    --dark-color: #000000;
    --gray-color: #222222;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.red-text {
    color: var(--primary-color);
}

.dark-bg {
    background-color: var(--secondary-color);
}

.tech-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.tech-nav ul {
    display: flex;
    list-style: none;
}

.tech-nav ul li {
    margin-left: 30px;
}

.tech-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-nav ul li a:hover,
.tech-nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.tech-section {
    padding: 100px 5%;
    position: relative;
}

.full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tech-button {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.red-bg {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.red-bg:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.white-bg {
    background-color: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.white-bg:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -10px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.tech-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.about-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skill-item {
    background-color: var(--gray-color);
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s;
    border-left: 3px solid var(--primary-color);
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.skill-item p {
    color: var(--text-secondary);
}

.work-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-button {
    padding: 8px 20px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-button:hover,
.filter-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.work-overlay p {
    color: var(--light-color);
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
}

.work-overlay a {
    color: var(--light-color);
    font-size: 1.2rem;
    margin: 0 10px;
}

.work-filter {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 40px;
        }

        .filter-button {
            padding: 8px 20px;
            background-color: transparent;
            color: var(--text-color);
            border: 1px solid var(--text-color);
            border-radius: 30px;
            cursor: pointer;
            transition: 0.3s;
        }

        .filter-button:hover,
        .filter-button.active {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

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

        .work-item {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            height: 350px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .work-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
        }

        .work-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .work-item:hover img {
            transform: scale(1.1);
        }

        .work-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .work-item:hover .work-overlay {
            opacity: 1;
        }

        .work-overlay h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            text-align: center;
        }

        .work-overlay p {
            text-align: center;
            margin-bottom: 20px;
            color: #ccc;
        }

        .work-overlay .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 20px;
        }

        .tech-stack span {
            background: rgba(255, 0, 0, 0.2);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .work-overlay .btn-group {
            display: flex;
            gap: 15px;
        }

        .work-btn {
            display: inline-block;
            padding: 10px 25px;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background 0.3s;
        }

        .work-btn:hover {
            background: #e60000;
        }

        .work-btn.outline {
            background: transparent;
            border: 1px solid var(--primary-color);
        }

        .work-btn.outline:hover {
            background: rgba(255, 0, 0, 0.1);
        }


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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-color);
    color: var(--text-color);
    border-radius: 50%;
    transition: 0.3s;
}

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

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--gray-color);
    border: none;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.tech-footer {
    background-color: var(--dark-color);
    padding: 70px 5% 30px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-color);
    color: var(--text-color);
    border-radius: 50%;
    transition: 0.3s;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-color);
    padding-top: 20px;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .tech-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
    }
    
    .tech-nav.active {
        left: 0;
    }
    
    .tech-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .tech-nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Blog Styles */
.blog-main {
    padding-top: 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post {
    background-color: var(--gray-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    line-height: 1;
}

.date-day {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.post-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}

/* Single Post Styles */
.single-post .post-header {
    margin-bottom: 50px;
    text-align: center;
}

.single-post .post-meta {
    justify-content: center;
    margin-bottom: 30px;
}

.single-post h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.3;
}

.post-image-featured {
    max-height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.post-image-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content .intro {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-tags {
    margin: 50px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags span {
    font-weight: bold;
}

.post-tags a {
    color: var(--text-color);
    background-color: var(--gray-color);
    padding: 5px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.post-tags a:hover {
    background-color: var(--primary-color);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0;
}

.post-comments {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--gray-color);
}

.comment-list {
    margin: 30px 0;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-color);
}

.comment-author {
    min-width: 100px;
    text-align: center;
}

.comment-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.comment-author h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.comment-author span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-content {
    flex: 1;
}

.comment-content p {
    margin-bottom: 10px;
}

.comment-reply {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: bold;
}

.comment-form {
    margin-top: 50px;
}

.comment-form h3 {
    margin-bottom: 30px;
}

/* Syntax Highlighting */
pre {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
}

pre code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
    font-size: 0.9rem;
}

code {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-button:hover {
    background-color: #444;
}

/* Responsividade do Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post h1 {
        font-size: 2rem;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-author {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .comment-author img {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }
}