:root {
    --primary-color: #2e00f9;
    --primary-light: #6d28d9;
    --secondary-color: #f9004d;
    --dark-color: #0d0d0d;
    --darker-color: #08060f;
    --light-color: #ffffff;
    --gray-color: #b0a8c0;
    --accent-color: #4200f9;
    --text-color: #f5f5f5;
    --text-muted: #b0a8c0;
    --success-color: #25D366;
    --error-color: #f44336;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    --shadow-purple: 0 15px 40px rgba(66, 0, 249, 0.35);
    --gradient: linear-gradient(135deg, #2e00f9 0%, #6d28d9 100%);
    --transition: all 0.3s ease;
    --radius: 14px;
    --font: 'Josefin Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

.section-container {
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.highlight {
    color: #7c5cff;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 10px;
}

.loader-square {
    width: 20px;
    height: 20px;
    background: var(--gradient);
    animation: loader-animation 1.2s infinite ease-in-out;
}

.loader-square:nth-child(2) { animation-delay: -0.3s; }
.loader-square:nth-child(3) { animation-delay: -0.6s; }
.loader-square:nth-child(4) { animation-delay: -0.9s; }

@keyframes loader-animation {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 6, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.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.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: #7c5cff;
}

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

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.8rem;
}

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

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

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

.nav-cta {
    background: var(--gradient);
    color: var(--light-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-cta:hover {
    box-shadow: var(--shadow-purple);
    transform: translateY(-2px);
}

.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-color);
    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-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: radial-gradient(ellipse at 20% 20%, rgba(66, 0, 249, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 92, 255, 0.12) 0%, transparent 50%);
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.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-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

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

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.typewriter-caret {
    width: 3px;
    height: 1.2em;
    background: #7c5cff;
    display: inline-block;
    margin-left: 4px;
    animation: blink 0.9s infinite;
}

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

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

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

.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: 600;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--light-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: #7c5cff;
    color: #7c5cff;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: #0d0d0d;
}

.btn-success: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.9rem;
    font-weight: 700;
    color: var(--light-color);
}

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

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 330px;
    height: 330px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    filter: grayscale(15%);
}

.image-border {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #2e00f9, #f9004d, #6d28d9, #2e00f9);
    animation: spin 8s linear infinite;
    z-index: 1;
}

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

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.25);
    filter: blur(30px);
}

.decoration-circle:nth-child(1) { width: 120px; height: 120px; top: -20px; left: -20px; }
.decoration-circle:nth-child(2) { width: 80px; height: 80px; bottom: 10px; right: -10px; background: rgba(249, 0, 77, 0.2); }
.decoration-circle:nth-child(3) { width: 60px; height: 60px; bottom: -20px; left: 40px; }

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

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

.wheel {
    width: 3px;
    height: 8px;
    background: #7c5cff;
    border-radius: 2px;
    animation: wheel 1.6s infinite;
}

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

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

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

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

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 18px auto 0;
    border-radius: 100px;
}

/* ===== SOBRE ===== */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 48px;
    margin-bottom: 56px;
}

.about-role-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-quick-stats {
    display: flex;
    gap: 28px;
    margin: 28px 0;
    flex-wrap: wrap;
}

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

.about-stat strong {
    font-size: 1.5rem;
    color: var(--light-color);
}

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

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

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-link:hover {
    border-color: #7c5cff;
    color: #9d7cff;
    transform: translateY(-3px);
}

.about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9d7cff;
    margin-bottom: 16px;
}

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

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

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

.stack-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: var(--transition);
}

.stack-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: var(--shadow);
}

.stack-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--light-color);
    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-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.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: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    color: #9d7cff;
}

.skill-pct {
    font-weight: 700;
    color: #9d7cff;
}

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

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    background: var(--gradient);
    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: 600;
    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: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tech-tag:hover {
    border-color: #7c5cff;
    color: #9d7cff;
    transform: translateY(-2px);
}

/* ===== PROJETOS ===== */
.projects-section {
    padding: 100px 0;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.45);
    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(124, 92, 255, 0.15);
    color: #9d7cff;
    border: 1px solid rgba(124, 92, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
}

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

.project-badge.badge-purple {
    background: rgba(124, 92, 255, 0.15);
    color: #9d7cff;
    border-color: rgba(124, 92, 255, 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(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
}

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

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9d7cff;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.sub-heading {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 40px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sub-heading i {
    color: #9d7cff;
}

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

.list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.list-item:hover {
    background: rgba(124, 92, 255, 0.06);
    padding-left: 32px;
}

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

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

.list-tag {
    font-size: 0.75rem;
    color: #9d7cff;
    background: rgba(124, 92, 255, 0.12);
    padding: 5px 12px;
    border-radius: 100px;
    font-weight: 600;
}

.github-stats {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    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: #9d7cff;
    margin-bottom: 6px;
}

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

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

/* ===== EXPERIÊNCIA ===== */
.experience-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

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

.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(--darker-color);
    border: 3px solid #9d7cff;
    box-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: rgba(124, 92, 255, 0.45);
    transform: translateX(6px);
}

.timeline-period {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9d7cff;
    background: rgba(124, 92, 255, 0.12);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.timeline-current {
    font-size: 0.72rem;
    color: #9d7cff;
    background: rgba(124, 92, 255, 0.15);
    padding: 3px 10px;
    border-radius: 100px;
    vertical-align: middle;
    font-weight: 600;
}

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

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

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

/* ===== CONTATO ===== */
.contact-section {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(124, 92, 255, 0.4);
}

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

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

.contact-text 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-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

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

.form-message.success {
    display: block;
    background: rgba(37, 211, 102, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(8, 6, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c5cff;
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.form-group input.error-field,
.form-group textarea.error-field {
    border-color: var(--error-color);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s;
    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: -9px;
    font-size: 0.75rem;
    color: #9d7cff;
    background: var(--darker-color);
}

.error-message {
    color: var(--error-color);
    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);
    padding: 48px 0 24px;
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto 20px;
}

.footer-links {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

.footer-links a:hover {
    color: #9d7cff;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: #7c5cff;
    color: #9d7cff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    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: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 90;
    box-shadow: var(--shadow);
}

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

#back-to-top:hover {
    box-shadow: var(--shadow-purple);
}

/* ===== REVEAL ===== */
.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-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-image {
        order: -1;
    }

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

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

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

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

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

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

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

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

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

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