/* ==========================================================================
   CSS Custom Properties (Dark Organic / Blue Soft Rounded System)
   ========================================================================== */
:root {
    /* Brand Colors - Dark & Soft Pastel Neons (Blue Palette) */
    --bg-dark: #0F1115;
    --surface-card: #181A20;
    --surface-card-hover: #1E2128;
    
    --accent-primary: #3B82F6; /* Soft Blue */
    --accent-secondary: #06B6D4; /* Cyan */
    --accent-tertiary: #818CF8; /* Soft Indigo */
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-pad: 120px 0;
    
    /* Organic Radii (EXTREMELY ROUNDED) */
    --radius-pill: 100px;
    --radius-lg: 32px;
    --radius-md: 24px;
    
    /* Motion */
    --ease-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --trans-fast: 0.2s var(--ease-smooth);
    --trans-bouncy: 0.4s var(--ease-bouncy);
    
    /* Soft Glows */
    --glow-primary: 0 10px 30px -10px rgba(59, 130, 246, 0.4);
    --glow-secondary: 0 10px 30px -10px rgba(6, 182, 212, 0.3);
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: inherit;
}

/* Typography Base */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad);
}

/* Section Headers */
.section-head {
    margin-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hairline {
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-pill);
}

/* ==========================================================================
   Buttons (Soft & Pill-shaped)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--trans-bouncy);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px -10px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: var(--surface-card);
    color: var(--text-main);
    border: 2px solid transparent;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-pill);
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    transition: all var(--trans-fast);
}

.btn-outline:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--glow-secondary);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1000px;
    z-index: 100;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    transition: all var(--trans-fast);
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 101;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span:not(.logo-ms) {
    color: var(--accent-primary);
}

.logo-ms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0;
    border: 2px solid transparent;
    transition: all var(--trans-bouncy);
}

.logo:hover .logo-ms {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: var(--glow-primary);
    transform: scale(1.05) rotate(-5deg);
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 101;
    display: none; /* Desktop */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    text-align: center;
    justify-items: center;
}

.hero-eyebrow {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    background: rgba(6, 182, 212, 0.1);
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    display: inline-block;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Organic Soft Glow Orb */
.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: -1;
}

.glow-orb.rounded-orb {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(6,182,212,0.1) 40%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

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

/* ==========================================================================
   Sobre Mim
   ========================================================================== */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.sobre-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.sobre-text p {
    margin-bottom: 1.5rem;
}

.sobre-text strong {
    color: var(--text-main);
}

.sobre-image-placeholder {
    aspect-ratio: 1/1; /* Perfect circle container */
    background: var(--surface-card);
    border-radius: 50%; /* Mega round */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-soft);
    border: 4px solid rgba(255,255,255,0.02);
}

.image-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}
.image-box i { font-size: 3rem; color: var(--accent-tertiary); }

/* ==========================================================================
   Projetos
   ========================================================================== */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.projeto-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--trans-bouncy);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-soft);
}

.projeto-card:hover {
    transform: translateY(-8px);
    background: var(--surface-card-hover);
    border-color: rgba(59, 130, 246, 0.2);
}

.projeto-img {
    background: rgba(0,0,0,0.1);
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.projeto-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--trans-bouncy);
}

.projeto-card:hover .projeto-img img {
    transform: scale(1.05);
}

.projeto-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.projeto-tags span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-secondary);
    border-radius: var(--radius-pill);
}

.projeto-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.projeto-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.projeto-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    align-self: flex-start;
    transition: all var(--trans-fast);
}

.projeto-card:hover .projeto-link {
    background: var(--accent-primary);
    color: #fff;
}

/* ==========================================================================
   Habilidades
   ========================================================================== */
.habilidades-content {
    display: flex;
    justify-content: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 28px;
    background: var(--surface-card);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--trans-bouncy);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.02);
}

.skill-tag i {
    font-size: 1.4rem;
    color: var(--accent-tertiary);
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--surface-card-hover);
    border-color: rgba(129, 140, 248, 0.3);
}

/* ==========================================================================
   Contato
   ========================================================================== */
.contato-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    background: var(--surface-card);
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.02);
    max-width: 900px;
    margin: 0 auto;
}

.contato-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 500px;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.4);
    font-size: 1.15rem;
    padding: 18px 42px;
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    box-shadow: 0 15px 35px -10px rgba(37, 211, 102, 0.6);
    transform: translateY(-4px) scale(1.02);
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

.contato-links-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.contato-links-inline a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: rgba(0,0,0,0.2);
    transition: all var(--trans-bouncy);
}

.contato-links-inline a i {
    font-size: 1.3rem;
    color: var(--accent-secondary);
}

.contato-links-inline a:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--text-main);
    transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 3rem 0;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-copy i {
    color: var(--accent-tertiary);
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s var(--ease-bouncy), transform 0.8s var(--ease-bouncy);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s var(--ease-bouncy), transform 0.8s var(--ease-bouncy);
}

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .sobre-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .sobre-image-placeholder {
        aspect-ratio: 16/9;
        border-radius: var(--radius-lg);
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contato-container {
        padding: 3rem 1.5rem;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }
    .mobile-toggle span {
        position: static;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background-color: var(--text-main);
        transition: all 0.3s ease;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(3px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        transform: translateY(-3px) rotate(-45deg);
    }

    .header {
        top: 16px;
        width: calc(100% - 32px);
        padding: 12px 24px;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: all var(--trans-fast);
        z-index: 100;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .section {
        padding: 80px 0;
    }
}
