:root {
    --bg-color: #0a0a0f;
    --bg-secondary: #12121a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-color: #6d28d9;
    /* Deep purple */
    --accent-hover: #5b21b6;
    --card-bg: #1a1a24;
    --border-color: #2a2a35;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    /* Lenis assumes control over scroll behavior */
}

/* Lenis recommended styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
}

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

.navbar--hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-contact {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--card-bg);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: clamp(3rem, 5vw + 1rem, 6rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.primary {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
}

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
}

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

.btn.secondary:hover {
    background: var(--card-bg);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

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

.hero-avatar {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(109, 40, 217, 0.2);
    transition: var(--transition);
    border: 4px solid var(--accent-color);
}

.hero-avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(109, 40, 217, 0.4);
}

/* Sections General */
section {
    padding: 6rem 5%;
}

.section-title {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.section-title h2 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 800px;
    font-family: var(--font-heading);
    font-weight: 300;
}

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

.about-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
}

/* Skills Carousel */
.skills-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    /* Fecha a lateralidade da sessão */
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
    /* Increased padding to prevent hover cutoff */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Edge fade effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.skills-row {
    width: 100%;
    position: relative;
    /* overflow: hidden removed to prevent clipping scaled cards */
}

/* Pause animation on hover */
.skills-row:hover .skills-track {
    animation-play-state: paused;
}

.skills-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
}

/* Animations for seamless loop */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-25% - 0.375rem));
    }

    /* -25% minus 1/4 of the gap for 4 sets */
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-25% - 0.375rem));
    }

    100% {
        transform: translateX(0);
    }
}

[data-direction="rtl"] .skills-track {
    animation: scrollLeft 12s linear infinite;
}

[data-direction="ltr"] .skills-track {
    animation: scrollRight 12s linear infinite;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    transition: var(--transition);
    width: 220px;
    height: 220px;
    /* Garante que todos os cards tenham a mesma altura */
    flex-shrink: 0;
}

.skill-card:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px) scale(1.02);
    color: white;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.2);
}

.skill-card i {
    font-size: 3.2rem;
    transition: var(--transition);
}

.skill-icon {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    transition: var(--transition);
    background: transparent;
}

.skill-card:hover i {
    transform: scale(1.1);
}

.skill-card:hover .skill-icon {
    transform: scale(1.25);
}

.skill-card span {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
}

/* ============================================
   Projects Showcase — Premium Case Study Style
   ============================================ */

/* Floating keyframes — removed (mockup is static) */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tagShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.projects-showcase {
    background: var(--bg-color);
    padding: 6rem 5% 0;
}

.projects-showcase .section-title {
    margin-bottom: 3rem;
}

/* --- Projects Stack Container --- */
.projects-stack {
    padding-bottom: 1px;
    /* Prevents margin-collapse on the last project so it can stick properly */
}

/* --- Project Section (each project) --- */
.project-section {
    position: sticky;
    top: 12vh;
    min-height: 98vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    overflow: hidden;
    transform-origin: top center;
}

/* Anchor properties */
.project-anchor {
    display: block;
    height: 0;
    visibility: hidden;
    scroll-margin-top: 12vh;
}

/* Espaçamento entre os cards usando a âncora invisível */
.project-anchor:not(:first-child) {
    margin-top: 60vh;
}

/* Explicit stacking order to ensure later cards overlap earlier ones even during GSAP transforms */
.project-section:nth-of-type(1) {
    z-index: 10;
}

.project-section:nth-of-type(2) {
    z-index: 20;
}

.project-section:nth-of-type(3) {
    z-index: 30;
}

.project-section:nth-of-type(4) {
    z-index: 40;
}

.project-section:nth-of-type(5) {
    z-index: 50;
}

/* Background image layer */
.project-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Mockup usado como fundo — esticado, embaçado */
.project-section__bg-img {
    position: absolute;
    inset: -5%;
    /* leve oversize para esconder bordas do blur */
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    filter: blur(22px) brightness(0.28) saturate(1.2);
    transform: scale(1.05);
    pointer-events: none;
    user-select: none;
}

