 /* ========= RESET & VARIABLES ========= */
 *,
 *::before,
 *::after {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --bg: #060810;
     --bg2: #0c1020;
     --surface: rgba(255, 255, 255, 0.04);
     --border: rgba(255, 255, 255, 0.08);
     --accent: #00e5ff;
     --accent2: #7c3aff;
     --accent3: #ff3a7c;
     --text: #e8eaf0;
     --muted: #6b7280;
     --glow: 0 0 40px rgba(0, 229, 255, 0.15);
     --radius: 16px;
     --mono: 'Space Mono', monospace;
     --sans: 'Syne', sans-serif;
     --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
 }

 [data-theme="light"] {
     --bg: #f1e9d9;
     --bg2: #a5a27800;
     --surface: rgba(0, 0, 0, 0.04);
     --border: rgba(0, 0, 0, 0.08);
     --text: #111827;
     --muted: #6b7280;
     --glow: 0 0 40px rgba(84, 42, 170, 0.12);
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     background: var(--bg);
     color: var(--text);
     font-family: var(--sans);
     overflow-x: hidden;
 }

 /* ========= BACKGROUND MESH ========= */
 .mesh {
     position: fixed;
     inset: 0;
     z-index: 0;
     pointer-events: none;
     background:
         radial-gradient(ellipse 60% 60% at 10% 10%, rgba(0, 229, 255, 0.07) 0%, transparent 70%),
         radial-gradient(ellipse 50% 50% at 90% 80%, rgba(124, 58, 255, 0.07) 0%, transparent 70%),
         radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255, 58, 124, 0.04) 0%, transparent 70%);
     transition: background var(--transition);
 }

 [data-theme="light"] .mesh {
     background:
         radial-gradient(ellipse 60% 60% at 10% 10%, rgba(0, 179, 200, 0.08) 0%, transparent 70%),
         radial-gradient(ellipse 50% 50% at 90% 80%, rgba(100, 40, 200, 0.06) 0%, transparent 70%);
 }

 /* ========= NAV ========= */
 nav {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 1000;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1.2rem 3rem;
     background: rgba(6, 8, 16, 0.7);
     backdrop-filter: blur(20px);
     border-bottom: 1px solid var(--border);
     transition: background var(--transition);
 }

 [data-theme="light"] nav {
     background: rgba(240, 242, 248, 0.7);
 }

 .nav-logo {
     font-family: var(--mono);
     font-size: 1rem;
     color: var(--accent);
     text-decoration: none;
     letter-spacing: -0.02em;
 }

 .nav-logo span {
     color: var(--accent3);
 }

 .nav-links {
     display: flex;
     gap: 2.5rem;
     list-style: none;
 }

 .nav-links a {
     font-family: var(--mono);
     font-size: 0.78rem;
     color: var(--muted);
     text-decoration: none;
     letter-spacing: 0.05em;
     text-transform: uppercase;
     transition: color 0.2s;
 }

 .nav-links a:hover {
     color: var(--accent);
 }

 .nav-right {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .btn-theme {
     background: var(--surface);
     border: 1px solid var(--border);
     color: var(--text);
     border-radius: 50%;
     width: 38px;
     height: 38px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.9rem;
     transition: all 0.3s;
 }

 .btn-theme:hover {
     background: var(--accent);
     color: var(--bg);
     border-color: var(--accent);
 }

 .burger {
     display: none;
     background: none;
     border: none;
     color: var(--text);
     font-size: 1.4rem;
     cursor: pointer;
 }

 /* ========= HERO ========= */
 #inicio {
     min-height: 100vh;
     display: grid;
     grid-template-columns: 1fr 1fr;
     align-items: center;
     gap: 4rem;
     padding: 120px 10vw 4rem;
     position: relative;
     z-index: 1;
 }

 .hero-tag {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     font-family: var(--mono);
     font-size: 0.72rem;
     color: var(--accent);
     background: rgba(0, 229, 255, 0.08);
     border: 1px solid rgba(0, 229, 255, 0.2);
     padding: 0.4rem 1rem;
     border-radius: 100px;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     margin-bottom: 1.5rem;
     animation: fadeUp 0.6s var(--transition) both;
 }

 .hero-tag::before {
     content: '●';
     font-size: 0.5rem;
     color: #22c55e;
 }

 .hero-h1 {
     font-size: clamp(2.8rem, 5vw, 5rem);
     font-weight: 800;
     line-height: 1.05;
     letter-spacing: -0.03em;
     margin-bottom: 1rem;
     animation: fadeUp 0.6s 0.1s var(--transition) both;
 }

 .hero-h1 .accent {
     color: var(--accent);
 }

 .hero-h1 .accent2 {
     color: var(--accent2);
 }

 .hero-sub {
     font-family: var(--mono);
     font-size: 1rem;
     color: var(--muted);
     line-height: 1.7;
     max-width: 480px;
     margin-bottom: 2.5rem;
     animation: fadeUp 0.6s 0.2s var(--transition) both;
 }

 .hero-ctas {
     display: flex;
     flex-wrap: wrap;
     gap: 1rem;
     animation: fadeUp 0.6s 0.3s var(--transition) both;
 }

 .btn {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.85rem 1.8rem;
     border-radius: 10px;
     font-family: var(--mono);
     font-size: 0.8rem;
     font-weight: 700;
     letter-spacing: 0.03em;
     text-decoration: none;
     cursor: pointer;
     border: none;
     transition: all 0.3s;
 }

 .btn-primary {
     background: linear-gradient(135deg, var(--accent), var(--accent2));
     color: #fff;
     box-shadow: 0 4px 24px rgba(0, 229, 255, 0.25);
 }

 .btn-primary:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
 }

 .btn-outline {
     background: var(--surface);
     border: 1px solid var(--border);
     color: var(--text);
 }

 .btn-outline:hover {
     border-color: var(--accent);
     color: var(--accent);
     transform: translateY(-3px);
 }

 .hero-socials {
     margin-top: 2.5rem;
     display: flex;
     gap: 1rem;
     animation: fadeUp 0.6s 0.4s var(--transition) both;
 }

 .social-icon {
     width: 42px;
     height: 42px;
     border-radius: 10px;
     background: var(--surface);
     border: 1px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--muted);
     text-decoration: none;
     font-size: 1rem;
     transition: all 0.3s;
 }

 .social-icon:hover {
     background: var(--accent);
     color: var(--bg);
     border-color: var(--accent);
     transform: translateY(-3px);
 }

 .hero-right {
     display: flex;
     flex-direction: column;
     align-items: center;
     position: relative;
     animation: fadeUp 0.6s 0.2s var(--transition) both;
 }

 .avatar-wrap {
     position: relative;
     width: 280px;
     height: 280px;
 }

