/* ============================================
   Reset e Base
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --aws-dark: #232f3e;
    --aws-orange: #ff9900;
    --aws-orange-dark: #ec7211;
    --bg-light: #f4f4f7;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #777;
    --border: #e5e5e7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    min-height: 100vh;
    padding: 20px;
}

/* ============================================
   Header
============================================ */
header {
    background: linear-gradient(135deg, var(--aws-dark) 0%, #1a2533 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

header h1 {
    font-size: 2.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.3em;
    color: var(--aws-orange);
    font-weight: 600;
    margin-bottom: 6px;
}

.tagline {
    font-size: 1em;
    color: #b8c4d6;
    margin-bottom: 24px;
}

/* ============================================
   Contact buttons
============================================ */
.contact-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}

.contact-btn:hover {
    background: var(--aws-orange);
    border-color: var(--aws-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.icon {
    font-size: 1.1em;
}

/* ============================================
   Main e seções
============================================ */
main {
    max-width: 1000px;
    margin: 0 auto;
}

section {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

section h2 {
    color: var(--aws-dark);
    font-size: 1.6em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--aws-orange);
    display: inline-block;
}

section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ============================================
   Skills grid
============================================ */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.skill-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--aws-orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.skill-card h3 {
    color: var(--aws-dark);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.95em;
    position: relative;
    padding-left: 18px;
}

.skill-card li::before {
    content: '▸';
    color: var(--aws-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ============================================
   Projects
============================================ */
.project-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--aws-orange);
    transition: all 0.2s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.project-header h3 {
    color: var(--aws-dark);
    font-size: 1.15em;
    flex: 1;
    min-width: 200px;
}

.status {
    font-size: 0.78em;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.status-done {
    background: #d4edda;
    color: #155724;
}

.status-progress {
    background: #fff3cd;
    color: #856404;
}

.status-planned {
    background: #e2e3e5;
    color: #495057;
}

.project-card p {
    color: var(--text-secondary);
    margin: 8px 0 12px 0;
    font-size: 0.95em;
}

.tech-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    background: white;
    color: var(--aws-dark);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid var(--border);
}

.project-link {
    color: var(--aws-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--aws-orange-dark);
}

.project-link.disabled {
    color: var(--text-muted);
    pointer-events: none;
    cursor: default;
}

/* ============================================
   Footer
============================================ */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9em;
}

footer p {
    margin: 4px 0;
}

.copyright {
    font-size: 0.85em;
    opacity: 0.7;
}

/* ============================================
   Responsividade (mobile)
============================================ */
@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    section {
        padding: 24px 20px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
