:root{
	--bg: #fcfcfc;
	--text: #1b1b1b;
	--muted: #666;
	--accent: #1b1b1b;
	--accent-hover: #1b1b1b;
	--text-hover: #1b1b1b;
	--hover-bg: #d0d0d0;
	--container: 1300px;
}

* {
  padding: 0;
  box-sizing: border-box;
}

/* Scroll margin for anchor links to account for fixed header */
#top,
#experience, 
#certifications,
#work,
#contact {
    scroll-margin-top: 100px;
}

#about{
    scroll-margin-top: 20px;
}

/* Prevent horizontal scroll on mobile */
*:not(.contact), 
*:not(.contact):before, 
*:not(.contact):after {
    max-width: 100%;
}

/* Lenis smooth scroll */
html.lenis {
    height: auto;
    overflow: scroll;
}

html.lenis body {
    height: auto;
    overflow: visible;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html{
	height:100%;
	scroll-padding-top: 80px;
	/* Prevent horizontal scroll */
	overflow-x: hidden;
}
body{
	height:100%;
	margin:0;
    padding-top: 40px;
    padding-left: 40px;
    padding-right: 40px;
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	color:var(--text);
	background:var(--bg);
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Prevent horizontal scroll on mobile */
    max-width: 100%;
}
main{
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

/* Scroll reveal animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section initial animations */
.hero-left > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.hero-left > *:nth-child(1) { animation-delay: 0.1s; }
.hero-left > *:nth-child(2) { animation-delay: 0.2s; }
.hero-left > *:nth-child(3) { animation-delay: 0.3s; }
.hero-left > *:nth-child(4) { animation-delay: 0.4s; }
.hero-left > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container{max-width:var(--container);width:100%;margin:0 auto;padding:0px}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% + 80px);
    overflow: visible;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Grainy noise effect */
.hero-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 2000 2000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.5; /* Intensidade do ruído - ajuste entre 0 e 1 */
    mix-blend-mode: overlay; /* Modo de mesclagem - tente: multiply, overlay, soft-light */
    pointer-events: none;
    animation: noise 1s infinite alternate; /* Velocidade da animação */
}

@keyframes noise {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(1px, 1px);
    }
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.site-header {
    position: fixed;
    z-index: 999;
    width: 100%;
    padding: 12px 40px;
    background: var(--accent);
    left: 0;
    right: 0;
    top: 0;
    box-sizing: border-box;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    gap: 32px;
}

.nav-left a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.25rem;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
    transition: all 0.2s ease;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--hover-bg);
    transform: rotate(-2deg);
}

.nav-right {
    display: flex;
    gap: 32px;
}

.nav-right a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.25rem;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
    transition: all 0.2s ease;
}

.nav-right a img {
    width: 20px !important;
    height: 20px !important;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 40px;
}
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
}

.hero-profile-pic {
    width: auto;
    height: 450px;
    object-fit: cover;
    flex-shrink: 0;
}