/* Dark overlay para aprofundar o escurecimento nas bordas */
.project-section__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* Container — two columns */
.project-section__container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    padding: 4rem 5%;
}

.project-section__container--reverse {
    flex-direction: row-reverse;
}

/* --- Mockup --- */
.project-section__mockup {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}


/* Mockup image */
.project-section__mockup-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-section__mockup-img:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* --- Info Side --- */
.project-section__info {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* "Projeto em destaque" label */
.project-section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.project-section__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.project-section__subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.2px;
}

.project-section__description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 480px;
}

/* --- Tags / Pills --- */
.project-section__tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.project-tag {
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: default;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.project-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-tag:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.project-tag:hover::before {
    opacity: 1;
    animation: tagShimmer 1.5s linear infinite;
}

/* --- Action Buttons --- */
.project-section__actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.35s ease;
    cursor: pointer;
}

.project-btn--primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.project-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
}

.project-btn--primary.project-btn--teal {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
}

.project-btn--primary.project-btn--teal:hover {
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, #10b981, #34d399);
}

.project-btn--primary.project-btn--blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.project-btn--primary.project-btn--blue:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.project-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Scroll-triggered animation states --- */
.project-section__info,
.project-section__mockup {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-section__mockup {
    transition-delay: 0.15s;
}

.project-section.is-visible .project-section__info,
.project-section.is-visible .project-section__mockup {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .project-section {
        min-height: auto;
    }

    .project-section__container,
    .project-section__container--reverse {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
        gap: 2.5rem;
    }

    .project-section__info {
        align-items: center;
    }

    .project-section__description {
        max-width: 100%;
    }

    .project-section__tags {
        justify-content: center;
    }

    .project-section__actions {
        justify-content: center;
    }

    .project-section__mockup-img {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .projects-showcase {
        padding: 4rem 3% 0;
    }

    .project-section {
        border-radius: 18px;
    }

    .project-anchor:not(:first-child) {
        margin-top: 4rem;
    }

    .project-section__container {
        padding: 2.5rem 4%;
        gap: 2rem;
    }

    .project-section__title {
        font-size: 2rem;
    }

    .project-section__subtitle {
        font-size: 1rem;
    }

    .project-section__description {
        font-size: 0.9rem;
    }

    .project-section__actions {
        flex-direction: column;
        width: 100%;
    }

    .project-btn {
        justify-content: center;
        width: 100%;
    }
}


/* Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 0 2rem 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    left: 12px;
    top: 2.5rem;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.date {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

.timeline-img {
    position: absolute;
    width: 60px;
    height: 60px;
    left: -85px;
    top: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    background: var(--card-bg);
}

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

.company {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

/* Contact/Footer */
.contact {
    background: linear-gradient(135deg, var(--bg-color), #1c0a30);
    padding: 6rem 5% 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-top {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-top h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
    color: white;
}

.footer-top p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
    margin-bottom: 2rem;
}

.footer-col--brand {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.2);
    transition: var(--transition);
}

.footer-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.3);
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 1.05rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-info--icons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.footer-icon-link i {
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-icon-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(109, 40, 217, 0.3);
}

.footer-icon-link:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Hamburger Button
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
    padding: 0;
}

.hamburger:hover {
    border-color: var(--accent-color);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* ============================================
   Mobile Menu Overlay
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 5%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1060;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--accent-color);
}

.mobile-menu__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu__links li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active .mobile-menu__links li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.mobile-menu.active .mobile-menu__links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu__links li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu__links li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu__links li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu__links li:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu__links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.mobile-menu__links a:hover {
    color: var(--accent-color);
}

