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

:root {
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-bg: rgba(124, 58, 237, 0.2);
    --bg-2: #0a0a0a;
    --card: #1a1a1a;
    --bg:            #0a0a0f;
      --bg2:           #111118;
      --bg3:           #16161f;
      --accent:        #b48ef5;
      --accent2:       #7c5cbf;
      --accent-glow:   rgba(180,142,245,.18);
      --accent-glow2:  rgba(180,142,245,.07);
      --text:          #e8e4f0;
      --text-muted:    #8b859e;
      --text-dim:      #534e62;
      --border:        rgba(180,142,245,.12);
      --border-strong: rgba(180,142,245,.28);
      --accent-light: #a78bfa;
      --accent-bg: rgba(124, 58, 237, 0.2);
      --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html { scroll-behavior: smooth; }
 
body{background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-weight:300;min-height:100vh;overflow-x:hidden}
body::before{content:'';position:fixed;inset:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");pointer-events:none;z-index:0;opacity:.5}



.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);
}

    /* NAV */
     /* ── HEADER ── */
header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.445);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration:none
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);text-decoration: none;font-size: .88rem;transition: color 0.3s;white-space: nowrap;text-decoration:none;text-transform:uppercase;letter-spacing:.04em;text-transform:uppercase;transition:color .2s}
.nav-links a:hover,.nav-links a.active{color:var(--accent)}
.nav-back{display:flex;align-items:center;gap:.5rem;color:var(--text-muted);text-decoration:none;font-size:.85rem;transition:color .2s,gap .2s}
.nav-back:hover{color:var(--accent);gap:.8rem}
.nav-links a:hover { color: var(--accent-light); }

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px 5px;
    cursor: pointer;
    transition: border-color 0.3s;
    user-select: none;
    flex-shrink: 0;
}

.lang-toggle:hover { border-color: var(--accent); }

.lang-option {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.3s;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.lang-option.active {
    background: var(--grad);
    color: #fff;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger:hover { background: var(--card); }

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(10,10,10,0.98);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-nav.open {
    max-height: 400px;
    padding: 8px 0;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 14px clamp(16px, 5vw, 40px);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
    display: block;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--card); color: var(--accent-light); }

/* ── HERO ── */
/* ── HERO ── */
.hero {
    min-height: calc(100vh - 57px);
    display: flex;
    align-items: center;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.hero-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    width: 100%;
}

.hero-center {
    text-align: center;
}

.hero-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-photo {
    width: clamp(260px, 32vw, 420px);
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.35));
}

/* Redes sociais */
.hero-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 10px;
    background: none;
    border: none;
    backdrop-filter: none;
    content: '';
    width: 1px;
    height: 300px;
}
.hero-socials::before,
.hero-socials::after {
    display: none;
}
    

.hero-socials::after {
    background: linear-gradient(180deg, var(--accent), transparent);
}

.hero-socials a {
     width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.25),
                inset 0 0 8px rgba(124, 58, 237, 0.1);
}

.hero-socials a:hover {
     background-color: rgba(124, 58, 237, 0.4);
    border-color: var(--accent-light);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5),
                inset 0 0 12px rgba(124, 58, 237, 0.2);
    transform: scale(1.1);
}

.hero-center h1{font-family:'Syne',sans-serif;
    font-weight:600;
    font-size:clamp(3rem,7vw,5.5rem);
    line-height:1;
    letter-spacing:-.04em;
    animation:fadeUp .6s .1s ease both
}
.highlight{
    font-style:normal;
    color:transparent;
    -webkit-text-stroke:1px var(--accent)
}

.hero h2 {
    font-size: clamp(18px, 4vw, 32px);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero p {
    max-width: 580px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: clamp(14px, 2.5vw, 16px);
    padding: 0 10px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
}

.btn {
    padding: clamp(11px, 2vw, 15px) clamp(22px, 4vw, 40px);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: clamp(13px, 2vw, 16px);
    white-space: nowrap;
    display: inline-block;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124,58,237,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--accent);
}

.btn-secondary:hover { background-color: var(--accent-bg); }


/* ── ABOUT ── */
.about { padding: clamp(50px, 8vw, 90px) 0; }

