:root {
    --bg: #060B18;
    --bg-alt: #0D1526;
    --bg-card: #0D1526;
    --bg-card-hover: #1A2035;
    --text: #E8EDF5;
    --text-muted: #8B9BB4;
    --accent: #00D4AA;
    --accent-hover: #00e6b8;
    --purple: #7C3AED;
    --border: rgba(139, 155, 180, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

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

.nav-cta {
    background: var(--accent);
    color: #060B18;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: 100px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 65%);
    top: -200px;
    right: -150px;
    filter: blur(40px);
    pointer-events: none;
}

.hero-glow::after {
    content: '';
    position: absolute;
    inset: 200px 0 0 300px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 65%);
    filter: blur(40px);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 155, 180, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 155, 180, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hero-greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 12px;
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    min-height: 2.2rem;
    margin-bottom: 18px;
}

.hero-role-label {
    color: var(--accent);
    font-weight: 400;
}

.typewriter-caret {
    width: 3px;
    height: 1.3em;
    background: var(--accent);
    animation: blink 0.9s infinite;
    display: inline-block;
}

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

.hero-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-desc strong {
    color: var(--text);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #060B18;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 170, 0.35);
}

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

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

.btn-green {
    background: #25D366;
    color: #060B18;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.btn-block {
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--accent), var(--purple), transparent, var(--accent));
    animation: spin 8s linear infinite;
    filter: blur(1px);
}

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

.hero-img-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-chip {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}

.tech-chip.chip-1 { top: 30px; left: 0; animation-delay: 0s; }
.tech-chip.chip-2 { bottom: 60px; left: -20px; animation-delay: 1.5s; }
.tech-chip.chip-3 { top: 100px; right: -10px; animation-delay: 3s; }

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

.hero-availability {
    position: absolute;
    bottom: 0;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: wheel 1.6s infinite;
}

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

/* ============ SECTION HEAD ============ */
.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head .section-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.section-head .section-link i {
    transition: transform 0.3s;
}

.section-head .section-link:hover i {
    transform: translateX(5px);
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-sub {
    color: var(--text-muted);
    margin-top: 14px;
    font-size: 1rem;
}

/* ============ SOBRE ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 56px;
}

.about-role-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-quick-stats {
    display: flex;
    gap: 28px;
    margin: 28px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.about-quick-stats strong {
    display: block;
    font-size: 1.4rem;
    color: var(--text);
}

.about-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text);
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stack-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.stack-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 170, 0.4);
    background: var(--bg-card-hover);
}

.stack-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.stack-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.stack-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ============ SKILLS ============ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 48px;
    max-width: 860px;
    margin: 0 auto 48px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-name {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    color: var(--accent);
}

.skill-pct {
    font-weight: 800;
    color: var(--accent);
}

.skill-bar {
    height: 8px;
    background: rgba(139, 155, 180, 0.12);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: width 1.2s ease;
}

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

.tech-cloud {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech-cloud-title {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 18px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.3s;
}

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

/* ============ PROJETOS ============ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 170, 0.35);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.project-emoji {
    font-size: 1.8rem;
}

.project-badge {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 170, 0.3);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
}

.project-badge.badge-green {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}

.project-badge.badge-purple {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border-color: rgba(124, 58, 237, 0.35);
}

.project-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    background: rgba(139, 155, 180, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s;
}

.project-link-btn:hover {
    gap: 12px;
}

.section-head-more {
    text-align: left;
    margin: 40px 0 20px;
}

.more-title {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.more-title i {
    color: var(--accent);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--bg-card-hover);
    padding-left: 32px;
}

.list-icon {
    font-size: 1.3rem;
}

.list-name {
    font-weight: 600;
    flex: 1;
}

.list-tag {
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
    padding: 5px 12px;
    border-radius: 100px;
    font-weight: 600;
}

/* GitHub stats */
.github-stats {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 32px auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat > i {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--accent), var(--purple));
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    padding-left: 48px;
    margin-bottom: 36px;
}

.timeline-dot {
    position: absolute;
    left: 5px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: all 0.3s;
}

.timeline-card:hover {
    border-color: rgba(0, 212, 170, 0.35);
    transform: translateX(6px);
}

.timeline-period {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.timeline-current {
    font-size: 0.72rem;
    color: var(--accent);
    background: rgba(0, 212, 170, 0.15);
    padding: 3px 10px;
    border-radius: 100px;
    vertical-align: middle;
    font-weight: 700;
}

.timeline-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.timeline-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

/* ============ CONTATO ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: rgba(0, 212, 170, 0.35);
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-item h4 {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item p {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-social {
    margin-top: 8px;
}

.contact-social h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.contact-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.contact-note i {
    color: var(--accent);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.form-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(244, 63, 94, 0.1);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.form-group input.error-field,
.form-group textarea.error-field {
    border-color: #fb7185;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s;
    background: transparent;
    padding: 0 4px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--bg-card);
}

.error-message {
    color: #fb7185;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.error-message.visible {
    display: block;
}

.contact-alternatives {
    margin-top: 24px;
    text-align: center;
}

.alternative-title {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.alternative-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 48px 0 24px;
}

.footer-top {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

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

.footer-bottom {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #060B18;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 90;
}

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

#back-to-top:hover {
    background: var(--accent-hover);
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-role {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

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

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-cta {
        margin-top: 8px;
    }

    .stack-grid,
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-img-ring {
        width: 260px;
        height: 260px;
    }

    .hero-img-wrapper {
        width: 240px;
        height: 240px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-chip.chip-1 { top: 20px; left: 0; }
    .tech-chip.chip-2 { bottom: 40px; left: 0; }
    .tech-chip.chip-3 { top: 70px; right: 0; }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 24px;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }
}