.avatar-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    padding: 4px; /* espessura da borda */

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 300deg,
        rgba(0, 229, 255, 0.9) 330deg,
        rgba(0, 229, 255, 1) 350deg,
        transparent 360deg
    );

    /* transforma em BORDA real */
    -webkit-mask: 
        radial-gradient(farthest-side, transparent calc(100% - 4px), white 100%);
    mask: 
        radial-gradient(farthest-side, transparent calc(100% - 4px), white 100%);

    filter: blur(4px); /* efeito LED */
    animation: spinLed 2s linear infinite;
}
 .avatar-ring2 {
     position: absolute;
     inset: -22px;
     border-radius: 50%;
     border: 1px solid rgba(0, 229, 255, 0.15);
     animation: spinRing 12s linear infinite reverse;
 }

@keyframes spinLed {
    to {
        transform: rotate(360deg);
    }
}

 .avatar-img {
     width: 100%;
     height: 100%;
     border-radius: 50%;
     object-fit: cover;
     display: block;
     box-shadow: 0 0 60px rgba(0, 229, 255, 0.2);

 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0);
     }

     50% {
         transform: translateY(-14px);
     }
 }

 .hero-badge {
     margin-top: 2.5rem;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 1rem;
     width: 100%;
     max-width: 340px;
 }

 .badge-item {
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: 12px;
     padding: 1rem;
     text-align: center;
     transition: all 0.3s;
 }

 .badge-item:hover {
     border-color: var(--accent);
     transform: translateY(-3px);
 }

 .badge-num {
     font-family: var(--mono);
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--accent);
 }

 .badge-label {
     font-family: var(--mono);
     font-size: 0.62rem;
     color: var(--muted);
     letter-spacing: 0.05em;
     text-transform: uppercase;
     margin-top: 0.2rem;
 }

 /* ========= SKILLS MARQUEE ========= */
 .marquee-section {
     position: relative;
     z-index: 1;
     padding: 2rem 0;
     border-top: 1px solid var(--border);
     border-bottom: 1px solid var(--border);
     overflow: hidden;
 }

 .marquee-track {
     display: flex;
     gap: 2rem;
     animation: marquee 25s linear infinite;
     width: max-content;
 }

 .marquee-track:hover {
     animation-play-state: paused;
 }

 @keyframes marquee {
     to {
         transform: translateX(-50%);
     }
 }

 .skill-pill {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.5rem 1.2rem;
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: 100px;
     font-family: var(--mono);
     font-size: 0.75rem;
     color: var(--muted);
     white-space: nowrap;
     transition: all 0.3s;
 }

 .skill-pill:hover {
     color: var(--accent);
     border-color: var(--accent);
 }

 .skill-pill i {
     font-size: 0.9rem;
     color: var(--accent);
 }

 /* ========= SECTIONS SHARED ========= */
 section {
     position: relative;
     z-index: 1;
     padding: 7rem 10vw;
 }

 .section-label {
     font-family: var(--mono);
     font-size: 0.7rem;
     color: var(--accent);
     text-transform: uppercase;
     letter-spacing: 0.12em;
     margin-bottom: 0.8rem;
 }

 .section-title {
     font-size: clamp(2rem, 3.5vw, 3rem);
     font-weight: 800;
     letter-spacing: -0.03em;
     margin-bottom: 1rem;
 }

 .section-desc {
     font-family: var(--mono);
     font-size: 0.9rem;
     color: var(--muted);
     max-width: 520px;
     line-height: 1.7;
     margin-bottom: 3.5rem;
 }

 /* ========= SOBRE ========= */
 #sobre .inner {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 5rem;
     align-items: start;
 }

 .sobre-text p {
     font-family: var(--mono);
     font-size: 0.88rem;
     color: var(--muted);
     line-height: 1.9;
     margin-bottom: 1.2rem;
 }

 .sobre-text p strong {
     color: var(--text);
 }

 .skills-grid {
     display: flex;
     flex-direction: column;
     gap: 1.2rem;
 }

 .skill-bar-header {
     display: flex;
     justify-content: space-between;
     font-family: var(--mono);
     font-size: 0.75rem;
     margin-bottom: 0.5rem;
 }

 .skill-bar-name {
     color: var(--text);
 }

 .skill-bar-pct {
     color: var(--accent);
 }

 .skill-bar-track {
     height: 4px;
     background: var(--border);
     border-radius: 10px;
     overflow: hidden;
 }

 .skill-bar-fill {
     height: 100%;
     background: linear-gradient(90deg, var(--accent), var(--accent2));
     border-radius: 10px;
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
 }

 .skill-bar-fill.animated {
     transform: scaleX(1);
 }

 /* ========= PROJETOS ========= */
 #projetos {
     background: var(--bg2);
 }

 .projetos-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
     gap: 1.5rem;
 }

 .project-card {
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     overflow: hidden;
     text-decoration: none;
     color: inherit;
     display: block;
     transition: all var(--transition);
     position: relative;
 }

 .project-card::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(124, 58, 255, 0.05));
     opacity: 0;
     transition: opacity 0.3s;
 }

 .project-card:hover::before {
     opacity: 1;
 }

 .project-card:hover {
     border-color: rgba(0, 229, 255, 0.3);
     transform: translateY(-6px);
     box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), var(--glow);
 }

 .project-img {
     width: 100%;
     height: 180px;
     object-fit: cover;
     display: block;
 }

 .project-body {
     padding: 1.4rem;
 }

 .project-tech {
     display: flex;
     flex-wrap: wrap;
     gap: 0.4rem;
     margin-bottom: 0.8rem;
 }

 .tag {
     font-family: var(--mono);
     font-size: 0.62rem;
     color: var(--accent);
     background: rgba(0, 229, 255, 0.08);
     border: 1px solid rgba(0, 229, 255, 0.2);
     padding: 0.2rem 0.6rem;
     border-radius: 100px;
     letter-spacing: 0.04em;
     text-transform: uppercase;
 }

 .project-name {
     font-size: 1.1rem;
     font-weight: 700;
     margin-bottom: 0.5rem;
     letter-spacing: -0.01em;
 }

 .project-desc {
     font-family: var(--mono);
     font-size: 0.78rem;
     color: var(--muted);
     line-height: 1.6;
 }

 .project-footer {
     padding: 0.8rem 1.4rem;
     border-top: 1px solid var(--border);
     display: flex;
     align-items: center;
     gap: 0.5rem;
     font-family: var(--mono);
     font-size: 0.72rem;
     color: var(--accent);
 }

 /* ========= EXPERIÊNCIA TIMELINE ========= */

 .timeline {
     display: flex;
     flex-direction: column;
     gap: 0;
     position: relative;
     max-width: 860px;
 }

 .timeline::before {
     content: '';
     position: absolute;
     left: 28px;
     top: 0;
     bottom: 0;
     width: 1px;
     background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
 }

 .tl-item {
     display: grid;
     grid-template-columns: 60px 1fr;
     gap: 1.5rem;
     padding-bottom: 3rem;
     position: relative;
 }

 .tl-dot {
     width: 56px;
     height: 56px;
     border-radius: 50%;
     background: var(--bg2);
     border: 2px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     flex-shrink: 0;
     transition: all 0.3s;
 }

 .tl-dot img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .tl-dot:hover {
     border-color: var(--accent);
     box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
 }

 .tl-content {
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     padding: 1.5rem;
     transition: all 0.3s;
 }

 .tl-content:hover {
     border-color: rgba(0, 229, 255, 0.25);
     transform: translateX(4px);
 }

 .tl-period {
     font-family: var(--mono);
     font-size: 0.68rem;
     color: var(--accent);
     text-transform: uppercase;
     letter-spacing: 0.08em;
     margin-bottom: 0.3rem;
 }

 .tl-role {
     font-size: 1.1rem;
     font-weight: 700;
     margin-bottom: 0.2rem;
 }

 .tl-company {
     font-family: var(--mono);
     font-size: 0.8rem;
     color: var(--muted);
     margin-bottom: 0.8rem;
 }

 .tl-desc {
     font-family: var(--mono);
     font-size: 0.78rem;
     color: var(--muted);
     line-height: 1.7;
 }

 /* ========= KROWNCODE ========= */
 #krowncode {
     background: var(--bg2);
     overflow: hidden;
 }

 .krown-inner {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 5rem;
     align-items: center;
 }

 .krown-visual {
     position: relative;
     aspect-ratio: 4/3;
     border-radius: 20px;
     overflow: hidden;
 }

 .krown-card {
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: 20px;
     padding: 2.5rem;
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
 }

 .krown-logo-text {
     font-size: 2rem;
     font-weight: 800;
     letter-spacing: -0.04em;
 }

 .krown-logo-text span {
     color: var(--accent);
 }

 .krown-tagline {
     font-family: var(--mono);
     font-size: 0.8rem;
     color: var(--muted);
     line-height: 1.7;
     margin-top: 1rem;
 }

 .krown-services {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 0.8rem;
     margin-top: 2rem;
 }

 .kservice {
     background: rgba(0, 229, 255, 0.04);
     border: 1px solid rgba(0, 229, 255, 0.1);
     border-radius: 10px;
     padding: 0.8rem;
 }

 .kservice-icon {
     font-size: 1.2rem;
     margin-bottom: 0.4rem;
 }

 .kservice-name {
     font-family: var(--mono);
     font-size: 0.7rem;
     color: var(--text);
     font-weight: 700;
 }

 .krown-stats {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1rem;
     margin-top: 2rem;
 }

 .kstat {
     text-align: center;
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: 10px;
     padding: 1rem;
 }

 .kstat-num {
     font-family: var(--mono);
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--accent);
 }

 .kstat-label {
     font-family: var(--mono);
     font-size: 0.65rem;
     color: var(--muted);
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .krown-right p {
     font-family: var(--mono);
     font-size: 0.88rem;
     color: var(--muted);
     line-height: 1.9;
     margin-bottom: 1rem;
 }

 /* ========= CONTATO ========= */

 .contato-wrap {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 5rem;
     align-items: start;
 }


 .contato-item {
     display: flex;
     align-items: center;
     gap: 1rem;
     padding: 1.2rem;
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: 12px;
     margin-bottom: 1rem;
     transition: all 0.3s;
     text-decoration: none;
     color: var(--text);
 }

 .contato-item:hover {
     border-color: var(--accent);
     transform: translateX(6px);
 }

 .contato-item-icon {
     width: 44px;
     height: 44px;
     background: rgba(0, 229, 255, 0.08);
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--accent);
     font-size: 1.1rem;
     flex-shrink: 0;
 }

 .contato-item-label {
     font-family: var(--mono);
     font-size: 0.65rem;
     color: var(--muted);
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .contato-item-val {
     font-size: 0.9rem;
     font-weight: 600;
     margin-top: 0.1rem;
 }

 .form-card {
     background: var(--surface);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     padding: 2rem;
 }

 .form-group {
     margin-bottom: 1.2rem;
 }

 .form-label {
     display: block;
     font-family: var(--mono);
     font-size: 0.7rem;
     color: var(--muted);
     text-transform: uppercase;
     letter-spacing: 0.06em;
     margin-bottom: 0.5rem;
 }

 .form-input,
 .form-textarea {
     width: 100%;
     background: rgba(255, 255, 255, 0.03);
     border: 1px solid var(--border);
     border-radius: 10px;
     padding: 0.9rem 1rem;
     color: var(--text);
     font-family: var(--mono);
     font-size: 0.85rem;
     outline: none;
     transition: all 0.3s;
 }

 .form-input:focus,
 .form-textarea:focus {
     border-color: var(--accent);
     background: rgba(0, 229, 255, 0.03);
     box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
 }

 .form-textarea {
     min-height: 120px;
     resize: vertical;
 }

 .form-input::placeholder,
 .form-textarea::placeholder {
     color: var(--muted);
 }

 .btn-submit {
     width: 100%;
     padding: 1rem;
     background: linear-gradient(135deg, var(--accent), var(--accent2));
     border: none;
     border-radius: 10px;
     color: #fff;
     font-family: var(--mono);
     font-weight: 700;
     font-size: 0.85rem;
     cursor: pointer;
     transition: all 0.3s;
     letter-spacing: 0.04em;
 }

 .btn-submit:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
 }

 /* ========= FOOTER ========= */
 footer {
     position: relative;
     z-index: 1;
     border-top: 1px solid var(--border);
     padding: 2rem 10vw;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .footer-copy {
     font-family: var(--mono);
     font-size: 0.75rem;
     color: var(--muted);
 }

 .footer-copy span {
     color: var(--accent);
 }

 /* ========= MOBILE NAV ========= */
 .mobile-menu {
     display: none;
     position: fixed;
     inset: 0;
     z-index: 999;
     background: var(--bg);
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 2rem;
 }

 .mobile-menu.open {
     display: flex;
 }

 .mobile-menu a {
     font-family: var(--mono);
     font-size: 1.2rem;
     color: var(--text);
     text-decoration: none;
     transition: color 0.2s;
 }

 .mobile-menu a:hover {
     color: var(--accent);
 }

 .mobile-close {
     position: absolute;
     top: 1.5rem;
     right: 1.5rem;
     background: none;
     border: none;
     color: var(--text);
     font-size: 1.5rem;
     cursor: pointer;
 }

 /* ========= ANIMATIONS ========= */
 @keyframes fadeUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .reveal {
     opacity: 0;
     transform: translateY(40px);
     transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
 }

 .reveal.visible {
     opacity: 1;
     transform: none;
 }

 .reveal-delay-1 {
     transition-delay: 0.1s;
 }

 .reveal-delay-2 {
     transition-delay: 0.2s;
 }

 .reveal-delay-3 {
     transition-delay: 0.3s;
 }
/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
    #inicio {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 6vw 4rem;
    }

    .hero-right {
        margin: 2rem auto 0;
    }

    .hero-sub {
        margin: 0 auto 2.5rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    #sobre .inner,
    .krown-inner,
    .contato-wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* KROWNCODE mobile */
    .krown-card {
        height: auto;
        gap: 1.5rem;
    }

    .krown-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .kstat-num {
        font-size: 1.3rem;
    }

    .krown-right h3 {
        font-size: 1.2rem !important;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    section {
        padding: 5rem 6vw;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .avatar-wrap {
        width: 210px;
        height: 210px;
    }

    .hero-badge {
        grid-template-columns: repeat(3, 1fr);
        max-width: 280px;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }

    /* KROWNCODE small mobile */
    .krown-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .krown-logo-text {
        font-size: 1.5rem;
    }

    .krown-services {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .kservice {
        padding: 0.65rem;
    }

    .kservice-icon {
        font-size: 1rem;
    }

    .kservice-name {
        font-size: 0.65rem;
    }

    .krown-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .kstat {
        padding: 0.7rem 0.5rem;
    }

    .kstat-num {
        font-size: 1.4rem;
    }

    .kstat-label {
        font-size: 0.6rem;
    }

    .krown-right > div[style] {
        flex-direction: column;
    }

    .krown-right .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .timeline::before {
        left: 22px;
    }

    .tl-item {
        grid-template-columns: 48px 1fr;
    }

    .tl-dot {
        width: 44px;
        height: 44px;
    }
}