.eyebrow {
    color: var(--text);
    font-size: 24px;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: normal;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

h1 {
    margin: 0;
    font-size: 80px;
    color: var(--accent);
    line-height: 1.2;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
}
.hero-lead {
    font-size: 20px;
    color: var(--text);
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: normal;
    line-height: normal;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
    position: relative;
    z-index: 10;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.btn.primary {
    background: var(--accent);
    color: #fff;
}

/* Hand-drawn style for My work button */
.btn.primary[href="#work"] {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 0;
    padding: 12px 20px;
    font-weight: 400;
    font-family: 'Delicious Handrawn', cursive;
    font-size: 20px;
    position: relative;
    transform: rotate(-1deg);
    box-shadow: none;
    letter-spacing: 0.5px;
    
    /* Hand-drawn border effect */
    border-style: solid;
    background-image: none;
    
    /* Subtle animation */
    transition: all 0.3s ease;
}

.btn.primary[href="#work"]:hover {
    transform: rotate(1deg) scale(1.05);
    background: #fff;
    color: var(--accent);
    box-shadow: none;
    border: 2px solid var(--accent);
}

.btn.primary:hover {
    background: var(--hover-bg);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure regular primary buttons still work normally */
.btn.primary:not([href="#work"]):hover {
    background: var(--hover-bg);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn.ghost {
    background: transparent;
    border-color: #696969;
}

/* Hand-drawn style for ghost/secondary buttons */
.btn.ghost {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 0;
    padding: 12px 20px;
    font-weight: 400;
    font-family: 'Delicious Handrawn', cursive;
    font-size: 20px;
    position: relative;
    transform: rotate(0.5deg);
    box-shadow: none;
    letter-spacing: 0.3px;
    
    transition: all 0.3s ease;
}

.btn.ghost:hover {
    transform: rotate(-0.5deg) scale(1.03);
    background: #fff;
    color: var(--accent);
    box-shadow: none;
    border: 2px solid var(--accent);
}

/* Legacy hover - now integrated into hand-drawn style above */
.btn img {
    width: 16px;
    height: 16px;
}

/* Resume Dropdown */
.resume-dropdown {
    position: relative;
    display: inline-block;
    z-index: 10000;
}

.resume-toggle {
    cursor: pointer;
    position: relative;
    z-index: 10001;
}

.resume-toggle svg {
    transition: transform 0.3s ease;
}

.resume-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.resume-toggle[aria-expanded="true"] {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none;
    transform: rotate(-0.5deg) scale(1.03);
}

.resume-menu {
    position: absolute;
    top: 0px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 0;
    box-shadow: none;
    width: auto;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0px) rotate(1deg);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10002;
    left: 0;
}

.resume-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(54px) rotate(-1deg);
    width: auto !important;
    min-width: 200px !important;
}

/* Alinhamento dinâmico quando o dropdown está muito à direita */
.resume-menu.align-right {
    left: auto;
    right: 0;
}

.resume-menu-header {
    padding: 12px 16px 8px;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Delicious Handrawn', cursive;
    text-transform: none;
    color: var(--accent);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.resume-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
    transition: background 0.2s ease;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    gap: 12px;
}

.resume-menu-item img,
.resume-menu-item span {
    display: inline-block;
}

.resume-menu-item img {
    order: 1;
}

.resume-menu-item span {
    order: 2;
    flex: 1;
}

.resume-menu-item svg {
    order: 3;
}

.resume-menu-item:hover {
    background: rgba(27, 27, 27, 0.08);
}

.resume-menu-item:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    background: rgba(27, 27, 27, 0.06);
}

.resume-menu-item img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
}

.resume-menu-item svg {
    width: 16px;
    height: 16px;
    color: var(--text);
    opacity: 0.6;
    flex-shrink: 0;
}

.about-text p:first-child {
    margin-top: 0;
}

.tech-strip {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    background: transparent;
    margin-top: 40px;
}
.tech-icons {
    display: none;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    gap: 40px;
    max-width: var(--container);
    width: 100%;
    padding: 0px;
    z-index: 1;
}
.tech-icons img {
    height: 48px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .tech-icons {
        gap: 24px;
        justify-content: start;
    }
    .tech-icons img {
        height: 40px;
    }
}

/* light divider between major sections */
.about, .experience {
    border-bottom: 1px solid #d4d4d4;
    padding-bottom: 80px;
    margin-bottom: 80px;
}

/* About */
.about {
    display: flex; 
    flex-direction: column; 
    gap: 24px;
    margin-bottom: 80px;
    width: 100%;
    border-top: 1px solid #d4d4d4;
    padding-top: 80px;
}

.about-card {
    background: white;
    border-radius: 0;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: rotate(0.3deg) scale(1.02);
}

