/* ===================================================
   Redes Vix — Modern Redesign
   =================================================== */

/* ===== Variables ===== */
:root {
    --bg:           #0d0d14;
    --bg-alt:       #111119;
    --bg-card:      #17171f;
    --accent:       #ffd000;
    --accent-dim:   rgba(255, 208, 0, 0.10);
    --accent-glow:  rgba(255, 208, 0, 0.05);
    --border:       rgba(255, 255, 255, 0.07);
    --border-accent:rgba(255, 208, 0, 0.22);
    --text:         #e4e4f0;
    --text-muted:   #8a8aa8;
    --radius:       12px;
    --radius-lg:    20px;
    --shadow:       0 8px 32px rgba(0, 0, 0, 0.5);
    --transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.accent    { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }


/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--transition), border-color var(--transition);
}

#navbar.scrolled {
    background: rgba(13, 13, 20, 0.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-img { height: 36px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}

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

.nav-link.nav-cta {
    background: var(--accent);
    color: #0a0a0f;
    font-weight: 600;
    margin-left: 0.5rem;
}

.nav-link.nav-cta:hover { background: #ffe033; color: #0a0a0f; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.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 menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(13, 13, 20, 0.98);
    backdrop-filter: blur(18px);
}

.mobile-menu.open { display: flex; }

.mobile-link {
    padding: 0.875rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover      { color: var(--accent); }


/* ===================================================
   HERO
   =================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background layers */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,208,0,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,208,0,0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-glow-1 {
    position: absolute;
    top: -15%;
    right: -8%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(255,208,0,0.09) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -20%;
    left: -8%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(79,156,249,0.07) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: min(420px, 100%);
    height: auto;
    filter: drop-shadow(0 0 48px rgba(255, 208, 0, 0.18));
    animation: float 6s ease-in-out infinite;
}

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

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.75rem;
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* Title */
.hero-title {
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
}

.hero-title-line   { display: block; }
.hero-title-accent { display: block; color: var(--accent); }

/* Typed subtitle */
.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-muted);
    min-height: 1.8em;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.cursor-blink {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: blink 1s step-end infinite;
    margin-left: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2.25rem;
}

/* CTA buttons */
.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-size: 0.925rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0f;
}

.btn-primary:hover {
    background: #ffe033;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,208,0,0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

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

.btn-full { width: 100%; }

/* Social icons */
.hero-social {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
    border-color: var(--border-accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-1px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollDown {
    0%   { transform: scaleY(0); opacity: 0; }
    40%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}


/* ===================================================
   SECTIONS (shared)
   =================================================== */
.section     { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 0.875rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 0.975rem;
    color: var(--text-muted);
}


/* ===================================================
   SOBRE
   =================================================== */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-highlight {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.sobre-body {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 2.25rem;
    font-size: 0.975rem;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: border-color var(--transition), background var(--transition);
}

.stat:hover {
    border-color: var(--border-accent);
    background: var(--accent-dim);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Image column */
.sobre-image { position: relative; }

.sobre-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: 50% 0%;
    filter: brightness(0.9) saturate(0.9);
}

.sobre-badge {
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 0.875rem 1.25rem;
    box-shadow: var(--shadow);
}

.sobre-badge-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.sobre-badge-icon svg { width: 20px; height: 20px; }

.sobre-badge strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

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


/* ===================================================
   SERVIÇOS
   =================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(255,208,0,0));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.45);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: background var(--transition);
}

.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { background: rgba(255,208,0,0.18); }

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.service-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}


/* ===================================================
   SKILLS
   =================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 4rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name { font-size: 0.875rem; font-weight: 500; }
.skill-pct  { font-size: 0.8rem;   font-weight: 700; color: var(--accent); }

.skill-bar {
    height: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #ffed4a);
    border-radius: 100px;
    transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ===================================================
   CONTATO
   =================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Form card */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
}

.form-group:first-child { margin-top: 0; }
.form-row .form-group   { margin-top: 0; }

label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

input, textarea {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.95rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color var(--transition), background var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--border-accent);
    background: rgba(255,208,0,0.02);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

textarea { resize: vertical; }

#contact-form .btn { margin-top: 1.25rem; }

.form-feedback {
    margin-top: 0.75rem;
    font-size: 0.825rem;
    text-align: center;
    min-height: 1.4em;
    color: var(--accent);
}

/* Info column */
.contact-info { padding-top: 0.5rem; }

.contact-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-info-icon svg { width: 20px; height: 20px; }

.contact-info-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-info-item span,
.contact-info-item a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.contact-info-item a:hover { color: var(--accent); }

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.575rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-btn svg { width: 15px; height: 15px; }

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


/* ===================================================
   FOOTER
   =================================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-copy  { font-size: 0.825rem; color: var(--text-muted); }

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.825rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }


/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside a visible section-header */
.section-header.visible .section-tag { transition-delay: 0s; }
.section-header.visible .section-title { transition-delay: 0.08s; }
.section-header.visible .section-subtitle { transition-delay: 0.14s; }


/* ===================================================
   RESPONSIVE — tablet
   =================================================== */
@media (max-width: 960px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sobre-badge {
        bottom: 1rem;
        left: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ===================================================
   RESPONSIVE — mobile
   =================================================== */
@media (max-width: 640px) {
    .nav-links  { display: none; }
    .hamburger  { display: flex; }

    .section    { padding: 4rem 0; }
    .hero-content {
        padding: 6rem 1.25rem 4rem;
        grid-template-columns: 1fr;
    }

    .hero-right { display: none; }

    .hero-actions { flex-direction: column; }
    .btn          { width: 100%; }

    .sobre-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .sobre-stats .stat:last-child {
        grid-column: 1 / -1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { flex-direction: column; gap: 0.5rem; align-items: center; }

    .hero-scroll { display: none; }
}
