/* ========================================
   CSS Variables - Paleta de Amarelos
   ======================================== */
:root {
    /* Cores Principais */
    --primary-gold: #D4A017;
    --primary-yellow: #F5C542;
    --primary-light: #FFD700;
    --accent-gold: #B8860B;
    --accent-bronze: #CD7F32;

    /* Backgrounds */
    --bg-cream: #FFFEF0;
    --bg-light-yellow: #FFF8DC;
    --bg-pale: #FFFACD;
    --bg-warm: #FFEAA7;
    --bg-dark: #2C2416;

    /* Texto */
    --text-dark: #3A2F1F;
    --text-medium: #6B5B3C;
    --text-light: #8B7355;
    --text-white: #FFFFFF;

    /* Gradientes */
    --gradient-gold: linear-gradient(135deg, #F5C542 0%, #D4A017 100%);
    --gradient-warm: linear-gradient(135deg, #FFD700 0%, #F5C542 50%, #D4A017 100%);
    --gradient-subtle: linear-gradient(180deg, #FFFEF0 0%, #FFF8DC 100%);

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(212, 160, 23, 0.1);
    --shadow-md: 0 4px 16px rgba(212, 160, 23, 0.15);
    --shadow-lg: 0 8px 32px rgba(212, 160, 23, 0.2);
    --shadow-xl: 0 16px 48px rgba(212, 160, 23, 0.25);

    /* Tipografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 254, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-subtle);
    padding: 8rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 197, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 160, 23, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-gold);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-gold);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeIn 0.8s ease 1s both;
}

.hero-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--primary-gold);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.hero-social a:hover {
    background: var(--gradient-gold);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary-gold), transparent);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(245, 197, 66, 0.15);
    color: var(--primary-gold);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    font-weight: 700;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: white;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-subtle);
    border-radius: 16px;
    transition: var(--transition-base);
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.highlight-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
}

.highlight-label {
    color: var(--text-medium);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ========================================
   Experience Timeline
   ======================================== */
.experience {
    background: var(--gradient-subtle);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

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

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border: 4px solid var(--bg-cream);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.highlight .timeline-marker {
    width: 24px;
    height: 24px;
    left: -10px;
    background: var(--gradient-gold);
    box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.3);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline-period {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-medium);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-description {
    list-style: none;
    margin-bottom: 1.5rem;
}

.timeline-description li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-medium);
}

.timeline-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: 700;
}

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

.tag {
    padding: 0.4rem 1rem;
    background: rgba(245, 197, 66, 0.15);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    background: white;
}

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

.project-card {
    background: var(--gradient-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    grid-column: span 2;
    background: white;
    border: 2px solid var(--primary-light);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-gold);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-link:hover {
    transform: translateX(4px);
}

/* ========================================
   Skills Section
   ======================================== */
.skills {
    background: var(--gradient-subtle);
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: 700;
}

.certifications {
    margin-top: 4rem;
    text-align: center;
}

.certifications-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.cert-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    font-size: 2rem;
}

.cert-text {
    text-align: left;
    color: var(--text-medium);
    font-weight: 500;
}

/* ========================================
   Education Section
   ======================================== */
.education {
    background: white;
}

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

.education-card {
    background: var(--gradient-subtle);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition-base);
    border-left: 4px solid var(--primary-gold);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.education-year {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.education-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-institution {
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--gradient-gold);
    color: white;
}

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

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
    min-width: 300px;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(8px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--bg-light-yellow);
    padding: 3rem 0;
    text-align: center;
}

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

.footer-subtitle {
    margin-top: 0.5rem;
    opacity: 0.7;
    font-size: 0.95rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
    }

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

    .hamburger {
        display: flex;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline-marker {
        left: 2px;
    }

    .timeline-item.highlight .timeline-marker {
        left: 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .timeline-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .contact-method {
        min-width: auto;
        width: 100%;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .hero-cta,
    .hero-social,
    .hero-scroll,
    .contact,
    .footer {
        display: none;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}