* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2c3e50;
    background: #f8f9fa;
    line-height: 1.6;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 0 30px 40px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-logo h2 {
    font-size: 20px;
    color: #3498db;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-logo span {
    font-size: 24px;
}

.sidebar nav {
    padding: 30px 0;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin: 8px 0;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 30px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 15px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    color: #3498db;
    background: #f0f7ff;
    border-left-color: #3498db;
}

.sidebar nav i {
    width: 20px;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    background: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #3498db;
    margin: 5px 0;
    transition: 0.3s;
}

.main-content {
    margin-left: 260px;
    padding: 60px;
    min-height: 100vh;
}

.hero {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0f7ff;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hero-content .subtitle {
    font-size: 24px;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #f0f7ff;
}

section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.sobre p {
    text-align: justify;
}

.habilidades p {
    color: #6c757d;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: #f0f7ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.skill-item i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #3498db;
}

.skill-item span {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.project-content p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 5px 12px;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    color: #3498db;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-view {
    background: white;
    color: #3498db;
    border: 2px solid #e9ecef;
}

.link-view:hover {
    border-color: #3498db;
}

.link-code {
    background: #3498db;
    color: white;
}

.link-code:hover {
    background: #2980b9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f7ff;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.contact-item .label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-item .value {
    display: block;
    color: #6c757d;
    font-size: 14px;
}

footer {
    margin-left: 260px;
    padding: 30px 60px;
    background: white;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #6c757d;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }

    .main-content,
    footer {
        margin-left: 0;
        padding: 40px 30px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    section {
        padding: 30px 25px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .subtitle {
        font-size: 18px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}