.about-inner {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    width: 100%;
    padding: 32px;
}
.about-text {
    flex: 1;
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.6;
}
.about-text strong {
    font-weight: 500;
}
.about-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--text);
}
.tools-icons {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-around;
}
.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.tool-item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.tool-item:hover img {
    transform: scale(1.1);
}
.tool-name {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    text-align: center;
    font-family: 'Manrope', sans-serif;
}
.about-image {
    flex-shrink: 0;
}
.about-image img {
    width: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Hero Carousel Section */
.hero-carousel {
    margin-top: 60px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-carousel.visible {
    opacity: 1;
}

.companies-title {
    text-align: left;
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    line-height: normal;
}

/* Companies Carousel */
.companies-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-top: 0;
    z-index: -1;
    /* Improve performance on mobile */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.carousel-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 32px 0;
    font-family: 'Manrope', sans-serif;
}

.companies-carousel::before,
.companies-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.companies-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.companies-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 80px;
    animation: scroll-left 20s linear infinite;
    width: fit-content;
    /* Improve performance */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.company-logo {
    height: 48px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .carousel-track {
        animation: scroll-left 40s linear infinite;
    }
    
    @media (max-width: 900px) {
        .carousel-track {
            animation: scroll-left 30s linear infinite;
        }
    }
}

/* Section headers */
.about h2,
.experience h2,
.certifications h2,
.work h2 {
  font-size: 46px;
  color: var(--accent);
  font-weight: 400;
  font-family: 'Delicious Handrawn', cursive;
  line-height: 1.3;
}

/* Experience */
.experience{display:flex; flex-direction: column; gap: 24px;}
.exp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 10;
}
.exp-head h2 {
    margin: 0;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
}
.exp-resume-btn {
    margin-left: auto;
    margin-bottom: 0;
    display: inline-flex;
}

.cert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 10;
}
.cert-head h2 {
    margin: 0;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
}

.section-icon {
    height: 32px;
    width: auto;
    vertical-align: baseline;
    margin-right: 12px;
    margin-top: -2px;
}

.cert-resume-btn {
    margin-left: auto;
    margin-bottom: 0;
    display: inline-flex;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  background: white;
  border-radius: 0;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
  transform: rotate(0.6deg);
  transition: transform 0.3s ease;
}

.timeline-item:nth-child(even) {
  transform: rotate(-0.6deg);
}

.timeline-item:hover {
  transform: rotate(-0.2deg) scale(1.02);
}

.timeline-item:nth-child(even):hover {
  transform: rotate(0.2deg) scale(1.02);
}

.timeline-item:not(:last-child) {
  margin-bottom: 0;
}

.timeline-right {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline-right h3 {
  font-size: 28px;
  line-height: 1.3;
  margin: 0;
  padding: 24px 32px 12px 32px;
  color: var(--accent);
  font-weight: 400;
  font-family: 'Delicious Handrawn', cursive;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.date-tag {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  background: white;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.timeline-right h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0 32px 24px 32px;
  background: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

.timeline-right h4 img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.timeline-right .description {
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--text);
  padding: 32px;
}

.timeline-right .description p {
  margin: 0 0 16px;
}

.timeline-right .description p strong {
  font-size: 18px;
}

.timeline-right .description strong {
  font-weight: 500;
}

.timeline-right .description ul {
  list-style-type: none;
  padding: 0;
  margin: 0 0 16px;
}

.timeline-right .description ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.timeline-right .description ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-hover);
  font-weight: bold;
}

.timeline-right .description ul li:last-child {
  margin-bottom: 0;
}

/* Achievements Stats */
.achievements-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: left;
    padding: 24px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    display: inline-block;
}

.stat-item:nth-child(1) .stat-number {
    width: 33px;
}

.stat-item:nth-child(2) .stat-number {
    width: 121px;
}

.stat-item:nth-child(3) .stat-number {
    width: 149px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 900px) {
    .achievements-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 48px;
    }
}

/* Certifications */
.certifications {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 80px;
}

