/* Reset e Variáveis */
:root {
    --color-background: #ffffff;
    --color-surface: #f6f6f4;
    --color-text-primary: #111111;
    --color-text-secondary: #595959;
    --color-accent: #111111;
    --color-accent-hover: #3a3a3a;
    --color-border: #e3e3e0;
    --header-height: 76px;
    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-body: 'Heebo', 'Helvetica Neue', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fade: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-background: #0a0a0a;
    --color-surface: #161616;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #a3a3a3;
    --color-accent: #ffffff;
    --color-accent-hover: #d9d9d9;
    --color-border: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(10, 10, 10, 0.9);
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: var(--color-text-primary);
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.header.scrolled .nav-menu a {
    color: var(--color-text-primary);
}

.nav-menu a:hover {
    opacity: 1;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    margin-left: auto;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .header.scrolled .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
    position: absolute;
    color: #ffffff;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.header.scrolled .theme-toggle svg {
    color: var(--color-text-primary);
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition-smooth), background-color 0.3s ease;
}

.header.scrolled .menu-toggle span {
    background: var(--color-text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--header-height) 22px 100px;
    background:
        linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.7)),
        url('assets/laptop.png') center / cover no-repeat fixed;
    color: #ffffff;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 11vw, 118px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 44px;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background: #ffffff;
    color: #111111;
}

.social-links {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 48px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: #ffffff;
}

.scroll-indicator svg {
    animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Sections */
.section {
    padding: 120px 22px;
    scroll-margin-top: var(--header-height);
}

.container {
    max-width: 980px;
    margin: 0 auto;
}

.container-small {
    max-width: 692px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 72px;
}

/* About Section */
.about-section {
    background: var(--color-surface);
}

.about-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.about-content {
    max-width: 692px;
    margin: 0 auto;
}

.about-text p {
    font-size: 19px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    text-align: justify;
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--color-text-primary);
    font-weight: 500;
}

.about-skills {
    margin-top: 64px;
}

.about-skills h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] .skill-item:hover {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.04);
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
}

.skill-icon svg {
    width: 26px;
    height: 26px;
}

/* Quote Banner */
.quote-banner {
    padding: 170px 22px;
    text-align: center;
    background:
        linear-gradient(rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.75)),
        url('assets/laptop.jpg') center / cover no-repeat fixed;
}

.quote-banner-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.4;
    color: #ffffff;
    max-width: 820px;
    margin: 0 auto;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-background);
}

.timeline-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    padding: 24px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .timeline-content:hover {
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.05);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.timeline-header h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-current {
    flex-shrink: 0;
    padding: 4px 14px;
    border-radius: 2px;
    background: var(--color-accent);
    color: var(--color-background);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.timeline-role {
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    padding: 4px 12px;
    border-radius: 2px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-content {
    padding: 32px;
}

.project-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-display);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    opacity: 0.6;
}

.btn-secondary::after {
    content: ' →';
}

/* Contact Section */
.contact-section {
    background: var(--color-surface);
}

.contact-intro {
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 60px;
}

.contact-content {
    max-width: 500px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 0.6;
}

/* Footer */
.footer {
    padding: 40px 22px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-fade);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 2;
    }

    .theme-toggle {
        order: 1;
        margin-left: 0;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-background);
        padding: 32px 22px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        font-size: 15px;
        color: var(--color-text-primary);
        opacity: 1;
    }

    .hero {
        background-attachment: scroll;
        padding-bottom: 120px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .section {
        padding: 80px 22px;
    }

    .section-title {
        margin-bottom: 48px;
    }

    .about-text p {
        font-size: 17px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-banner {
        padding: 120px 22px;
        background-attachment: scroll;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-dot {
        left: -24px;
    }

    .timeline-content {
        padding: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 24px;
    }

    .contact-intro {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .about-text p {
        font-size: 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 18px;
    }
}