.about h2 {
    font-size: clamp(26px, 5vw, 44px);
    margin-bottom: 30px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: clamp(14px, 2vw, 16px);
}

.about-graphic {
    position: relative;
    height: clamp(220px, 35vw, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 70%;
    border-radius: 40% 0% 40% 1%;
    background: var(--grad);
    opacity: 0.8;
    animation: float 40s ease-in-out infinite;
}

.particle:nth-child(1){width:40px;height:40px;top:10%;left:20%;animation-delay:0s}
.particle:nth-child(2){width:28px;height:28px;top:30%;right:10%;animation-delay:1s}
.particle:nth-child(3){width:50px;height:50px;bottom:20%;left:30%;animation-delay:2s}
.particle:nth-child(4){width:22px;height:22px;top:50%;right:25%;animation-delay:3s}
.particle:nth-child(5){width:35px;height:35px;bottom:30%;right:40%;animation-delay:4s}

@keyframes float {
    0%,100%{transform:translateY(0) scale(1)}
    50%{transform:translateY(-20px) scale(1.1)}
}

/* ── SKILLS ── */
.skills {
    padding: clamp(50px, 8vw, 90px) 0;
    background-color: var(--bg-2);
}

.skills h2 {
    font-size: clamp(26px, 5vw, 44px);
    margin-bottom: 40px;
}

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

.skill-card {
    background-color: var(--card);
    padding: clamp(18px, 3vw, 30px);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.skill-card h3 {
    font-size: clamp(15px, 2.5vw, 20px);
    margin-bottom: 14px;
    color: var(--accent);
}

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

.tag {
    padding: 6px 12px;
    background-color: var(--accent-bg);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: clamp(11px, 1.8vw, 14px);
    color: var(--accent-light);
}

/* ── EXPERIENCE ── */
.experience { padding: clamp(50px, 8vw, 90px) 0; }

.experience h2 {
    font-size: clamp(26px, 5vw, 44px);
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding-left: clamp(38px, 6vw, 56px);
}

.timeline::before {
    content: '';
    position: absolute;
    left: clamp(15px, 2.5vw, 22px);
    top: 0; bottom: 0;
    width: 2px;
    background: var(--grad);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    background-color: var(--card);
    padding: clamp(18px, 3vw, 30px);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.timeline-dot {
    position: absolute;
    left: clamp(-27px, -4vw, -34px);
    top: 22px;
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    background: var(--grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(9px, 1.5vw, 12px);
    font-weight: bold;
}

.timeline-item h3 {
    font-size: clamp(15px, 2.5vw, 20px);
    margin-bottom: 4px;
}

.timeline-item .company {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: clamp(12px, 2vw, 15px);
}

.timeline-item p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: clamp(13px, 2vw, 15px);
}

/* ── PROJECTS ── */
.projects {
    padding: clamp(50px, 8vw, 90px) 0;
    background-color: var(--bg-2);
}

.projects h2 {
    font-size: clamp(26px, 5vw, 44px);
    margin-bottom: 10px;
    text-align: center;
}

.projects-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: clamp(13px, 2vw, 15px);
    padding: 0 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 22px;
}

.project-card {
    background-color: var(--card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover { transform: translateY(-5px); }

.project-image {
    width: 100%;
    height: clamp(140px, 22vw, 200px);
    background: var(--grad);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* preenche sem distorcer, cortando as bordas */
    display: block;
} 

.project-image::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%,100%{transform:translate(-50%,-50%)}
    50%{transform:translate(50%,50%)}
}

.project-content {
    padding: clamp(14px, 3vw, 25px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: clamp(15px, 2.5vw, 22px);
    margin-bottom: 8px;
}

.project-content > p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: clamp(12px, 1.8vw, 14px);
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.project-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    flex-shrink: 0;
}

.icon-btn:hover { background-color: var(--border); border-color: var(--accent); }

/* ── CONTACT ── */
.contact { padding: clamp(50px, 8vw, 90px) 0; }

.contact h2 {
    font-size: clamp(26px, 5vw, 44px);
    margin-bottom: 40px;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-form h3 {
    font-size: clamp(17px, 3vw, 24px);
    margin-bottom: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: var(--text-muted);
    font-size: clamp(12px, 1.8vw, 14px);
}

.form-group input,
.form-group textarea {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    color: #fff;
    font-size: clamp(14px, 2vw, 16px);
    font-family: inherit;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }

.form-group textarea { min-height: 110px; resize: vertical; }

.contact-info h3 {
    font-size: clamp(17px, 3vw, 24px);
    margin-bottom: 14px;
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 22px;
    font-size: clamp(13px, 2vw, 15px);
}

.contact-info ul {
    list-style: none;
    margin-bottom: 22px;
}

.contact-info li {
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: clamp(13px, 2vw, 15px);
}

.contact-info li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px; height: 44px;
    border-radius: 8px;
    background-color: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}
/* ── FOOTER ── */
footer {
    position: relative;
    background-color: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 30px 0 28px;
    overflow: visible;
}

.footer-character {
    position: absolute;
    bottom: 100%;           
    left: clamp(16px, 5vw, 80px);
    width: clamp(80px, 12vw, 140px);
    pointer-events: none;
    user-select: none;
}

.footer-character img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 -4px 12px rgba(124, 58, 237, 0.3));
}

.footer-content {
    display: flex;
    justify-content: center; 
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copy,
.footer-made {
    color: var(--text-muted);
    font-size: clamp(12px, 1.8vw, 14px);
}

.footer-made { color: var(--accent-light); }

/* ── RESPONSIVE ── */

/* ≤ 820px: switch to hamburger */
@media (max-width: 820px) {
    .nav-links   { display: none; }
    .hamburger   { display: flex; }
    .mobile-nav  { display: flex; }

    .about-content { grid-template-columns: 1fr; }
    .about-graphic { height: 200px; }
    .contact-content { grid-template-columns: 1fr; }
    .hero-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero-photo {
        width: clamp(160px, 50vw, 260px);
    }

    .hero-socials {
        flex-direction: row;
        border-radius: 50px;
        padding: 10px 16px;
    }

    .hero-socials::before,
    .hero-socials::after { display: none; }
}

/* ≤ 600px */
@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .skills-grid   { grid-template-columns: 1fr; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-socials {
        flex-direction: row;
        justify-content: center;
    }

    .hero-socials::before,
    .hero-socials::after { display: none; }
}

/* ≤ 500px */
@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ≤ 400px */
@media (max-width: 400px) {
    .timeline { padding-left: 40px; }
    .timeline::before { left: 16px; }
    .timeline-dot { left: -24px; width: 30px; height: 30px; font-size: 9px; top: 18px; }
    .project-footer { gap: 8px; }
}


/* ====================================================
   INDEX PAGE - Hero layout overrides
   (shared.css handles base, this handles layout)
   ==================================================== */

.hero {
    min-height: calc(100vh - 57px);
    display: flex;
    align-items: center;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(124,58,237,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(102,126,234,.1) 0%, transparent 50%);
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(180,142,245,.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* override hero-label alignment for centered layout */
.hero-center .hero-label {
    align-self: center;
}

.hero h1 .highlight {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: clamp(18px, 4vw, 28px);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: .5rem;
    letter-spacing: -.01em;
}

.hero-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-photo {
    width: clamp(240px, 30vw, 400px);
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 0 30px rgba(124,58,237,.35));
}

/* hero-sub on center column: override max-width */
.hero-center .hero-sub {
    max-width: 520px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 10px;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* hero stats on index */
.hero-center .hero-stats {
    justify-content: center;
    margin-top: 2rem;
}

/* Hero socials */
.hero-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
}

.hero-socials a {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all .3s;
    font-size: 18px;
    box-shadow: 0 0 12px rgba(124,58,237,.25), inset 0 0 8px rgba(124,58,237,.1);
}

.hero-socials a:hover {
    background-color: rgba(124,58,237,.4);
    border-color: var(--accent-light);
    box-shadow: 0 0 20px rgba(124,58,237,.5), inset 0 0 12px rgba(124,58,237,.2);
    transform: scale(1.1);
}

/* ── RESPONSIVE HERO ── */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
    }
    .hero-photo { width: clamp(180px, 55vw, 280px); }
    .hero-socials { flex-direction: row; justify-content: center; }
}

@media (max-width: 600px) {
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 300px; text-align: center; }
}