.certifications-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cert-bento-card {
    background: white;
    border-radius: 0;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cert-bento-card:nth-child(1) {
    transform: rotate(-0.5deg);
}

.cert-bento-card:nth-child(2) {
    transform: rotate(0.7deg);
}

.cert-bento-card:nth-child(3) {
    transform: rotate(-0.3deg);
}

.cert-bento-card:nth-child(4) {
    transform: rotate(0.4deg);
}

.cert-bento-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.cert-bento-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 24px 32px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.cert-logo {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.cert-bento-header h3 {
    font-size: 28px;
    font-weight: 400;
    font-family: 'Delicious Handrawn', cursive;
    color: var(--accent);
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

.cert-list {
    list-style: none;
    padding: 32px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-list li {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--text);
    padding-left: 16px;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cert-list li a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
    flex: 1;
    cursor: pointer;
}

.cert-list li a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.cert-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-hover);
    font-weight: bold;
}

.cert-list .year {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: auto;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.cert-list .org {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .cert-bento-header {
        padding: 20px;
    }
    
    .cert-bento-header h3 {
        font-size: 22px;
        font-family: 'Delicious Handrawn', cursive;
        font-weight: 400;
    }
    
    .cert-logo {
        height: 32px;
    }
    
    .cert-list {
        padding: 20px;
    }
    
    .cert-list li {
        font-size: 1rem;
    }
}

/* Work */
.work {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-top: 1px solid #d4d4d4;
    padding-top: 80px;
}

.work-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 10;
}
.work-head h2 {
    margin: 0;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
}
.work-resume-btn {
    margin-left: auto;
    margin-bottom: 0;
    display: inline-flex;
}
@media (max-width: 900px) {
    .exp-resume-btn, .work-resume-btn {
        margin-left: 0;
        margin-bottom: 0;
        width: fit-content;
        max-width: 100%;
    }
}

/* Work Section - Inline Cards */
.work-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    flex: 1;
    background: white;
    border-radius: 0;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-out;
    will-change: transform;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-card:nth-child(1) {
    transform: rotate(-0.4deg);
}

.work-card:nth-child(2) {
    transform: rotate(0.6deg);
}

.work-card:nth-child(3) {
    transform: rotate(-0.2deg);
}

.work-card:nth-child(4) {
    transform: rotate(0.3deg);
}

.work-card:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.02);
}

.work-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.work-card-content h3 {
    font-size: 32px;
    color: var(--accent);
    margin: 0;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
    line-height: 1.3;
}

.work-card-content p {
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    flex: 1;
    margin: 0;
}

.work-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.work-tags span {
    border: 1px solid var(--text);
    padding: 3px 8px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 12px;
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.work-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    margin-top: auto;
    transition: border-bottom-color 0.2s ease;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
}

.work-card:hover .work-link {
    border-bottom-color: var(--accent);
}

.work-link:hover {
    color: var(--text-hover);
}

/* Responsive for Work Section */
@media (max-width: 900px) {
    .work-projects {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .work-card {
        transform: rotate(-0.3deg);
    }
    
    .work-card:nth-child(even) {
        transform: rotate(0.3deg);
    }
    
    .work-card-image {
        height: 180px;
    }
    
    .work-card-content {
        padding: 20px;
    }
}

/* Contact */
.contact {
	background: var(--accent) !important;
	width: 100vw !important;
	position: relative !important;
	padding: 80px 40px !important;
	box-sizing: border-box !important;
	/* Additional properties to ensure full width */
	max-width: none !important;
	min-width: 100vw !important;
}

@media (max-width: 900px) {
    .contact {
        padding: 80px 20px;
    }
}

.contact > .container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
	max-width: 1300px;
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.contact-left {
	max-width: 714px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.contact-left h2 {
	margin: 0;
	color: #FFFFFF;
	font-family: 'Delicious Handrawn', cursive;
	font-weight: 400;
	font-size: 46px;
	line-height: 1.3;
}

.contact-left p {
	font-size: 1.125rem;
	margin: 0;
	color: #FFFFFF;
}

.contact-nav{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: fit-content;
}
.contact-right{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: fit-content;
}
.contact-item{
    font-size:1.25rem;
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
    transition: all 0.2s ease;
    width: fit-content;
}
.contact-item:hover {
    color: var(--hover-bg);
    transform: rotate(-2deg);
}

/* Footer */
.copyright {
    text-align: center;
    width: 100%;
    margin: 40px 0 0 0;
    font-size: 0.875rem;
    color: #FFFFFF;
    opacity: 0.6;
}

.site-footer{padding:0;text-align:center;color:var(--muted)}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1000;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #FFFFFF;
    position: relative;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.menu-toggle span:first-child {
    margin-top: 0;
}


.menu-toggle span:nth-child(2) {
    top: 30% !important;
}
.menu-toggle span:last-child {
    margin-bottom: 0;
}

.menu-toggle.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: unset;
    bottom: 0;
    background-color: var(--bg);
    z-index: 1100;
    padding: 100px 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1), visibility 0.3s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
    width: auto;
    min-width: 260px;
    max-width: 340px;
    filter: none;
    transform: translateX(100%);
    pointer-events: auto;
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: block;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.12);
    z-index: 19;
    transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
    opacity: 0;
    pointer-events: none;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 900px) {
    .mobile-menu {
        display: block;
        right: 0;
        left: unset !important;
    }
}

