:root {
    --bg-dark: #08080c;
    --bg-card: rgba(20, 20, 30, 0.6);
    --primary: #8a2be2;
    --primary-glow: #9d50f0;
    --secondary: #00d2ff;
    --secondary-glow: #3ad9ff;
    --accent: #ff00ff;
    --text-main: #ffffff;
    --text-muted: #b0b0cc;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #101020 0%, #08080c 100%);
}

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

.section {
    padding: 100px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(8, 8, 12, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary-glow);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    height: 1.8rem;
}

.cursor {
    animation: blink 0.7s infinite;
    color: var(--primary);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

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

.btn-secondary {
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--secondary-glow);
}

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

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

.social-links a:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

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

.img-container {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.2);
    animation: blob 8s infinite alternate;
}

@keyframes blob {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
}

#profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%; /* Moved even higher to focus on the face */
    filter: grayscale(20%);
    transition: var(--transition);
}

.img-container:hover #profile-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px var(--primary);
    opacity: 0.3;
}

/* --- SECTIONS --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
#about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 15%; /* Moved even higher to focus on the face */
}

.secondary-img {
    width: 300px;
    height: 380px;
    border-radius: 20px;
    animation: floating 6s ease-in-out infinite;
}

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

.about-info p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--secondary);
}

.education-timeline h3 {
    margin-bottom: 2rem;
    color: var(--primary-glow);
}

.timeline-item {
    border-left: 2px solid var(--primary);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.year {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 700;
}

/* --- SKILLS --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.skill-tags span:hover {
    background: var(--primary);
    border-color: var(--primary-glow);
    transform: scale(1.05);
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-card.destaque {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 210, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.tag {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-footer {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
}

/* --- CERTS --- */
.certs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    transform: translateX(10px);
}

.cert-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- CONTACT --- */
.contact {
    padding: 150px 0 50px;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 5rem;
}

.contact-item {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.contact-item:hover {
    color: var(--secondary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    font-size: 0.8rem;
    color: #555;
    margin-top: 2rem;
}

/* --- MOBILE --- */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    .hero { padding-top: 140px; height: auto; min-height: 100vh; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-text { order: 2; display: flex; flex-direction: column; align-items: center; }
    .hero-cta { justify-content: center; }
    .social-links { justify-content: center; width: 100%; }
    .hero-image { order: 1; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { display: flex; justify-content: center; margin-bottom: 2rem; }
    .projects-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .section-title { font-size: 2rem; }
    .img-container { width: 280px; height: 280px; }
}
