/* ===== CSS VARIABLES ===== */
/* Editorial Tech Humanist — Dark Mode, Warm Insight */
:root {
    /* Base (Dark Editorial) */
    --color-bg: #0B0F14;
    --color-bg-secondary: #121923;
    --color-bg-tertiary: #1B2532;

    /* Neutros de leitura (quentes) */
    --color-text: #F2EDE3;
    --color-text-secondary: #C9C3B8;
    --color-text-muted: #9E9890;

    /* Acentos humanistas */
    --color-accent-gold: #D8B15A;
    --color-accent-amber: #C97A3A;

    /* Acento Tech (discreto, premium) */
    --color-accent-teal: #0D7377;
    --color-accent-teal-alt: #11998E;

    /* Gradientes sutis */
    --color-accent-gradient: linear-gradient(135deg, #D8B15A 0%, #C97A3A 100%);
    --color-border: rgba(242, 237, 227, 0.08);
    --color-border-hover: rgba(242, 237, 227, 0.15);

    /* Tipografia */
    --font-headline: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

    /* Transições */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--color-accent-gold);
    color: var(--color-bg);
    font-family: var(--font-headline);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.lang-flag {
    width: 32px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.5;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.lang-flag svg {
    width: 100%;
    height: 100%;
}

.lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 10px rgba(216, 177, 90, 0.3);
}

/* ===== NOISE TEXTURE ===== */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}

.hero-content {
    text-align: center;
    max-width: 640px;
}

/* Profile */
.profile-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2.5rem;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(216, 177, 90, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite;
}

/* Glow secundário roxo (camada tech atrás do gold) */
.profile-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(13, 115, 119, 0.25) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(35px);
    animation: pulse-teal 5s ease-in-out infinite;
}

@keyframes pulse-teal {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

.profile-photo {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-gold);
    box-shadow: 0 0 0 1px rgba(13, 115, 119, 0.3);
    z-index: 1;
}

/* Name */
.name {
    font-family: var(--font-headline);
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    color: var(--color-text);
}

/* Tagline */
.tagline {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-accent-gold);
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

/* Bio */
.bio {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-text);
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-weight: 500;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.bio-secondary {
    font-family: var(--font-body);
    font-size: clamp(0.88rem, 1.8vw, 0.95rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Pillars - Labels em mono */
.pillars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    position: relative;
}

/* Linha roxa sutil abaixo dos pillars (fecha a hero) */
.pillars::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-teal-alt), transparent);
    opacity: 0.4;
}

.pillar {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}

.pillar:hover {
    color: var(--color-accent-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.pillar-dot {
    width: 3px;
    height: 3px;
    background: var(--color-accent-gold);
    border-radius: 50%;
    opacity: 0.6;
}

/* ===== VALUE SECTION ===== */
.value-section {
    padding: 5rem 2rem;
    max-width: 950px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
    position: relative;
}

/* Linha roxa sutil centralizada no topo da seção */
.value-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-teal), transparent);
    opacity: 0.4;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
}

.value-card {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-secondary);
    transition: var(--transition-smooth);
    position: relative;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-accent-gold);
    border-radius: 12px 0 0 12px;
    transition: height 0.3s ease;
}

.value-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(13, 115, 119, 0.15);
}

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

.value-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
    color: var(--color-accent-gold);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.value-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ===== BACKGROUND SECTION ===== */
.background-section {
    padding: 5rem 2rem;
    max-width: 950px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
    position: relative;
}

/* Linha roxa sutil centralizada no topo da seção */
.background-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-teal), transparent);
    opacity: 0.4;
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--color-accent-gold);
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    list-style: none;
}

.background-card {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-secondary);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Linha roxa sutil no topo do card (acento tech) */
.background-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-teal), transparent);
    opacity: 0.5;
}

.background-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
}

.background-card:hover::before {
    opacity: 0.8;
}

/* Labels em mono - texto legível com acento gold */
.background-role {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    margin-bottom: 0.75rem;
}

.background-card h3 {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.background-card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    position: relative;
}

/* Linha roxa sutil centralizada no topo da seção */
.cta-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-teal), transparent);
    opacity: 0.4;
}

.cta-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.cta-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: var(--font-headline);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-bg);
    background: var(--color-accent-gold);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cta-primary:hover {
    transform: translateY(-2px);
    background: #E5C16A;
    box-shadow: 0 8px 30px rgba(216, 177, 90, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-hover);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
    background: var(--color-bg-secondary);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.social-links a:hover {
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    box-shadow: 0 0 20px rgba(216, 177, 90, 0.25);
    transform: scale(1.05);
}

.handle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* Horizon Line - elemento editorial sutil */
.horizon-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    margin: 2rem auto;
    opacity: 0.5;
}

/* Assinatura (rodapé) - estilo label mono */
.signature {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-style: normal;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem;
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .profile-container {
        width: 130px;
        height: 130px;
    }

    .profile-photo {
        width: 130px;
        height: 130px;
    }

    .profile-glow {
        width: 150px;
        height: 150px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 1.75rem;
    }

    .background-grid {
        grid-template-columns: 1fr;
    }

    .value-section,
    .background-section,
    .cta-section {
        padding: 3rem 1.5rem;
    }

    .social-links a {
        width: 48px;
        height: 48px;
    }

    .social-links svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .background-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

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

    .signature {
        font-size: 0.75rem;
    }

    /* Ensure minimum readable font sizes on small screens */
    .pillar {
        font-size: 0.8rem;
    }

    .background-role {
        font-size: 0.8rem;
    }

    .background-card p {
        font-size: 0.875rem;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: var(--color-accent-gold);
    color: var(--color-bg);
}

/* ===== FOCUS STATES ===== */
a:focus-visible {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 3px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