.btn-contact--mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s,
        background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-menu.active .btn-contact--mobile {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Desktop only - CV button
   ============================================ */
.btn-contact--desktop {
    /* Visible by default, hidden in mobile via media query */
}

/* ============================================
   Responsive — 1200px (Large tablets / small desktops)
   ============================================ */
@media (max-width: 1200px) {
    .navbar {
        padding: 1.2rem 4%;
    }

    .hero {
        padding: 8rem 4% 4rem;
        gap: 3rem;
    }

    section {
        padding: 5rem 4%;
    }

    .project-section__container {
        gap: 3rem;
        padding: 3rem 4%;
    }

    .hero-avatar {
        width: 340px;
        height: 340px;
    }
}

/* ============================================
   Responsive — 900px (Tablets)
   ============================================ */
@media (max-width: 900px) {

    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .btn-contact--desktop {
        display: none;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        gap: 3rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .hero-avatar {
        width: 280px;
        height: 280px;
    }

    /* About */
    .lead {
        font-size: 1.3rem;
    }

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

    /* Skills */
    .skill-card {
        width: 170px;
        height: 170px;
        padding: 1.8rem 1.5rem;
    }

    .skill-card i {
        font-size: 2.6rem;
    }

    .skill-icon {
        width: 4rem;
        height: 4rem;
    }

    /* Timeline */
    .timeline-img {
        display: none;
    }

    /* Contact */
    .footer-top h2 {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
    }
}

/* ============================================
   Responsive — 768px (Small tablets / large phones)
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1.3rem;
    }

    section {
        padding: 4rem 4%;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .section-title h2 {
        font-size: 2.4rem;
    }

    /* Hero */
    .hero {
        padding-top: 8rem;
        min-height: auto;
        padding-bottom: 4rem;
        flex-direction: column-reverse;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        width: 55px;
        height: 55px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        font-size: 0;
        gap: 0;
    }

    .hero-buttons .btn i {
        font-size: 1.5rem;
    }

    .hero-avatar {
        width: 240px;
        height: 240px;
    }

    /* About */
    .lead {
        font-size: 1.15rem;
    }

    .about-card {
        padding: 2rem;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    /* Skills */
    .skills-carousel {
        padding: 1.5rem 0;
        gap: 1.5rem;
    }

    .skill-card {
        width: 150px;
        height: 150px;
        padding: 1.5rem 1rem;
        border-radius: 16px;
        gap: 0.8rem;
    }

    .skill-card i {
        font-size: 2.2rem;
    }

    .skill-icon {
        width: 3.2rem;
        height: 3.2rem;
    }

    .skill-card span {
        font-size: 0.85rem;
    }

    /* Projects */
    .projects-showcase {
        padding: 4rem 3% 0;
    }

    .project-section {
        border-radius: 20px;
        min-height: auto;
        position: relative;
        top: auto;
    }

    .project-section+.project-section {
        margin-top: 4rem;
    }

    .project-section__mockup {
        min-height: 280px;
    }

    .project-section__mockup-img {
        max-width: 95%;
    }

    /* Timeline */
    .timeline {
        max-width: 100%;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    /* Contact */
    .footer-top h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .footer-top p {
        font-size: 1.05rem;
    }

    .footer-grid {
        gap: 2.5rem;
        padding-top: 3rem;
    }
}

/* ============================================
   Responsive — 600px (Phones)
   ============================================ */
@media (max-width: 600px) {
    .navbar {
        padding: 1rem 5%;
    }

    section {
        padding: 3.5rem 5%;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Hero */
    .hero {
        padding-top: 7rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: row;
        width: auto;
        max-width: none;
        margin: 0;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        width: 50px;
        height: 50px;
    }

    .hero-buttons .btn i {
        font-size: 1.3rem;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }

    /* About */
    .lead {
        font-size: 1.05rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    /* Skills */
    .skill-card {
        width: 130px;
        height: 130px;
        padding: 1.2rem 0.8rem;
        border-radius: 14px;
        gap: 0.6rem;
    }

    .skill-card i {
        font-size: 1.8rem;
    }

    .skill-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .skill-card span {
        font-size: 0.78rem;
    }

    .skills-track {
        gap: 1rem;
    }

    /* Projects */
    .projects-showcase {
        padding: 3.5rem 3% 0;
    }

    .project-section {
        border-radius: 16px;
    }

    .project-section+.project-section {
        margin-top: 3rem;
    }

    .project-section__container {
        padding: 2rem 4%;
        gap: 1.5rem;
    }

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

    .project-section__subtitle {
        font-size: 0.95rem;
    }

    .project-section__description {
        font-size: 0.88rem;
    }

    .project-section__label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .project-section__mockup {
        min-height: 200px;
    }

    .project-section__actions {
        flex-direction: column;
        width: 100%;
    }

    .project-btn {
        justify-content: center;
        width: 100%;
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .project-tag {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Timeline */
    .timeline::after {
        left: 16px;
    }

    .timeline-item {
        padding: 1.5rem 0 1.5rem 42px;
    }

    .timeline-dot {
        left: 9px;
        width: 14px;
        height: 14px;
        top: 2rem;
    }

    .timeline-content {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .company {
        font-size: 0.85rem;
    }

    .date {
        font-size: 0.8rem;
    }

    /* Contact */
    .contact {
        padding: 4rem 5% 2rem;
    }

    .footer-top h2 {
        font-size: 2rem;
    }

    .footer-top p {
        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Mobile menu links smaller */
    .mobile-menu__links a {
        font-size: 1.6rem;
    }
}

/* ============================================
   Responsive — 480px (Small phones)
   ============================================ */
@media (max-width: 480px) {
    .logo {
        font-size: 1.15rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-avatar {
        width: 180px;
        height: 180px;
    }

    .lead {
        font-size: 1rem;
    }

    .about-card {
        padding: 1.2rem;
    }

    /* Skills */
    .skill-card {
        width: 110px;
        height: 110px;
        padding: 1rem 0.6rem;
        border-radius: 12px;
        gap: 0.5rem;
    }

    .skill-card i {
        font-size: 1.5rem;
    }

    .skill-icon {
        width: 2rem;
        height: 2rem;
    }

    .skill-card span {
        font-size: 0.72rem;
    }

    .skills-track {
        gap: 0.8rem;
    }

    /* Projects */
    .project-section__title {
        font-size: 1.5rem;
    }

    .project-section__subtitle {
        font-size: 0.88rem;
    }

    .project-section__description {
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .project-section+.project-section {
        margin-top: 3rem;
    }

    /* Timeline */
    .timeline-content h3 {
        font-size: 1.05rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Contact */
    .footer-top h2 {
        font-size: 1.7rem;
    }

    /* Mobile menu */
    .mobile-menu__links a {
        font-size: 1.4rem;
    }

    .mobile-menu__links {
        gap: 1.2rem;
    }
}

/* ============================================
   Responsive — 360px (Very small phones)
   ============================================ */
@media (max-width: 360px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .logo {
        font-size: 1.05rem;
    }

    section {
        padding: 3rem 4%;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
    }

    .skill-card {
        width: 95px;
        height: 95px;
        padding: 0.8rem 0.5rem;
        gap: 0.4rem;
    }

    .skill-card i {
        font-size: 1.3rem;
    }

    .skill-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .skill-card span {
        font-size: 0.65rem;
    }

    .project-section__title {
        font-size: 1.3rem;
    }

    .footer-top h2 {
        font-size: 1.5rem;
    }

    .mobile-menu__links a {
        font-size: 1.2rem;
    }
}

/* CV Modal */
.cv-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cv-modal-content {
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.cv-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.cv-modal-close:hover {
    color: var(--accent-color);
}

.cv-container {
    padding: 40px;
    color: var(--text-primary);
}

.cv-header {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.cv-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.cv-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.cv-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.cv-section p i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.cv-skills {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cv-skills span {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cv-experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
}

.cv-experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-experience-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
}

.cv-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.cv-company {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.cv-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.cv-print-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-print-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3);
}

@media (max-width: 768px) {
    .cv-modal-content {
        max-height: 90vh;
    }

    .cv-container {
        padding: 20px;
    }

    .cv-header h1 {
        font-size: 2rem;
    }

    .cv-section h2 {
        font-size: 1.2rem;
    }

    .cv-experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
}