:root {
    /* Cores */
    --color-primary: #0a0a0a;
    --color-secondary: #fcb281;
    --color-accent: #853c00;
    --color-accent-light: #ff6b6b;
    --color-text: #333;
    --color-text-light: #777;
    --color-border: #e0e0e0;
    --color-overlay: rgba(0, 0, 0, 0.7);
    
    /* Tipografia */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Espaçamentos */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Bordas */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* Reset e Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader Elegante */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    border-top-color: var(--color-accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cursor Personalizado */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 999;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast), width var(--transition-fast), height var(--transition-fast);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 998;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}
/* From Uiverse.io by 00Kubi */ 
/* From Uiverse.io by mahiatlinux */ 
.containerf {
    width: 300px;
    height: 300px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
  }
  
  .terminal_toolbar {
    display: flex;
    height: 35px;
    align-items: center;
    padding: 0 15px;
    background: #2d2d2d;
    justify-content: space-between;
  }
  
  .butt {
    display: flex;
    align-items: center;
  }
  
  .btn {
    height: 13px;
    width: 13px;
    border-radius: 50%;
    margin-right: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .btn:hover {
    transform: scale(1.1);
  }
  
  .btn-color:nth-child(1) {
    background: #ff5f56;
  }
  .btn-color:nth-child(2) {
    background: #ffbd2e;
  }
  .btn-color:nth-child(3) {
    background: #27c93f;
  }
  
  .add_tab {
    border: none;
    color: #ffffff;
    background: #3a3a3a;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .add_tab:hover {
    background: #4a4a4a;
  }
  
  .user {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
  }
  
  .terminal_body {
    background: #1e1e1e;
    height: calc(100% - 35px);
    padding: 15px;
    font-family: "Consolas", monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
  }
  
  .terminal_promt {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .terminal_promt span {
    margin-right: 5px;
  }
  
  .terminal_user {
    color: #00ff9c;
  }
  .terminal_location {
    color: #0066ff;
  }
  .terminal_bling {
    color: #ff00ff;
  }
  
  .terminal_cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: #ffffff;
    animation: blink 1s step-end infinite;
  }
  
  @keyframes blink {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  
/* Navegação */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: var(--font-secondary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.logo-svg {
    width: 24px;
    height: 24px;
    margin-right: var(--space-xs);
}

.logo-path {
    fill: var(--color-accent);
    transition: fill var(--transition-fast);
}

.nav-logo:hover {
    color: var(--color-accent);
}

.nav-logo:hover .logo-path {
    fill: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-accent);
}

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

/* Hero Section */
.about-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--space-xl) * 2) var(--space-md) var(--space-xl);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: var(--space-xl);
}

.hero-cube{
    width:200px;height:200px;
    perspective:1000px;
    margin:50px auto;
    cursor:grab;
    transition: 0.8s ease-out;
  }
  .cube{
    width:100%;height:100%;
    position:relative;
    transform-style:preserve-3d;
    user-select: none;
    /* ❌ não há transition aqui — animação 100 % no JS */
  }
  .hero-cube:hover {
    transform: scale(1.2);
  }
  .face{
    position:absolute;
    width:200px;height:200px;
    display:flex;align-items:center;justify-content:center;
    background:#c57123b4;color:#fff;
    border:2px solid transparent;border-radius:8px;
    box-shadow:0 0 12px #0006;
    text-transform:uppercase;letter-spacing:1px;
    font-family:Arial;
  }
  .front  {transform:translateZ(100px);              border-color:#e44d26;}
  .back   {transform:rotateY(180deg) translateZ(100px);border-color:#ffffff;}
  .right  {transform:rotateY( 90deg) translateZ(100px);border-color:#ffffff;}
  .left   {transform:rotateY(-90deg) translateZ(100px);border-color:#ffffff;}
  .top    {transform:rotateX( 90deg) translateZ(100px);border-color:#ffffff;}
  .bottom {transform:rotateX(-90deg) translateZ(100px);border-color:#ffffff;}
.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-name {
    display: block;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.title-role {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards, scaleUp 0.8s ease 0.8s forwards;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    z-index: 1;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,77,77,0.2) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.image-wrapper:hover {
    transform: scale(1);
}

.image-wrapper:hover .image-border {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
}

.image-wrapper:hover .profile-img {
    transform: scale(1.05);
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: var(--color-accent);
    animation: scrollDown 2s ease infinite;
}

/* Seções */
.about-section {
    padding: var(--space-xl) var(--space-md);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    display: flex;
    align-items: center;
}

.title-number {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-right: var(--space-sm);
    opacity: 0.5;
}

.title-line {
    flex: 1;
    height: 1px;
    margin-left: var(--space-md);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.about-text {
    font-size: 1.3rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.signature {
    margin-top: var(--space-lg);
    max-width: 150px;
}

.signature img {
    width: 100%;
    height: auto;
    filter: invert(25%);
}

.skills-section {
    background-color: rgba(255, 255, 255, 0.7);  /* branco com transparência */
    padding: var(--space-lg);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(4px);        /* leve desfoque de fundo */
}


.skills-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.skill-item {
    padding: var(--space-md);
    border-radius: 40px;
    transition: 
        background-color 0.6s cubic-bezier(0.6, 0, 0.2, 1), 
        transform 0.6s cubic-bezier(0.6, 0, 0.2, 1), 
        box-shadow 0.6s cubic-bezier(0.6, 0, 0.2, 1);
        box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.skill-item:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-10px);
    
}




.skill-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.skill-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.skill-item h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.skill-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Serviços */
.services-section {
    padding: var(--space-xl) var(--space-md);
    background-color: var(--color-primary);
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--color-accent);
    transition: height var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    line-height: 1;
}

.service-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.service-description {
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* CTA Section */
.cta-section {
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    
}

.cta-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-button {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.cta-button.primary {
    background-color: white;
    color: var(--color-accent);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cta-button.secondary {
    border: 2px solid white;
    color: white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Rodapé */
.main-footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-xl) var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.footer-slogan {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.links-column h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.links-column a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.links-column a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

.legal-links {
    display: flex;
    gap: var(--space-md);
}

.legal-links a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.legal-links a:hover {
    opacity: 1;
}
/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    30%, 70% {
        opacity: 1;
    }
    100% {
        transform: translateY(60px);
        opacity: 0;
    }
}

/* Responsivo */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
        padding: 0;
        align-items: center;
    }
    .hero-text h1{
        margin: 0;
    }
    .hero-title{
        text-align: center;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .hero-scroll{
       display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-links {
        gap: var(--space-md);
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    .cursor {
        display: none;
    }
    
    .cursor-follower {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .cta-button {
        width: 100%;
    }
}