/* Overlay para fundo ao abrir menu hamburguer */
.hero-inner.menu-open {
    z-index: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
    margin-top: -50px;
}

.mobile-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.375rem;
    font-family: 'Delicious Handrawn', cursive;
    font-weight: 400;
    transition: all 0.2s ease;
    width: fit-content;
}

.mobile-nav a:hover {
    color: #d0d0d0;
    transform: rotate(2deg);
}

/* Responsive */
@media (max-width: 900px) {

.hero{
    height: 120vh;
}

.hero-left {
    max-width: none;
}

.hero-carousel{
    margin-top: -100px;
}

    .companies-carousel {
        margin-top: 0;
    }

	.carousel-track {
        animation: scroll-left 8s linear infinite;
        /* Improve performance on mobile */
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }

    /* Further optimize for very small/slow devices */
    @media (max-width: 480px) {
        .carousel-track {
            animation: scroll-left 6s linear infinite;
            gap: 60px;
        }
        
        .company-logo {
            height: 40px;
            max-height: 40px;
        }
        
        .companies-carousel::before,
        .companies-carousel::after {
            width: 80px;
        }
    }

    .timeline .timeline-item:last-child .timeline-left .vertical-line{
    margin-bottom: 0;
}

    body{
        padding-left: 20px;
        padding-right: 20px;
        /* Ensure no horizontal overflow */
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .nav-left, 
    .nav-right {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* Ensure header doesn't cause horizontal overflow */
    .site-header {
        padding: 12px 20px;
        width: 100%;
        left: 0;
        right: 0;
        margin: 0;
    }

    .mobile-menu {
        display: block;
        right: 0;
        left: unset !important;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        height: auto;
        justify-content: center;
        transform: translateY(-120px);
        gap: 0px;
    }

    .hero-profile-pic {
        height: 300px;
        order: -1;
        align-self: center;
    }

    h1 {
        font-size: 60px;
    }

    /* About section mobile styles */
    .about {
        gap: 32px;
    }
    
    .about-inner {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .about-image {
        max-width: 40%;
        min-width: 240px;
        order: -1;
        padding: 0;
    }

    .about-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    .about-text {
        font-size: 1.125rem;
    }

    .about-text p:first-child {
    margin-top: 0;
    }

    /* Experience section mobile styles */
    .exp-head {
        align-items: flex-start;
        gap: 16px;
    }

    .timeline {
        gap: 40px;
    }
    
    .timeline-right h3 {
        font-size: 24px;
        padding: 20px 20px 12px 20px;
        font-family: 'Delicious Handrawn', cursive;
        font-weight: 400;
    }
    
    .timeline-right h4 {
        font-size: 18px;
        padding: 0 20px 20px 20px;
        font-family: 'Manrope', sans-serif;
        font-weight: 600;
    }
    
    .timeline-right h4 img {
        width: 32px;
        height: 32px;
    }
    
    .timeline-right .description {
        padding: 20px;
    }

    .timeline-right .experience-entry {
        margin-bottom: 0px;
    }

    /* Project section mobile styles */
    .project-image img {
        width: 100%;
    }

    .project {
        flex-direction: column;
    }

    .project.reverse {
        flex-direction: column;
    }

    .about-image img {
        width: 100%;
    }

    .contact {
        flex-direction: column;
    }

    .contact-right {
        padding-left: 0;
    }
}

/* Additional mobile adjustments for smaller screens */
@media (max-width: 480px) {
    /* Ensure all elements stay within viewport */
    *, *:before, *:after {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Reduce body padding on very small screens */
    body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header {
        padding: 12px 16px;
    }

    .contact {
        padding: 80px 16px;
    }

    .timeline-item {
        gap: 12px;
    }

    .exp-head .btn {
        width: 100%;
        justify-content: center;
    }

    .cert-head .btn {
        width: 100%;
        justify-content: center;
    }

        .exp-head, .work-head, .cert-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* Carousel Focus Styles */
.carousel:focus {
    outline: none !important;
    box-shadow: none !important;
}

.carousel.focused::after {
    display: none !important;
}


