/* ========================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ======================================== */
:root {
    --bg: #050816;
    --bg-card: #111827;
    --primary: #38BDF8;
    --primary-glow: rgba(56, 189, 248, 0.3);
    --secondary: #8B5CF6;
    --secondary-glow: rgba(139, 92, 246, 0.3);
    --text: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --glass: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ========================================
   LIGHT THEME
   ======================================== */
[data-theme="light"] {
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --primary: #0284C7;
    --primary-glow: rgba(2, 132, 199, 0.2);
    --secondary: #7C3AED;
    --secondary-glow: rgba(124, 58, 237, 0.2);
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   SPOTLIGHT EFFECT
   ======================================== */
.spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spotlight.active {
    opacity: 0.15;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .header.scrolled {
    background: rgba(248, 250, 252, 0.85);
}

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

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 100%;
        height: 48px;
        border-radius: var(--radius-sm);
    }
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    transition: color var(--transition-fast);
}

.nav__logo:hover {
    color: var(--primary);
}

.nav__logo-bracket {
    color: var(--primary);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    color: var(--bg);
    font-weight: 600;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    color: var(--bg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--border);
    }

    [data-theme="light"] .nav__menu {
        background: rgba(248, 250, 252, 0.98);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__link {
        font-size: 1.125rem;
    }
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-glow);
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="light"] .hero__grid {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero__name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__role {
    margin-bottom: 24px;
}

.hero__role-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Illustration - Code Block */
.hero__illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__code {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.hero__code-header {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .hero__code-header {
    background: rgba(0, 0, 0, 0.05);
}

.hero__code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero__code-dot--red { background: #FF5F57; }
.hero__code-dot--yellow { background: #FFBD2E; }
.hero__code-dot--green { background: #28CA41; }

.hero__code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-keyword { color: #C678DD; }
.code-var { color: #E06C75; }
.code-prop { color: #61AFEF; }
.code-string { color: #98C379; }
.code-method { color: #61AFEF; }

.hero__floating {
    position: absolute;
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: float 5s ease-in-out infinite;
}

.hero__floating--1 {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    animation-delay: 1s;
}

.hero__floating--2 {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: -30px;
    background: linear-gradient(135deg, var(--secondary-glow), transparent);
    animation-delay: 2s;
}

.hero__floating--3 {
    width: 40px;
    height: 40px;
    top: 40%;
    right: -40px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), transparent);
    animation-delay: 3s;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@media (max-width: 968px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__illustration {
        display: none;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg);
}

.btn--primary:hover {
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn--glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--glass:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   SOBRE SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-traits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-trait {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.about-trait:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

.trait-icon {
    font-size: 1.1rem;
}

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

    .about-traits {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COMPETÊNCIAS SECTION
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    transition: all var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.skill-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.skill-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.skill-level {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.skill-level-bar {
    width: 28px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.skill-level-bar.filled {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.skill-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   DESTAQUES SECTION
   ======================================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.highlight-card {
    padding: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.highlight-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.highlight-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.highlight-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1rem;
}

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

/* ========================================
   EXPERIÊNCIA SECTION
   ======================================== */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    transform: scale(1.2);
}

.timeline-content {
    padding: 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
    transform: translateX(8px);
}

.timeline-company {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.timeline-desc ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-desc li {
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

@media (max-width: 576px) {
    .timeline::before {
        left: 5px;
    }

    .timeline-item {
        padding-left: 32px;
    }

    .timeline-dot {
        left: 0;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 16px;
    }
}

/* ========================================
   FORMAÇÃO & CERTIFICAÇÕES
   ======================================== */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.edu-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.edu-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-card {
    padding: 16px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.edu-card:hover {
    border-color: var(--primary);
    transform: translateX(6px);
}

.edu-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.edu-card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-tag {
    display: inline-block;
    padding: 8px 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.cert-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

/* ========================================
    CTA SECTION
    ======================================== */
.cta {
    text-align: center;
}

.cta__content {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta__content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.1;
    animation: rotate 10s linear infinite;
}

.cta__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.cta__description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 100;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-4px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in on scroll */
.fade-in,
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible,
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

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

    html {
        scroll-behavior: auto;
    }

    .fade-in,
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
    VLIBRAS WIDGET - CLS PREVENTION
   ======================================== */
[vw],
[vw] .vw-plugin-wrapper,
[vw] .vw-plugin-top-wrapper {
    contain: layout style;
}

[vw-access-button] {
    position: fixed;
    bottom: 90px;
    right: 32px;
    z-index: 999;
}

@media (max-width: 768px) {
    [vw-access-button] {
        bottom: 80px;
        right: 20px;
    }
}